Change variables from function

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Subject:    Change variables from function

Currently im working on writing login/verification scripts and I understand
that leaving files that may contain sensitive information in the Document
Root is unadvisable, thus im working on breaking up my long scripts into
files to be included from the main page through the <? required() ?> tag.

So herein lies the question.  how can i safely set/alter the same variables
from across several different functions ?  I kinda understand the use global

If this is a syntax issue or you know of a site that might have indepth
references to the php syntax, then feel free to reply that as well.

Thnx n advnc


Re: Change variables from function

sorry folks im having issues with my code ...

can anyone here suggest a php debugger (ive googled for one) that will work
from CLI thats being remotely accessed on a linux box


Re: Change variables from function


Quoted text here. Click to load it

So, Do global variables not work? Can you give us a code example?


Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces. /

Site Timeline