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

Home » FUDforum Development » Bug Reports » GLOBALS.php "Bug"??
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: GLOBALS.php "Bug"?? [message #165102 is a reply to message #165098] Mon, 25 April 2011 07:13 Go to previous messageGo to previous message
Dayo is currently offline  Dayo   
Messages: 101
Registered: April 2011
Karma:
Senior Member
You missed the main point being made ...

Quote:
...When I include GLOBALS.php from within a function in an external application, Variable $XYZ is no longer global in scope but is now local to my function.


The key terms are "function" and "external application".

Function autoCalledBySomeEventInExternalApplication() {
// Log user into FUDforum
code from http://cvs.prohost.org/index.php/Login_integration#Example
//Try to get user details to feed to external application
require_once 'scripts/fudapi.inc.php';
Call a function in fudapi.inc.php
//Fails because many functions fudapi.inc.php use $GLOBALS['XYZ'] which will always be empty in this case.
}
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SQL Error has occurred...
Next Topic: NNTP Import Subject with Non-Ascii Characters
Goto Forum:
  

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

Current Time: Thu Mar 28 10:33:06 GMT 2024

Total time taken to generate the page: 0.03700 seconds