?
Solved

PHP Server.CreateObject

Posted on 2003-03-01
8
Medium Priority
?
542 Views
Last Modified: 2010-05-18
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
Comment
Question by:lfabbric
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 8

Expert Comment

by:us111
ID: 8057453
you have some upload functions with PHP ???
0
 
LVL 1

Author Comment

by:lfabbric
ID: 8058873
Yes.
0
 
LVL 1

Author Comment

by:lfabbric
ID: 8058880
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.

 
LVL 8

Expert Comment

by:us111
ID: 8058928
be careful, you may forgot:
<form enctype="multipart/form-data"
0
 
LVL 5

Expert Comment

by:cirtap
ID: 8076751
$_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
 
LVL 1

Author Comment

by:lfabbric
ID: 8080717
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
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 11933989
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
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 11975618
Submitted to PAQ with points refunded (50)

DarthMod
Community Support Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question