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

Home » FUDforum » How To » Variable
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Variable [message #27559 is a reply to message #27386] Mon, 12 September 2005 14:54 Go to previous messageGo to previous message
Melf is currently offline  Melf   Germany
Messages: 28
Registered: August 2005
Location: Germany
Karma:
Junior Member
look

I create a knew php file for ex. test.php

Then I put exactly the same Code in the test.php file as in index.php

<?php
	/**
*  Gibt den Status zurück, ob das System gerade zu
*  Wartungsarbeiten gesperrt ist.
*
*  @return boolean TRUE => System ist gerade für
*                          Wartungsarbeiten gesperrt.
*/
require('./GLOBALS.php');



	fud_use('err.inc');

	/* before we go on, we need to do some very basic activation checks */
	if (!($FUD_OPT_1 & 1)) {
		fud_use('errmsg.inc');
		exit($DISABLED_REASON);
	}

          

/* this is needed to determine what extension to use for alpha-transparency images */
	if (!empty($_SERVER['HTTP_USER_AGENT']) && 
		strpos($_SERVER["HTTP_USER_AGENT"], 'MSIE') !== false && 
		strpos($_SERVER["HTTP_USER_AGENT"], 'Opera') === false) {
		define('img_ext', '.gif');
	} else {
		define('img_ext', '.png');
	}

	require($WWW_ROOT_DISK . fud_theme . $t . '.php');
?>


What now happen is that index.php runs, but test.php not:

http://movie-fact.de/fuforum27/forum/test.php

http://movie-fact.de/fuforum27/forum/index.php


Why does the Error-Message in test.php come?

Her it is:

Quote:

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 1126 is not allowed to access ./GLOBALS.php owned by uid 30 in /home/www/web199/html/fuforum27/forum/test.php on line 9

Warning: main(./GLOBALS.php): failed to open stream: Success in /home/www/web199/html/fuforum27/forum/test.php on line 9

Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 1126 is not allowed to access ./GLOBALS.php owned by uid 30 in /home/www/web199/html/fuforum27/forum/test.php on line 9

Warning: main(./GLOBALS.php): failed to open stream: Success in /home/www/web199/html/fuforum27/forum/test.php on line 9

Fatal error: main(): Failed opening required './GLOBALS.php' (include_path='.:/usr/share/php') in /home/www/web199/html/fuforum27/forum/test.php on line 9


And how to avoid the error ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: body mangling - regex
Next Topic: How to sort for popular topics
Goto Forum:
  

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

Current Time: Fri Sep 20 04:19:51 GMT 2024

Total time taken to generate the page: 0.06079 seconds