Click here to Skip to main content
16,005,169 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: Creating file headers in php. Pin
Danzy831-Feb-11 19:53
Danzy831-Feb-11 19:53 
Questionsending a link to php script Pin
Danzy8327-Jan-11 14:15
Danzy8327-Jan-11 14:15 
AnswerRe: sending a link to php script Pin
Gerben Jongerius27-Jan-11 19:54
Gerben Jongerius27-Jan-11 19:54 
QuestionForm not working... Pin
MacRaider426-Jan-11 7:53
MacRaider426-Jan-11 7:53 
AnswerRe: Form not working... Pin
MacRaider426-Jan-11 8:33
MacRaider426-Jan-11 8:33 
Questioni cant view this file Pin
ulio.pts21-Jan-11 22:24
ulio.pts21-Jan-11 22:24 
AnswerRe: i cant view this file Pin
Kristian Sixhøj24-Jan-11 3:57
Kristian Sixhøj24-Jan-11 3:57 
QuestionThe joys of PHP mail() Pin
SRJ9221-Jan-11 9:46
SRJ9221-Jan-11 9:46 
AnswerRe: The joys of PHP mail() Pin
Dr.Walt Fair, PE21-Jan-11 12:01
professionalDr.Walt Fair, PE21-Jan-11 12:01 
GeneralRe: The joys of PHP mail() Pin
SRJ9221-Jan-11 15:06
SRJ9221-Jan-11 15:06 
GeneralRe: The joys of PHP mail() Pin
Dr.Walt Fair, PE21-Jan-11 15:33
professionalDr.Walt Fair, PE21-Jan-11 15:33 
GeneralRe: The joys of PHP mail() Pin
Fatih P.7-Feb-11 3:10
Fatih P.7-Feb-11 3:10 
AnswerRe: The joys of PHP mail() Pin
chiryphp29-Jan-11 14:46
chiryphp29-Jan-11 14:46 
Questionhtaccess without changing actual url Pin
salman ansari19-Jan-11 20:22
salman ansari19-Jan-11 20:22 
Questionuploading file via post Pin
0b4m418-Jan-11 23:13
0b4m418-Jan-11 23:13 
AnswerRe: uploading file via post Pin
Niall Barr19-Jan-11 2:32
professionalNiall Barr19-Jan-11 2:32 
GeneralRe: uploading file via post Pin
0b4m419-Jan-11 3:27
0b4m419-Jan-11 3:27 
GeneralRe: uploading file via post Pin
Niall Barr19-Jan-11 5:10
professionalNiall Barr19-Jan-11 5:10 
GeneralRe: uploading file via post Pin
0b4m419-Jan-11 5:49
0b4m419-Jan-11 5:49 
GeneralRe: uploading file via post Pin
Niall Barr19-Jan-11 6:04
professionalNiall Barr19-Jan-11 6:04 
GeneralRe: uploading file via post Pin
0b4m419-Jan-11 6:11
0b4m419-Jan-11 6:11 
Niall Barr wrote:
Are you able to get the other post data transferred if you comment out the file_get_contents line?


I can't test that as it's some external company site where we have to upload our data so that they can do what they are suppose to do with the data.

Well i use below code as initial request - so they receive the post data and they send us back id which we need to send along with the file -

function datapost($URLServer,$postdata)
{
 
 
 
$agent = "Mozilla/5.0";
 
$cURL_Session = curl_init();
 
curl_setopt($cURL_Session, CURLOPT_URL,$URLServer);
 
curl_setopt($cURL_Session, CURLOPT_USERAGENT, $agent);
 
curl_setopt($cURL_Session, CURLOPT_POST, 1);
 
curl_setopt($cURL_Session, CURLOPT_POSTFIELDS,$postdata);
 
curl_setopt($cURL_Session, CURLOPT_RETURNTRANSFER, 1);
 
curl_setopt($cURL_Session, CURLOPT_FOLLOWLOCATION, 1);
 
$result = curl_exec($cURL_Session);
 
return $result;
 
}
 
    $postdata = array();
	$postdata['profileName'] = 'tsunami';
	$postdata['tName'] = 'abc';
	$postdata['langCode'] = 'en_GB';
	... etc

$source= datapost("http://xyz.com/uvw/upload_meta.php",$postdata);

</pre>

It using the same process - so am sure it's only file auto upload bit that's not working for us. As i said it works using normal html form submit.

GeneralRe: uploading file via post Pin
Niall Barr22-Jan-11 1:31
professionalNiall Barr22-Jan-11 1:31 
GeneralRe: uploading file via post Pin
0b4m425-Jan-11 4:11
0b4m425-Jan-11 4:11 
QuestionWhich PHP framework to use? [modified] Pin
skqi15-Jan-11 20:08
skqi15-Jan-11 20:08 
AnswerRe: Which PHP framework to use? Pin
chiryphp16-Jan-11 13:49
chiryphp16-Jan-11 13:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.