ratubaworld Posted March 15, 2007 Share Posted March 15, 2007 Hi guys. I am in a serious predicament right now. I just released a new flash game on the internet, and my website is getting rediculous hits. However, I can't upload my OWN game to my site portal, because the file is 14MB, and I can't figure out how to tweak my php.ini file to allow this big upload!! If anoyone could help i would be forever greatful. so far I have changed: max_upload_filesize: 20MB max_execution_time: 100000 seconds max_input_time: 100000 seconds post_max_size: 20MB memory_limit: 35MB *(and I always remember to restart VPS, so that's not the problem) still, I can't upload the damn file!! here is the link to my php.ini file: http://ratubaworld.com/php_info.php here is the link to the submission page: http://ratubaworld.com/game.new (you are required to log in and then goto> submit. Please use this account to test: user name: sample /// password: sample) what do I need to tweak to get this file to upload. PLEASE HELP!!!! :'( -Grant p.s. I have uploaded files ~6MB before and It worked fine, so I know that the php upload works to a certain extent Quote Link to comment Share on other sites More sharing options...
benjaminbeazy Posted March 15, 2007 Share Posted March 15, 2007 what happens when you try to upload it? Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 Ok, I click upload, and the page starts thinking. The prograess bar will move all the way to the right, until it is full, but then it will just pause there. After waiting about 1-2 more minutes, the page reloads to just the blank 'Submit" page, with all of the fields left empty. So obviosuly it isn't getting throught he final stages of submission. perhaps it is taking too long and then just choses to abort? I have no idea. ??? However, when the submit page works correctly, it will refresh to a new page that says "thank you, your file has been submitted" and the file will appear in the flash game portal page. I am going to bed right now, because it's 3:30...so i won't be able to reply to anoyone's questions until tomorrow afternoon. But please, start a discussion, because this problem is crucial. The internet moves very quickly, and I need to get this game on my site before my traffic explodes. Quote Link to comment Share on other sites More sharing options...
benjaminbeazy Posted March 15, 2007 Share Posted March 15, 2007 can we see the upload action script Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 this is the page source code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <head> <title>.: Ratubaworld.com! :: Submit Game :.</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="StyleSheet" href="http://www.ratubaworld.com/css/style.css" type="text/css"/> </head> <body> <br/> <table cellpadding="0" cellspacing="0" border="0" width="1100" align="center" style="padding-left:10px;"> <tr> <td valign="top" align="center"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="http://www.ratubaworld.com/img/top_corner_left.png" width="25" height="25" alt="" /></td> <td class="top_top" height="25"></td> <td><img src="http://www.ratubaworld.com/img/top_corner_right.png" width="25" height="25" alt="" /></td> </tr> <tr> <td class="top_left"> </td> <td> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="724" height="170"> <param name="movie" value="http://www.ratubaworld.com/img/top_bar_2.swf" /> <param name="quality" value="high" /> <embed src="http://www.ratubaworld.com/img/top_bar_2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="724" height="170"></embed> </object> </td> <td class="top_right"> </td> </tr> <tr> <td><img src="http://www.ratubaworld.com/img/top_corner_bot_left.png" width="25" height="23" alt="" /></td> <td class="top_bot"> </td> <td><img src="http://www.ratubaworld.com/img/top_corner_bot_right.png" width="25" height="23" alt="" /></td> </tr> <tr> <td colspan="3"><img src="http://www.ratubaworld.com/img/clear.gif" alt="" width="1" height="5" border="0"></td> </tr> <tr> <td colspan="3" width="772" height="112" align="center" background="http://www.ratubaworld.com/img/top_text/top_ad_banner.gif" style="background-repeat:no-repeat;"> <div align="center"> <script type="text/javascript"> google_ad_client = "/////////////////////////"; google_alternate_color = "003366"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel =""; google_color_border = "2D5893"; google_color_bg = "99AACC"; google_color_link = "000000"; google_color_url = "000099"; google_color_text = "003366"; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </div> </td> </tr> <tr> <td colspan="3"><img src="http://www.ratubaworld.com/img/clear.gif" alt="" width="1" height="5" border="0"></td> </tr> </table> </td> </tr> <tr> <td align="center" valign="top"> <table cellpadding="0" cellspacing="0" border="0" align="center" width="100%"> <tr> <td><img src="http://www.ratubaworld.com/img/top_text/cor_r_1.gif" alt="" width="171" height="36" border="0"></td> <td><img src="http://www.ratubaworld.com/img/top_text/cor_r_2.gif" alt="" width="73" height="36" border="0"></td> <td width="13" background="http://www.ratubaworld.com/img/top_text/cor_md_l.png" style="background-position:bottom;background-repeat:no-repeat;"> </td> <td width="600" background="http://www.ratubaworld.com/img/top_text/cor_md.png" style="background-position:bottom;background-repeat:repeat-x;" align="center"> <div style="color:White;font-size:12px;padding-top:5px;"><strong>.: SUBMIT GAME :.</strong></div> </td> <td width="13" background="http://www.ratubaworld.com/img/top_text/cor_md_r.png" style="background-position:bottom;background-repeat:no-repeat;"> </td> <td><img src="http://www.ratubaworld.com/img/top_text/cor_r_3.gif" alt="" width="73" height="36" border="0"></td> <td><img src="http://www.ratubaworld.com/img/top_text/cor_r_4.gif" alt="" width="171" height="36" border="0"></td> </tr> </table> </td> </tr> <tr> <td valign="top" height="10"> <table cellpadding="0" cellspacing="0" border="0" style="height:74px;"> <tr> <td> <div align="center" style="height:74px;"> <script type="text/javascript"> google_ad_client = "/////////////////////"; google_ad_width = 110; google_ad_height = 32; google_ad_format = "110x32_as_rimg"; google_cpa_choice = "CAAQgYOy0QEaCHt_mB0Eu3rIKOP143Q"; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </div> </td> <td width="18" bgcolor="#3366CC" rowspan="2" class="left_wall" valign="top"><img src="http://www.ratubaworld.com/img/left_wall_cap.gif" alt="" width="18" height="74" border="0"></td> <td width="711" bgcolor="#3366CC" rowspan="2" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td> <div style="font-size:11px;padding-top:15px;" align="center"> <a href="http://www.ratubaworld.com/"><img src="http://www.ratubaworld.com/img/buttons/home.png" alt="" width="64" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/home_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/home.png'"></a> <a href="http://www.ratubaworld.com/game.favorites"><img src="http://www.ratubaworld.com/img/buttons/favorites.png" alt="" width="86" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/favorites_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/favorites.png'"></a> <a href="http://www.ratubaworld.com/game.view"><img src="http://www.ratubaworld.com/img/buttons/games.png" alt="" width="57" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/games_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/games.png'"></a> <a href="http://www.ratubaworld.com/game.new"><img src="http://www.ratubaworld.com/img/buttons/submit.png" alt="" width="57" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/submit_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/submit.png'"></a> <a href="http://www.ratubaworld.com/game.edit"><img src="http://www.ratubaworld.com/img/buttons/submitions.png" alt="" width="92" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/submitions_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/submitions.png'"></a> <a href="http://www.ratubaworld.com/user.edit"><img src="http://www.ratubaworld.com/img/buttons/profile.png" alt="" width="64" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/profile_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/profile.png'"></a> <a href="http://www.ratubaworld.com/user.view/id:13"><img src="http://www.ratubaworld.com/img/buttons/pub_profile.png" alt="" width="117" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/pub_profile_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/pub_profile.png'"></a> <a href="http://www.ratubaworld.com/user.logout" class="link1"><img src="http://www.ratubaworld.com/img/buttons/logout.png" alt="" width="86" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/logout_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/logout.png'"></a><br/><br/> <a href="http://www.ratubaworld.com/admin" style="color:Red;"><img src="http://www.ratubaworld.com/img/buttons/admin.png" alt="" width="117" height="21" border="0" onmouseover="this.src = 'http://www.ratubaworld.com/img/buttons/admin_hov.png'" onmouseout="this.src = 'http://www.ratubaworld.com/img/buttons/admin.png'"></a> </div> </td> </tr> </table> <script language="JavaScript" type="text/javascript" src="http://www.ratubaworld.com/js/popup.js"></script> <br/><br/> <form method="post" action="http://www.ratubaworld.com/game.new" name="new" enctype="multipart/form-data"> <table cellpadding="5" cellspacing="0" border="0" class="text1" align="center"> <tr> <td colspan="2"> <strong>Submission Agreement:</strong> <p style="padding-left:15px;"><input type="Checkbox" name="agrement" value="1" /> acknowledge and agree to the terms in the <a href="javascript:popup('http://www.ratubaworld.com/therms');" class="link1">agreement</a>.</p> <hr /> </td> </tr> <tr> <td colspan="2"><strong>Game info:</strong></td> </tr> <tr> <td align="right"><span style="color:Red;">*</span>Game Type:</td> <td align="left"> <select name="type"> <option value="Action">Action</option> <option value="Adventure">Adventure</option> <option value="Fighting">Fighting</option> <option value="Casino">Casino</option> <option value="Driving">Driving</option> <option value="Puzzle">Puzzle</option> <option value="First person shooting">First person shooting</option> <option value="Sports">Sports</option> <option value="Movie">Movie</option> </select> </td> </tr> <tr> <td align="right"><span style="color:Red;">*</span>Title:</td> <td align="left"><input class="input" type="Text" name="title" value="" /></td> </tr> <tr> <td align="right"><span style="color:Red;">*</span>File(*.swf):</td> <td align="left"><input type="File" name="swf" /></td> </tr> <tr> <td align="right"><span style="color:Red;">*</span>Age rating:</td> <td align="left"> <select name="age_rating"> <option value="everyone">everyone</option> <option value="mature">mature</option> <option value="adult">young adult</option> </select> </td> </tr> <tr> <td align="right">Width:</td> <td align="left"><input class="input" type="Text" name="width" value="500" /></td> </tr> <tr> <td align="right">Height:</td> <td align="left"><input class="input" type="Text" name="height" value="400" /></td> </tr> <tr> <td align="right">Icon:</td> <td align="left"><input type="File" name="icon" /><br/><small>Non-Animated GIF or PNG. Size: Must be 46x46 pixels. 20k filesize limit.</small></td> </tr> <tr> <td align="right">Brief Description:</td> <td align="left"><input class="input" type="Text" name="brief_description" value="" /></td> </tr> <tr> <td align="right">Author comments:</td> <td align="left"><textarea id="comments" onkeyup="countChars(this, 'comments')" name="comments" cols="30" rows="5"></textarea><br/>Max length <strong>4000</strong> chars. <span id="comments_remain" style="color:Red;font-weight:bold;"></span> left.</td> </tr> <tr><td> </td></tr> <tr><td colspan="2" align="center"><input type="Submit" value="Submit" name="submit" /></td></tr> </table> </form> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> // var maxleng = 4000; var remain = 0; var count = 0; var chars = 0; function countChars(field, id){ chars = field.value; count=field.value.length; remain = maxleng-count; if(remain < 0){ var txt = chars.match(/.{4000}/i); field.value = txt; remain = 0; } document.getElementById(id+"_remain").innerHTML = remain; } var field = document.getElementById("comments"); countChars(field, 'comments'); // </SCRIPT> </td> <td width="18" rowspan="2" class="right_wall" valign="top"><img src="http://www.ratubaworld.com/img/right_wall_cap.gif" alt="" width="18" height="74" border="0"></td> </tr> <tr> <td align="right" valign="top"> <table width="170" border="0" align="right" cellpadding="0" cellspacing="0" background="http://www.ratubaworld.com/img/banner_left_copy.gif"> <tr> <td height="686" valign="top"><p> </p> <table width="150" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <th scope="col"> <script type="text/javascript"> google_ad_client = "//////////////////"; google_alternate_color = "32527A"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "2D5893"; google_color_bg = "99AACC"; google_color_link = "000000"; google_color_url = "000099"; google_color_text = "003366"; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> </th> </tr> </table> </td> </tr> </table> </td> <td valign="top" style="padding-left:10px;"> <table width="141" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="141" height="30"><img src="http://www.ratubaworld.com/img/formmail/top.png" width="141" height="30" /></td> </tr> <tr> <td height="58"><img src="http://www.ratubaworld.com/img/formmail/mid2.jpg" alt=" " width="141" height="58" /></td> </tr> <td height="3" background="http://www.ratubaworld.com/img/formmail/middle.jpg"><tr> <td background="http://www.ratubaworld.com/img/formmail/middle.jpg"><div align="center"> <FORM ACTION="http://www.ratubaworld.com/cgi-bin/formmail/FormMail.pl" METHOD="POST"> Email: <INPUT TYPE="TEXT" NAME="Email" VALUE="Enter your E-mail" SIZE="15" MAXLENGTH="50"> <input type=hidden name="recipient" value="grant@ratubaworld.com,newsletter@ratubaworld.com"> <input type=hidden name="redirect" value="http://ratubaworld.com/signup.html"> <input type=hidden name="print_config" value="Email"> <BR> </tr> <tr> <td><input type="image" border="0" name="B1" src="http://www.ratubaworld.com/img/formmail/subscribe.png" width="141" height="48" align="top" /></td> </tr> </table> </td> </tr> <tr> <td align="right" valign="top"><img src="http://www.ratubaworld.com/img/footer/cor_l_1.gif" alt="" width="17" height="37" border="0"></td> <td colspan="3" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td width="155"><img src="http://www.ratubaworld.com/img/footer/cor_l_2.gif" alt="" width="155" height="142" border="0"></td> <td width="462" class="footer_md" valign="top" style="padding-top:40px;font-size:11px;color:Navy;" align="center"> <strong>All material is © 2006 <a href="http://www.ratubaworld.com" class="link1">www.ratubaworld.com</a>, Grant Cerulo & affiliates Ratuba<SUP style="font-size:7px;">TM</SUP> Games and Ratuba<SUP style="font-size:7px;">TM</SUP> Productions are divisions of Ratuba<SUP style="font-size:7px;">TM</SUP> World</strong> </td> <td width="130"><img src="http://www.ratubaworld.com/img/footer/cor_r_1.gif" alt="" width="130" height="142" border="0"></td> </tr> </table> </td> <td align="left" valign="top"><img src="http://www.ratubaworld.com/img/footer/cor_r_2.gif" alt="" width="16" height="38" border="0"></td> </tr> </table> </td> </tr> </table><br/><br/> </body> </html> Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 seriously, use [ code ] [ /code ] Try doing set_time_limit(10000); This will allow the time to process the script for 1,000 seconds. What is happening is PHP is timing out because it's default is like 60 seconds or something. Give that a shot. Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 dude, there is no variable in the php.ini file called set_time_limit if you are referring to: max_execution_time 500000 500000 max_input_time 200000 200000 I already jacked those up, but with no success Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 i found: mysql.connect_timeout 60 60 and session.gc_maxlifetime 1440 1440 and default_socket_timeout 60 60 and HTTP_KEEP_ALIVE 300 maybe one of these? any suggestions? Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 not in php.ini, in the actual script. <?php set_time_limit(10000); ?> http://us3.php.net/manual/en/function.set-time-limit.php Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 I couldn't find the variable in the source code. Where exactly is that... but regardless, on that link I read: void set_time_limit ( int $seconds ) Set the number of seconds a script is allowed to run. If this is reached, the script returns a fatal error. The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the php.ini. so if my max_execution_time is 500000 in the ini file, it would override the set_time_limit on the page, wouldn't it? Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 Yes it would. That is alot of seconds and the reason I put the set_time_limit(); option is because you do not want to have that set for every file, due to the fact that if you accidently create an infinate loop there is nothing to kill that process, it will loop until 500000 seconds is reached and mess up your server's processing time. set_time_limit(); is definately the safer choice and place it where you know that it could take a long time to process due to something (IE uploading a file). Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 ok, so I just copy and paste that code directly into my php file? what should i change the max_execution_time and max_input_time back down to...like 10,000? The default I think is 30 but my website revolves around people uploading their flash files to the portal Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 I would set it to 900 max either way. But yes you would paste that into the uploading portion ie "upload buttonclicked" set time limit than start the upload. That way it is only executed when necessary. Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 ok. to tell you the truth, I don't know how to do that. Yo would you be up to helping me figure this out if I give u my ftp log in account and password? If you can get this file to upload, I'll offer u some money via paypal..like $15? This guy I hired on elance.com programmed my entire site back in September, and it has worked fine, but I can hardly ever get ahold of him, and we only communicate via email. It would seriously help me out a lot if someone else could just go through and look at everything, cuz I have little to no php knowledge. my extent is changing variables in the ini file :-X do you have aim or msn? my aim is: grantisplantis msn is quailman@comcast.net Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 I do, however my hands are tied (in class right now) I will contact you later tonight at like 9:00pm Mountain Standard Time. No money is needed, it will be fairly simple. email frost [-at-] aeonity [-dot-] com Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 sounds good dude, much appreciated. I'm singing tonight in a concert for Brahms requiem, but I'll be back on at 11:00 or so. I'll email you the info if you want to work on it before Im back Quote Link to comment Share on other sites More sharing options...
per1os Posted March 15, 2007 Share Posted March 15, 2007 Sounds good. Quote Link to comment Share on other sites More sharing options...
ratubaworld Posted March 15, 2007 Author Share Posted March 15, 2007 email sent. btw I'm eastern standard, so I'm a bit ahead of you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.