Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7038519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:40:45+00:00 2026-05-28T01:40:45+00:00

I have a problem with fopen() function inside a bigger script so i extracted

  • 0

I have a problem with fopen() function inside a bigger script so i extracted a simple routine that opens a file i use this :

<?php

    $fh = fopen("users.txt","r");

    if ($fh)
    {
        echo "File opened";
    }
    else echo "Unable to open file";

?>

The file exists is in the same path such as the php file but the server displays the following page:

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, webmaster@….com and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

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

Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.

What could be the source of this problem ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:40:45+00:00Added an answer on May 28, 2026 at 1:40 am

    The file permissions are 777 so i don’t think it is a problem

    Ironically, it is.

    File “/home/add_device.php” is writeable by others”

    Set them to 755.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function that reads a formatted file. It looks like this: 1;Name_of_the_author;The
I have problem with fancybox. I want to write a function that will run
I have a problem. file_get_contents and other file functions (like file, fopen, glob etc)
We have a problem on Debian server and PHP version 4.4.4-8+etch6. In this script
Possible Duplicate: QString to char conversion I have a function (fopen in STL) that
I have a function that I'm using to download a file on the server
Sometimes I come across this problem where you have a set of functions that
I have problem in some JavaScript that I am writing where the Switch statement
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a 1.2GB file that contains a one line string. What I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.