Re: [PHP] Installing under IIS6.0
> I've got PHP set up to the point where it will process files ending in > .php, but I want to "blanket" the processing of PHP code under IIS in > the same manner in which I blanket PHP code with Apache. > > If anyone has any suggestions, other than reading PHP's manual which > I've read several times which does not cover this, I would greatly > appreciate it. I wrote a little 'hack' to mimic modrewrite for IIS. When you get a 404 error page in IIS, you get the URL of the originally requested page in the $_SERVER['QUERY_STRING'] variable. So by creating a custom 404 error page with this knowledge you can mimic the basic functionality of modrewrite: 0 ) { $page = preg_replace( $rule, $target, $url ); header( "Referer: " . $_SERVER['HTTP_REFERER'] ); header( "Location: " . $page ); } ?> Hope this helps, Tjoek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] this may be a daft question but.....defining indexes
> This may be a daft question but I keep getting notices on undefined indexes > > Is there a way to define them prior to use similar to.. > > $global $myvariable; > > Can you show me examples of how to do this with cookies/arrays? $array = array( ); and with a class you can use class Test { var $variable1; var $variable2; } Hope this helps Tjoek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 404 error - DLL files needed ??
On 7/13/05, Grosz, Steve (IPG IT) <[EMAIL PROTECTED]> wrote: > I tried that, renamed a txt file to .php, but when I try to get the .php > file, I just get a 404 error. Grosz, this might very well be your webserver invoking. By default, IIS 6.0 all webserver extensions (like PHP). To check if your server still does, open up your IIS manager (Start->Run->'c:\windows\system32\inetsrv\iis.msc') Then browse to Web Service Extensions on the left. If you did install PHP correctly you should see PHP appearing in the list on the right. Set it to 'Allowed'. Now try requesting the page via your browser again. Good luck! Tjoekbezoer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php