Page 1 of 1

$variable from a file

Posted: 22 Apr 2005, 13:12
by kmet
Is it possible to take value (string) of variable from a file ?

I would like something like this:

## custom_string_inc.php ##

$s_new_account_greeting = file_get_contents (./file.txt)

Of coure above example doesn't work, but could it be done ? how ?
(Im not a php programmer).

regards

Kmet