Jump to content

read file out of htdocs


rahuul

Recommended Posts

hi friends.....

 

I want to read file that is kept outside the htdocs folder & i want to read that file.

 

on localhost i works file but on server it doesnot read.

 

$cacert = file_get_contents('C:\\xyz\\abc\\test.txt');

 

but on server it is located in root folder so i changed code like this but didn't worked

$cacert = file_get_contents('/xyz/abc/test.txt');

 

pls help...................thanks

Link to comment
https://forums.phpfreaks.com/topic/198735-read-file-out-of-htdocs/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.