Cannot open a local file using fopen()

bijju

New Member
HI. i am trying to open a local file from xml created by xlink i have parsed the file path in $resourceRef variable and it looks like that \[code\]file:/./birds/birds.txt\[/code\] without the quotes. Please someone tell me why i cant open it. here is my code \[code\]$fh = fopen($resourceRef, 'r');$theData = http://stackoverflow.com/questions/3550187/fread($fh, filesize($resourceRef));fclose($fh);echo $theData;\[/code\]i get this error \[quote\] Warning: fopen(file:/./birds/feathers.txt) [function.fopen]: failed to open stream: Invalid argument in C:\xampp\htdocs\test.php on line 31\[/quote\]Please someone guide me.
 
Back
Top