Simple PHP code not running!

  sanjaysagrawal 13:31 10 Sep 07

Hi all,

I copy/pasted the simple code found on this page:
click here

But the code inside the PHP doesn't run! I replaced the double quotes with single quotes, still no joy. However, any code outside the PHP block is executed and within the HTML tags is executed properly.

I am using PHP 5.2.3-win32 on XPSP2, with IIS 5.1 in the background.

Any ideas on what might not be working will be appreciated.


  johnL 15:41 18 Sep 07

Try posting your coding with a .php extension instead of .html or whatever. This tells the server to parse with php.

  MS35 19:23 10 Oct 07

I'm no expert and am just about to load a question re Apache as I'm also having problems joining IIS with PHP and mySQL - although this helped me initally:

click here

Otherwise it may be that .php is not recognised in the extensions configuration in IIS.

This thread is now locked and can not be replied to.

Surface Pro (2017) vs Surface Pro 4

Where HTML5 is headed next

MacBook Pro v Surface Pro 5