Jump to content

Byron

Moderators
  • Posts

    9,153
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by Byron

  1. I'm sorry I should have stated that the: $user_name $user_pass variables were cPanel username and password and not your database username and password. Your getting that login page because login failed. I should have added a check to verify login. I've edited my code to check for login now. Copy the code again and edit for your site and try it again.
  2. Seems your site has entered the "Twilight Zone". Give it another 24 hours and post back if you still can't see it.
  3. Were you able to access your email before you did any altering? What kind of altering did you do?
  4. I can't say that this works for certain because I don't have a large database to try it with. Give it a try on your site and when it emails the attachment to you make sure you open it up to see that everything is there. Als I'm sure some of the curl options aren't needed but they're not hurting anything either. Either download the text file or copy the script below: http://heliohost.uni.cc/auto_mysql_backup.txt <?php # Edit email info $to = "Byron <byron@gmail.com>"; $from = "Automated Backup <byron@byron.heliohost.org>"; $subject = "Mysql Backup"; $message = "Your Mysql GZIP Backup"; # Edit cpanel backup info # login is cpanel login username and password $user_name = "byron"; $user_pass = "********"; $database = "byron_test"; $domain = "byron.heliohost.org"; $url = "http://$domain:2082/getsqlbackup/$database.sql.gz"; $agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; $cook_file = "curl_login_cookie.txt"; # get file extension $extract = pathinfo($url); $fname = ($extract['basename']); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_REFERER, "http://$domain"); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, true); curl_setopt($ch, CURLOPT_USERPWD, "$user_name:$user_pass"); curl_setopt($ch, CURLOPT_COOKIEFILE, $cook_file); curl_setopt($ch, CURLOPT_COOKIEJAR, $cook_file); $result = curl_exec($ch); $extract = curl_getinfo($ch); $httpcode = $extract['http_code']; curl_close($ch); if ($httpcode >= 200 && $httpcode < 303) { ####### Email gzip attachment ####### $content = chunk_split(base64_encode($result)); $uid = md5(uniqid(time())); $header = "From: $from\r\n"; $header .= "MIME-Version: 1.0\r\n"; $header .= "Content-Type: multipart/mixed; boundary=\"".$uid."\"\r\n\r\n"; $header .= "This is a multi-part message in MIME format.\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-type:text/plain; charset=iso-8859-1\r\n"; $header .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $header .= $message."\r\n\r\n"; $header .= "--".$uid."\r\n"; $header .= "Content-Type: application/x-gzip; name=\"".$fname."\"\r\n"; $header .= "Content-Transfer-Encoding: base64\r\n"; $header .= "Content-Disposition: attachment; filename=\"".$fname."\"\r\n\r\n"; $header .= $content."\r\n\r\n"; $header .= "--".$uid."--"; mail($to, $subject, $message, $header); ####### End email attachment ######## } else { echo "cPanel Login Failed!"; } # delete cookie file if (file_exists($cook_file)) { unlink($cook_file); } ?>
  5. Yes auto backups has been disabled at the cpanel. Why don't you post your script and I'm sure somebody can show how to get around the system() function. If not I can show you how to get the source of the database gz file through curl and you can do whatever with the source you want.
  6. Hate to say this djbob but I'm still seeing the same problems, "Slow to Load & Service Unavailable". What's weird about it is the server load has been unusually low all this time. Like under 6 or 7, sometimes under 4.
  7. If your on the server Johnny, it's because we are experiencing a few technical difficulties and it should be fixed soon. Moving to Custoner Service...
  8. I'm not seeing: freakzone.heliohost.org in our database but I do see: freakzone.in but it's not working. Did you register that domain? If so please make a new thread in Customer Service saying that your domain isn't working so I can escalate it.
  9. Please post your username and domain name. Escalating...
  10. Ok your site should be working now. If you still see the suspended page, refresh your cache. @cl58tools: His account had to be manually unsuspended. Sometimes after they run the deactivation script it still shows the suspended page and you have to go to the ACP and manually unsuspend it. Anytime you use the deactivation script, the account should come active right away.
  11. Byron

    question

    Yes I realize that, but I want you to give it another 24 hours. I'm seeing your site in the database as active but sometimes it takes a little longer for you to see it. Just be patient.
  12. Byron

    question

    Give another 24 hours and if your still not working, post back.
  13. Johnny offers JSP, ASP.NET, and Ruby on Rails programming languages, which makes him a little less stable. If you don't need any of those programming languages then you should choose Stevie.
  14. Ok I've corrected your email address. Try using the password reset now.
  15. This is the email I'm showing for that account in our database. hon_zhu@yahoo.com If I reset your password and send it to that address, will you get it?
  16. You are allowed to run a proxy script as long as it is not too "recourse-intensive". Yes if people are willing to pay to access your site.
  17. If that's what you think it will take then go for it. I really hate to see us down for any length of time but it looks like we don't have any choice. Just post about it in the News with a 24 hour notice maybe.
  18. I'm not seeing anybody else with that username in the database. What domain name are you trying to signup with?
  19. His account was stuck in the suspeneded state even though it was showing active. Ok Kbailey your site is ok again.
  20. Please post your username, domain name and server your on.
  21. That's ok and please don't stop replying. We really appreciate your input, just be a little more careful in how you reply.
  22. Also are you trying to signup on a different computer than the one you posted with?
  23. wrong for 10 hours straight after the reboot all was really great not evan 1 error about time out. after 10 hours something happened and its start to be lagi again . according to this time everything go smooth for past 5 hours. Maybe it was great for you for 10 hours straight but it wasn't for me. Always speak for yourself and never accuse other people of being wrong unless you know for sure your 100% right.
×
×
  • Create New...