Jump to content

JustinStone

Members
  • Posts

    13
  • Joined

  • Last visited

JustinStone's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the info everyone. Is there anyone else out there that uploads large files on a shared hosting server? Say, 200MB's.
  2. I would love to modify the modSecurity settings, but with MediaTemple's grid service for 20 bucks a month, they will not allow me to do that. They won't even do it for me because they say they can't on their shared server. I've spoke with inMotion hosting and they told me they have no file size limit on uploads and they also said that if I have issues with modSecurity they would make the changes for me. I think I may be leaving MediaTemple. For 20 bucks a month, I am way too limited for that price imo
  3. I don't see why I would have to set the folder's permissions to 777 when 755 works just fine on the smaller sized files. ModSecurity: Input filter: Failed writing 1460 bytes to temporary file (rc 1173). Same error anyways with a 74MB file. I need to disable this garbage. lol. Does anyone really know what this error means. Searching google for days and no one really seems to have a straight answer.
  4. Ok, so. This script works, partially. I have 6 different file sizes that I'm trying, 14MB, 26MB, 39MB, 52MB, 74MB and 92MB. The 14, 26, 39 and 52 seem to upload just fine. When I get to the 74MB, I get the ELSE statement from below (There was an error uploading the file, please try again!) I checked my error log on my server and this is shown ModSecurity: Input filter: Failed writing 1460 bytes to temporary file (rc 889). [hostname "mySite.com"] [uri "/myScript.php"] [unique_id "XXXXXXXXXXXXXXXX"] <?php target_path = "rider_pics/"; $target_path = $target_path . basename( $_FILES['track']['name']); $message = $_FILES['track']['error']; if(move_uploaded_file($_FILES['track']['tmp_name'], $target_path)) { echo echo "The file " . basename( $_FILES['track']['name']) . " has been uploaded"; } else { echo 'There was an error uploading the file, please try again!' . $message; } ?>
  5. I'm not that good at PHP, but I'll try to help. It sounds like you have different types of members, admins and just members. I would create a row in the database and call it 'Level'. When a normal member signs up, give them a Level 0. And then all Admins would have a level 1 which could just be manually put in the database. So then you have two different level types of members. On your redirect have it check if the member that is signed in is a Level 1 or Level 0, and then redirect accordingly. Like I said, I don't know that much about PHP, but that is what I would do. Hope that helps. Also, I think posting the login form and the full login script would help lots.
  6. To take it back to the basics, I'm just using a small upload script that is found everywhere online. Here is what is going on with my uploads. I'm getting an error now with mod_security when uploading a 96MB file. [Fri May 09 19:47:45 2014] [error] [client xxx.xx.xxx.xxx] ModSecurity: Input filter: Failed writing 1460 bytes to temporary file (rc 1431). [hostname "mySite.com"] [uri "/TestUpload.php"] [unique_id "xxxxxxxxxxxxxxxxxxxxxxx"] <?php $target_path = "rider_pics/"; $target_path = $target_path . basename( $_FILES['uploadedfile']['name']); $message = $_FILES['uploadedfile']['error']; if(move_uploaded_file($_FILES['uploadedfile']['name'], $target_path)) { echo "<input value='http://mysite.com/rider_pics/". basename( $_FILES['uploadedfile']['name']). "' style='width: 100%'>"; } else{ echo 'There was an error uploading the file, please try again!' . $message; } ?> And when trying to upload a smaller 14MB file, I get the error of '0' from $message. Error '0' should mean that the file uploaded without any problems, but the file isn't on my server.
  7. So how do I get around this? Move to a different hosting company? Is there anyone here or does anyone here know of any web hosting services that doesn't have such terrible settings?
  8. MediaTemple has their defualt setting for the open_basedir set by default. They said(and it show an example on their site) of what to have for someones site if there is an error. I have done what it shows, but I still get the error. open_basedir = "/home/xxxxxx/data/tmp:/home/xxxxxx/domains/mysite/html" I change it to that, and the site works fine, but the upload will either throw the open_basedir error or the 500 error. (Will throw the errors even if I leave the default settings for open_basedir) I'm stumped. Been banging my head for months.
  9. I'm not coming here looking for quick help, I've been trying to figure this out myself for a couple months actually(sad, yes). When I get the open_basedir error, it comes from the last line posted here. $tname2 = time(); $track_name=$tname2.'.'.$extension2; $new_track_name="tracks/".$track_name; $copied2 = copy($_FILES['track']['tmp_name'], $new_track_name); And when I get the internal 500 error, it is the mod_security error
  10. max_input_time is set to -1 by default on MediaTemples Grid service. I don't think this is the problem. When the submit button is clicked, all of the POST data and file checking should be done pretty quickly I would think. I just find it strange that all errors happen exactly at the minute mark. With the 500 error, I've check the error logs and I see the mod_security error. MediaTemple refuses to help me with it by saying that they can not help with my php script. I really don't think it is the script, I believe it is something else. I know this was pretty vague, but I'm still learning this stuff, so hopefully someone out there has had similar problems as me and has gotten them fixed.
  11. Hey guys/girls. I've been having problems with MediaTemple GS web hosting lately. I have a content site that allows members to upload files(up to 99MB in size). But I have been having problems lately. My script stops dead on the 2 minute mark and throws either a 500 internal server error or I get the dreaded open_basedir error. Either way the upload script stops at the 2 minute mark. I have edited the php.ini file for a max_execution_time of 300(5 minutes right?). MediaTemple says that is the longest their GS will allow. But still I'm throwing an error at 2 minutes. Also, I've let my members know that the max file size is 99MB which stinks because I would like a limit of 200MB. MediaTemple again says that the GS will only allow a max of 99MB. My php.ini file looks like the following upload_max_filesize = 99M post_max_size = 100M memory_limit = 99M max_execution_time = 300 magic_quotes_gpc = Off output_buffering = 4096 allow_url_include = On allow_url_fopen = On session.save_path = /home/xxxxxx/data/tmp Am I really screwed with MediaTemple by not allowing me the larger uploads? The 99MB uploads MIGHT be ok, but I can't get the script to run any longer than 2 minutes. Is there anyone out there with MediaTemple web hosting and can you run an upload script longer than 2 minutes or upload more thatn 99MB's?
  12. Oopps, Think I found a problem with my line of code. Should be ok now.
  13. Hey everyone. I have a folder on my server named this abc$45$def$45$ghi Originally, before a script created this folder on my server, it was name abc-def-ghi So it took the '-'s and put in some special characters. Now, what you see below does not work. When I try to use the folder name below, my url box in my browser only shows some of it. $var = " abc$45$def$45$ghi"; header("location: http://mysite.com/myscript.php?type=" . $var . ""; the above outputs in my url box the following. http:///www.mysite.com/myscript.php?type=abc$45$$45 Any ideas ?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.