Storing binary data in MySQL take 2
So PHP has a couple variables that can be set that instill limitations on filesizes and amount of data that can be processed by a form. This is great on all accounts until access to the PHP.ini file is not allowed on the webserver.
My question: How can I store binary data (JPG, MP3, ZIP) in a MySQL Blob without being affected by the limitations imposed by my hosting provider? I have tried many different methods but they all have one thing in common, they don't work. I'm thinking some Perl will be neceesary but I know nothing about it. Any assistance that can be offered would be fantastic!! Thanks -Cole |
Have you tried setting a local ini value using ini_set()?
|
Here is my test script:
Code:
<?php Code:
1 Thanks for the advice though, was something I had not tried -- learned something new as well!! ;) Cole |
Doing a little googling I found that you can put a modified php.ini file in your public_html folder and this should be picked up when your scripts run. I've never tried it but worth a shot?
|
some quick googling looks like it's a combination of .htaccess and a customized php.ini -- I will test this later today on my box at home but I fear that it may not work on my hosting provider's setup... It is worth a shot and any chance I could convince you to post a link?? I did some quick googling and got some conflicting answers.
|
|
All times are GMT -5. The time now is 04:53 PM. |