How would I include into a variable?
View Single Post
12-29-2007, 02:03 PM
Join Date: Dec 2007
Location: Bucharest, Romania
Originally Posted by
How would I have something like this work:
$pass = include("pass.txt");
It is moi importante.
You have to
the output (or what you need) from that include file, just like you would in a function. Here's an example:
$x = 2+4; return $x;
$sum = include_once 'include.php'; echo $sum * 4; // should output 24
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
The Following 3 Users Say Thank You to xenon For This Useful Post:
View Public Profile
Send a private message to xenon
Visit xenon's homepage!
Find More Posts by xenon