Page 1 of 1

PHP code not running

Posted: Tue Aug 22, 2006 1:42 am
by aliweb
Hi

I have an index.php page which contain some include files. When I run this page it doesn't run the PHP code. It just displays HTML code.
All images are being displayed dynamically by getting image name from database but it doesn't show any of the images. When I right click on image in IE and check its properties the image path is shown as

http://localhost/mysite/images/<? $image_name ?>

I tried running the code on IIS 5 (Win2K) and IIS 6(WinXP) but same problem.

Then I ran it on Linux but there it displays all the text in Chinese language (or some other) and also displays all the PHP code as it is without running it on server.

Re: PHP code not running

Posted: Tue Aug 22, 2006 1:46 am
by Christopher
It should be:

Code: Select all

http://localhost/mysite/images/<?php echo $image_name; ?>

Posted: Tue Aug 22, 2006 2:38 am
by aliweb
oh!!!!! it was just a small mistake!!! :x

thanks man, it worked :D