3v4l.org

run code in 300+ PHP versions simultaneously
<? /* Tipo : classe Nome : UpLoad Data : 29/08/2003 Autor: Wonder Alexandre Luz Alves Desc : Exemplo de como utilizar a class UpLoad Versão: 1.2 */ include_once("./class_upload.php"); ?> <html> <head> <title>PHP_Upload class</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .testo { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .titulo { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bolder; color:#FFFFFF; } .eu { font-family: Arial, Helvetica, sans-serif; font-size: 11px; } --> </style> </head> <body> <table align="CENTER" width="500" border="0"> <tr> <td bgcolor="000099" colspan="2"><div align="center" class="titulo">PHP Upload class</div></td> </tr> <tr> <td height="10" colspan="2"> <div align="left" class="eu"> /*<br> Tipo : classe<br> Nome : UpLoad<br> Data : 29/08/2003<br> Autor : Wonder Alexandre Luz Alves<br> Desc : Exemplo de como utilizar a class UpLoad<br> Versão : 1.2<br> Contato: <a href="mailto:wonderalexandre@yahoo.com.br">wonderalexandre@yahoo.com.br</a><br> */<br> </CENTER> </td> </tr> <tr> <td height="10" colspan="2"><div align="center"> <?php if ( $send == "ok" && $_FILES[userfile]['name'] ){ $upload = new upload(); if ($upload -> putFile ("userfile")) { print "<div class=\"testo\"><br>UpLoad do arquivo com sucesso.<br>"; print "Arquivo: "; print $upload->file_name; print "<br>Diretorio: "; print $upload->dir; print "<br><br></div>"; } if ($upload->Miniatura()) { print "<div class=\"testo\">Miniatura criada com sucesso.<br>"; print "Arquivo: "; print $upload->MINI_name; print "<br>Diretorio: "; print $upload->MINI_path; print "<br><br></div>"; $upload->Mostrar_MINI(); } } ?> </div></td> </tr> <form action="<?php $PHP_SELF; ?>" method="post" enctype="multipart/form-data"> <tr> <td colspan="2"> <p align="center"> <input name="userfile" type="file" class="testo"> </p> </td> </tr> <tr> <td colspan="2"> <p align="center"> <input name="Submit" type="submit" value="Upload File &gt;&gt;" class="testo"> <input name="send" type="hidden" value="ok"> </p></td> </tr></form> </table> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 38
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 38
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 38
Branch analysis from position: 25
Branch analysis from position: 38
Branch analysis from position: 9
filename:       /in/hi34Z
function name:  (null)
number of ops:  41
compiled vars:  !0 = $send, !1 = $upload, !2 = $PHP_SELF
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INCLUDE_OR_EVAL                                          '.%2Fclass_upload.php', INCLUDE_ONCE
   12     1        ECHO                                                     '%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EPHP_Upload+class%3C%2Ftitle%3E%0A%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3Diso-8859-1%22%3E%0A%3Cstyle+type%3D%22text%2Fcss%22%3E%0A%3C%21--%0A.testo+%7B%0A%09font-family%3A+Verdana%2C+Arial%2C+Helvetica%2C+sans-serif%3B%0A%09font-size%3A+10px%3B%0A%7D%0A.titulo+%7B%0A%09font-family%3A+Verdana%2C+Arial%2C+Helvetica%2C+sans-serif%3B%0A%09font-size%3A+12px%3B%0A%09font-weight%3A+bolder%3B%0A%09color%3A%23FFFFFF%3B%0A%7D%0A.eu+%7B%0A%09font-family%3A+Arial%2C+Helvetica%2C+sans-serif%3B%0A%09font-size%3A+11px%3B%0A%7D%0A%0A--%3E%0A%3C%2Fstyle%3E%0A%3C%2Fhead%3E%0A%0A%3Cbody%3E%0A%3Ctable+align%3D%22CENTER%22+width%3D%22500%22+border%3D%220%22%3E%0A++%3Ctr%3E+%0A++++%3Ctd+bgcolor%3D%22000099%22+colspan%3D%222%22%3E%3Cdiv+align%3D%22center%22+class%3D%22titulo%22%3EPHP+Upload+%0A++++++++class%3C%2Fdiv%3E%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%0A++%3Ctr%3E%0A++++%3Ctd+height%3D%2210%22+colspan%3D%222%22%3E%0A%3Cdiv+align%3D%22left%22+class%3D%22eu%22%3E%0A++++%2F%2A%3Cbr%3E%0ATipo+++%3A+classe%3Cbr%3E%0ANome+++%3A+UpLoad%3Cbr%3E%0AData+++%3A+29%2F08%2F2003%3Cbr%3E%0AAutor++%3A+Wonder+Alexandre+Luz+Alves%3Cbr%3E%0ADesc+++%3A+Exemplo+de+como+utilizar+a+class+UpLoad%3Cbr%3E%0AVers%C3%A3o+%3A+1.2%3Cbr%3E%0AContato%3A+%3Ca+href%3D%22mailto%3Awonderalexandre%40yahoo.com.br%22%3Ewonderalexandre%40yahoo.com.br%3C%2Fa%3E%3Cbr%3E%0A%0A%2A%2F%3Cbr%3E%0A%0A%3C%2FCENTER%3E%0A%09%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E+%0A++++%3Ctd+height%3D%2210%22+colspan%3D%222%22%3E%3Cdiv+align%3D%22center%22%3E%0A++++'
   64     2        IS_EQUAL                                         ~4      !0, 'ok'
          3      > JMPZ_EX                                          ~4      ~4, ->9
          4    >   FETCH_CONSTANT                                   ~6      'userfile'
          5        FETCH_R                      global              ~5      '_FILES'
          6        FETCH_DIM_R                                      ~7      ~5, ~6
          7        FETCH_DIM_R                                      ~8      ~7, 'name'
          8        BOOL                                             ~4      ~8
          9    > > JMPZ                                                     ~4, ->38
   66    10    >   NEW                                              $9      'upload'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $9
   68    13        INIT_METHOD_CALL                                         !1, 'putFile'
         14        SEND_VAL_EX                                              'userfile'
         15        DO_FCALL                                      0  $12     
         16      > JMPZ                                                     $12, ->25
   69    17    >   ECHO                                                     '%3Cdiv+class%3D%22testo%22%3E%3Cbr%3EUpLoad+do+arquivo+com+sucesso.%3Cbr%3E'
   70    18        ECHO                                                     'Arquivo%3A+'
   71    19        FETCH_OBJ_R                                      ~13     !1, 'file_name'
         20        ECHO                                                     ~13
   72    21        ECHO                                                     '%3Cbr%3EDiretorio%3A+'
   73    22        FETCH_OBJ_R                                      ~14     !1, 'dir'
         23        ECHO                                                     ~14
   74    24        ECHO                                                     '%3Cbr%3E%3Cbr%3E%3C%2Fdiv%3E'
   77    25    >   INIT_METHOD_CALL                                         !1, 'Miniatura'
         26        DO_FCALL                                      0  $15     
         27      > JMPZ                                                     $15, ->38
   78    28    >   ECHO                                                     '%3Cdiv+class%3D%22testo%22%3EMiniatura+criada+com+sucesso.%3Cbr%3E'
   80    29        ECHO                                                     'Arquivo%3A+'
   81    30        FETCH_OBJ_R                                      ~16     !1, 'MINI_name'
         31        ECHO                                                     ~16
   82    32        ECHO                                                     '%3Cbr%3EDiretorio%3A+'
   83    33        FETCH_OBJ_R                                      ~17     !1, 'MINI_path'
         34        ECHO                                                     ~17
   84    35        ECHO                                                     '%3Cbr%3E%3Cbr%3E%3C%2Fdiv%3E'
   85    36        INIT_METHOD_CALL                                         !1, 'Mostrar_MINI'
         37        DO_FCALL                                      0          
   90    38    >   ECHO                                                     '++++++%3C%2Fdiv%3E%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Cform+action%3D%22'
   92    39        ECHO                                                     '%22+method%3D%22post%22+enctype%3D%22multipart%2Fform-data%22%3E+%3Ctr%3E%0A++++%3Ctd+colspan%3D%222%22%3E%0A++++++++%3Cp+align%3D%22center%22%3E+%0A++++++++++%3Cinput+name%3D%22userfile%22+type%3D%22file%22+class%3D%22testo%22%3E%0A++++++++%3C%2Fp%3E%0A++++++%3C%2Ftd%3E%0A++%3C%2Ftr%3E%0A++%3Ctr%3E+%0A++++%3Ctd+colspan%3D%222%22%3E+%3Cp+align%3D%22center%22%3E+%0A++++++++%3Cinput+name%3D%22Submit%22+type%3D%22submit%22+value%3D%22Upload+File+%26gt%3B%26gt%3B%22+class%3D%22testo%22%3E%0A++++++++%3Cinput+name%3D%22send%22+type%3D%22hidden%22+value%3D%22ok%22%3E%0A++++++%3C%2Fp%3E%3C%2Ftd%3E%0A++%3C%2Ftr%3E%3C%2Fform%3E%0A%3C%2Ftable%3E%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  107    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.53 ms | 1399 KiB | 13 Q