Ask Experts Questions for FREE Help !
Ask
    Novice_perl's Avatar
    Novice_perl Posts: 4, Reputation: 1
    New Member
     
    #1

    Feb 18, 2006, 03:45 AM
    PHP File upload and Perl
    Hi All,

    I am using a perl script to access the webpages designed in PHP.
    I donot know how to automate the file upload part of the site. Can anyone help me.

    FYI:I am using WWW::Mechanize module of perl

    Thanks,
    Novice_perl
    Ademan's Avatar
    Ademan Posts: 40, Reputation: 11
    Junior Member
     
    #2

    Feb 18, 2006, 09:44 AM
    I don't quite understand your problem so I'm going to ask a couple of questions.

    You have 2 distinct entities here right?

    1. A php site (on a server)

    2. A perl script (on clients?)

    If it's what I've said, then you'll probably need to look into the actual http protocol. (unless there's some sort of functionality already provided by your WWW lib)

    Hope that helps a little
    -Dan
    Novice_perl's Avatar
    Novice_perl Posts: 4, Reputation: 1
    New Member
     
    #3

    Feb 19, 2006, 10:10 PM
    Yes, you are right.The server is PHP site and my client is perl script.
    I like to know how the Input type file is handled in PHP.Is there any active participation of the browsers(IE,Firefox) in managing the uploaded file.

    FYI:
    I am giving the html input type
    <Input type = file, name = filename, value ="">
    Ademan's Avatar
    Ademan Posts: 40, Reputation: 11
    Junior Member
     
    #4

    Feb 20, 2006, 12:47 AM
    PHP handles it exactly the same as if it was a straight html file. It's governed by the http standard, I suggest you look into that, unfortunately I don't know anything beyond that. I wouldn't be surpised if the client sent a request that had a special "resource id" or something, and then sent another request with the actual file contents and in the header the corresponding "resource id" but again, I believe that's part of the http standard, if not , its closely related, and I suggest you start there though.

    Cheers (I know that wasn't the answer you wanted and I'm sorry I can't help more than that)
    -Dan
    Novice_perl's Avatar
    Novice_perl Posts: 4, Reputation: 1
    New Member
     
    #5

    Feb 20, 2006, 05:00 AM
    Thanks for your effort.I am looking into those http standards

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

I need to upload a screenshot... how to? [ 14 Answers ]

Hi, I have a query regarding ms word. But I need to upload a screenshot to support my question. How can I do that or is there anyway so that I can post my screenshot. SAI

Need help with Perl! [ 3 Answers ]

I am currently learning how to use Perl from a book. One of the exercises on chapter 4 (Scalars, Arrays and Hashes) has really left me dumb. This is the problem, but I can't figure out the coding to make the "Course code" typed in the user to appear in the place of "Shell Programming" where it...

How do I upload video into YouTube? [ 6 Answers ]

I have a video of a speech that I gave that is on dvd and I want to download it to my computer and then upload it to YouTube, etc. so I can share it online but I can't figure it out for some reason. Any advice or help would be great!

Compressing photo to upload to site [ 2 Answers ]

I'm trying to upload a photo (plumbing) so I can explain better what I'm trying to do. Can someone tell me how to compress my 388kb photo to at least 279 kb because that's what the site is asking for. I've tried compressing it but it won't compress to the size that the site needs.


View more questions Search