Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script only working 1/4th of the time

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
Hello,

Once again, I am writing a webmail script, and I can successfully access it every now and then. On the other attempts I get a "Page not found" error. If I refresh the page about 12 times it will finally go but without submitting the variables Iwanted. What is causing this script to only work some of the time?

-Ron
 
Internet Explorer

Do you think it is the placement of the php code inside the document that could be causing it? Or could it be server side?

-Ron
 
Ok, I figrred some of this out,

The line that connects to the pop server is causing the page not to be displayed

$server = imap_open("{localhost:110/pop3/notls}INBOX",$account,$password, OP_HALFOPEN);

anything wrong that I am doing?
However, when this works, it works like a charm.
 
A page with no content and a "Page not found" error are two different things.

A lot of things can be cause a "Page not found" error, particularly with IE, which is not very good about giving reasons for its errors. Things like DNS timeouts and network errors can cause the error you're reporting.

If you are having an error in that script line, you should get an error. Or a blank page. But not "page not found".

Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top