php_warn
am 11.02.2010 14:49:04 von madunix
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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: php_warn
am 11.02.2010 15:09:16 von Kamil Walas
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
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: php_warn
am 11.02.2010 16:18:40 von Daniel Brown
On Thu, Feb 11, 2010 at 08:49, madunix 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=3D'.:/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 =3D> Local Value =3D> Master Value
> allow_call_time_pass_reference =3D> Off =3D> Off
> disable_classes =3D> no value =3D> no value
> disable_functions =3D> exec, shell_exec, system, passthru,popen,
> virtual, show_source, =A0pclose ,ftp_connect,mysql_list_tables,
> display_errors =3D> Off =3D> Off
> display_startup_errors =3D> Off =3D> Off
> doc_root =3D> no value =3D> no value
> docref_ext =3D> no value =3D> no value
> docref_root =3D> no value =3D> no value
> enable_dl =3D> On =3D> On
> error_append_string =3D> no value =3D> no value
> error_log =3D> no value =3D> no value
> error_prepend_string =3D> no value =3D> no value
> error_reporting =3D> no value =3D> no value
> expose_php =3D> On =3D> On
> extension_dir =3D> ./ =3D> ./
> file_uploads =3D> On =3D> On
> gpc_order =3D> GPC =3D> GPC
> html_errors =3D> Off =3D> On
> include_path =3D> .:/usr/local/lib/php =3D> .:/usr/local/lib/php
> log_errors =3D> On =3D> On
> log_errors_max_len =3D> 1024 =3D> 1024
> magic_quotes_gpc =3D> On =3D> On
> magic_quotes_runtime =3D> Off =3D> Off
> magic_quotes_sybase =3D> Off =3D> Off
> max_execution_time =3D> 0 =3D> 240
> implicit_flush =3D> On =3D> Off
> include_path =3D> .:/usr/local/lib/php =3D> .:/usr/local/lib/php
> log_errors =3D> On =3D> 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?
--=20
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Looking for hosting or dedicated servers? Ask me how we can fit your budge=
t!
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: php_warn
am 16.02.2010 20:58:54 von madunix
solved by setting error reporting to 0 in â=9Cconfiguration.phpâ=
=9D file
$mosConfig_error_reporting =3D '0;
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: php_warn
am 16.02.2010 22:50:41 von dmagick
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/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php