just put php on my server. i think i have installed it correctly according to the instructions at <!-- w --><a class="postlink" href="http://www.php.net">www.php.net</a><!-- w --> (<!-- m --><a class="postlink" href="http://www.php.net">http://www.php.net</a><!-- m -->).
my call to php script is not working though. I thought that I would start simple and write:
<HTML>
<HEAD>
<TITLE>
This Page is to Test PHP
</TITLE>
<BODY>
To test PHP, I will execute some code:
<BR>
<BR>
<?php echo("If you can read this, then PHP works"); ?>
</BODY>
</HTML>
i only see the top line.
what gives?Well, I hope that people learn from this.
I have managed to answer my question - I went to the Tek-Tips (<!-- m --><a class="postlink" href="http://www.tek-tips.com">http://www.tek-tips.com</a><!-- m -->) forum on PHP and found what the problem is.
The actual thread is at here (<!-- m --><a class="postlink" href="http://www.tek-tips.com/viewthread.cfm?sqid=223023&spid=434&newpid=434&CFID=79552928&CFTOKEN=79146669">http://www.tek-tips.com/viewthread.cfm? ... N=79146669</a><!-- m -->)
I am having further problems - security based now - but i am going to try and solve them myself.that link doesn't take us to the forum thread. can you tell us?sure scoutt, no problem
Go into Internet Services Manager, right-click the Default Web Site, select properties, click the Home Directory tab, click the Configuration button, on the App Mappings tab scroll the list to the bottom to the entry for php, select the php entry, click the edit button, and check the Check That File Exists option. Say okay to exit out. When prompted, apply the change to all of your websites.
You also have to give IUSR_yourmachinename execute permission to php.exe, php4ts.dll, and php4ts.lib.
Then make a page called phpinfo.php and have the following single line in it:
<?php phpinfo(); ?>
and try running it from your browser. That should list your configuration for you.
sorry about the bad linkthanks Horus, just to make everyone clear as to what you were doing. I take it you are running IIS as your server? I am running Apache so I don't have to do all that stuff.
but it is good info to know if you plan on runing a server off windows.isn't there stuff on the Apache server that you don't have to do with IIS? I haven't really looked at alternatives, because we are taking an existing PC - not really bothered about adding to the basic Win2K installsure you have to setup things in the httpd.conf file so it will know where everything is, like the web folder. but that is it.
my call to php script is not working though. I thought that I would start simple and write:
<HTML>
<HEAD>
<TITLE>
This Page is to Test PHP
</TITLE>
<BODY>
To test PHP, I will execute some code:
<BR>
<BR>
<?php echo("If you can read this, then PHP works"); ?>
</BODY>
</HTML>
i only see the top line.
what gives?Well, I hope that people learn from this.
I have managed to answer my question - I went to the Tek-Tips (<!-- m --><a class="postlink" href="http://www.tek-tips.com">http://www.tek-tips.com</a><!-- m -->) forum on PHP and found what the problem is.
The actual thread is at here (<!-- m --><a class="postlink" href="http://www.tek-tips.com/viewthread.cfm?sqid=223023&spid=434&newpid=434&CFID=79552928&CFTOKEN=79146669">http://www.tek-tips.com/viewthread.cfm? ... N=79146669</a><!-- m -->)
I am having further problems - security based now - but i am going to try and solve them myself.that link doesn't take us to the forum thread. can you tell us?sure scoutt, no problem
Go into Internet Services Manager, right-click the Default Web Site, select properties, click the Home Directory tab, click the Configuration button, on the App Mappings tab scroll the list to the bottom to the entry for php, select the php entry, click the edit button, and check the Check That File Exists option. Say okay to exit out. When prompted, apply the change to all of your websites.
You also have to give IUSR_yourmachinename execute permission to php.exe, php4ts.dll, and php4ts.lib.
Then make a page called phpinfo.php and have the following single line in it:
<?php phpinfo(); ?>
and try running it from your browser. That should list your configuration for you.
sorry about the bad linkthanks Horus, just to make everyone clear as to what you were doing. I take it you are running IIS as your server? I am running Apache so I don't have to do all that stuff.
but it is good info to know if you plan on runing a server off windows.isn't there stuff on the Apache server that you don't have to do with IIS? I haven't really looked at alternatives, because we are taking an existing PC - not really bothered about adding to the basic Win2K installsure you have to setup things in the httpd.conf file so it will know where everything is, like the web folder. but that is it.