Why is so friggin hard to open files in php?
Posted: Mon Jan 27, 2014 5:18 am
I have this code:
$FileName = DIRECTORY_SEPARATOR."public_html".DIRECTORY_SEPARATOR."BushlandRecovery".DIRECTORY_SEPARATOR."JobsList.txt";
$JobsListFile = fopen($FileName,"r");
if ($JobsListFile)
{
No matter what I do with the file name or the directory structure I cannot open the f'ing file. Not in r mode or w mode.
I cannot detect any files with file_exits(...)
There are no specific settings in CPanel that lets me give php read permission etc.
So how do you open a bloody file in php?????
I fail to understand why it needs to be so difficult.
$FileName = DIRECTORY_SEPARATOR."public_html".DIRECTORY_SEPARATOR."BushlandRecovery".DIRECTORY_SEPARATOR."JobsList.txt";
$JobsListFile = fopen($FileName,"r");
if ($JobsListFile)
{
No matter what I do with the file name or the directory structure I cannot open the f'ing file. Not in r mode or w mode.
I cannot detect any files with file_exits(...)
There are no specific settings in CPanel that lets me give php read permission etc.
So how do you open a bloody file in php?????
I fail to understand why it needs to be so difficult.