A client reported a FATAL error after installing phpexpress.
The fact is that the poorly written scripts should generate a WARNING WITHOUT phpexpress:
Quote: |
Warning: main(../data.php) [function.main]: failed to open stream: No such file or directory in /home/joedemo/domains/mso.hk/public_html/workorder/sys/top.php on line 3
Warning: main(../data.php) [function.main]: failed to open stream: No such file or directory in /home/joedemo/domains/mso.hk/public_html/workorder/sys/top.php on line 3
Warning: main() [function.include]: Failed opening '../data.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/joedemo/domains/mso.hk/public_html/workorder/sys/top.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home/joedemo/domains/mso.hk/public_html/workorder/sys/order/emailcontrol.php:43) in /home/joedemo/domains/mso.hk/public_html/workorder/sys/top.php on line 8
|
but WITH phpexpress, a FATAL error is generated:
Quote: |
Warning: main(../data.php) [function.main]: failed to open stream: No such file or directory in /home/xx/domains/abc.com/public_html/workorder/sys/top.php on line 3
Fatal error: Failed to load cached file (/home/xx/domains/abc.com/public_html/workorder/data.php) function unhtmlspecialchars is already declared in /home/xx/domains/abc.com/public_html/workorder/sys/top.php on line 3 |
Line 3 of /home/xx/domains/abc.com/public_html/workorder/top.php
while the script that is accesses via the browser is /home/xx/domains/abc.com/public_html/workorder/sys/order/test.php
<?
include("../../data.php");
// some other html + php
include("../top.php");
?> |
not sure how the coder wrote these code...but I think showing FATAL error rather than WARNING is abnormal.