Change variables from function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JV

    Change variables from function

    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
    vairables.

    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

    JV


  • Jochen Daum

    #2
    Re: Change variables from function

    Hi,

    On Wed, 08 Sep 2004 02:16:41 GMT, "JV" <jveil.hotpop@c om> wrote:
    [color=blue]
    >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
    >vairables.[/color]

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

    HTH,

    Jochen
    --
    Jochen Daum - Cabletalk Group Ltd.
    PHP DB Edit Toolkit -- PHP scripts for building
    database editing interfaces.
    Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

    Comment

    • JV

      #3
      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

      TFH
      JV


      Comment

      Working...