url pathing relative , differences between mono/windows?
3 posts
• Page 1 of 1
url pathing relative , differences between mono/windows?
I have phalanger working in a mvc3 environment (as the view engine) on both
mono/linux and windows.
One issue i have is, in the php file i will have a
<form action="<url>" .....>
now i have tried every possiblity, and no one solution works on both platforms,
i.e. if i have:
action="file.php" : on windows it works, and sticks file.php onto the relative path
which includes the contoller, i.e. file.php => Home/file.php
On linux the file.php => http://<domain>.com/phalanger/file.php - so it leaves out the controller, so it doesn't appear to be building off a relative path.
If i put action="Home/file.php" on linux it works, on windows i get .../Home/Home/file.php
if i action="/Home/file.php" on windows it works, on linux, it doesn't work, because it doesn't put the /planger in front.
Now one way i can get this it work is if i can get Phalanger to act on files in the document root, and not have to have the "/planger" alias for apache.
If i try to do this i get a node :machine error message.
I wonder where the pathing bug is? on Mono ? on Phalanger?
Seems to me it may not be on Phalanger, as why would phalanger interp. a url path ref on a form action in php? If it is a mono bug?? but as mentioned i can get
around the bug if i can get phalanger to act on document root,
So if someone knows how to set that up?
-tl
mono/linux and windows.
One issue i have is, in the php file i will have a
<form action="<url>" .....>
now i have tried every possiblity, and no one solution works on both platforms,
i.e. if i have:
action="file.php" : on windows it works, and sticks file.php onto the relative path
which includes the contoller, i.e. file.php => Home/file.php
On linux the file.php => http://<domain>.com/phalanger/file.php - so it leaves out the controller, so it doesn't appear to be building off a relative path.
If i put action="Home/file.php" on linux it works, on windows i get .../Home/Home/file.php
if i action="/Home/file.php" on windows it works, on linux, it doesn't work, because it doesn't put the /planger in front.
Now one way i can get this it work is if i can get Phalanger to act on files in the document root, and not have to have the "/planger" alias for apache.
If i try to do this i get a node :machine error message.
I wonder where the pathing bug is? on Mono ? on Phalanger?
Seems to me it may not be on Phalanger, as why would phalanger interp. a url path ref on a form action in php? If it is a mono bug?? but as mentioned i can get
around the bug if i can get phalanger to act on document root,
So if someone knows how to set that up?
-tl
- tleslie
- Posts: 32
- Joined: August 3rd, 2012, 4:42 am
Re: url pathing relative , differences between mono/windows?
Scratch this, it was to do with the returnUrl of forms auth in windows,
so I don't think it has anything to do with Phalanger.
-tl
so I don't think it has anything to do with Phalanger.
-tl
- tleslie
- Posts: 32
- Joined: August 3rd, 2012, 4:42 am
Re: url pathing relative , differences between mono/windows?
Ok
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests