php wont work
Posted by: Ankh (---.cable.quicknet.nl)
Date: April 11, 2007 09:12AM

I have installed the latest wampserver, first off it worked allmost directly..
Though i am having some trouble now.
it seems, that the phpmyadmin alias works with php.
But when i add a file with php into my directory. It doesn't work..
I get a blank screen with the code of the php file..

I have not changed anything, only the root of my directory because i have a raid 5 setup ;-) But that should not make a different, i think...


Options: ReplyQuote
Re: php wont work
Posted by: CyberSpatium (71.237.217.---)
Date: April 11, 2007 12:29PM

if you changed the default wamp web directory during install you are fine. if you changed it after the install you will need to update apache conf DocumentRoot to your new directory.

start wamp -> left click on the wamp tray icon -> config files -> httpd.conf

find
DocumentRoot "C:/wamp/www"

change to
DocumentRoot "C:/your/new\directory"

then find
<Directory "C:/wamp/www">

change to
<Directory "C:/your/new/directory">

save the file and restart apache for the new setting to take effect.


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

Need help? Check out my WAMP User Manual/Guide here!

Please visit my latest website Clarify Loans:
clarifyloans.com


Like my free support? Help support me by making a donation today!

Options: ReplyQuote
Re: php wont work
Posted by: Ankh (---.dsl.cambrium.nl)
Date: April 11, 2007 12:55PM

i changed it during the installation, when it asked me..

so the above is not the problem. (should not be), i am now at my work so i can't check it out smiling smiley

Options: ReplyQuote
Re: php wont work
Posted by: CyberSpatium (71.237.217.---)
Date: April 11, 2007 01:13PM

you should double check your httpd.conf file and make sure it is set correctly


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

Need help? Check out my WAMP User Manual/Guide here!

Please visit my latest website Clarify Loans:
clarifyloans.com


Like my free support? Help support me by making a donation today!

Options: ReplyQuote
Re: php wont work
Posted by: Ankh (---.dsl.cambrium.nl)
Date: April 11, 2007 01:31PM

i will, allmost got my break. Then i will check it ;-)

Options: ReplyQuote
Re: php wont work
Posted by: Ankh (---.cable.quicknet.nl)
Date: April 11, 2007 06:35PM

Okay problem found,

All my scripts are written in <? ?> style instead of the <?php ?> ;-)

so that was the problem... how stupid lol =]

Options: ReplyQuote
Re: php wont work
Posted by: CyberSpatium (71.237.217.---)
Date: April 11, 2007 09:48PM

well, not too stupid. i have many php programming books, about half use short style tags for their demo code, the others use full tags.



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

Need help? Check out my WAMP User Manual/Guide here!

Please visit my latest website Clarify Loans:
clarifyloans.com


Like my free support? Help support me by making a donation today!

Options: ReplyQuote


Sorry, only registered users may post in this forum.