Jump to content

Image help


LemonInflux

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.