Jump to content

PHP include wont work any ideas?


addsywadsy

Recommended Posts

Ive got some coursework with php and want to include many files but does not work, the files are stored in the same directory but comes up with this error:

 

 

Warning: include(resources/layout.php) [function.include]: failed to open stream: No such file or directory in C:\WINDOWS\xampp\htdocs\css\New Folder\main.php on line 2

 

Warning: include() [function.include]: Failed opening 'resources/layout.php' for inclusion (include_path='.;C:\WINDOWS\xampp\php\pear\') in C:\WINDOWS\xampp\htdocs\css\New Folder\main.php on line 2

 

Fatal error: Call to undefined function pagetop() in C:\WINDOWS\xampp\htdocs\css\New Folder\main.php on line 4

 

Any ideas would be very helpful thanks

Link to comment
https://forums.phpfreaks.com/topic/46176-php-include-wont-work-any-ideas/
Share on other sites

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.