Re: Send postcard link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roger Thomas wrote:

>On server-1 I have my photogallery working. On another box, server-2, I have my postcard script also working great. Users can send postcards using ready inhouse designs or upload their own (max 100K). Both have been serving our community for the past  2 years or so.
>
>Current requirement:
>
>When I browsed my photogallery, I would like to have a button that says 'Send this picture as postcard'. Behind the scenes, how do I send that picture to server-2 postcard script?
>
>  
>

The easiest way would probably be to use file_get_contents, which is
binary safe. The file_get_contents function supports opening remote
files if allow_url_fopen is activated.

An example:
$handle = fopen("ftp://user:password@xxxxxxxxxxx/somefile.txt";, "r");

Regards,
Torgny

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux