Thread
:
echo and file_get_contents
View Single Post
01-19-2011, 03:39 AM
#
2
(
permalink
)
tony
The Addict
Join Date: Aug 2008
Posts: 336
Thanks: 8
try this:
test.php
php Code:
test
index.php
php Code:
<?php
$test
=
'something'
;
$new
=
trim
(
file_get_contents
(
'test.php'
)
)
;
$echo
$
$new
,
"
\n
"
;
that should work, because of how PHP look up variables and it lets you declare
variable variables
tony
View Public Profile
Send a private message to tony
Find More Posts by tony