[PHP] Arg seperators
According to the w3c validation program; A URL for a CGI program that uses `' as a separator, such as http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI didn't think things through very carefully when they decided to use the '' character as a separator between CGI arguments, because '' has special status in HTML. One way to get around this is for the author of the CGI program to use a different value between arguments, like ';' or '|', which would allow the link to be coded as img src=http://site/cgi?opt1=val1;opt2=val2; or whatever. I know that php 4.0.5 has a new ini directive for this, is there any way to change this on older versions of PHP? Thanks, DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 [EMAIL PROTECTED] http://www.rblc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Arg seperators
According to the w3c validation program; A URL for a CGI program that uses `' as a separator, such as http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI didn't think things through very carefully when they decided to use the '' character as a separator between CGI arguments, because '' has special status in HTML. One way to get around this is for the author of the CGI program to use a different value between arguments, like ';' or '|', which would allow the link to be coded as img src=http://site/cgi?opt1=val1;opt2=val2; or whatever. I know that php 4.0.5 has a new ini directive for this, is there any way to change this on older versions of PHP? That directive has been there for a long time. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Arg seperators
i had to do that once with a perl script i was writing because there were a variable number of options that could be passed in, yet i needed to have a fixed number of paramaters going into the script. i used: ./prog.cgi?opts=x:1,y:2,z:3 sort-of like a primitive form of php's ability to pass arrays on the command line. i was using PHP before it was even written ;) -Original Message- From: DAve Goodrich [mailto:[EMAIL PROTECTED]] Subject: [PHP] Arg seperators According to the w3c validation program; A URL for a CGI program that uses `' as a separator, such as http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI didn't think things through very carefully when they decided to use the '' character as a separator between CGI arguments, because '' has special status in HTML. One way to get around this is for the author of the CGI program to use a different value between arguments, like ';' or '|', which would allow the link to be coded as img src=http://site/cgi?opt1=val1;opt2=val2; or whatever. I know that php 4.0.5 has a new ini directive for this, is there any way to change this on older versions of PHP? Thanks, DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 [EMAIL PROTECTED] http://www.rblc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Arg seperators
on 5/18/01 8:58 AM, Rasmus Lerdorf at [EMAIL PROTECTED] wrote: According to the w3c validation program; A URL for a CGI program that uses `' as a separator, such as http://host/prog?x=1y=2;. This is a common problem: the inventors of CGI didn't think things through very carefully when they decided to use the '' character as a separator between CGI arguments, because '' has special status in HTML. One way to get around this is for the author of the CGI program to use a different value between arguments, like ';' or '|', which would allow the link to be coded as img src=http://site/cgi?opt1=val1;opt2=val2; or whatever. I know that php 4.0.5 has a new ini directive for this, is there any way to change this on older versions of PHP? That directive has been there for a long time. -Rasmus Ahhh you are right! I appologise. I am confused now because arg_seperator... is not in the php.ini sample (php.ini_dist), but it is in http://www.php.net/manual/en/ref.info.php, but it's not in http://www.php.net/manual/en/configuration.php, But it is in the output of php.info(), Is there a *single* source of the options and their values that can be set/unset using php.ini, or http.conf? When/where these can be set? Would I be able to get this info into a matrix for everyones benefit? Something like the table at http://www.php.net/manual/en/function.ini-set.php Thanks, DAve -- Dave Goodrich Director of Interface Development Reality Based Learning Company 9521 NE Willows Road, Suite 100 Redmond, WA 98052 Toll Free 1-877-869-6603 ext. 237 Fax (425) 558-5655 [EMAIL PROTECTED] http://www.rblc.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]