Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Thomas Hurst

On 9 May 2001 05:05:30 -0700, [EMAIL PROTECTED] (Franklin van Velthuizen)
wrote:

 Good morning/afternoon/evening.. whatever timezone you live in :)
 
 Small question: we all know how to pass parameter using question marks in an URL 
ofcourse..
 but I was wondering whether it was also possible to pass parameters in the URL using 
forward slashes instead of those question marks, so like:
 
 http://blabla/file.php/value
 
 and use value as a parameter, obviously.

This has been known to work on some setups out of the box (like mine :),
but the best way to do it is probably to use mod_rewrite. This takes an
url and, er,  rewrites it to point at your script.

However, you have to parse the URL yourself, it'll be in
$HTTP_SERVER_VARS[REQUEST_URI];
-- 
Thomas 'Freaky' Hurst - [EMAIL PROTECTED] - http://www.aagh.net/

-- 
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] Unix file vs. Mac file formats

2001-05-09 Thread Thomas Hurst

On 9 May 2001 10:15:19 -0700, [EMAIL PROTECTED] (Hoover,
Josh) wrote:

 because (correct me if I'm wrong), Macs use a different character for
 carriage returns than Windows and/or Unix.

There are two characters to delimit end of lines - Carrage Return (CR)
and Line Feed (LF), which dates back to when printers needed to be told
to return the print head back to the start of the line and to move the
paper down a line.

Sadly for us, this has resulted in a somewhat confused standard, with
Windows using CRLF, Unix using LF and Macs using CR.

If you upload via FTP using ASCII mode, this will probably be handled
automagically for you, btw.
-- 
Thomas 'Freaky' Hurst - [EMAIL PROTECTED] - http://www.aagh.net/

-- 
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]