View Single Post
Old May 7th, 2006, 9:16 PM   #1
gumbyman31
Newbie
 
Join Date: May 2006
Location: Inside
Posts: 14
Rep Power: 0 gumbyman31 is on a distinguished road
Send a message via AIM to gumbyman31
Include variables

how would you use cross-script variables in php? Like, if you have script 1:

<?php 
$A=15
include ("script_2.php")
?>

And then in script 2:

print $A

would this print the value "15", or would you have to do some kind of redefining of the variable?

I know this is a bad example, but holefully you get the idea.
gumbyman31 is offline   Reply With Quote