<?
/*
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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
- Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- <?
/*
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">
Warning: 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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
- Output for 8.0.13
- 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">
Warning: 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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
- Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.4.33
- 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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
- Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32
- <?
/*
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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
- Output for 7.3.32 - 7.3.33, 7.4.26
- 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">
</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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
- Output for 7.1.20
- Warning: include_once(): open_basedir restriction in effect. File(./class_upload.php) is not within the allowed path(s): (/tmp:/in) in /in/hi34Z on line 11
Warning: include_once(./class_upload.php): failed to open stream: Operation not permitted 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 >>" 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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
- Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.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 >>" class="testo">
<input name="send" type="hidden" value="ok">
</p></td>
</tr></form>
</table>
</body>
</html>
preferences:
238.37 ms | 406 KiB | 355 Q