3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? /* 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>
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: include_once(./class_upload.php): failed to open stream: No such file or directory in /in/hi34Z on line 11 Warning: include_once(): Failed opening './class_upload.php' for inclusion (include_path='.:') in /in/hi34Z on line 11 <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"> Notice: Undefined variable: send in /in/hi34Z on line 64 </div></td> </tr> <form action="" 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>
Output for hhvm-3.10.0 - 3.12.0
Warning: File not found: ./class_upload.php in /in/hi34Z on line 11 <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"> Notice: Undefined variable: send in /in/hi34Z on line 64 </div></td> </tr> <form action=" Notice: Undefined variable: PHP_SELF in /in/hi34Z on line 92 " 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>
Output for 5.1.0 - 5.3.29
<? /* 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"> Notice: Undefined variable: send in /in/hi34Z on line 64 </div></td> </tr> <form action="" 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>
Output for 5.0.4 - 5.0.5
<? /* 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"> Notice: Undefined variable: send in /in/hi34Z on line 64 </div></td> </tr> <form action=" Notice: Undefined variable: PHP_SELF in /in/hi34Z on line 92 " 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>
Output for 4.3.0 - 5.0.3
<? /* 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"> Notice: Undefined variable: send in /in/hi34Z on line 64 </div></td> </tr> <form action=" Notice: Undefined variable: PHP_SELF in /in/hi34Z on line 92 " 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>