Bug #15842: Fopen function

From: Date: Sun, 03 Mar 2002 04:48:48 +0000
Subject: Bug #15842: Fopen function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1521@lists.php.net to get a copy of this message
From: rybuddy@hotmail.com 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

« previous php.bugs (#1521) next »