[SOLVED] PHP code not running
Posted 22 August 2006 - 06:39 AM
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.
Posted 22 August 2006 - 09:16 AM
Assuming this is all ok then try:
http://localhost/mysite/images/<? echo "$image_name"; ?>
# Note the 'echo'
Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools
Posted 22 August 2006 - 09:24 AM
If at first you don't succeed....stop using ASP and get onto PHP
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users