PDA

Click to See Complete Forum and Search --> : URLS diffrent in some scripts


dclamp
Jun 20th, 2007, 03:22 AM
I almost always see URLS one way, like this:

http://www.domain.tld/script.php?key=value&key2=value2

on SMF forums, their urls look like this:

http://www.domain.tld/script.php?key=value;key2=value2.

when i tried to do that kind of url on my site, it spat an error at me. I was just wondering how they got that to work, and why they would want to do it differently?

penagate
Jun 20th, 2007, 03:37 AM
arg_separator.input and arg_separator.output in php.ini. On shared hosting, these are settable using a php_flag directive in a .htaccess file.

McCain
Jun 20th, 2007, 05:04 AM
Where I have my hosting they're using PHPsuexec, so I just place a php.ini file with the settings I want in the directory I want them.

dclamp
Jun 20th, 2007, 01:15 PM
oh ok. But why would someone want to have them differently? are there upsides, or is it just a different way of doing it?

dclamp
Jul 1st, 2008, 03:18 AM
just found this thread. still would like an answer to he above question :)

visualAd
Jul 1st, 2008, 05:10 AM
I would imagine for compatibility reasons and also some modules in Apache may process command line arguments prior to PHP - so it is desirable to use a different format.