|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2008-06-23 01:14 UTC] omikorn at yahoo dot com
  [2008-06-23 09:05 UTC] derick@php.net
  [2008-06-24 02:46 UTC] omikorn at yahoo dot com
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 05:00:02 2025 UTC | 
Description: ------------ I have a cron script that is run on 2 different machines like this: 1st machine has php 4.3.9 installed. 2nd machine has php 4.4.8 installed. Script is ran from cron on both machines like this: /usr/bin/php /var/www/vhosts/whatever.com/httpdocs/script.php script.php contains the following section: $filename="./mailfile/dailyreport.txt"; $fp=fopen($filename,"r"); if ($fp) { echo "file found"; } else { echo "file not found" } When script is ran from php 4.3.9 box it works fine but from 4.4.8 it returns a file not found error over $fp. Reproduce code: --------------- $filename="./mailfile/dailyreport.txt"; $fp=fopen($filename,"r"); if ($fp) { echo "file found"; } else { echo "file not found" } Expected result: ---------------- Script to behave like in php 4.3.9 Actual result: -------------- $fp returns FALSE and a file not found error