note 62488 added to function.require

From: Date: Wed, 01 Mar 2006 19:06:04 +0000
Subject: note 62488 added to function.require
Groups: php.notes 
Request: Send a blank email to php-notes+get-104648@lists.php.net to get a copy of this message
This may seem so trivial, but it took me a good half-hour to figure this out, as I wasn't getting any errors (even with E_ALL). I had just installed PEAR::Mail and created the following file: <?php // mail.php -- send sample mail require 'Mail.php'; $mail = Mail::factory(...); // rest of code here ?> So, I wasn't getting any errors, the mail was not being received, I had no clue what was going on. And then, 'duh'. I had named my script 'mail.php', and was requiring 'Mail.php'. Being on a case-insensitive file system (windows), php was either recurively requiring mail.php or blocking the require due to the fact that it was running. No errors at all, not even a warning or notice. Be warned :) ---- Server IP: 216.235.15.211 Probable Submitter: 68.148.210.62 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.require.php Edit -- http://master.php.net/note/edit/62488 Del: integrated -- http://master.php.net/note/delete/62488/integrated Del: useless -- http://master.php.net/note/delete/62488/useless Del: bad code -- http://master.php.net/note/delete/62488/bad+code Del: spam -- http://master.php.net/note/delete/62488/spam Del: non-english -- http://master.php.net/note/delete/62488/non-english Del: in docs -- http://master.php.net/note/delete/62488/in+docs Del: other reasons-- http://master.php.net/note/delete/62488 Reject -- http://master.php.net/note/reject/62488 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104648) next »