Jump to content

andrewq2

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by andrewq2

  1. Done, the ssl cert was messed up anyway....
  2. Hi can you change my main domain name, the new domain is currently a add-on domain. Would this mess up the SSL I have set up? Username: andrewq2 Current Domin: aq-dev.co.cc New domain name: andrewquerol.info
  3. May I get a dedicated IP for my account. I have already installed the key and the cert files through cPanel. Username: andrewq2 Main Domain: aq-dev.co.cc SSL Domain: andrewquerol.info
  4. I just tried again i can access my main domain now and i still could not add my ad-on domain
  5. andrewq2 aq-dev.co.cc andrewquerol.info
  6. I'm trying to add my domain name form godaddy with heliohost but it says my domain is owned by another user. Domain: andrewquerol.info Error from park wrapper: andrewquerol.info is owned by another user. Thanks, Andrew
  7. The php vars are $db_type = "MyISAM"; most likely. $db_host = "localhost"; $dbname = "the name of the mysql db"; Here is a tut on how to use phpmyadmin to import a sql file http://www.dewahost.com/tutorials/cpanelx/importsqlfile.html
  8. Something like this should work. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <script type="text/javascript"> function hideElement(i) { var e = document.getElementById(i); if (e) { e.style.visibility = 'hidden'; } } function showElement(i) { var e = document.getElementById(i); if (e) { e.style.visibility = 'visible'; } } </script> <title>Test Page</title> </head> <body> <div id="showhide"> The Text<br/> <a href="java script:hideElement('showhide')">Hide</a><br/> </div> <p> <a href="java script:showElement('showhide')">Show</a><br/> </p> </body> </html>
  9. FYI This Category is for HelioNet errors not HeiloHost. But anyway a few other people including me have this error, for me it happens after uploading/ changing a server side file (php, perl, etc.)
  10. None of my files are using the header() function;
  11. No its still not working, i tried addon, parked.
  12. No it is not down i just went ftp://striker.heliohost.org and got asked to authenticate, and i can ftp to my website. Andrew
  13. Its solved now. I did nothing and now it stopped happening. Thanks for your trouble. Andrew Edit1: Never mind still after upload 500 error on any of my php files... No htaccess files
  14. Addon Domain not working for me as well. Username: andrewq2 Default: aq-dev.co.cc Addon: andrewquerol.info
  15. Is the game running on your website or a computer app? Also this is in the wrong section this should be in Website Management and Coding not Questions is for things like Server errors or a problem that has to do with HelioHost.
  16. I use my own os o.O coded in assembly + C its only command is echo........ But for my development reasons i use Debian Linux or DamnSmallLinux on my net book if I'm traveling.
  17. Made subdomain http://joad.aq-dev.co.cc nothing much else Update: It seams to be working now. Maybe it was the apache restart to add the sub domains that did it, What ever you did thank you. The customer service here is great for free hosting. Most free hosting places the errors don't get elevated to the server owner. Thanks, Andrew Update2: After i started uploading some files i went to test them but i am getting 500 error again..... This problem is going around in loops. Just a suggestion can you remake my account to see if that clears it up. Thanks, Andrew Update3: I just got my php scripts to work again what ever it is it happens randomly. I love this free hosting service but i might have to move to another host if this problem keeps happening. Thanks, Andrew
  18. It said it was not installed so i cleaned up the extensions and it recreated a .htaccess file and chmod the files to 644.
  19. Ran it still 500 error, and i have no .htaccess also i changed the permissions to 755 same error.
  20. url: http://aq-dev.co.cc/func.php code: <?PHP class SystemComponent { var $settings; function getSettings() { // System variables $settings['siteDir'] = '/home/andrewq2/public_html/'; // Database variables $settings['dbhost'] = 'localhost'; $settings['dbusername'] = 'andrewq2_aqdev'; $settings['dbpassword'] = '************'; $settings['dbname'] = 'andrewq2_aqdev'; return $settings; } } class DbConnector extends SystemComponent { var $theQuery; var $link; //Function to connect to db function DbConnector(){ // load settings from the parrent class $settings = SystemComponent::getSettings(); $host = $settings['dbhost']; $db = $settings['dbname']; $user = $settings['dbusername']; $pass = $settings['dbpassword']; //connect to mysql $this->link = mysql_connect($host, $user, $pass); mysql_select_db($db); register_shutdown_function(array(&$this, 'close')); } //function to query the db function query($query){ $this->theQuery = $query; return mysql_query($query, $this->link); } //function to fetch the querys results in a array function fetchArray($result){ return mysql_fetch_array($result); } //return last query for debugging function getQuery() { return $this->theQuery; } //return the array as MYSQL_NUM function getNumRows($result){ return mysql_num_rows($result); } //function to close the connection function close(){ mysql_close($this->link); } } class Validator extends SystemComponent{ var $errors; function validateNumber($theinput,$description = ''){ if(is_numeric($theinput)){ return true; //it is a number return true }else{ $this->errors[]=$description; return false;// value not numeric return false } } function validateText($theinput,$description = ''){ if(is_string($theinput)){ return true; //it is a number return true }else{ $this->errors[]=$description; return false;// value not numeric return false } } function validateDate($thedate,$description = ''){ if (strtotime($thedate) === -1 || $thedate == '') { $this->errors[] = $description; return false; }else{ return true; } } function validateEmail($theinput,$description = '') { if(preg_match('/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$/',$theinput)){ return true; }else{ $this->errors[]=$description; return false; } } function foundErrors() { if (count($this->errors) > 0){ return true; }else{ return false; } } function listErrors($delim = ' '){ return implode($delim,$this->errors); } function addError($description){ $this->errors[] = $description; } } class sentry { var $loggedin = false; var $userdata; function sentry(){ session_start(); header("Cache-control: private"); } function logout(){ unset($this->userdata); session_destroy(); return true; } function checkLogin($user = '',$pass = '',$goodRedirect = '',$badRedirect = ''){ $validate = new Validator(); $loginConnector = new DbConnector(); if ($_SESSION['user'] && $_SESSION['pass']){ if (!$validate->validateText($_SESSION['user'])){return false;} if (!$validate->validateText($_SESSION['pass'])){return false;} $getUser = $loginConnector->query("SELECT * FROM users WHERE user = '".$_SESSION['user']."' AND pass = '".$_SESSION['pass'].' AND enabled = 1'); if ($loginConnector->getNumRows($getUser) > 0){ if ($goodRedirect != '') { header("Location: ".$goodRedirect."?".strip_tags(session_id())) ; } return true; }else{ $this->logout(); return false; } }else{ if (!$validate->validateTextOnly($user)){return false;} if (!$validate->validateTextOnly($pass)){return false;} $getUser = $loginConnector->query("SELECT * FROM users WHERE username = '$user' AND password = PASSWORD('$pass') AND enabled = 1"); $this->userdata = $loginConnector->fetchArray($getUser); if ($loginConnector->getNumRows($getUser) > 0){ $_SESSION["user"] = $user; $_SESSION["pass"] = $this->userdata['pass']; $_SESSION["thegroup"] = $this->userdata['thegroup']; if ($goodRedirect) { header("Location: ".$goodRedirect."?".strip_tags(session_id())) ; } return true; }else{ unset($this->userdata); if ($badRedirect) { header("Location: ".$badRedirect) ; } return false; } } } } ?>
  21. Yes, i attached a php file that is getting the error. Removed attachment(contained sensitive info) Thanks, Andrew
  22. Yes,Nothing,Yes This is getting annoying.....
×
×
  • Create New...