rahuul Posted April 16, 2010 Share Posted April 16, 2010 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 More sharing options...
rahuul Posted April 16, 2010 Author Share Posted April 16, 2010 i got it........... root was not having read/write permition Link to comment https://forums.phpfreaks.com/topic/198735-read-file-out-of-htdocs/#findComment-1042974 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.