View Single Post
Old 08-21-2003, 12:08 AM  
Nathan
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 3,108
odin:

simple, do the following:

the external page should look something like this:

PHP Code:
&lt;? echo "<?"; ?&gt;
$var = "eek";
$foo = "bar";
$somemore = 1;
&lt;? echo "?>"; ?&gt;
Lets pretend that page would be http://www.fuckyoutoo.com/some.php

you would simply do:
include("http://www.fuckyoutoo.com/some.php"); in your main file that needs the vars.

You can of course also not use those strange echos and print the &lt;? ?&gt; directly in the file, but you have to make sure that the server that file is on will not parse it for php since it'll of course be empty for the include() then.
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger

Last edited by Nathan; 08-21-2003 at 12:12 AM..
Nathan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote