473,385 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Change variables from function

JV
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
Jul 17 '05 #1
2 1742
Hi,

On Wed, 08 Sep 2004 02:16:41 GMT, "JV" <jveil.hotpop@com> wrote:
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.


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.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #2
JV
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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Randell D. | last post by:
Folks, When I read data from my form, I sanitize it before recording it in MySQL. At the moment, the values in $_POST are cleaned and returned in a new array called $formData. I found my...
10
by: TheKeith | last post by:
I don't know much about javascript, so take it easy on me. Is there a way to dynamically change a CSS layers dimensions on the fly. Here is what I'm doing. I have a bunch of thumbnails that when...
3
by: webdev | last post by:
Hi, Code below dynamically adds an input box to a form, creating a new name attribute as it goes... (many thanks to Martin Honnen for getting me this far ;0) Problem is - in IE5.5 only the first...
7
by: Michael | last post by:
Hi newsgroup, as the subject indicates I am looking for an advice using global variables. I am not if this problem is more about style then C. If its wrong in thi group, sorry. So I have a...
5
by: VA | last post by:
Mozilla-based browsers have watch and unwatch methods to detect change in value of form elements (or any Javascript variables really). IE doesn't support this. Is there a a reliable...
8
by: bim_bom | last post by:
Hi, is there any tool to change naming convention in c++ sources? I mean something, that parses cpp and h files in my project, and it finds, what variables are there declared. I think, it should...
45
by: Zytan | last post by:
This returns the following error: "Cannot modify the return value of 'System.Collections.Generic.List<MyStruct>.this' because it is not a variable" and I have no idea why! Do lists return copies...
18
by: wizdom | last post by:
Help - change text on click - text has another onclick inside with php variables ---------- I think what I'm trying to do is simple. I have a 2 buttons on a page. 1 button allows a thread of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.