Page 1 of 1

Errors on public_html/main.php line 404 -- need HELP!!!

Posted: Sun Aug 21, 2005 2:49 pm
by bomeister
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:


I am getting the following message on my website after the host re-did the php.ini file to prevent frequent hacker attacks:

Warning: main(.html): failed to open stream: No such file or directory in /home/rebolj/public_html/main.php on line 404

Warning: main(): Failed opening '.html' for inclusion (include_path='.:/usr/lib/php') in /home/rebolj/public_html/main.php on line 404

NOW we can only see the website "shell" online but none of the php links in the menu. I know this is missing only a line or 2 of code, but I am too much a novice to know what that code is. And the host is not very helpful or responsive in a timely way. Been waiting since 11PM last night to get an answer and still nothing.

Any suggestions??

Posted: Sun Aug 21, 2005 8:36 pm
by Klemen
Hi,

Change .html in main() to the file you want included there?

Regards

Help plz

Posted: Sat Oct 01, 2005 10:40 am
by Guest
Hi,
Does any one know what is wrong here?

Posted: Sat Oct 01, 2005 12:44 pm
by Klemen
The error tells you exactly what's wrong: No such file or directory

Your script is trying to open a file called ".html" which of course doesn't exist...

.html file

Posted: Wed Dec 14, 2005 3:37 pm
by oliver
:evil:

I would be well hacked off if anyone touched my scripts and wasted them(apart from myself of course).

The question I would have to ask is ...

a) What is your host doing playing about with complex scripts.

b) Why isn't it being tested on a TEST site.
You never alter your main site pages until you have tested it at ...

mydomain.com/test/ my site pages.php (or html)

or test.mydomain/my site pages.php (or html)

Regards,

Oliverread@aol.com

:oops:

Posted: Wed Dec 14, 2005 6:07 pm
by Klemen
Their host redid the php.ini file. This is PHP configuration file and not a part of any PHP scripts. And I don't believe it had anything to do with the problem this person had.