From: [EMAIL PROTECTED]
Operating system: windows XP
PHP version: 4.1.2
PHP Bug Type: Apache related
Bug description: Fopen function
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");}
?>
--
Edit bug report at http://bugs.php.net/?id=15842&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15842&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15842&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15842&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15842&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15842&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15842&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15842&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15842&r=submittedtwice