![]() |
|
|
+ Search |
![]()
|
Nov 12th, 2002 20:33
Juan Carlos Gonzalez, G K,
You can try this code:
$fp = fopen("var_name.txt","r");
$var_name = fgets($fp);
echo $$var_name;
/// end
If you have a file "var_name.txt" with the "foobar" writed in, then
the echo $$var_name will be parsed (in real time) as $foobar
I hope that this helps you out with your problem