Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Internet & the Web   »   PHP File upload and Perl

 
Thread Tools Display Modes
Question
 
 
#1  
Old Feb 18, 2006, 02:45 AM
Novice_perl
New Member
Novice_perl is offline
 
Join Date: Feb 2006
Posts: 5
Novice_perl See this member's comment history on his/her Profile page.
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

Reply With Quote
 
     

Answers
 
 
Old Feb 18, 2006, 08:44 AM   #2  
Junior Member
Ademan is offline
 
Join Date: Jan 2006
Posts: 42
Ademan See this member's comment history on his/her Profile page.
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
  Reply With Quote
 
     
 
 
Old Feb 19, 2006, 09:10 PM   #3  
New Member
Novice_perl is offline
 
Join Date: Feb 2006
Posts: 5
Novice_perl See this member's comment history on his/her Profile page.
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 ="">
  Reply With Quote
 
     
 
 
Old Feb 19, 2006, 11:47 PM   #4  
Junior Member
Ademan is offline
 
Join Date: Jan 2006
Posts: 42
Ademan See this member's comment history on his/her Profile page.
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 dont know anything beyond that. I wouldnt 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 thats part of the http standard, if not , its closely related, and i suggest you start there though.

cheers (i know that wasnt the answer you wanted and i'm sorry i cant help more than that)
-Dan
  Reply With Quote
 
     
 
 
Old Feb 20, 2006, 04:00 AM   #5  
New Member
Novice_perl is offline
 
Join Date: Feb 2006
Posts: 5
Novice_perl See this member's comment history on his/her Profile page.
Thanks for your effort.I am looking into those http standards
  Reply With Quote
 
     


Thread Tools
Display Modes

 
Similar Sponsors

Similar Threads
Question Asker Forum Answers Last Post
Need help with Perl!! dragonfly11 Perl 3 Nov 17, 2008 11:14 AM
I need to upload a screenshot...how to? saivstech Word Processing 7 Jul 31, 2008 10:42 AM
How do I upload video into YouTube? KariAndersen Internet & the Web 6 Apr 6, 2008 11:55 AM
compressing photo to upload to site 1timer Plumbing 2 Sep 24, 2005 10:57 AM
Perl Script /etc/group file hcalhoun Internet & the Web 0 Jun 19, 2003 05:05 PM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 12:21 AM.