PHP.SU

PHP, MySQL -
PHP.SU                                      

(8): [1] 2 3 4 5 6 7 8 »

>  : 106
Jampire : 21 , 2011 - 12:16:31 • : • : ,

: 26
: 220
,
?> <?
?
Jampire : 18 , 2011 - 18:48:12 • : • : ,

: 26
: 220
. .
()
CODE (htmlphp):

  1. Notice: Undefined variable: status in \www\test\ping.php on line 285
  2.  
  3. Notice: Undefined variable: img in \www\test\ping.php on line 286
  4.  
  5. Fatal error: Call to a member function load() on a non-object in \www\test\ping.php on line 286


()
PHP:

  1. if ($status==0) {
  2.         $img->load("online.png");

2
Jampire : 18 , 2011 - 18:44:48 • : SQL • : ,

: 19
: 242
_POST
Jampire : 18 , 2011 - 11:19:29 • : 3 ? • : PHP

: 5
: 1144
200 ( ). . .
Jampire : 18 , 2011 - 10:03:33 • : • : ,

: 4
: 50
xml rss . ).
()
Jampire : 18 , 2011 - 09:43:32 • : • : ,

: 26
: 220
c header . ( ), .
Jampire : 17 , 2011 - 19:45:38 • : • :

: 3
: 1907
console,
Jampire : 16 , 2011 - 18:19:22 • : • : ,

: 26
: 220
up. ,
Jampire : 13 , 2011 - 21:50:25 • : input name • : PHP

: 7
: 597
:
CODE (javascript):

  1. onsubmit="1.value='';2.value=''"

. , .
Jampire : 13 , 2011 - 21:41:08 • : • : ,

: 4
: 50
xml
Jampire : 13 , 2011 - 20:54:50 • : • : ,

: 26
: 220
EuGen, , , ...
Jampire : 13 , 2011 - 20:36:14 • : • : ,

: 26
: 220
PHP:

  1. <?PHP
  2. $ip='192.168.205.133'; // $_GET['ip'];
  3. $down='failed.png';  
  4. $img_online='online.png';  
  5. $img_offline='offline.png';
  6. $online_color='green';
  7. $offline_color='red';
  8. if (!preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/',$ip)) {readfile($down); exit;}    
  9. exec("ping $ip");  
  10. header('Content-type: image/png');  
  11. if ($status==0) {
  12.         $img->load("online.png");
  13.                 $img->text($ip,"Arial",$online_color,30,-50,10,10,0);
  14.                 $img->output();
  15.                 $img->destroy();
  16. } else {
  17.         $img->load("offline.png");
  18.                 $img->text($ip,"Arial",$offline_color,30,-50,10,10,0);
  19.                 $img->output();
  20.                 $img->destroy();
  21. }
  22. ?>

, IP, destroy()
2
CODE (SQL):

  1. Warning: Cannot MODIFY header information - headers already sent BY (output started at \www\test\ping.php:1) IN \www\test\ping.php ON line 284
  2.  
  3. Fatal error: Call TO a member FUNCTION LOAD() ON a non-object IN \www\test\ping.php ON line 286

286:
PHP:

  1.         $img->load("online.png");



error_reporting(2047);
2 :
CODE (SQL):

  1. Notice: Undefined variable: STATUS IN \www\test\ping.php ON line 286
  2.  
  3. Notice: Undefined variable: img IN \www\test\ping.php ON line 287
Jampire : 13 , 2011 - 19:59:56 • : • : ,

: 26
: 220
. . (
()
:
()

:
()

, :
()
Jampire : 13 , 2011 - 19:49:13 • : • : ,

: 26
: 220
EuGen . .
Jampire : 13 , 2011 - 19:29:57 • : • : ,

: 26
: 220
. :
()

.

- IP, ( $ip) , - online / offline.
1 .

(8): [1] 2 3 4 5 6 7 8 »
Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB