Gloab Variables??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
giaCo
Forum Newbie
Posts: 7
Joined: Thu Dec 02, 2004 6:34 am

Gloab Variables??

Post by giaCo »

Hi There,

My probelm is that i have a php script that takes in a number of bits of information. This page then links to a perl script which uses some of the information and then to a final php scritp.

I need to be able to pass part of the info taken in the first page to the final php script, I do not have permission to alter the erl script to take it throgh there and pass it out the other side.

Would global variables solve this problem?? If so, how to i access the variables in the final script?

I assume they are declared by:
global $testVar;

Any help would be hugely appreciated as i am completely lost and under pressure to solve the probelm!

Thanks/
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if the scripts are stored on the same domain, you can use sessions to pass the information.
Post Reply