PHP.SU

PHP, MySQL -
PHP.SU                                      


  (1): [1]   

> : ,
Sereban
: 27 , 2011 - 14:18:40
Post Id






: 3
-: 2011  


: 0 ()




.
Text_CAPTURE.
:
CODE (htmlphp):

  1. <?php
  2.         require_once('text/captcha.php');
  3.  
  4.    $phrase = null;
  5.    if (isset($session->phrase) && strlen($session->phrase) > 0)
  6.                 $phrase = $session->phrase;
  7.  
  8.    $captcha = Text_CAPTCHA::factory('Image');
  9.  
  10.    $opts = array('font_size' => 20,
  11.                 'font_path' => 'C:/www/phpweb20/data',
  12.                 'font_file' => 'VeraBd.ttf');
  13.  
  14.    $captcha->init(120, 60, $phrase, $opts);
  15.  
  16.    //header('Content-type: image/png');
  17.    echo $captcha->getCAPTCHAAsPng();
  18. ?>


header('Content-type: image/png'); :
:
http://phpweb20/c.php , .


:
:

Strict Standards: Non-static method Text_CAPTCHA::factory() should not be called statically in C:\www\phpweb20\htdocs\c.php on line 8

Strict Standards: Non-static method Text_Password::create() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\CAPTCHA\Driver\Image.php on line 169

Strict Standards: Non-static method Text_Password::_createPronounceable() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\Password.php on line 63

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\CAPTCHA\Driver\Image.php on line 217

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Image\Text.php on line 479

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Image\Text.php on line 675

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Image\Text.php on line 929

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\CAPTCHA\Driver\Image.php on line 305
PNG  IHDRx<"IDATxKL]OiKg״(N4ĆM5uuAK K'ȗtm wLLp£∆ƒ 1E-> 8;t:N≥0<9;u'V$IhXkC5U≈ODJRI$IbjJRm*6A4Su]B2@ 2ѥݻ9Rְ۫]e .ftK"÷ƒ£= 4aųAE *dR]!b&L %ȎnW4s*KJ0 ?P5@√+Alzu%≈∆dMmP7o^z +L&ۍwƒ',I4@[u3;N#,/ &jNeGjkEו.X@÷.krrB`B∞qu.(ffffff"f≠( _l ,[P((]rT*ۍb\__ϫkkkX}}}∆57.÷.2/^ / ≤<;;[rr9D HߺT*EO߸O|>≥g<2.q'N≠^ ƒ0o5dH*#C~KK y2477cL&#2R>z((b1÷VQvjXYY;w∆∆∆s睺nH _|M^*KKKX '''3ٞoX"÷k>߾rMSӹedd$߾cykkkyy9 "¸[[[I≈∆∆∆FGG@k≈zNϫ >z^Fdx`0H÷D"˸G `@Ӫ^%9rƒ[≥k 4nEQy?={ 8p$_W√ <b∆EQAd≥YhL&1p.kgguoSbfֲOߓ;'O∞055őyw'∆nI&pp8ϫ`qqqhh )4h8d-&¢'f@X,FS&x1o!2nhM≤ȥ;g"√ƒEQs&Ӆr:h 넃\hF @P( :t~[.6a9)  |G"?:: SQ$z2 x^߾√6vhVs%≈BA≈{@4$wu#wNx9£/[QMMM'≠;r Bzuu÷6g44Fy}O≤P,≠~ ƒƒb√ǧg>∆ ≈@(4?bQ24qgu+瓍 Hd||≠≠ [£(LGaz8}yʥ@E∆ý< ZHdy-a∆Sz ջ锲={Vx ϞzL&&$8hŒ>sEv[t1e[43g@.£[%IsaEQƒ


, , , . ?
, .
 
 Top
Champion
: 27 , 2011 - 14:40:55
Post Id







: 4350
-: . 2008  
:


: 57 ()




.
, . , .
class::method() $obj->method(). $obj = new class; @ ,
 
 Top
