Home »
FUDforum »
How To »
paths and stuff me thinks
paths and stuff me thinks [message #35136] |
Mon, 11 December 2006 14:12 |
bleak26
Messages: 7 Registered: December 2006
Karma: 0
|
Junior Member |
|
|
When i include this file from one of my other files i get the errors at the bottom of this post.this file works when its not included and is called from the browser. Could u tell me what would normally cause this problem.
the calling file is likly to be to large post. Both files are in the same folder and i call the file below like this
include('simplelogin.php');
<?php
//simplelogin.php
include("../../FUDforum/scripts/GLOBALS.php");
include("../../FUDforum/scripts/forum_login.php");
//$row[] is a database result from else where
$email = $row['email'];
$email = "bleak26(at)hotmail(dot)com";
$user_id = external_get_userid_by_email($email);
external_fud_login($user_id);
?>
Warning: file_get_contents(./GLOBALS.php) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/vhosts/FUDforum/scripts/forum_login.php on line 79
Warning: require_once(theme/default/db.inc) [function.require-once]: failed to open stream: No such file or directory in /var/www/vhosts/FUDforum/scripts/forum_login.php on line 89
Fatal error: require_once() [function.require]: Failed opening required 'theme/default/db.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/FUDforum/scripts/forum_login.php on line 89
|
|
|
Re: paths and stuff me thinks [message #35137 is a reply to message #35136] |
Mon, 11 December 2006 14:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to edit forum_login.php and at the top specify the full path to the GLOBALS.php file.
FUDforum Core Developer
|
|
|
Goto Forum:
Current Time: Thu Nov 21 16:31:29 GMT 2024
Total time taken to generate the page: 0.02579 seconds