Jump to content

Byron

Moderators
  • Posts

    9,153
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by Byron

  1. We've disabled those options because it put too much of a load on the servers.
  2. Just upload or ftp that text file I posted and the true type font that's given inside the script and make sure you rename the .txt to .php and you've got your own.
  3. I'm seeing your site just fine. Did you follow the link that jje posted on how to clear your cache?
  4. Maximum execution time for php scripts is 30 seconds, so I'm guessing it's the same for cgi/perl scripts, although I'm not 100% sure about this.
  5. Here's the original script. This will not work on Johnny because Johnny doesn't have the Imagick Class. http://byrondallas.heliohost.org/php/server_load.txt
  6. Your account has been manually unsuspended. If you still see the suspended page then you should try clearing your browsers cache. http://wiki.helionet.org/Clear_your_cache -- Please spare a few minutes to take our brief survey: http://feedback.heliohost.org/ Your participation in this survey is greatly appreciated.
  7. This support request is being escalated to our root admin.
  8. Your account has been manually unsuspended. If you still see the suspended page then you should try clearing your browsers cache. http://wiki.helionet.org/Clear_your_cache -- Please spare a few minutes to take our brief survey: http://feedback.heliohost.org/ Your participation in this survey is greatly appreciated.
  9. We're objects of God's love. Now to be an object of love, what does the giver expect in return? Love, and that's why He made the human race. Angels couldn't respond, and so He made the human race with that indwelling attribute of will to either respond to His love or to reject it.
  10. Your account has been manually unsuspended. If you still see the suspended page then you should try clearing your browsers cache. http://wiki.helionet.org/Clear_your_cache -- Please spare a few minutes to take our brief survey: http://feedback.heliohost.org/ Your participation in this survey is greatly appreciated.
  11. I should have mentioned also that you don't actually need a true type font. We can use the server fonts that come with ImageMagick. This tool will give you the font names and show you what they look like: http://byrondallas.heliohost.org/php/tools...font-viewer.php Just replace this line in the script: $draw->setFont("trebuchet_italic.ttf"); With something like this (depending on the font name): $draw->setFont("URW-Palladio-Roman"); That's the font I'm using now on my demo page: http://byrondallas.heliohost.org/php/counter/demo.php btw, this script only works for Stevie. Johnny doesn't have the Imagick Class.
  12. Your solution was MUCH better than my long drawn out solution. Thank you!
  13. The only way that I know to do it would be with a cron job. The cron job would delete the count text file EVERY 24 hours. Or you could add this to your script. What it does is create a text file just for the purpose of checking how old it is. If the "time_check.txt" is older than 24 hours when somebody visits your page, it will delete the "time_check.txt" and the "$file.txt" causing the counter to start over. The problem with this is that it might get reset in the middle of the day depending on when your last visiter was. $ckfile = "time_check.txt"; if (!file_exists($ckfile)) { file_put_contents($ckfile, "nothing"); } else { # check file age $age = time()-filemtime($ckfile); # how many days before file gets deleted $dys = 1; $expire = 60*60*24*$dys; if ( $age > $expire ) { unlink($ckfile); unlink("$file.txt"); } }
  14. Also if you wanted to get a few stats from your visitors you could add this to the script: # variables for data $agent = $_SERVER[HTTP_USER_AGENT]; $ip = $_SERVER[REMOTE_ADDR]; $host = gethostbyaddr($ip); $page = $_SERVER[HTTP_REFERER]; # compile new entry $time = date( "m/d/y G.i:s", time() ); $stats = "<b>Time:</b> $time<br><b>IP:</b> $ip<br><b>Host:</b> $host<br><b>Agent:</b> $agent<br><b>Viewed</b> <a href=\"$page\">$page</a>\n"; # write data to the file file_put_contents("$file.stats.txt", $stats, FILE_APPEND); Then read the data file to an html output like so: Time: 04/24/11 11.08:10 IP: 207.7.92.114 Host: setcronjob.com Agent: SetCronJob/1.0 (+http://www.setcronjob.com/) Viewed http://your_site.heliohost.org/tracker.php
  15. I had to manually unsuspend your account. Refresh your cache if you still see the suspended page.
  16. Here's a custom image counter that can be used with multible pages. Requires the font I've provided or one of your own. The way I use it on my site is to just put it in it's own directory because it will create a seperate data (text file) file for every page you use the counter on. Once you upload the script and the font to your site it's just a matter of adding the counter image tag to your pages like below: <img src="http://byrondallas.heliohost.org/php/counter/index.php?file=demo_page&back=yellow&color=red"> You change the page identifier and colors by appending it to the url: file=demo_page = identifies the page your counting back=yellow = the image color color=red = the font color Here's a Demo Page with the script: http://byrondallas.heliohost.org/php/counter/demo.php
  17. If you plan on using ASP.NET on your site then you need to be on the server Johnny. ASP.NET doesn't work on Stevie.
  18. Please post your old domain and the domain you tried to change it to.
  19. Byron

    php.ini

    We don't allow people to edit the php.ini file. To stop php errors, add this to the top of your php pages: error_reporting(0);
  20. I'm not seeing that account in our database. Did you forget to login every 30 days? Feel free to create another account if you like.
×
×
  • Create New...