php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15842 Fopen function
Submitted: 2002-03-02 23:48 UTC Modified: 2002-03-03 00:33 UTC
From: rybuddy at hotmail dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.2 OS: windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rybuddy at hotmail dot com
New email:
PHP Version: OS:

 

 [2002-03-02 23:48 UTC] rybuddy at hotmail dot com
Hi...
i want to build a php file that opens one of a number of pages randomly...
this is what i've coem up with.
the rand function works...but i don't think the fopen function does.....
i don't know if it has to do with apache or what?
thanks:
<?

$page = rand(0, 6);
if ($page = 0){ fopen ("gary1.htm","r");}
if ($page = 1){ fopen ("gary2.htm","r");}
if ($page = 2){ fopen ("gary3.htm","r");}
if ($page = 3){ fopen ("gary4.htm","r");}
if ($page = 4){ fopen ("gary5.htm","r");}
if ($page = 5){ fopen ("gary6.htm","r");}

?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-03 00:33 UTC] torben@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 04:01:38 2025 UTC