FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » paths and stuff me thinks
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
paths and stuff me thinks [message #35136] Mon, 11 December 2006 14:12 Go to next message
bleak26 is currently offline  bleak26   United Kingdom
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 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Import msgs from vBulletin 3.5.x
Next Topic: rdf vs fudapi
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 15:19:14 GMT 2024

Total time taken to generate the page: 0.02737 seconds