tibberous Posted August 20, 2007 Share Posted August 20, 2007 Without using upload. If I have a file on the server, can php send it to another php script as post data? Quote Link to comment https://forums.phpfreaks.com/topic/65805-can-php-post-a-file-to-a-form/ Share on other sites More sharing options...
Wuhtzu Posted August 20, 2007 Share Posted August 20, 2007 First of all I'm not sure if it can be done - it sounds doable. But what would be the point of it? Quote Link to comment https://forums.phpfreaks.com/topic/65805-can-php-post-a-file-to-a-form/#findComment-328783 Share on other sites More sharing options...
tibberous Posted August 20, 2007 Author Share Posted August 20, 2007 If you don't control the destination script, like haveing a script send a picture to photobucket. Quote Link to comment https://forums.phpfreaks.com/topic/65805-can-php-post-a-file-to-a-form/#findComment-328895 Share on other sites More sharing options...
cooldude832 Posted August 20, 2007 Share Posted August 20, 2007 This is competently possible if you understand what the destination form does. However most forms will have some sort of security system (such as capctcha or an auto capctcha) to prevent injection from outside sources. http://us2.php.net/manual/en/ref.curl.php that will explain it to you, however realize that if its to any professional form odds are injection is prevented via a session/cookie deal that will be difficult to bypass. Also read that servers R&R to make sure its allowed. Quote Link to comment https://forums.phpfreaks.com/topic/65805-can-php-post-a-file-to-a-form/#findComment-328906 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.