PHP Classes

package PHP File Manipulation Class

Recommend this page to a friend!

      PHP File Manipulation Class  >  All threads  >  package PHP File Manipulation Class  >  (Un) Subscribe thread alerts  
Subject:package PHP File Manipulation Class
Summary:syntax error?
Messages:4
Author:hecini
Date:2018-01-22 11:17:43
 

  1. package PHP File Manipulation Class   Reply   Report abuse  
Picture of hecini hecini - 2018-01-22 11:17:43
I get an erro message

Parse error: parse error, expecting `')'' in D:\site\example.uploadfile.php on line 11

and line 11 is

$fileName = $files-FileUpload(['file'=>$_FILES['file'],'target'=>'images','filetype'=>'image']);

please give me a solution.




  2. Re: package PHP File Manipulation Class   Reply   Report abuse  
Picture of Muhammad Umer Farooq Muhammad Umer Farooq - 2018-01-22 15:51:48 - In reply to message 1 from hecini
Do you made any changes in this file? If not paste your fie and which environment you run php version + operating system name
And paste full code here Thanka
I tested it work fine for me

  3. Re: package PHP File Manipulation Class   Reply   Report abuse  
Picture of hecini hecini - 2018-01-24 14:19:04 - In reply to message 2 from Muhammad Umer Farooq
In my desktop, it not work and this is my environment

###### ApacheFriends XAMPP (Basispaket) version 1.7.1 ######

+ Apache 2.2.11
+ MySQL 5.1.33 (Community Server)
+ PHP 5.2.9 + PEAR (Support for PHP 4 has been discontinued)
+ XAMPP Control Version 2.5 from www.nat32.com
+ XAMPP CLI Bundle 1.3 from Carsten Wiedmann
+ XAMPP Security 1.0
+ SQLite 2.8.15
+ OpenSSL 0.9.8i
+ phpMyAdmin 3.1.3.1
+ ADOdb 5.06a
+ Mercury Mail Transport System v4.62
+ FileZilla FTP Server 0.9.31
+ Webalizer 2.01-10
+ Zend Optimizer 3.3.0
+ eAccelerator 0.9.5.3 für PHP 5.2.9 (but not activated in the php.ini)

BUT in my laptop, it work fine

Thank YOU

  4. Re: package PHP File Manipulation Class   Reply   Report abuse  
Picture of Muhammad Umer Farooq Muhammad Umer Farooq - 2018-01-24 14:43:20 - In reply to message 3 from hecini
Thanks in your laptop your environment detail because i want it run every environment i tested in Lunix to work fine thanks