RetouchPRO

Go Back   RetouchPRO > Business > Your Website
Register Blogs FAQ Site Nav Search Today's Posts Mark Forums Read


Your Website Questions and (hopefully) answers about setting up your own business or gallery website

how can I allow people to send my your photos???

Reply
 
Thread Tools
  #31  
Old 02-26-2010, 10:00 PM
_jason_'s Avatar
_jason_ _jason_ is offline
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: how can I allow people to send my your photos?

Right creativeretouch, if you are a customer on a hosting company and have your website hosted there, you can't look into the PHP.ini file for some certain reason...
So you call the PHP inbuilt info function, which lists you detailled configuration of the server.

It's looking like this:
PHP Code:
<?PHP
phpinfo 
();
?>
An example of such a page that will be generated with the info function can be currently seen here:
phpinfo() example output

And yes, the upload limit is finally configured in the PHP.ini file by the server administrators.
Here a sample of the portion of the php.ini file from my local server: (with useful comments)

Quote:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = C:\PHP\uploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M
As you see, there is even the possibility to disallow uploads via PHP/HTTP at all!


Jason

Last edited by _jason_; 02-26-2010 at 10:17 PM.
Reply With Quote top
  #32  
Old 02-27-2010, 03:02 AM
creativeretouch creativeretouch is offline
Senior Member
 
Join Date: Jan 2010
Location: London
Posts: 502
Re: how can I allow people to send my your photos?

yes jason,

that's what I am trying to expain from the beginning.

This is my first post:
---------------------------------------
---------------------------------------
download this script:

http://www.webdeveloper.com/forum/at...5&d=1143972935

- this is a free working version. Description is here:

http://www.webdeveloper.com/forum/sh...d.php?t=101466
-------------------------------------
open this page in text editor:

multiple.upload.form.php

and change the size of a file to this value:

// set a max file size for the html upload form
$max_file_size = 700000000; // size in bytes

you should be OK.
---------------------------------------
---------------------------------------

I am not a programmer, but I think this line

$max_file_size = 700000000; // size in bytes

tells to php.ini on the server to ignore default value and use my new one.

This script is written by pro programmer not by me
Reply With Quote top
  #33  
Old 02-27-2010, 04:00 AM
_jason_'s Avatar
_jason_ _jason_ is offline
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: how can I allow people to send my your photos?

...
NOOOO.

You can't modify the server side php.ini restriction with a script for some certain reasons!

This number merely limits the upload size from your website/web application. This is, you allow your users only a restricted filesize to upload ('cause probably your space is limited or you do not want the users to upload tonns of crap...). Please read all the code!

The global PHP limit remains unaffected with that if your server is correctly and securely configured.

Definately.

(I think, you never really tried to upload laaarge files with that script via HTTP protocol. If you did, you actually would know what happens: Files which are larger than the configured limit will be canceled by the server and usually land in the trash.)

Jason

Last edited by _jason_; 02-27-2010 at 04:14 AM. Reason: additions
Reply With Quote top
  #34  
Old 02-27-2010, 04:20 AM
_jason_'s Avatar
_jason_ _jason_ is offline
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: how can I allow people to send my your photos?

Look at the link I posted in my previous post.
http://austin.ispgate.biz/phpinfo.php

That server has an upload_max_filesize of only 2MB configured!
This means he can do what he want. He won't get uploaded larger files than that.

Jason
Reply With Quote top
  #35  
Old 02-27-2010, 04:22 AM
creativeretouch creativeretouch is offline
Senior Member
 
Join Date: Jan 2010
Location: London
Posts: 502
Re: how can I allow people to send my your photos?

OK

I prefer FTP ...
Reply With Quote top
  #36  
Old 02-27-2010, 04:24 AM
_jason_'s Avatar
_jason_ _jason_ is offline
Senior Member
 
Join Date: Feb 2010
Location: Germany
Posts: 120
Re: how can I allow people to send my your photos?

.................................................................
*smile*
Reply With Quote top
  #37  
Old 02-27-2010, 04:26 AM
creativeretouch creativeretouch is offline
Senior Member
 
Join Date: Jan 2010
Location: London
Posts: 502
Re: how can I allow people to send my your photos?

But on my server I tried 50 MB+ and it was working fine ...
Different server configuration.
Reply With Quote top
Reply

  RetouchPRO > Business > Your Website


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Print Family Photos of Differing Sizes copacabanagirl Input/Output/Workflow 14 06-23-2009 04:03 AM
Help photos stuck togather Countrybird1 Photo Restoration 2 06-17-2009 09:11 PM
Photos: Tuff-N-Uff MMA 05-30-2009 Featuring LaTash ultravista Critiques 0 06-03-2009 09:16 PM
Resizing photos for a book publication oiram Image Help 8 04-24-2009 09:56 PM
Who can post photos? mikajomc Photo-Based Art 1 01-23-2008 11:43 AM


All times are GMT -6. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Copyright © 2016 Doug Nelson. All Rights Reserved