> When sending variables this is the normal way to do it:
> /foo.php?id=12
> 
> But I have read that the following URL should work:
> /foo.php/12/
> 
> and then fetch the id in this way:
> $id = ereg_replace('[^0-9]', '', $PATH_INFO);
> 
> I have even seen it in function but the problem is that I can't get it to
> work on my local apache server.
> When I try to write /foo.php/12/ I get a '500 Internal Server Error' and in
> the apache error-log I can read that 'Premature end of script headers:
> c:/php/php.exe'. Does anyone know what could cause this error and why the
> url isn't working??

Try mod_rewrite to apache...
http://httpd.apache.org/docs/mod/mod_rewrite.html
Else try http://www.phpbuilder.com/columns/tim20000526.php3

Regards,
Johan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to