View Single Post
Old 10-08-2012, 08:29 PM   PM User | #5
djm0219
Senior Coder

 
djm0219's Avatar
 
Join Date: Aug 2003
Location: Wake Forest, North Carolina
Posts: 1,227
Thanks: 2
Thanked 189 Times in 187 Posts
djm0219 is on a distinguished road
Quote:
Originally Posted by Fou-Lu View Post
The problem here is the use of \. \ followed by another character may be a command which is interpreted in double quotations. Escape the slash with a \ or convert them to front slashes.
Better yet put that absolute path in single quotes and use forward slashes since it is a literal value.

PHP Code:
$fp             fopen('C:/Users/Desktop/new_user_data.csv''r'); 
__________________
Dave .... HostMonster for all of your hosting needs
djm0219 is offline   Reply With Quote
Users who have thanked djm0219 for this post:
nani_nisha06 (10-09-2012)