Sereban
: 27 , 2011 - 15:14:56
Post Id






: 3
-: 2011  


: 0 ()




. , . , .
CODE (htmlphp):

  1. <?php
  2.   require_once('text/captcha.php');
  3.  
  4.    $phrase = null;
  5.    if (isset($session->phrase) && strlen($session->phrase) > 0)
  6.      $phrase = $session->phrase;
  7.  
  8.    $c = new Text_CAPTCHA();
  9.    $captcha = $c->factory('Image');
  10.  
  11.    $opts = array('font_size' => 20,
  12.      'font_path' => 'C:/www/phpweb20/data',
  13.      'font_file' => 'VeraBd.ttf');
  14.  
  15.    $captcha->init(120, 60, $phrase, $opts);
  16.  
  17.    //header('Content-type: image/png');
  18.    echo $captcha->getCAPTCHAAsPng();
  19. ?>

:
:

Strict Standards: Non-static method Text_Password::create() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\CAPTCHA\Driver\Image.php on line 169

Strict Standards: Non-static method Text_Password::_createPronounceable() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\Password.php on line 63

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\CAPTCHA\Driver\Image.php on line 217

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Image\Text.php on line 479

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Image\Text.php on line 675

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Image\Text.php on line 929

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\PEAR\Text\CAPTCHA\Driver\Image.php on line 305
┴PNG  IHDRx<"IDATx̰oO^ ╓╪░┐T%6╕-╢ =║F=y@▀^<≤UM⌡'╫yR=l▄ZcbT ╤╟╪╡J&▌┘eYvy┴Yvfg>gY╕\╩v I}iUj7▀╘r▐J╠X▄╕i5Z-▒nw╟/▓T▀Qt▐╧f╛ke <}h▒╜8S)Rt7q╓i╨└▒┴┘L;{┘WWt{&▓8vaQW;ZJ0│╒M}▓+@╥hgT"╝┴╒▌n}Z"Rt=;╚▒╤B╖╓h4x╣⌠E▄4▌d░KT╫╝┼│√8╚┼═█▄╜k■7┬▒4╜╪W╫▀XHw-XzqC╜╛²1R7┬²'╢"vR╓╟⌠EQ&⌠┴╒╗A\J█▒"▄X√]^^╠╠╠`0≤d▓d╘Tj╣###╗.B╣Z█F#3]╒├╬Q▒E⌠D"│┼ │8⌡...╕R╘:²t╨n▐p8d\²╥╙'F\dr≥,...f2█8 E"▐÷>}yr╔RI╖t≈/~≥3:²▌~╫T3w├&V&⌠A┬gff ┘EQ┬╥ox■yZ^^r.\8py╪fh╫J&⌠l[<0█m≤ ╓\BQ╜Vwwwq!~║N╖s8┤z√e?▄Oj╣'O═┼X└║┴y=╞╢հJ╔╡█├╒( ╬∙e4╜@199z FHp`0┬>÷:u▀║P;555;;▀╞ M▐=╧ 8A╛╞^╫ J╔*∙ :╗h╛V╚<|╟n<╓╓9▌┬@╖║pS*∙"▀▐÷c╠╜[╥oHK▓║┴a≤[,╡d] zgg'┴qV╚b╠X,≈√√(┼ ≤≤p:²M▐Yr*tC▌n╥ 3╤b╠H0⌡E ╕yy6╤, ─@┴T( ├││▌▒R╘╢╥╥'2╨╔OY8█C"╫├#;tpf├┌fA²;w^╬|┴┼ LNN^╧r÷Y╘THXZ╜E*X__─P(0╠c┘B│e∙∙∙B║Poa╔■$│n╦╫ }+╘└k╣╞2 s╘╘)~,⌡╝ 0║╥3YeA |M[(╗√│hJ@Q■╟√jE2h ~iJ╪zqL&J6`~~┴<vaW╔Hz╢╟╜z )▌6 .≈ ╜b`{{;÷o1,2i╔82  ╡H┌┐ssss"▒H$6⌡v╩n╞$╞ _k@t4▄▌▌q\Dvww▀┤3<@l√,▓═┤┤┤²;7??▐▐═|#▒h@ 0:::00p╥j╘h2zb,oyx�xq@╣^╫z="" :j╣▌▐▐⌠▌f6÷╜╜╜ud^?r⌠'on╦xx√s╞_╬╬╧╧█fe├vsm╜9="" ▌7ji1sw*∙2q"x0t:²h▒e─-k8╧d─╔╔%÷w,▐!╪z="" ∙j%⌠╛╜╜-,,═$'²n,;44p▄╡%rr]╨t┌d2l╤c┤~^d@="q╩tA╥║╖(┼╒(▒═~" �÷?a+)▐s.≈s{w]mx}="">y∙x<^ok:>11177┤R▀÷-Y┐fY║PpA╚╙ ┘╧F╣lMu╬Y>²░╧"▐█h4╨╬╬J╔╤╤╤ ⌡7╪yC4o*═er╧\╝u-▀ O╒jvy╡(╔'╗9▌8noo/┐w]YYY]]g╨EE"Kd;I=FU>}*<r╧\.╖l>÷Dz╣Z5⌡^╞wxx`04u9F╛╨w6╤V╚R5╞≈Z╒O<vn⌡x┬▄_^]r^*٨PH╔▌÷└{∙xi╤╧o═╟╘÷CG╠ W═▌╜DU├m╗^⌡E╙╔RU7lS╛╜⌡[■<╙■6│√│Cb∙^ ╜n═▒(▄C+≤nS╚9═]╦╥*╗1r"nb$IEND╝B`┌<@l√,▓═┤┤┤²;7??▐▐═|#▒h@>
 
 Top
ugin_root
: 27 , 2011 - 16:39:54
Post Id






: 134
-: 2011  
:


: 5 ()




Sereban

PHP:

  1. <?PHP
  2.    require_once('text/captcha.php');
  3.  
  4.     $phrase = null;
  5.     if (isset($session->phrase) && strlen($session->phrase) > 0)
  6.       $phrase = $session->phrase;
  7.  
  8.     $captcha = new Text_CAPTCHA();
  9.     $captcha->factory('Image');
  10.  
  11.     $opts = array('font_size' => 20,
  12.       'font_path' => 'C:/www/phpweb20/data',
  13.       'font_file' => 'VeraBd.ttf');
  14.  
  15.     $captcha->init(120, 60, $phrase, $opts);
  16.  
  17.     header('Content-type: image/png');
  18.     echo $captcha->getCAPTCHAAsPng();
  19. ?>

?
PHP:

  1. $c = new Text_CAPTCHA();
  2. $captcha = $c->factory('Image');

( : 27 , 2011 - 16:41:26)

 
 Top
Sereban
: 28 , 2011 - 16:39:49
Post Id






: 3
-: 2011  


: 0 ()




ugin_root :
?
CODE (htmlphp):

  1. $c = new Text_CAPTCHA();
  2. $captcha = $c->factory('Image');

- Text_CAPTCHA;
- factory , Image_Text .

, . - .
. .

<?php
require_once('text/captcha.php');

$phrase = null;

$captcha = Text_CAPTCHA::factory('Image');

$imageOptions = array(
'font_size' => 24,
'font_path' => '../data',
'font_file' => 'VeraBd.TTF',
'text_color' => '#DDFF99',
'lines_color' => '#CCEEDD',
'background_color' => '#555555',
'antialias' => true
);

$captcha->init(200, 80, $phrase, $imageOptions);

header('Content-type: image/png');
echo $captcha->getCAPTCHAAsPng();

?>

- PEAR.php, static isError.
, pear ???
 
 Top
(1): [1]
: 1 (: 1, : 0)
« »


.
.
.
 



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

 
Powered by ExBB FM 1.0 RC1. InvisionExBB