Simple PHP code not running!

  sanjaysagrawal 13:31 10 Sep 2007
Locked

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.

Regards,
Sanjay.

  johnL 15:41 18 Sep 2007

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 2007

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.

Elsewhere on IDG sites

Xiaomi Mi Mix 2 review

What went wrong at the Designs of the Year 2017

iPhone X news: Release date, price, new features & specs

Comment utiliser Live Photos ?