Thread
: Resolved
getting post and session in a file
View Single Post
10-05-2012, 06:30 AM
PM User
|
#
2
kbluhm
Senior Coder
Join Date: Apr 2007
Location: Philadelphia, PA, USA
Posts: 1,503
Thanks: 2
Thanked 258 Times in 254 Posts
Use the second argument to return rather than print:
PHP Code:
file_put_contents
(
'./print_r.'
.
date
(
'YmdHis'
) .
'.txt'
,
print_r
(
$var
,
TRUE
)
);
__________________
ZCE
Users who have thanked kbluhm for this post:
durangod
(10-05-2012)
kbluhm
View Public Profile
Find More Posts by kbluhm