[PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B

Hello,

I need to copy, open or manipulate a gif images that is hosted in a https
server.

But when i try to do this, i recive a warning like this:

*Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream:
Invalid argument in .

I recive a similar message if i use:

copy(https:///aaa.gif,' bla bla bla ');

fopen (https:///aaa.gif, );

How can i resolve this problem and use this image?

Thanks,

RB


Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread Robert Cummings
On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
 Hello,
 
 I need to copy, open or manipulate a gif images that is hosted in a https
 server.
 
 But when i try to do this, i recive a warning like this:
 
 *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream:
 Invalid argument in .
 
 I recive a similar message if i use:
 
 copy(https:///aaa.gif,' bla bla bla ');
 
 fopen (https:///aaa.gif, );
 
 How can i resolve this problem and use this image?

Ummm, you're missing quotes around the URL portion of the argument.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B

It's not a syntaxis problem.

On 9/12/06, Robert Cummings [EMAIL PROTECTED] wrote:


On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
 Hello,

 I need to copy, open or manipulate a gif images that is hosted in a
https
 server.

 But when i try to do this, i recive a warning like this:

 *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open
stream:
 Invalid argument in .

 I recive a similar message if i use:

 copy(https:///aaa.gif,' bla bla bla ');

 fopen (https:///aaa.gif, );

 How can i resolve this problem and use this image?

Ummm, you're missing quotes around the URL portion of the argument.

Cheers,
Rob.
--
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'




Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B

I think it's a security https problem.

I was reading that with IIS, you can't use fopen in a https server... I
think i have this problem also with copy...

Some ideas?




On 9/12/06, R B [EMAIL PROTECTED] wrote:


It's not a syntaxis problem.


On 9/12/06, Robert Cummings [EMAIL PROTECTED] wrote:

 On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
  Hello,
 
  I need to copy, open or manipulate a gif images that is hosted in a
 https
  server.
 
  But when i try to do this, i recive a warning like this:
 
  *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open
 stream:
  Invalid argument in .
 
  I recive a similar message if i use:
 
  copy(https:///aaa.gif,' bla bla bla ');
 
  fopen (https:///aaa.gif, );
 
  How can i resolve this problem and use this image?

 Ummm, you're missing quotes around the URL portion of the argument.

 Cheers,
 Rob.
 --
 ..
 | InterJinn Application Framework - http://www.interjinn.com |
 ::
 | An application and templating framework for PHP. Boasting  |
 | a powerful, scalable system for accessing system services  |
 | such as forms, properties, sessions, and caches. InterJinn |
 | also provides an extremely flexible architecture for   |
 | creating re-usable components quickly and easily.  |
 `'





Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread J R

i'm just going to guess. check your settings if it allows to open external
files, especifically allowed to fopen url.

http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen

hth,

john

On 9/13/06, R B [EMAIL PROTECTED] wrote:


I think it's a security https problem.

I was reading that with IIS, you can't use fopen in a https server... I
think i have this problem also with copy...

Some ideas?




On 9/12/06, R B [EMAIL PROTECTED] wrote:

 It's not a syntaxis problem.


 On 9/12/06, Robert Cummings [EMAIL PROTECTED] wrote:
 
  On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
   Hello,
  
   I need to copy, open or manipulate a gif images that is hosted in a
  https
   server.
  
   But when i try to do this, i recive a warning like this:
  
   *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open
  stream:
   Invalid argument in .
  
   I recive a similar message if i use:
  
   copy(https:///aaa.gif,' bla bla bla ');
  
   fopen (https:///aaa.gif, );
  
   How can i resolve this problem and use this image?
 
  Ummm, you're missing quotes around the URL portion of the argument.
 
  Cheers,
  Rob.
  --
  ..
  | InterJinn Application Framework - http://www.interjinn.com |
  ::
  | An application and templating framework for PHP. Boasting  |
  | a powerful, scalable system for accessing system services  |
  | such as forms, properties, sessions, and caches. InterJinn |
  | also provides an extremely flexible architecture for   |
  | creating re-usable components quickly and easily.  |
  `'
 
 






--
GMail Rocks!!!