• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

PHP Server.CreateObject

I am dealing with a piece of ASP Code, and I would like to use it within PHP>

I am not sure what the equivalant to the Server.CreateObject is within PHP.

Persits.Upload is a Java Cab Object.  (Referenceto http://www.aspupload.com -> Look at jupload)

Set Upload = Server.CreateObject("Persits.Upload")
     Count = Upload.Save("c:\upload")

     Response.Write "Success! " & count & " file(s) uploaded.<P>"

     For Each File in Upload.Files
          Response.Write File.Path & " (" & File.Size & " bytes)<BR>"
     Next
0
lfabbric
Asked:
lfabbric
1 Solution
 
us111Commented:
you have some upload functions with PHP ???
0
 
lfabbricAuthor Commented:
Yes.
0
 
lfabbricAuthor Commented:
I am just playing with the jupload code, and I am not sure why but I am trying to look for $_FILES code and I can not.  Not sure why it is not being passed to the next page.

But through investigation I do not think thier is an equalivant to this.

thanks for your help though.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
us111Commented:
be careful, you may forgot:
<form enctype="multipart/form-data"
0
 
cirtapCommented:
$_FILES appeared in PHP4, older code samples usually don't have it.
try a small file first and as us111 said:
  enctype="multipart/form-data"
0
 
lfabbricAuthor Commented:
My hosting company stop file upload, so I uploaded this .htaccess file and all is well.

Thanks for all of your help, but this does solve my problem.


<Limit GET POST PUT DELETE>
order deny,allow
allow from all
</Limit>
php_value post_max_size 1024M
php_value upload_max_filesize 1024M
0
 
snoyes_jwCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
    PAQ with points refunded

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

snoyes_jw
EE Cleanup Volunteer

0
 
DarthModCommented:
Submitted to PAQ with points refunded (50)

DarthMod
Community Support Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now