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

Everything that doesn't belong to any other forum but this one. If it doesn't belong here then it ... well, it just doesn't.

Moderator: mkoch227

Post Reply
bomeister

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

Post 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??
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

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

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Guest

Help plz

Post by Guest »

Hi,
Does any one know what is wrong here?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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...
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
oliver

.html file

Post 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:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply