php files not getting executed
Posted by: maulik (59.95.193.---)
Date: September 15, 2006 08:32AM

Hi,

I have installed wamp on windows 2k3, now when ever i start the wamp and try to open some php file it is directly showing the code and not executing file. and this problem is not happening all the apps.

for eg. [localhost]

it shows me it's php code and not execute it. am i missing something in setup ?

Thanks,
Maulik


Options: ReplyQuote
Re: php files not getting executed
Posted by: CyberSpatium (67.170.181.---)
Date: September 15, 2006 12:13PM

put all your website files (php, html, css, images, etc) in your c:\wamp\www folder. to use http://localhost/test/test.php make a folder called test in your www folder. now put your test.php script in your test folder.



Post Edited (09-15-06 12:14)

CyberSpatium
----------------------
WAMP Forum Admin

Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.

Options: ReplyQuote
Re: php files not getting executed
Posted by: maulik (59.95.202.---)
Date: September 15, 2006 07:07PM

I have configured the files in that way only.
Also, I am able to see the folder as Project when i open [localhost]

Thanks,
Maulik

Options: ReplyQuote
Re: php files not getting executed
Posted by: caley (70.55.82.---)
Date: September 18, 2006 10:51PM

Hi,

i'm having the same problem.

[localhost]

gives me a blank screen....

What do we have to do to get the php to execute?

thank you!
c.


Options: ReplyQuote
Re: php files not getting executed
Posted by: caley (70.55.82.---)
Date: September 18, 2006 11:13PM

btw i am using the long tags

ie.
<?php

so that's not causing the problem.

i have all my files in /wamp/www/

So why the blank screen?

thanks


Options: ReplyQuote
Re: php files not getting executed - blank screen solution
Posted by: caley (70.55.82.---)
Date: September 19, 2006 12:04AM

Update:

my php is now executing.

i will document here what i did in case it might help anyone else.

I uninstalled and then re-installed the latest version of WAMP.

In re-installing i chose a different Root Directory different from /wamp/www/ In fact i made my Root Directory the same as where i've been storing all my website files...

ie. /my documents/my websites/

That was the one thing i did differently.

i did note however, on the second installation, my firewall asked me to give permissions to Apache and MySQL which it did not do on the first installation. This made me wonder if i had firewall issues during or after the first installation.

If you are having the blank screen problem, but putting your files in the correct ROOT DIRECTORY and using long tags ie <?php then you should try viewing your .php files with your firewall turned off. Then you will see if your firewall is interfering or not.

btw i don't know why the firewall would interfere with files viewed locally, but perhaps there is something to this observation.... it's just a suggestion you could try.

Good luck,
caley.


Options: ReplyQuote
Re: php files not getting executed
Posted by: CyberSpatium (67.170.181.---)
Date: September 19, 2006 10:32AM

your do not access your www folder like this
[localhost]


use

[localhost]

Options: ReplyQuote


Sorry, only registered users may post in this forum.