![]() |
|
| Home | Take a Tour | Testimonials | Tutorials | Features | Products & Prices | Search Engine Submission | Help Me | Order Now! |
| |||||||
| BlueVoda - General Issues All BlueVoda support issues that are not covered in the below forums. |
![]() |
| | Thread Tools |
|
#1
| |||
| |||
| i put an upload file button on my website. i changed the upload file limit to 500000000 the file i want to upload is 50mb when i uploaded it, it wasn't in my uploads folder. i uploaded a smaller file and it was there. i changed the script to accomodate for the larger file size but the file never added. why? how can i fix this? also when people upload a file to the site, it sends me an automatic email. however, the person who is sending the email comes up as 'unknown'. how do i change that so i know who is sending me the files? a quick reply is urgent |
|
#2
| ||||
| ||||
| How can we answer you ? HOW did you change the max upload file size ? How do you upload the files ? What script are you using ?
__________________ Navaldesign DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTS Logger: A DB driven, Multifeatured , Customized Login script |
|
#3
| |||
| |||
| i followed the steps in the tutorial for BlueVoda on how to upload a file to website and it told me. this is the script <?php // Receiving variables @$email = addslashes($_POST['email']); @$upload_Name = $_FILES['upload']['name']; @$upload_Size = $_FILES['upload']['size']; @$upload_Temp = $_FILES['upload']['tmp_name']; // Validation for max file size if ($upload_Size>0) { if( $upload_Size >500000000) { //delete file unlink($upload_Temp); header("Location: error.html"); exit; } $uploadFile = "uploads/".$upload_Name ; @move_uploaded_file( $upload_Temp , $uploadFile); chmod($uploadFile, 0644); $upload_URL = "http://www.yourmusiconnet.com/uploads/".$upload_Name ; } //Sending Email to form owner $mailto = "francisromano08********.com"; $mailsubj = "Song added to site"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Here is my song you bitches :\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { if ($key!="submit") { $mailbody .= "$key : $val\n"; } } $mailbody .= "upload: $upload_URL\n"; mail($mailto, $mailsubj, $mailbody, $mailhead); header("Location: thankyoupage.html"); ?> this is what BlueVoda told us to use. We used it and it works for smaller files but large ones like full songs wont upload into the uploads folder. why? we changed the file size so larger ones can be added but they don't come through. |
|
#4
| ||||
| ||||
| Each server has it's own setings as for max filesize that you can upload, and you can't override this limit this way. So you can change the limit in the script, but only up to the max limit allowed by the server. Some VH servers are set to 12, some to 20, and last, some are set to 35 MB. The only way to find that out and actually set the limit to a larger number, is by using the phpinfo() command (to gather the info) and using yet another script to create a local php.ini file. This is quite easily done with a small script, that reads the server php.ini file, it changes whatever needs to be changed, and it then saves a copy of it in your own folder. Here it is: <!-- /* SCRIPT NAME: modify_php_ini.php */ --> <?php // Put all the php.ini parameters you want to change below. One per line. // Follow the example format $parm[] = "parameter = value"; $parm[] = "upload_max_filesize = 50M"; // full unix path - location of the default php.ini file at your host // you can determine the location of the default file using phpinfo() $defaultPath = '/usr/local/lib/php.ini'; // full unix path - location where you want your custom php.ini file //$customPath = "/path/php.ini"; $customPath = "php.ini"; // nothing should change below this line. if (file_exists($defaultPath)) { $contents = file_get_contents($defaultPath); $contents .= "\n\n; MODIFIED THE FOLLOWING USER PARAMETERS:\n\n"; foreach ($parm as $value) $contents .= $value . " \n"; if (file_put_contents($customPath,$contents)) { if (chmod($customPath,0600)) $message = "<b>PHP.INI File modified and copied.</b>"; else $message = "PROCESS ERROR - Failed to upadate php.ini."; } else { $message = "PROCESS ERROR - Failed to write php.ini file."; } } else { $message = "PROCESS ERROR - php.ini file not found."; } echo $message; ?> Copy the above code, paste it in Notepad, save is as "modify_php_ini.php". Upload it on your server and run it (type in your browser "http://www.yourdomain.com/modify_php_ini.php") It will modify the allowable file size to 50 Mb. If you need less, change it to 10, 20 or 30M, whatever you need. It only affects your own site, not any other hosted on the same server. In the script, it is assumed that your php.ini path is '/usr/local/lib/php.ini' If you get from the script a message that php.ini was not found, use this other script: <?php phpinfo(); ?> Upload it on your site as phpinfo.php and run it (http://www.yourdomain.com/phpinfo.php) It will display all your server php settings, and among them, you will be able to see your php.ini path and your max upload file size Tip: since a php.ini file locally saved is loaded each time a request takes place, if you only use it to override the file size issue, i suggest that you publish your form inside a dedicated folder, and also load this script and run it only for that folder. This way, when users visit your normal pages, in your public_html (or www, whatever it is named) folder, the local php.ini file is not loaded at all.
__________________ Navaldesign DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTS Logger: A DB driven, Multifeatured , Customized Login script |
|
#5
| |||
| |||
| thanks that worked but when people send me files it says 'unknown' as the sender in my email address is there a way to change that so i get their name as the sender? |
|
#6
| ||||
| ||||
| Probably because the email field in the form is NOT named "email" but something else (like "Email" or anything else).
__________________ Navaldesign DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTS Logger: A DB driven, Multifeatured , Customized Login script |
![]() |
| Thread Tools | |
|
|