Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/topic.php on line 737
PHP.SU :: [2]

 PHP.SU

PHP, MySQL -
PHP.SU                                      


  (2): « 1 [2]   

> 
Jampire
: 13 , 2011 - 19:59:56
Post Id







: 106
-: 2011  


: 0 ()




. . (
()
:
()

:
()

, :
()

( : 13 , 2011 - 20:14:24)



-----
!!! ...
 
 Top
EuGen
: 13 , 2011 - 20:24:36
Post Id






: 9095
-: 2007  
: Berlin


: 707 ()




.
,
error_reporting(2047);
-


-----
- . .. .
 
 Top
Jampire
: 13 , 2011 - 20:36:14
Post Id







: 106
-: 2011  


: 0 ()




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

( : 13 , 2011 - 20:40:59)



-----
!!! ...
 
 Top
EuGen
: 13 , 2011 - 20:50:23
Post Id






: 9095
-: 2007  
: Berlin


: 707 ()




, ...


-----
- . .. .
 
 Top
Jampire
: 13 , 2011 - 20:54:50
Post Id







: 106
-: 2011  


: 0 ()




EuGen, , , ...

( : 13 , 2011 - 21:19:57)



-----
!!! ...
 
 Top
Jampire
: 16 , 2011 - 18:19:22
Post Id







: 106
-: 2011  


: 0 ()




up. ,


-----
!!! ...
 
 Top
VokpAllk
: 18 , 2011 - 00:09:29
Post Id






: 20
-: . 2011  


: 0 ()




- header .
 
 Top
Jampire
: 18 , 2011 - 09:43:32
Post Id







: 106
-: 2011  


: 0 ()




c header . ( ), .


-----
!!! ...
 
 Top
VokpAllk
: 18 , 2011 - 11:36:23
Post Id






: 20
-: . 2011  


: 0 ()




header ?
ob_start()
header

:
PHP:

  1.  
  2. //
  3.  
  4. //
  5.  
  6. $content = ob_get_contents();
  7.  
  8. //
  9.  
  10. header('Content-type: image/png');
  11. $im = imagecreatefrompng ("test.png");
  12. imagepng ($im);
  13.  
  14.  

( : 18 , 2011 - 11:40:25)

 
 Top
Jampire
: 18 , 2011 - 18:48:12
Post Id







: 106
-: 2011  


: 0 ()




. .
()
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

( : 18 , 2011 - 18:50:16)



-----
!!! ...
 
 Top
VokpAllk
: 18 , 2011 - 21:31:04
Post Id






: 20
-: . 2011  


: 0 ()




- , , .
 
 Top
Jampire
: 21 , 2011 - 12:16:31
Post Id







: 106
-: 2011  


: 0 ()




,
?> <?
?


-----
!!! ...
 
 Top
(2): « 1 [2]
: 0 (: 0, : 0)
« , »


.
.
.
 



Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB