PDA

View Full Version : AsianIllusion.com PHP Script Problem



Maxtr0sity
June 19th, 2003, 09:59 AM
Ahmed and I has developed this script for my site. But recently, as more people arrive, a lot is reporting "Internet Explorer - Not Responding" errors. We get that too, but only for about, 5 seconds then goes to the actual page with no problem. But about, 4/10 users has told me that their Internet Explorer just quits on them. Anyone has any ideas on how to fix it?

Heres the basic outline.
1. Goto www.asianillusion.com
2. It goes straight to index.html which forwards the web browser to index.php?sid=1. (If we don't forward it to the ?sid=1 part, it draws a blank page), we use the:


<meta http-equiv="Refresh" content="0; URL=index.php?sid=1">

Script in
<head> section.

The browser freezes up when reaching the index.php?sid=1 page for that breif period. If anyone would like to see the script, I can post it up.

Voetsjoeba
June 19th, 2003, 10:15 AM
Hi Max :)

Can you post the entire script ?

Jubba
June 19th, 2003, 10:18 AM
increase the time to 1 or 2. I doubt it, but it just might be too much information for the browser to handle so quickly.

I haven't had a problem, and I tried about 10 times on 3 different browsers...

if it still does it, try redirecting with java-script:



<script language="java-script">
<!--

location.replace("http://www.yahoo.com");

-->
</script>

Jubba
June 19th, 2003, 10:19 AM
just take out the "-" from the word javascript...

Maxtr0sity
June 19th, 2003, 10:20 AM
Alrit, it might take a few posts:



