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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 09:01:30 2024 UTC