From: madunix on 11 Feb 2010 08:49 some of my web pages having the following issue when i call them Warning:main(main_page.html.php): failed to open stream: No such file or directory in /www/htdocs/web/public/public.php on line 50 Warning:main(): Failed opening 'main_page.html.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/htdocs/web/public/public.php on line50 PHP Core shows the following Directive => Local Value => Master Value allow_call_time_pass_reference => Off => Off disable_classes => no value => no value disable_functions => exec, shell_exec, system, passthru,popen, virtual, show_source, pclose ,ftp_connect,mysql_list_tables, display_errors => Off => Off display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => On => On error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => no value => no value expose_php => On => On extension_dir => ./ => ./ file_uploads => On => On gpc_order => GPC => GPC html_errors => Off => On include_path => .:/usr/local/lib/php => .:/usr/local/lib/php log_errors => On => On log_errors_max_len => 1024 => 1024 magic_quotes_gpc => On => On magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off max_execution_time => 0 => 240 implicit_flush => On => Off include_path => .:/usr/local/lib/php => .:/usr/local/lib/php log_errors => On => On any help how to resolve this issue. Thanks
From: Kamil Walas on 11 Feb 2010 09:09 include_once()? Link: http://www.php.net/manual/en/function.include-once.php W dniu 2010-02-11 14:49, madunix pisze: > some of my web pages having the following issue when i call them > Warning:main(main_page.html.php): failed to open stream: No such file > or directory in /www/htdocs/web/public/public.php on line 50 > Warning:main(): Failed opening 'main_page.html.php' for inclusion > (include_path='.:/usr/local/lib/php') in > /www/htdocs/web/public/public.php on line50 > > > > PHP Core shows the following > > Directive => Local Value => Master Value > allow_call_time_pass_reference => Off => Off > disable_classes => no value => no value > disable_functions => exec, shell_exec, system, passthru,popen, > virtual, show_source, pclose ,ftp_connect,mysql_list_tables, > display_errors => Off => Off > display_startup_errors => Off => Off > doc_root => no value => no value > docref_ext => no value => no value > docref_root => no value => no value > enable_dl => On => On > error_append_string => no value => no value > error_log => no value => no value > error_prepend_string => no value => no value > error_reporting => no value => no value > expose_php => On => On > extension_dir => ./ => ./ > file_uploads => On => On > gpc_order => GPC => GPC > html_errors => Off => On > include_path => .:/usr/local/lib/php => .:/usr/local/lib/php > log_errors => On => On > log_errors_max_len => 1024 => 1024 > magic_quotes_gpc => On => On > magic_quotes_runtime => Off => Off > magic_quotes_sybase => Off => Off > max_execution_time => 0 => 240 > implicit_flush => On => Off > include_path => .:/usr/local/lib/php => .:/usr/local/lib/php > log_errors => On => On > > any help how to resolve this issue. > Thanks > >
From: Daniel Brown on 11 Feb 2010 10:18 On Thu, Feb 11, 2010 at 08:49, madunix <madunix(a)gmail.com> wrote: > some of my web pages having the following issue when i call them > Warning:main(main_page.html.php): failed to open stream: No such file > or directory in /www/htdocs/web/public/public.php on line 50 > Warning:main(): Failed opening 'main_page.html.php' for inclusion > (include_path='.:/usr/local/lib/php') in > /www/htdocs/web/public/public.php on line50 The following is useless for debugging this issue: > PHP Core shows the following > > Directive => Local Value => Master Value > allow_call_time_pass_reference => Off => Off > disable_classes => no value => no value > disable_functions => exec, shell_exec, system, passthru,popen, > virtual, show_source, pclose ,ftp_connect,mysql_list_tables, > display_errors => Off => Off > display_startup_errors => Off => Off > doc_root => no value => no value > docref_ext => no value => no value > docref_root => no value => no value > enable_dl => On => On > error_append_string => no value => no value > error_log => no value => no value > error_prepend_string => no value => no value > error_reporting => no value => no value > expose_php => On => On > extension_dir => ./ => ./ > file_uploads => On => On > gpc_order => GPC => GPC > html_errors => Off => On > include_path => .:/usr/local/lib/php => .:/usr/local/lib/php > log_errors => On => On > log_errors_max_len => 1024 => 1024 > magic_quotes_gpc => On => On > magic_quotes_runtime => Off => Off > magic_quotes_sybase => Off => Off > max_execution_time => 0 => 240 > implicit_flush => On => Off > include_path => .:/usr/local/lib/php => .:/usr/local/lib/php > log_errors => On => On Because it's not an issue with the core. What is your code on the lines mentioned in the error message? Did you use one of the following? * include * include_once * requre * require_once Lastly, is the file main_page.html.php actually even in the same directory as public.php? Is it named with the dual-extension ..html.php? -- </Daniel P. Brown> daniel.brown(a)parasane.net || danbrown(a)php.net http://www.parasane.net/ || http://www.pilotpig.net/ Looking for hosting or dedicated servers? Ask me how we can fit your budget!
From: madunix on 16 Feb 2010 14:58 solved by setting error reporting to 0 in âconfiguration.phpâ file $mosConfig_error_reporting = '0;
From: Chris on 16 Feb 2010 16:50 madunix wrote: > solved by setting error reporting to 0 in “configuration.php” file > > $mosConfig_error_reporting = '0; That hides the problem, it doesn't solve it. -- Postgresql & php tutorials http://www.designmagick.com/
|
Pages: 1 Prev: Is this Code Correct?? Next: PHP Objects and SQL Results |