[PHP] PHP and MYSQL
Please help I am going quite mad. I am trying to install PHP-4. I purchased the PHP and MySQL web development book to this end. I am running under Win2000 and IIS. I downloaded from the PHP web site to get the latest versions. I first tried to do a manual installation but this appeared to fail so after trying many things as detailed in the book I gave up and after erasing all I had installed, used the installer program (advanced). This is giving me exactly the same results. Namely:- a script in the root directory (local Host) when viewed gives a copy of my script code and nothing else. I have checked the default DBase entry is correct (PHP/PHP.exe). The exec file Iuser_home and PHP4ts.dll has executable set. I have started and stopped ISS many times. The PHP.INI file is in the PHP directory. I have not modified it in any way (Yet). Here is the script for what it's worth. html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 h2IS IT WORKING?/h2 plt;?php phpinfo(); ?gt; /p /body /html and the result is IS IT WORKING? ?php phpinfo(); ? NO ERROR MESSAGES. I am using Internet explorer and incidentally all my ASP still work normally. I know I have missed something but any pointers as to what would be much appreciated. Thanks BOBG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP installation _ help needed
Hi people! I have MySQL working with ASP under win2000 and IIS. I have recently tried unsuccessfully to install PHP. Initially I started with zip binary distribution. I tested it with:- html head titlePHP Test/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 ?php echo Hello Worldp; ? /body /html Couldn't be much simpler! Nothing worked but view source showed the above code. The implication being that the sever did not parse the code. I then deleted every thing and tried InstallShield with exactly the same result. I have reinstalled IIS - no change I have added PHP to the application mapping. I have given exec permissions to C:/PHP The setup instructions say that I must rename PHP TO PHP.INI in WINNT and that is all. Is this true. If not what precisely must I do? Failing the .INI question I think I have done everything in the OPINS. But you guys will know better. What have I missed? All thoughts gratefully appreciated Thanks Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP installation _ help needed
Hi Prachait. Many thanks for your reply. I have not added to dll in IIS. I simply wanted to get off the ground and then build on what I had. So I followed the operating instructions for InstallationShield and modified the application mappings for .PHP and .PHP3 to point to C:/PHP.php.exe.I did though modify the previous IIS with the regedit provided by PHP zip version with the same results. Since that time I have reloaded ISS so I would have thought we were back to square one!! One strange thing though PHP.EXE ignores anything I type into it e.g. info(). I have downloaded PHP from 2 different mirrors so I would have thought they were to be trusted. My thoughts were that PHP.INI might need modification. But what specifically? The install instructions suggest that it should work as is. Any Thoughts - Anyone please? Thanks Bob Prachait Saxena [EMAIL PROTECTED] wrote in message news:2002060718.30648.qmail;pb1.pair.com... What u had done to install PHP added a dll module in IIS or Mapped the php.exe to .php and .php3 or .php4 Prachait Bob G wrote: Hi people! I have MySQL working with ASP under win2000 and IIS. I have recently tried unsuccessfully to install PHP. Initially I started with zip binary distribution. I tested it with:- html head titlePHP Test/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 ?php echo Hello Worldp; ? /body /html Couldn't be much simpler! Nothing worked but view source showed the above code. The implication being that the sever did not parse the code. I then deleted every thing and tried InstallShield with exactly the same result. I have reinstalled IIS - no change I have added PHP to the application mapping. I have given exec permissions to C:/PHP The setup instructions say that I must rename PHP TO PHP.INI in WINNT and that is all. Is this true. If not what precisely must I do? Failing the .INI question I think I have done everything in the OPINS. But you guys will know better. What have I missed? All thoughts gratefully appreciated Thanks Bob -- Bye, and Have a nice day. Prachait Saxena --- Phone :- +91 - 712 - 544476 Email :- [EMAIL PROTECTED] ICQ :- 71855637 MSN :- [EMAIL PROTECTED] Yahoo Messenger :- [EMAIL PROTECTED] If you do for other's ! Other's will do for you !! Visit me at http://www.Prachait.Com/ http://www.SitesOnTesting.Com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] InstallShield
Hello People! I am still struggling to get PHP up and running. I have used Installshield and all the defaults suggested. I am using Dreamweaver which in turn uses IIS at LocalHost. I use the suggested code :- Running under win2000 and IIS. html head titlePHP Test 3/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body bgcolor=#FF text=#00 ?php echo Hello Worldp; ? /body /html I receive the following error :- Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive. I went to my PHP.INI file (Despite the InstallShield saying I needn't) and this is what I found:- ; The root of the PHP pages, used only if nonempty. ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root ; if you are running php as a CGI under any web server (other than IIS) ; see documentation for security issues. The alternate is to use the ; cgi.force_redirect configuration below doc_root = ; The directory under which PHP opens the script using /~usernamem used only ; if nonempty. user_dir = ; Directory in which the loadable extensions (modules) reside. extension_dir = ./ ; Whether or not to enable the dl() function. The dl() function does NOT work ; properly in multithreaded servers, such as IIS or Zeus, and is automatically ; disabled on them. enable_dl = On ; cgi.force_redirect is necessary to provide security running PHP as a CGI under ; most web servers. Left undefined, PHP turns this on by default. You can ; turn it off here AT YOUR OWN RISK ; **You CAN safely turn this off for IIS, in fact, you MUST.** ; cgi.force_redirect = 1 cgi.force_redirect = 0 As we can see I MUST turn cgi.force_redirect to off and indeed it is. I therefore don't understand the security alert. The doc_root = is as InstallShield installed it. I have tried C:/PHP with no change in results. Could someone please explain what I am doing wrong and suggest a solution. Many thanks Bob G. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php