$variable from a file

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
kmet
Posts: 13
Joined: 13 Apr 2005, 10:37

$variable from a file

Post 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
Post Reply