<?php
include 'names.inc';
$section = $id[$_GET['sid']];
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Asian Illusion</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body bgcolor="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p>&nbsp;</p>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="832" height="481">
<tr>
<td width="8" height="1"><img src="spacer.gif" width="5" height="1" border="0" alt=""></td>
<td width="21" height="1"><img src="spacer.gif" width="21" height="1" border="0" alt=""></td>
<td width="81" height="1"><img src="spacer.gif" width="81" height="1" border="0" alt=""></td>
<td width="12" height="1"><img src="spacer.gif" width="12" height="1" border="0" alt=""></td>
<td width="39" height="1"><img src="spacer.gif" width="39" height="1" border="0" alt=""></td>
<td width="507" height="1"><img src="spacer.gif" width="507" height="1" border="0" alt=""></td>
<td width="38" height="1"><img src="spacer.gif" width="38" height="1" border="0" alt=""></td>
<td width="9" height="1"><img src="spacer.gif" width="9" height="1" border="0" alt=""></td>
<td width="87" height="1"><img src="spacer.gif" width="87" height="1" border="0" alt=""></td>
<td width="9" height="1"><img src="spacer.gif" width="9" height="1" border="0" alt=""></td>
<td width="9" height="1"><img src="spacer.gif" width="9" height="1" border="0" alt=""></td>
<td width="8" height="1"><img src="spacer.gif" width="6" height="1" border="0" alt=""></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="12" width="828" height="6"><img name="index_r1_c1" src="index_r1_c1.gif" width="823" height="6" border="0" alt=""></td>
<td width="4" height="6"><img src="spacer.gif" width="1" height="6" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="34" width="8" height="474"><img name="index_r2_c1" src="index_r2_c1.gif" width="5" height="490" border="0" alt=""></td>
<td colspan="10" width="812" height="89"><img name="index_r2_c2" src="index_r2_c2.gif" width="812" height="89" border="0" alt=""></td>
<td rowspan="34" width="8" height="474"><img name="index_r2_c12" src="index_r2_c12.gif" width="6" height="490" border="0" alt=""></td>
<td width="4" height="89"><img src="spacer.gif" width="1" height="89" border="0" alt=""></td>
</tr>
<tr>
<td colspan="10" width="812" height="11"><img name="index_r3_c2" src="index_r3_c2.gif" width="812" height="11" border="0" alt=""></td>
<td width="4" height="11"><img src="spacer.gif" width="1" height="11" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="32" width="21" height="374"><img name="index_r4_c2" src="index_r4_c2.gif" width="21" height="390" border="0" alt=""></td>
<td width="81" bgcolor="#A5C3D6" height="16"><b>
<center><font face="Verdana" size="1" color="#003366">Navigation</font></b></center></td>
<td rowspan="2" colspan="2" width="51" height="28"><img name="index_r4_c4" src="index_r4_c4.gif" width="51" height="28" border="0" alt=""></td>
<td width="507" bgcolor="#A5C3D6" height="16"><b>
<font face="Verdana" size="1" color="#003366">Asian Illusion » <?php echo $section; ?></font></b></td>
<td rowspan="2" colspan="2" width="47" height="28"><img name="index_r4_c7" src="index_r4_c7.gif" width="47" height="28" border="0" alt=""></td>
<td width="87" bgcolor="#A5C3D6" height="16"><b>
<center><font face="Verdana" size="1" color="#003366">Hot Stuff</font></b></center></td>
<td rowspan="2" colspan="2" width="18" height="28"><img name="index_r4_c10" src="index_r4_c10.gif" width="18" height="28" border="0" alt=""></td>
<td width="4" height="16"><img src="spacer.gif" width="1" height="16" border="0" alt=""></td>
</tr>
<tr>
<td width="81" height="12"><img name="index_r5_c3" src="index_r5_c3.gif" width="81" height="12" border="0" alt=""></td>
<td width="507" height="12"><img name="index_r5_c6" src="index_r5_c6.gif" width="507" height="12" border="0" alt=""></td>
<td width="87" height="12"><img name="index_r5_c9" src="index_r5_c9.gif" width="87" height="12" border="0" alt=""></td>
<td width="4" height="12"><img src="spacer.gif" width="1" height="12" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=1" style="text-decoration: none">
<font color="#336699"><?php echo $id[1]; ?></font></a></font></b></td>
<td rowspan="30" width="39" height="346"><img name="index_r6_c5" src="index_r6_c5.gif" width="39" height="362" border="0" alt=""></td>
<td rowspan="29" bgcolor="#FFFFFF" width="507" height="320">
<iframe src="<?php echo "http://www.asianillusion.com/", $section; ?>.php" width="100%" marginwidth="0" height = "100%" marginheight="0" scrolling="auto" frameborder="0"></iframe><td rowspan="30" width="38" height="346"><img name="index_r6_c7" src="index_r6_c7.gif" width="38" height="362" border="0" alt=""></td>
<td rowspan="17" colspan="3" bgcolor="#FFFFFF" width="105" height="132">
<p align="center">
<embed width="103" height="123" src="HotStuff.swf">
<td rowspan="30" width="9" height="346"><img name="index_r6_c11" src="index_r6_c11.gif" width="9" height="362" border="0" alt=""></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r7_c3" src="index_r7_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=2" style="text-decoration: none">
<font color="#336699"><?php echo $id[2]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r9_c3" src="index_r9_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=3" style="text-decoration: none">
<font color="#336699"><?php echo $id[3]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r11_c3" src="index_r11_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=4" style="text-decoration: none">
<font color="#336699"><?php echo $id[4]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
//To be continued

