Web Hosting Vodahost    
Home Take a Tour Testimonials Tutorials Features Products & Prices Search Engine Submission Help Me Order Now!
Go Back   Web Hosting > BlueVoda Website Builder Forums > BlueVoda - General Issues
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

BlueVoda - General Issues All BlueVoda support issues that are not covered in the below forums.

Welcome to VodaHost!

The official web hosting company for the BlueVoda Website Builder. You are currently viewing our support forum as a guest which gives you limited (read only) access. By joining support forum you will be able to ask questions and participate in discussions. Registration is fast and simple. Click Here To Join our support forum today! We look forward to helping you build and publish a fantastic website.

Reply
 
Thread Tools
  #1  
Old 05-09-2008, 11:27 AM
ghghgh19 ghghgh19 is offline
Private First Class
 
Join Date: May 2008
Posts: 7
Default changed upload file size to larger but larger files are not uploading

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
Reply With Quote
  #2  
Old 05-09-2008, 07:29 PM
navaldesign's Avatar
navaldesign navaldesign is online now
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,546
Default Re: changed upload file size to larger but larger files are not uploading

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
Reply With Quote
  #3  
Old 05-10-2008, 12:23 AM
ghghgh19 ghghgh19 is offline
Private First Class
 
Join Date: May 2008
Posts: 7
Default Re: changed upload file size to larger but larger files are not uploading

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.
Reply With Quote
  #4  
Old 05-10-2008, 05:40 AM
navaldesign's Avatar
navaldesign navaldesign is online now
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,546
Default Re: changed upload file size to larger but larger files are not uploading

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
Reply With Quote
  #5  
Old 05-10-2008, 10:17 AM
ghghgh19 ghghgh19 is offline
Private First Class
 
Join Date: May 2008
Posts: 7
Default Re: changed upload file size to larger but larger files are not uploading

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?
Reply With Quote
  #6  
Old 05-10-2008, 09:01 PM
navaldesign's Avatar
navaldesign navaldesign is online now
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,546
Default Re: changed upload file size to larger but larger files are not uploading

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
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump


All times are GMT +1. The time now is 06:19 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0 RC2
2007 VodaHost.com - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53