Jump to content

[SOLVED] Image copier


~n[EO]n~

Recommended Posts

Hi all ,

 

Is there any way to copy images from other sites by some php code ???

 

The images are fetched through DB and is set in table background through PHP, right clicking and saving only allows to save spacer.gif file.

 

Images are in images folder name starting from 01 ... 100.jpg like

http://www.#####.com/images/01.jpg

 

Or, is there any software to copy it (except HTTRACK)

 

Thanks

Link to comment
Share on other sites

Thanks I checked,

Yes. copy().

 

One more question :

As of PHP 4.3.0, both source and dest may be URLs if the "fopen wrappers" have been enabled. See fopen() for more details. If dest is a URL, the copy operation may fail if the wrapper does not support overwriting of existing files.

 

What does this mean ?

 

My source and destinations are different URLs.

 

Thanks

 

 

 

Link to comment
Share on other sites

It is written

fopen -- Opens file or URL

If PHP has decided that filename specifies a registered protocol, and that protocol is registered as a network URL, PHP will check to make sure that allow_url_fopen is enabled. If it is switched off, PHP will emit a warning and the fopen call will fail.

 

Ok, one last question

 

How can i see phpinfo() setting of different URL (which does not belong to me), Is it possible ?

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.