Maxtr0sity
June 19th, 2003, 10:21 AM
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r13_c3" src="index_r13_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=5" style="text-decoration: none">
<font color="#336699"><?php echo $id[5]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r15_c3" src="index_r15_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=6" style="text-decoration: none">
<font color="#336699"><?php echo $id[6]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r17_c3" src="index_r17_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=7" style="text-decoration: none">
<font color="#336699"><?php echo $id[7]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r19_c3" src="index_r19_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="forum" style="text-decoration: none" target="_parent">
<font color="#336699"><?php echo $id[8]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r21_c3" src="index_r21_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=9" style="text-decoration: none">
<font color="#336699"><?php echo $id[9]; ?></font></a></font></b></td>
<td width="4" height="12"><img src="spacer.gif" width="1" height="12" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="5" colspan="3" width="105" height="28"><img name="index_r23_c8" src="index_r23_c8.gif" width="105" height="28" border="0" alt=""></td>
<td width="4" height="2"><img src="spacer.gif" width="1" height="2" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r24_c3" src="index_r24_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=10" style="text-decoration: none">
<font color="#336699"><?php echo $id[10]; ?></font></a></font></b></td>
<td width="4" height="14"><img src="spacer.gif" width="1" height="14" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r26_c3" src="index_r26_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" colspan="2" bgcolor="#FFFFFF" width="93" height="14"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=11" style="text-decoration: none">
<font color="#336699"><?php echo $id[11]; ?></font></a></font></b></td>
<td width="4" height="10"><img src="spacer.gif" width="1" height="10" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="5" width="9" height="12"><img name="index_r28_c8" src="index_r28_c8.gif" width="9" height="28" border="0" alt=""></td>
<td rowspan="3" width="87" bgcolor="#A5C3D6" height="16"><b>
<center><font face="Verdana" size="1" color="#003366">Affiliates</font></b></center></td>
<td rowspan="5" width="9" height="12"><img name="index_r28_c10" src="index_r28_c10.gif" width="9" height="28" border="0" alt=""></td>
<td width="4" height="4"><img src="spacer.gif" width="1" height="4" border="0" alt=""></td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFFFF" width="93" height="1">
<font color="#336699"><img name="index_r29_c3" src="index_r29_c3.gif" width="93" height="1" border="0" alt=""></font></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" colspan="2" bgcolor="#FFFFFF" width="93" height="1"><b>
<font size="1" face="Verdana" color="#336699">
<a href="index.php?sid=12" style="text-decoration: none">
<font color="#336699"><?php echo $id[12]; ?></font></a></font></b></td>
<td width="4" height="11"><img src="spacer.gif" width="1" height="11" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" width="87" height="1"><img name="index_r31_c9" src="index_r31_c9.gif" width="87" height="12" border="0" alt=""></td>
<td width="4" height="1"><img src="spacer.gif" width="1" height="3" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="4" colspan="2" width="93" height="183"><img name="index_r32_c3" src="index_r32_c3.gif" width="93" height="183" border="0" alt=""></td>
<td width="4" height="9"><img src="spacer.gif" width="1" height="9" border="0" alt=""></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF" dir="ltr" width="105" height="132">
<p align="center">
<embed width="103" height="123" src="Affiliates.swf">
<td width="4" height="132"><img src="spacer.gif" width="1" height="132" border="0" alt=""></td>
</tr>
<tr>
<td rowspan="2" colspan="3" width="105" height="42"><img name="index_r34_c8" src="index_r34_c8.gif" width="105" height="42" border="0" alt=""></td>
<td width="4" height="16"><img src="spacer.gif" width="1" height="16" border="0" alt=""></td>
</tr>
<tr>
<td width="507" height="26"><img name="index_r35_c6" src="index_r35_c6.gif" width="507" height="26" border="0" alt=""></td>
<td width="4" height="26"><img src="spacer.gif" width="1" height="26" border="0" alt=""></td>
</tr>
</table>
</center>
</body>
</html>

Jubba
June 19th, 2003, 10:25 AM
it might just be a browser/client issue. I doubt the problem is server-side related. Try the java-script redirect and see if it fixes things... because I had no problem viewing the site.

Maxtr0sity
June 19th, 2003, 10:26 AM
Ok, I just uploaded the new index.html file with the following code:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Asian Illusion</title>
</head>

<body>
<script language="javascript">
<!--
location.replace("http://www.asianillusion.com/index.php?sid=1");
-->
</script>

