dimis283 Posted November 10, 2009 Share Posted November 10, 2009 I have done a php backup application . So there is a form that user pick some files to zip and download. Because of a problem with greek characters I make a servet (java) to create the zip. But I want to keep all validations that php make, so how can php send to servlet the post data after the validation? I tried curl but with that nothing is dowloading. ... //form has send files, use of yiiframework if ($download->validate()) { Yii::app()->myutilitie->afterAuth(Yii::app()->user ->name,'Front-end download files '.Yii::app()->user->name); $ch = curl_init(self::JAVA_URL); curl_setopt($ch, CURLOPT_POST ,1); curl_setopt($ch, CURLOPT_POSTFIELDS ,$dfiles); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); // curl_setopt($ch, CURLOPT_HEADER ,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); $Rec_Data = curl_exec($ch); ... Link to comment https://forums.phpfreaks.com/topic/180954-php-call-servlet/ Share on other sites More sharing options...
ToonMariner Posted November 10, 2009 Share Posted November 10, 2009 exec() Link to comment https://forums.phpfreaks.com/topic/180954-php-call-servlet/#findComment-954725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.