Jump to content

[SOLVED] What is wrong with this include?


dmccabe

Recommended Posts

I have my main site at: localhost/tooswift

 

Then I have an admin section that includes files from the main section (admin is http://localhost/tooswift/admin)

 

the include is:

 

<?php
include($_SERVER['DOCUMENT_ROOT'] . '/tooswift/connect.php');
include($_SERVER['DOCUMENT_ROOT'] . '/tooswift/functions.php');

?>

 

And the error is:

 

Warning: include(C:/wamp/www/connect.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\tooswift\admin\index.php on line 2

 

Warning: include() [function.include]: Failed opening 'C:/wamp/www/connect.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\tooswift\admin\index.php on line 2

 

Warning: include(C:/wamp/www/functions.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\tooswift\admin\index.php on line 3

 

Warning: include() [function.include]: Failed opening 'C:/wamp/www/functions.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\tooswift\admin\index.php on line 3

Link to comment
https://forums.phpfreaks.com/topic/110425-solved-what-is-wrong-with-this-include/
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.