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? 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? 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. 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. 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
Archived
This topic is now archived and is closed to further replies.