Forum Moderators: phranque
The application is on about 20 pages of PHP
The system hangs up roughly (but irregularly) every 15 page calls. It says either 'Searching for website' or Website found...loading' and eventually times out. The timeout period has not been altered by changing timeout parameters in PHP.ini.
Searching suggests that perhaps the server is using an external port (80?) when it would be better using an internal connection. Problem is I do not know how to do that, or if that is the cause.
Any advice would be much appreciated
<HTML>
<HEAD>
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!---
function show(objectId)
{
objectId.style.visibility = 'visible';
}
function clearsel(objId) {
objId.style.visibility = 'hidden';
}
-->
</SCRIPT>
</HEAD>
<BODY onLoad=Javascript:document.stocktable.elements[10].focus()>
<H2>Enter stock obtained on current batch number (06n005) and/or correct drug details price etc</H2>
<FORM NAME='stocktable' ACTION='edstock5.php' METHOD='post'>
<TABLE COLS=2>
<TR><TD>Drugname</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='drugname' VALUE='Ampicare caps 250mg'></TD></TR>
<TR><TD>Drugtype</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='drugtype' VALUE='t'></TD></TR>
<TR><TD>Buyingunit</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='buyingunit' VALUE='500'></TD></TR>
<TR><TD>Sellingunit</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='sellingunit' VALUE='1'></TD></TR>
<TR><TD>Buyingprice</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='buyingprice' VALUE='4240'></TD></TR>
<TR><TD>Markup</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='markup' VALUE='50'></TD></TR>
<TR><TD>Sellingprice</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='sellingprice' VALUE='13'></TD></TR><TR>
<TD>Minstock</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='minstock' VALUE='0'></TD></TR>
<TR><TD>Instock</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='instock' VALUE='9.514'></TD></TR>
<TR><TD>Ordercode</TD><TD><INPUT TYPE='text' STYLE='width:250' NAME='ordercode' VALUE='/r/n'></TD></TR>
<TR><TD>Buying units added to stock</TD><TD><INPUT TYPE='text' NAME='stadded'></TD></TR>
</TABLE>
<INPUT TYPE='hidden' VALUE='20' NAME='drugref'>
<INPUT TYPE='hidden' VALUE='1784' NAME='batchref'>Batch 06n005 in stock= 26.85<BR>
<INPUT TYPE='submit' VALUE='Click'/>
</FORM>
</BODY>
</HTML>