Re: include() suggestion
| From: | Don Read | Date: | Sun, 18 Mar 2001 00:53:46 +0000 |
| Subject: | Re: include() suggestion | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44416@lists.php.net to get a copy of this message | ||
On 18-Mar-01 Steve Wardell wrote:
> Say you have index.php and 20 lines into index.php you include file.inc and
> there's an error on line 30 of file.inc, but I'm pretty sure PHP would say
> there was an error on line 50 of index.php and not like 30 of file.inc. It
> doesn't keep track of included files as separate files that are called but
> rather sort of merges it in memory into one file to run it seems.
>
just tried it,
hitstats.php
------
require('secure.php');
authuser("Statistics");
include('history.php');
include('fpstats.php');
if (isset($lint))
error_reporting(31);
...
fpstats.php
-------
removed a semi-colon.
browser output
-------
<br>
<b>Parse error</b>: parse error in <b>fpstats.php</b> on line
<b>130</b><br>
--
PHP/3.0.18 (maybe a 4.0 thing ?)
Regards,
--
Don Read dread@texas.net
-- If you are going to sin, sin against God, not the bureaucracy.
God will forgive you but the bureaucrats won't.