Hello gmoeller54,
Please have a look at this thread I have written a blog post about the same 
in past post an XML file using PHP to remote server without 
ftp<http://eaziweb.blogspot.com/2012/07/post-file-using-php-to-remote-server.html>
 
Please let me know you still face the same problem.

Thanks
Shahzeb
eCaroBar.com

On Friday, 7 February 2014 09:22:32 UTC+5, gmoeller54 wrote:
>
> Greetings,
> Kind of stumped - need to post an xml for a remote printer server.
> What would be preventing me from posting the xml with the following code?
> I've been having a person at the remote server checking logs - nothing 
> hitting the server yet!
>
>
> $file2  = "xxxxx/$xxxxxFile.xml";
>  
> $c = curl_init();
> curl_setopt($c, CURLOPT_URL, "
> http://xxxxxxxx.xxxxxxx.com/xxxxxx/xxxxxReceive.dll";);
> curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
> curl_setopt($c, CURLOPT_POST, true);
> curl_setopt($c, CURLOPT_INFILESIZE, filesize($file2));
>  
> $fp = fopen($file2, "r");
> curl_setopt($c, CURLOPT_INFILE, $fp);
>  
> curl_exec($c);
>  
> curl_close($c);
> fclose($fp);
>
> Thanks!
>

-- 
-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
--- 
You received this message because you are subscribed to the Google Groups "NZ 
PHP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to