Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-03-2007, 02:46 AM PHP & MySQL links
acm001's Avatar
Novice Talker

Posts: 13
Name: Richi
Trades: 0
hey everyone i am a bit stuck here
what i wish to do is a PHP form (already done) and a MySQL database (Already Built)
what im having problems is i want to upload PDF files into the MySQL database, but everytime i try to upload it using the form it times out and does not upload, i have tested it and it does work for smaller PDF files, can anyone help me out please?
i wish to upload approx 20-60mb each file,

thank you
acm001 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-03-2007, 04:29 AM Re: PHP & MySQL links
Galaxian's Avatar
Rich Powell

Posts: 842
Name: Rich Powell
Location: United Kingdom
Trades: 0
What you need to do is check your php timeout and maximum post size.

This can be done through your php.ini if you have access to the server.

Try googling and also look into mysql timeout and limits
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please help get the new
Please login or register to view this content. Registration is FREE
forum started for Webmasters like you!

Galaxian is offline
Reply With Quote
View Public Profile Visit Galaxian's homepage!
 
Old 10-03-2007, 05:18 AM Re: PHP & MySQL links
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Specifically, you want to look at the max_input_time and max_execution_time setting of php.
http://www.php.net/manual/en/ref.inf...max-input-time
http://www.php.net/manual/en/ref.inf...execution-time

Try to increase them
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-03-2007, 05:38 AM Re: PHP & MySQL links
acm001's Avatar
Novice Talker

Posts: 13
Name: Richi
Trades: 0
thank you everyone
what if i dont have access php.ini
because im using hosting provider that i pay monthly


if it is not possible to have access to it
would it be possible to have all the files in a folder
and in the database i can put a link to that folder?
so each time i add something into the folder it can be shown on the page without me actually need to add a link to it myself in the .html page

Last edited by acm001; 10-03-2007 at 05:54 AM..
acm001 is offline
Reply With Quote
View Public Profile
 
Old 10-03-2007, 06:07 AM Re: PHP & MySQL links
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Use the ini_set function on top of the file you want the setting to be altered.
The ini_set duration is local to the page, and not site wide, but this will make what you want.

Or, if your host haven't safe_mode enabled, you could put them in a .htaccess file, which will make them valid for every pages or folder in the same directory or in child directories.
Quote:
php_value max_input_time 120
php_value max_execution_time 90
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 10-03-2007, 06:17 AM Re: PHP & MySQL links
acm001's Avatar
Novice Talker

Posts: 13
Name: Richi
Trades: 0
Quote:
Originally Posted by tripy View Post
Use the ini_set function on top of the file you want the setting to be altered.
The ini_set duration is local to the page, and not site wide, but this will make what you want.

Or, if your host haven't safe_mode enabled, you could put them in a .htaccess file, which will make them valid for every pages or folder in the same directory or in child directories.
Thank you Sir,
sorry to waste your time with it as well

like to let you know problem was solved

Thank you
acm001 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to PHP & MySQL links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25446 seconds with 12 queries