Jump to content

Byron

Moderators
  • Posts

    9153
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by Byron

  1. Stevie doesn't have MONO. You need to signup on the Johnny server for ASP.NET
  2. Try logging in through here: http://stevie.heliohost.org:2082/frontend/x3/index.phpcp
  3. We're having a few problems and until we get them fixed, you should be able to login this way: http://stevie.heliohost.org:2082/
  4. If you did that and you were using cron to run your script every minute of the day, I would suspend your account. If you did it by some outside cron service then we don't have any problems with that. It's all the same whether I have multible functions inside one script or I divide it up into seven scripts. Only one script is getting run once every 24 hours. Like I said ealier, I could actually go to the cron manager and do exactly what I'm doing now by setting up several cron tasks, each task with a different script. Anyway, we (the administrators) keep an eye on cron jobs and nobody goes un-noticed.
  5. My cron script is legal the way it's set up. We are allowed 2 cron runs a day, but we can have 50 cron jobs if we want, just as long as only 2 out of that 50 get run in a 24 hour period. So with my script, I'm just using one of my allowed two cron runs and using it to run 7 tasks, each one on a different day of the week. I clean out several folders on my site and a few other things via cron. You could actully go to the cron manager and set it up that way, but it would be more of a pain to figure out the days and different times. I've even written one that will run a cron task for each day of the month, but I don't have enough tasks to use it.
  6. Thanks. I wasn't aware of this.
  7. Thanks Krydos!
  8. I'm sorry but I'm not seeing your account in our database. What url were you using to login to the cpanel?
  9. You were suspended because you were:
  10. Please clear your cache.
  11. Go to this folder "forum.mydomain.com" (the folder that the forum is in) and add the code below to it's htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^forum\.mydomain\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.forum\.mydomain\.com$ RewriteRule ^/?$ "http\:\/\/username\.heliohost\.org\/" The address bar will still show the heliohost url and I'm not sure if you can change that when going from one domain to another, but I could be wrong.
  12. I'm not seeing your account as being up for deletion. It's still showing as being queued. So your ok.
  13. I'm assuming your account is on Johnny? Johnny has Magic Quotes turned on and it should be off: magic_quotes_gpc = On Then you would always add stripslashes() to compensate for a server who had it on or off. $text = stripslashes($_POST[text]); But you don't have to do that as soon as xaav turns it off.
  14. Here's some more info: http://wiki.helionet.org/MySQL_Databases
  15. The php mail() function doesn't require you to set up any email account at your cpanel. It automatically sends the mail through the mail server using your username. If you looked at the email headers from the email being sent it would show something like this: from: user_name@stevie.heliohost.org user_name would be your username. No matter what you specified in the mail function $to and $from, the email headers would show this for tracking purposes.
  16. This was written by a friend of mine. Upload the text version to your image directory and it will display a clickable thumb to each image. It's coded to only work for images larger than 100x100 but you can change that. Demo http://byrondallas.heliohost.org/images/fs/index.php Script http://byrondallas.heliohost.org/images/fs/index.txt
  17. Did you go to "Default Address" at your cPanel and set that up?
  18. Seems there's a problem with connecting to the cPanel on Stevie. Escalating to the root administrator...
  19. Do you mean you can't connect through cPanel?
  20. Here's an example of random text on an image. http://byrondallas.heliohost.org/8_Ball.php Uses the same script above but instead of a countdown script it uses an array of answers and randomly picks one.
  21. Good job! Thanks for taking the time to share this with everybody jje.
  22. Ever wanted to annotate an image on your web site, maybe with random text or a countdown? With the Imagick Class it's really simple. Just copy and paste the code below into a php file and then add the php file inside an image tag: <?php # Define countdown, if your using a countdown $day = 7; $month = 7; $year = 2012; $days = (int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400); $days = $days+1; # Your image goes here, relative path $image = new Imagick("../images/seaside.jpg"); $draw = new ImagickDraw(); /* The $x and $y attributes and the text that's displayed. The $x and $y attributes are for moving the text from the left or top by pixels after setting the gravity. */ $x = 0; # pixels from the left $y = 30; # pixels from the top $text = "$days days til Vacation!"; # The font and font attributes $draw->setFont("Times-Italic"); $draw->setFontSize(40); $draw->setFillColor("white"); $draw->setStrokeColor("white"); $draw->setStrokeWidth(0.5); $draw->setGravity(Imagick::GRAVITY_NORTH); $image->annotateImage($draw, $x, $y, 0, $text); /* Other gravity settings Imagick::GRAVITY_NORTHWEST Imagick::GRAVITY_NORTH Imagick::GRAVITY_NORTHEAST Imagick::GRAVITY_WEST Imagick::GRAVITY_CENTER Imagick::GRAVITY_EAST Imagick::GRAVITY_SOUTHWEST Imagick::GRAVITY_SOUTH Imagick::GRAVITY_SOUTHEAST */ # Make headers header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Content-type: image/jpeg"); echo $image; ?> The finished image: http://byrondallas.heliohost.org/php/countdown-imagick.php Highlighted code: http://byrondallas.heliohost.org/php/countdown-imagick.phps Use an <img> tag to code it on your page: <img src="http://byrondallas.heliohost.org/php/countdown-imagick.php" width="384" height="288" border="0"> Server fonts to choose from: http://byrondallas.heliohost.org/php/tools...font-viewer.php Of if you choose to use a True Type Font, you can replace this line with the relative path to your font: $draw->setFont("fonts/my-font.ttf");
  23. There was another thread about a php login script and it brought back to mind this .htpasswd file password generator for password protected directories. It's a little easier than going through the cpanel steps to add another user. Just make sure when you paste in the new user and password that it begins on a new line in the .htpasswd file. http://byrondallas.heliohost.org/alpha1ome...pt_password.php <html> <head> <title>.htpasswd File Password Encryption</title> </head> <body> <h2>.htpasswd File Password Encryption</h2> <form method="post" action=""> Enter Username<br> <input name="user" value="<?php echo $_POST[user]; ?>" size="20"> <br><br> Enter Password<br> <input name="password" value="<?php echo $_POST[password]; ?>" size="20"> <br><br> <input type="submit" name="submit" value="Encrypt"> <br><br> <?php if ( $_POST[password] && $_POST[user] ) { $user = $_POST[user]; $password = $_POST[password]; $encryptedPassword = crypt($password); echo ".htpasswd File Code<br>\n"; echo "<input type=\"text\" size=\"50\" value=\"$user:$encryptedPassword\">"; } ?> </form> </body> </html>
×
×
  • Create New...