Jump to content

Installed WAMP successfully but getting errors while running files


Recommended Posts

Hi,

I am a novice to PHP and WAMP but have managed to get the icon green and WAMP services running successfully ( as I understand ). The WAMP page loads fine on localhost.

 

I have made site in local host as C:\wamp\www\main-folder\sub-folder\index.php

but when I hit this URL, I get these errors.

 

Basically what I am trying to do is setup this PHP site on my local pas so that I can access its DESIGN view and edit the CSS, HTML and JS of it WITHOUT touching its PHP tagged code at all.

 

Please help.

 

( ! ) Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant PHP_DIR in C:\wamp\www\main-folder\sub-folder\index.php on line 10 Call Stack # Time Memory Function Location 1 0.0005 679968 {main}( ) ..\index.php:0 2 0.0005 680096 constant ( ) ..\index.php:10
( ! ) Warning: chdir() [<a href='function.chdir'>function.chdir</a>]: Invalid argument (errno 22) in C:\wamp\www\main-folder\sub-folder\index.php on line 10 Call Stack # Time Memory Function Location 1 0.0005 679968 {main}( ) ..\index.php:0 2 0.0008 680320 chdir ( ) ..\index.php:10 Fatal Runtime Error.

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.