melvinchi Posted June 5, 2008 Share Posted June 5, 2008 Hey guys love your site! Alright, what I'm trying to do is be able to pass a header to a page with a giving file. I will try to explain. I'm working on writing a script that will allow me to pass a file name to a feild of type=file. I have seen some other ways of doing this mostly in activeX but thats more work then what i want to do and defeats the reason. I want the script to go to a set page and put the file name in the field and upload it. The reason why i want this is because my co-workers don't like all the steps it takes to upload the files that we need to. This is what we have to do. We take the file (system capture) and then we have to un-crypt this file then upload it to the system. well this really does take a while almost 10mins to do it all. What im looking for is this.. a way to pass a header to the server with file. Sorry for the crappy style.. been up for almost 46 hours now. Thank you Quote Link to comment https://forums.phpfreaks.com/topic/108791-http-headers/ Share on other sites More sharing options...
phpzone Posted June 5, 2008 Share Posted June 5, 2008 I'm not sure 100% what you question really is. I _think_ you want to scan a directory with PHP on a local machine and post the required data directly to another script on another server to upload all the files?? Try looking at CURL, or why can't they just use FTP? Sorry for the crappy style.. been up for almost 46 hours now. I can answer this one, you can fix that by sleeping, but try to sleep regularly over a period of about 4 weeks Quote Link to comment https://forums.phpfreaks.com/topic/108791-http-headers/#findComment-558123 Share on other sites More sharing options...
melvinchi Posted June 5, 2008 Author Share Posted June 5, 2008 Sorry.. I'm trying to upload a file to a webserver(IIS) with a page set in place that takes post. With out interaction from the user.. hope this helps. Quote Link to comment https://forums.phpfreaks.com/topic/108791-http-headers/#findComment-558786 Share on other sites More sharing options...
.josh Posted June 5, 2008 Share Posted June 5, 2008 curl Quote Link to comment https://forums.phpfreaks.com/topic/108791-http-headers/#findComment-558792 Share on other sites More sharing options...
melvinchi Posted June 11, 2008 Author Share Posted June 11, 2008 Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/108791-http-headers/#findComment-563499 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.