php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27695 Pb : Call to undefined function: fopen()
Submitted: 2004-03-25 10:09 UTC Modified: 2004-03-25 10:32 UTC
From: grialet at dsi dot cnrs dot fr Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.3.4 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: grialet at dsi dot cnrs dot fr
New email:
PHP Version: OS:

 

 [2004-03-25 10:09 UTC] grialet at dsi dot cnrs dot fr
Description:
------------
Hello,

I've just downloaded the last EasyPHP version (1.7) on the dedicated site.
I have made no change in the install files, but i have a serious pb.
I wrote a simple php file that reads a text file (under the "www" php directory) and displays its content.

When i make :
"if (file_exists ("toto.txt"))"
it returns true, but then when i make : 
"$f = fopen("toto.txt", "r")" 
i get the following fatal error :

Call to undefined function: fopen()

Looks like a big bug... pretty ennoying...
Could someone resolve it quickly ?

St?phane

Reproduce code:
---------------
$nomFicConf = "config.txt";

if (file_exists($nomFicConf)) 
{
	$ficConf?=?fopen($nomFicConf,"r");
	
	while (!feof($ficConf)) 
	{
		$ligneFic = fgets($ficConf,?4096);

                .....

Expected result:
----------------
the display of the content of the file.

Actual result:
--------------
Fatal error: Call to undefined function:  fopen() in c:\program files\easyphp1-7\www\impression.php on line 35


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-25 10:32 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Use the binaries distributed by PHP, no unofficial release 
by a 3rd party. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 08:01:32 2024 UTC