Jump to content

Recommended Posts

Hello, just a couple questions:

 

1. Is there a way to write code that saves images from other sites onto yours? I had an idea for some software so that the images could just be saved from my site onto their's so the original download is quicker.

 

2. Is there a way to upload bigger files? I've noticed that if you have an image/file uploader, and try to upload big files, it often fails. Is there some way to imitate ftp, so that it can take any size?

 

Thanks in advance,

 

Tom.

Link to comment
https://forums.phpfreaks.com/topic/86891-image-help/
Share on other sites

1.) Aside from the fact you may well be breaking copyright, you can use one of the imagecreatefrom functions (www.php.net/imagecreatefromgif, www.php.net/imagecreatefromjpeg etc) and save the image

 

2.) There are numerous restrictions on file upload, which you can modify. For example, a file upload form should have a hidden field containing the maximum file size, and the php settings max_execution_time, memory_limit and upload_max_filesize may all need to be edited.

Link to comment
https://forums.phpfreaks.com/topic/86891-image-help/#findComment-444260
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.