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 2 1762
Hi,
On Wed, 08 Sep 2004 02:16:41 GMT, "JV" <jveil.hotpop@c om> 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/
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 accident that I could change the value of $_POST thus I was
thinking it would be better usage of memory (and therefore overall
performance) if instead of having duplicate data that I instead have the
cleaned data returned to $_POST.
|
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 clicked on, will open up the
full view in a CSS layer, as opposed to a pop-up window let's say. I had
this before, but with one layer for each image, and as you might imagine,
the markup was way too bloated. So can I just change the css layers...
|
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 form field (the hard-coded one)
is recovered from the form, while with Mozilla/Firefox all fields are.
The alert() just shows that the newly created element has no name in IE. Can
anyone offer help with this bizarre problem (I thought any old...
|
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 couple of function that all need the same
information (all located in the same file). By now it looks like
/* file beginns */
|
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 cross-browser way alternative to this? Something
that will let me detect a change in value for a form element and
trigger my own callback function upon change?
Hopefully, something that is generic enough to be called as
"MyWatch(element)"!
| |
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 have a public
"CALLBACK" function (which would be impemented by me), which would tell the
program, how to rename variables and functions.
It should work like that:
I have sourcecode:
|
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 of their elements?
Why can't I change the element itself?
class Program
{
private struct MyStruct
|
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 messages to be displayed, the other button collapses that same thread. Works fine.
I was asked if I can just make it one button.
I've played around with a few java scripts. they seem to all work fine until i put my added codes in the text line...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |