Problems with PHP?

Status
Not open for further replies.

Sup3rkirby

New Member
Messages
181
Reaction score
0
Points
0
cPanel: Sup3rkir
Website: http://sup3rkirby.x10hosting.com/
Problem: http://sup3rkirby.x10hosting.com/chat


This has been bothering me for quite some time(really since I got my account).

I currently have the intermediate PHP package(and was told this is all I needed). But I am having horrible problems as essentially, nothing is working quite like it should. Well, I shouldn't say nothing. Mainly, it is this chat system that is not working.

All the PHP used in my site is run through AJAX. And so no PHP pages are loaded in the browser, just run server-side, while AJAX waits for a response.

With my chat system however, it seems I'm not getting any responses. And before someone criticises me for code errors, I assure everyone this is not the case. I have been using my chat system for quite some time with no problems other than simple issues of auto log out(meaning I can't detect users leaving and delete their user file automatically). I used to run this script on Zeeblo's web servers before they were completely gone. Never had an issue.

I hate to say it has to do with these PHP packages, but honestly, when you take a working script and move it to a new server, and it does not work properly, don't you think there might be something on this new server that is causing the errors?


I don't know why of course my scripts would not work with the intermediate package though? I don't think I'm using much more than file operations and basic variable methods. It really just seems like when PHP is working, it is working very very slowly. I don't know if this is just the servers being very busy or what, but I have never really had anything that uses PHP run quickly...


I also must mention this. My 'Log In' button first runs some javascript to check for admin/mods logging in. then it submits some stuff to a PHP script and waits for the response. But for some reason an advertisement(pop up) comes up.... This is NO WHERE in my code so I can't figure out why or how this is happening...


I can paste up my code for you to view if there is any discresion about this being my fault.
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
I found this in your error log after I tried to login. That's where the problem is.

[Mon Aug 04 12:24:18 2008] [error] [client **.**.**.**] File does not exist: /home/sup3rkir/public_html/chat/chat, referer: http://sup3rkirby.x10hosting.com/chat/
 
Last edited:

Sup3rkirby

New Member
Messages
181
Reaction score
0
Points
0
PHP error? Did you delete the error log because I am unable to find any. PHP will make an error_log file when it encounters an error...

And this doesn't explain the speed. In fact, half the time I can't even load my site. And I've checked it with various ping/uptime moniters and I usually get no response. So just loading an HTML page is also a problem. And very often.

Any ideas?

[EDIT]
Yes, right now I can't even load the cpanel page, and of course can't load a single page of my site. The only thing that will give me any insight right now is my ftp client, which takes a minute to connect, but looking through all the files there, i don't see any error log files.


[Update]
Well, the DNS for my site seems to be down(a lot then i guess). I used the IP address to load my site and get to cPanel. I see you were talking about the cPanel error log file. I thought you were referring to the error_log.txt files that are created with PHP errors. Yes, that was an error, in my javascript, as a band link. So my PHP is fine.

And so then in that case, and idea why things are so slow? I will credit the 'down time' to the failing DNS. The account management page shows me that is it offline, and apparently is frequently offline, thus I can only access my site using its IP address. But I don't know how to get to my index page using this. I am just taken to the Apache page, and can also get to my cPanel login from there.


ehhh... i keep editing but, also, what about the pop-up ad? why is it there? I am using the ad-free hosting, and I have 0 lines of code for pop-ups in general, not to mention no advertisement added to my site(well there is an x10hosting link at the bottom of my regular pages, but nothing on the chat page, which is where this pop-up is)....
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Regarding the login problem, get rid of the chat/ in all the xmlHttp.open lines in the file scripts.js.

It does not matter if DNS is down as it's managed by a different server.

The IP address is shared between all users of the server.
 

Sup3rkirby

New Member
Messages
181
Reaction score
0
Points
0
I'm finding this odd, since I used that relative linking method with my highscores script(same site, same server), and that works fine("javascripts/hslist.php" rather than "chat/login.php" which is used here). Not sure what the difference is... Seems to work now.

But however things are working for the time being. So thank you for that much.

I still am not happy about this DNS server that was down earlier today for at least 4 hours(stoped checking after that). It essentially makes my site impossible to get to without that DNS server being up. Who deals with that? Who should I contact?

And the pop-up ad.... Don't know how I was getting one still. It was just your run of the mill random pop up advertisement, random things/services you don't need and don't care to hear about, much less from a pop up... Oh well, since the login succeeds I don't seem to have that problem anymore either. I'll have to hope it doesn't happen again...


[EDIT]
Should I close the thread, or shall I let you mods do that?
 
Last edited:
Status
Not open for further replies.
Top