Hi Guys,
Can someone confirm for me that the code below will move an uploaded
file and give it the same name as the original image file name ?
$file_dir = /home/uploads;
foreach($_FILES as $file_name = $file_array) {
echo path: .$file_array[tmp_name].br/\n;
echo name:
On Thu, 2010-04-01 at 10:51 +0100, Matthew Croud wrote:
Hi Guys,
Can someone confirm for me that the code below will move an uploaded
file and give it the same name as the original image file name ?
$file_dir = /home/uploads;
foreach($_FILES as $file_name = $file_array) {
echo
I use the follwing function for moving files:
public function moveFile($file,$targetdir=../uploads/images/)
{
$fileName = $file['name'];
$ext = substr($fileName, strrpos($fileName, '.') + 1);
do
{
3 matches
Mail list logo