View Single Post
Old 05-31-2012, 02:35 AM   PM User | #2
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,904
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
here you set data to the file contents
PHP Code:
$data fread($fpfilesize($path)); 
here you overwrite data with the pathname
PHP Code:
$data addslashes($path); 
so you should concatenate if you really want to add the path to the file...
PHP Code:
$data .= addslashes($path); 
or are you trying to addslashes to the content ? in which case you should be ..

PHP Code:
$data addslashes($data); 
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote