PHP file opening error

zarinel

Ok, so I have looked everywhere for an answer to this question and can not find it. So I have a php file on my godaddy website. The second I add this line of code to it:

$myfile = fopen("fileName.txt", "r") or die("Unable to open file!");

It prints out this error.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

I have looked through the server error log and found nothing. I have changed the error settings to E_ALL and looked through the logs again and found nothing. I am using Windows plesk hosting on godaddy, and I have changed the checked the boxes for file permissions for write/read/and modify. Nothing seems to work. Thank you so much for your time, please help!

Sergio Vilchis

The problem isn't in the server configuration. You must change the configuration on the php.ini file. Look fot the allow_url_fopen setting.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related