Abuse Report
1 .  Thread's URL
2 .  Comment
3 .  Your Name
4 .  E-mail
    




User Name   Password
Views:339     

<<Previous ThreadNext Thread>>
Page 1 of 1    
Title: Free PHP Tester
  
Author Comment
Smurfie
| Move to Bottom
 
Author



Rank:none
Status:
Score: 0
Posts: 23
From:
Registered: 07-06-2005
Time spent: 0 hours

(Date Posted:04-25-2007 7:09 AM)

Hi, everyone.
If there is any programmers between you, I recommand you to check this website out: http://forumferney.free.fr/stester.html.
It's a dynamic website on which you can directly execute PHP scripts to test them (without uploading) and for free. You can even use the script on your own website! (by looking at the sourcecode you can call the php script from your website directly).

--------------------------------------------------------------

Pam-Scotland
| Move to Top | Move to Bottom
 
1#



Rank:none
Status:
Score:0
Posts:62
From:
Registered: 01-05-2007
Time spent: 0 hours


(Date Posted:05-04-2007 5:19 AM)

sounds very intersting smurfie but what is a PHP tester ??
Guest
| Move to Top
2#



RE:Free PHP Tester
(Date Posted:02-12-2008 4:28 AM)



<?php



 



/*



//
+--------------------------------------------------------------------------+



// |
Project:      NVTracker - NetVision
BitTorrent Tracker                                        |



//
+--------------------------------------------------------------------------+



// |
This file is part of NVTracker. NVTracker is based on BTSource,                  |



// |
originally by RedBeard of TorrentBits, extensively modified by                    |



// |
Gartenzwerg.                                                                                                                       
|



//
|                                                                                                                                                  |



// |
NVTracker is free software; you can redistribute it and/or modify              |



// | it
under the terms of the GNU General Public License as published by        |



// | the
Free Software Foundation; either version 2 of the License, or              |



// | (at
your option) any later version.                                                                          |



//
|                                                                                                                                                 
|



// |
NVTracker is distributed in the hope that it will be useful,                        |



// | but
WITHOUT ANY WARRANTY; without even the implied warranty of                    |



// |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                      |



// | GNU
General Public License for more details.   
                                                    |



//
|                                                                                                                                                 
|



// | You
should have received a copy of the GNU General Public License              |



// |
along with NVTracker; if not, write to the Free Software Foundation,        |



// |
Inc., 59 Temple Place, Suite 330, Boston, MA 
02111-1307  USA                      |



//
+--------------------------------------------------------------------------+



// | Obige Zeilen dürfen nicht entfernt werden!      Do not remove above lines! |



//
+--------------------------------------------------------------------------+



  */



 



require
"include/bittorrent.php";



dbconn();



 



/*



loggedinorreturn();



 



if
(get_user_class() < UC_MODERATOR)



              stderr("Error",
"Permission denied.");



*/



 



 



function
get_count($inactive_time)



{



      $arr =
mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS cnt FROM users WHERE
UNIX_TIMESTAMP(`last_access`)<".$inactive_time));



      return $arr["cnt"];



}



             



function
stat_row($time, $count)



{



      global $usercount;



     



      echo '<tr><td
class="tablea">', $time, "</td>\n";



      echo '<td class="tableb"
nowrap><img src="'.$GLOBALS["PIC_BASE_URL"].'bar.gif"
height="9" width="';



      echo
(int)((float)$count/(float)$usercount*600), '"> ', $count, '</td></tr>',
"\n";



}



 



stdhead("Benutzeraktivitäts-Chart");



begin_frame("Benutzeraktivitäts-Chart", FALSE,
"650px");



begin_table(TRUE);



echo '<tr><td
class="tablecat">Inakt. seit</td><td
class="tablecat">Anzahl (prozentual von
Gesamtbenutzern)</td></tr>', "\n";



 



$curtime
= time();



$uarr =
mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS cnt FROM users"));



$usercount
= $uarr["cnt"];



 



// 24h,
stdl. --> 24x



for
($I=0; $I<24; $I++) {



      stat_row($I."h",
get_count($curtime-($I*3600)));



}



 



// 48 Stunden
(2d), 3 stdl. --> 8x



for
($I=24; $I<48; $I+=3) {



      stat_row($I."h",
get_count($curtime-($I*3600)));



}



 



// 72
Stunden (3d), 6 stdl. --> 4x



for
($I=48; $I<72; $I+=6) {



      stat_row($I."h",
get_count($curtime-($I*3600)));



}



 



// 96
Stunden (4d), 12 stdl. --> 2x



for
($I=72; $I<96; $I+=12) {



      stat_row($I."h",
get_count($curtime-($I*3600)));



}



 



// 5-7d,
24stdl. --> 3x



for
($I=4; $I<7; $I++) {



      stat_row($I."d",
get_count($curtime-($I*3600*24)));



}



 



// 1-6
Wochen, wtl.



for
($I=1; $I<7; $I++) {



      stat_row($I."w",
get_count($curtime-($I*3600*24*7)));



}



 



end_table();



end_frame();



stdfoot();



?>



 
 Welcome to The Collection of Flashlights!Wolf-eyes ,your eyes break the darkness!
Hop to: 
<<Previous ThreadNext Thread>>
Page 1 of 1    

Quick Reply
Topic:
Comment:
(Allow UBB Code)
Subscribe to this topic and be notified when it is replied to by email.     Allow signature     
WOW Gold   CD Keys   Buy WOW Gold   Shareware Free Download   Free Message Board  Flashlight  WOW CD key  RC helicopter  
Sign Up | Create | About us | SiteMap | Features | Forums | Show Off | Faq | Support
Copyright © 2000-2008 Aimoo free forum All rights reserved.