-
Posts
20,156 -
Joined
-
Last visited
Everything posted by TCH-Bruce
-
hspace and vspace are IE tags. CSS is the way to go.
-
Thanks Donna for the kind words. Glad you are happy here.
-
I would go the FTP user/password route. As for how large an account, multiply the size of the files by the number of files and pick the plan accordingly.
-
Welcome back JustWade!
-
Welcome to the forums Keith. The logs are kept monthly.
-
Check out this page and see if it helps. Scroll down to near the bottom of the page for this stop error. If that doesn't help maybe this Google Search will.
-
Are you trying to gain access with a bookmarked link? Have you tried entering your-TCH-domain.ext/cpanel and seeing if you can get to it?
-
He about gave me a heart attack.
-
Temporarily Pause/suspend Email Account?
TCH-Bruce replied to surfdean's topic in CPanel and Site Maintenance
:fail: does not send a bounce it just silently dies I believe. Verified in this post. -
lunch (I'm eating mine)
-
Avg Anti-virus Multiple File Parsing Vulnerabilities
TCH-Bruce replied to TCH-Thomas's topic in Software/Scripts/Other Alerts
Thanks Thomas -
Horde Calender Configuration
TCH-Bruce replied to KnowsAirplanes's topic in CPanel and Site Maintenance
Welcome to the forums Todd Horde is a shared install on the servers. Changing the configuration other than what can be done individually would affect everyone on the server. As Thomas points out you would need your own installation of Horde. -
Not enough to go on. The script is telling you there is a syntax error.
-
With the amount of spam email and regular email a server has to deal with I wouldn't doubt it. One other thing, how often do you pop your email account? If it is less than every 5 minutes try changing it and see if that helps. I pop every 10 minutes on my work account and every 20 minutes on my personal account.
-
Welcome to the forums Marty Have you opened a ticket with the help desk? If nothing has changed on your end that would be the place to start. Link at top of page or in my signature.
-
I would recommend updating to version 2.0
-
That would be correct Dave. Most CMS packages produce XHTML documents. I prefer it myself.
-
Automatically Ftp A Directory From My Site?
TCH-Bruce replied to llama_thumper's topic in CPanel and Site Maintenance
Well, that might explain it then. The file I was trying to email was 22mb. Found this which states the size limit of attachments to GMail. -
Automatically Ftp A Directory From My Site?
TCH-Bruce replied to llama_thumper's topic in CPanel and Site Maintenance
I've had some time and with the help of TCH-Andy have created a script that can be used to email (not recommended) or remote ftp a directory from your site to a remote server. ><?php // +----------------------------------------------------------------------+ // | PHP Version 4 | // +----------------------------------------------------------------------+ // | Copyright © 2006 Bruce Richards / Andy Beckett | // | | // | Purpose: To backup a folder structure to a zip file and then FTP | // | the file to a remote server | // | | // | Requires: zip be installed on the server and that you are able | // | to use the passthru command of PHP, the TCH servers | // | do have zip installed and passthru can be used. | // | | // | WARNING: Depending on what you are backing up the files can be quite | // | large. Be sure you have enough space for what you are | // | backing up. Also, sending huge files via email is not | // | recommended. | // | | // +----------------------------------------------------------------------+ // | Author: Bruce Richards / Andy Beckett | // +----------------------------------------------------------------------+ // // setup variables $remove_file = "yes"; // remove file when done -- recommended! $path= '/home/your-account/public_html/'; // Full path to backup $zipfile = "your.zip"; // backup file name $zippath = "/home/your-account/backups"; // path to save backup file $send_email = "no"; // Do you want this backup sent to your email? Fill out the next 2 lines $to = "you@yourdomain.ext"; // Who to send the emails to $from = "backup@yourdomain.ext"; // Who should the emails be sent from? $senddate = date("j F Y"); $subject = "Backup - $senddate"; // Subject in the email to be sent. $message = "Your backup is attached to this email"; // Brief Message. $use_ftp = "yes"; // Do you want this backup uploaded to an ftp server? Fill out the next 4 lines $ftp_server = "localhost"; // FTP hostname $ftp_user_name = ""; // FTP username $ftp_user_pass = ""; // FTP password $ftp_path = "/"; // This is the path to upload on your ftp server! // Do not Modify below this line! $date = date("mdy-hia"); $zipname = "$zippath/$date-$zipfile"; passthru("nice -n 16 zip -q -r $zipname $path "); $filename2 = "$zipname"; if($send_email == "yes" ){ $fileatt_type = filetype($filename2); $fileatt_name = "".$date."-".$zipfile.""; $headers = "From: $from"; // Read the file to be attached ('rb' = read binary) $file = fopen($filename2,'rb'); $data = fread($file,filesize($filename2)); fclose($file); // Generate a boundary string $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; // Add the headers for a file attachment $headers .= "\nMIME-Version: 1.0\n" ."Content-Type: multipart/mixed;\n" ." boundary=\"{$mime_boundary}\""; // Add a multipart boundary above the plain message $message = "This is a multi-part message in MIME format.\n\n" ."--{$mime_boundary}\n" ."Content-Type: text/plain; charset=\"iso-8859-1\"\n" ."Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; // Base64 encode the file data $data = chunk_split(base64_encode($data)); // Add file attachment to the message $message .= "--{$mime_boundary}\n" ."Content-Type: {$fileatt_type};\n" ." name=\"{$fileatt_name}\"\n" ."Content-Disposition: attachment;\n" ." filename=\"{$fileatt_name}\"\n" ."Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" ."--{$mime_boundary}--\n"; // Send the message $ok = @mail($to, $subject, $message, $headers. "-f" .$from); if ($ok) { echo "<h4><center>Backup created and sent! File name $filename2</center></h4>"; } else { echo "<h4><center>Mail could not be sent. Sorry!</center></h4>"; } } if($use_ftp == "yes"){ $conn = ftp_connect($ftp_server); if(!$conn) { exit("Could not connect to server: $ftp_server\n"); } if(!ftp_login($conn,$ftp_user_name,$ftp_user_pass)) { ftp_quit($conn); exit("Could not log in\n"); } ftp_chdir($conn,$ftp_path); $remotefile = "".$date."-".$zipfile.""; if(!ftp_put($conn, $ftp_path.$remotefile, $filename2, FTP_BINARY)) { echo "Could not upload $filename2\n"; } ftp_quit($conn); echo "<h4><center>$filename2 Was created and uploaded to your FTP server!</center></h4>"; } if($remove_file=="yes"){ exec("rm -r -f $filename2"); } ?> Copy this and create a PHP file, upload it to your server and create a cron job to run it or you can run it from your web browser. Don't forget this could create huge files and I could not get a 22MB file to email to GMail but smaller zip files emailed just fine. The FTP function works just fine with large files. -
Welcome to the forums Texmood
-
A sitemap is nothing more than a web page that includes links to every page on your site in a hierarchy format. You just include it in your normal navigation. For an example see Totalchoice Hosting Sitemap
-
Router Connection Problems As Pc Logs On And Off
TCH-Bruce replied to Hammie's topic in Hardware Corner
Welcome to the forum, Hammie -
Welcome to the forums Deleeted
