-7C- Posted June 6, 2013 Share Posted June 6, 2013 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 Link to comment https://forums.phpfreaks.com/topic/278826-installed-wamp-successfully-but-getting-errors-while-running-files/ Share on other sites More sharing options...
trq Posted June 6, 2013 Share Posted June 6, 2013 That is a coding error. Post your code in PHP help. Link to comment https://forums.phpfreaks.com/topic/278826-installed-wamp-successfully-but-getting-errors-while-running-files/#findComment-1434390 Share on other sites More sharing options...
-7C- Posted June 6, 2013 Author Share Posted June 6, 2013 Oops I posted it here wrongly while switching the sections. Link to comment https://forums.phpfreaks.com/topic/278826-installed-wamp-successfully-but-getting-errors-while-running-files/#findComment-1434414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.