Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Sending Image & Data with cURL

images php coding issues or problems here.

Moderators: macek, egami, gesf

Sending Image & Data with cURL

Postby pws5068 » Wed May 25, 2011 5:28 am

Greetings!

I have a script on my server which dynamically generates an image. A user could refer to that image in the browser from /image/index/generated_image_name.jpg where "generated_image_name" is sent as an argument to a function which outputs the resulting jpg.

Now, from another page I need to use cURL to send that image, and other data with post. How can I achieve this? I believe the problem here is that I cannot simply run realpath() on a file that's not a real file.. so I essentially need to output the image and store it into memory to use curl.

Alternatively, is there a way to send a cURL request directly from a URL?

Thanks!!!
pws5068
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed May 25, 2011 5:21 am

Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron