PHP not working
Posted by: cag17 (208.68.121.---)
Date: September 05, 2007 03:07PM

I am running a Win Server 2003 box with wamp5 1.7.2. Everything seams to be running correctly. The only thing that I have run into is when I call the PHP from inside HTML code it doesn't work. I thought that it might just be the code that I was using but when I added a simple print command and it doesn't work either. I addes HTML code before and after and it works so it is just something with the PHP. I can't figure out if it is the install of wamp or the code that I am using. Any help is greatly appreciated

Re: PHP not working
Posted by: roms (---.w193-251.abo.wanadoo.fr)
Date: September 05, 2007 05:24PM

use <?php instead of <? in your code.



Romain

Re: PHP not working
Posted by: cag17 (208.68.121.---)
Date: September 05, 2007 05:27PM

Sorry, I should have stated this earlier. I have tried the short-circuit and the long way as well. I have even tried the ASP-style and that didn't work either.

Re: PHP not working
Posted by: iblastoff (---.cpe.net.cable.rogers.com)
Date: September 08, 2007 08:53AM

how are you opening your file with the php code in it? it has to be loaded through your localhost and not opening the file with the browser

Sorry, only registered users may post in this forum.