<font face="Verdana" size=1><font color="#414141">
<center><span style="background-color: #EFEFEF">This page has moved. If you aren't taken
to the new page automatically, please wait...</span></font>
<span style="background-color: #EFEFEF"></center>
</body>
</html>

Maxtr0sity
June 19th, 2003, 10:27 AM
Nope, Internet Explorer still stops functioning for some reason.

:(

This is really giving me a headache.

Voetsjoeba
June 19th, 2003, 10:28 AM
Jup, works too ... I'd keep using the jscript, for some reason it makes me consider it better.

? not for me ...

Maxtr0sity
June 19th, 2003, 10:29 AM
Ok, I'll stick with the JS script, I does actually cut down the time by a bit. Thanks, so now the problem lies on the actual php scripting possibily?

Voetsjoeba
June 19th, 2003, 10:31 AM
I think the problem is people's browser. I've had troubles with IE 6.0 before too (see my Browser Frustration posts :P) which froze entirely, but when I removed some ad-ware, worked fine again ... Maybe you could try that.

Maxtr0sity
June 19th, 2003, 10:35 AM
I keep my computer in tip-top shape. Defragments and Spyware scans almost 3 times a week. I'm sure it doesn't have any problems. But I'm not the only one having this problem, almost everyone that goes on the site notices it.

Jubba
June 19th, 2003, 10:35 AM
i actually think its the browser. I doubt the problem lies in the PHP because the PHP is parsed at the server, so you would experience the same problem even if you were using different browsers.

its a client-side issue... not php/server-side

Maxtr0sity
June 19th, 2003, 10:38 AM
:(

Now theres something I have no idea how to solve.

:'(

ahmed
June 19th, 2003, 11:20 AM
no no no, the problem is with the index.php file, not the redierct script.. try going to www.asianillusion.com/index.php?sid=1 and you'll still get the error :-\

Maxtr0sity
June 19th, 2003, 11:22 AM
So are you saying it's the PHP problem or Server since we got the redirection problem resolved.

Jubba
June 19th, 2003, 11:31 AM
the problem is with that file, but I don't think its the server-side script that is the problem because if it was then you would get the same error across every browser, every platform.

ahmed
June 19th, 2003, 11:37 AM
yeah.. its not the php script that's causing it.. oh.. another thing, when i run exactly the same files on my server, nothing at all like this happens.. :-\

Maxtr0sity
June 19th, 2003, 12:26 PM
O boy, so we've ruled out just about all the possibilities. What other problem can be causing this?

ahmed
June 19th, 2003, 12:33 PM
we'll just redesign/script it.. no php this time though, we'll use only iframes

Maxtr0sity
June 19th, 2003, 12:39 PM
O god, but isn't that hard work taking endless hours?

Voetsjoeba
June 19th, 2003, 12:52 PM
What's most important to you, user friendliness or laziness ? :P

Maxtr0sity
June 19th, 2003, 12:54 PM
I'm going to try to learn how to iframe the site, or something like what ahmed told me. I want to learn how to do it so he doesn't have to.

Delsaber
June 21st, 2003, 11:03 PM
I cannot get your site to load at all. I get the IE Cannot find server page... Bah..

Maxtr0sity
June 21st, 2003, 11:20 PM
Sorry, the server is down for now. It'll be up on Monday. Thanks for trying though.

eppenoire
June 22nd, 2003, 05:20 PM
I'm sorry, but I don't understand why you are redirecting at all. Why not just set your index defualt to index.php, then write a case that check to see if your querystring contains anything, if it doesn't, set it to id=1 or whatever.

I havn't been able to see your page, because your server is down. But I can honestly say that with what you have shown, IE cannot be the problem.

--Matt

Maxtr0sity
June 22nd, 2003, 07:55 PM
If I don't have an index.html file, it should automatically goto index.php. But when index.php is loaded without the ?sid=1 part, the content area draws a 404.