is it possible to change the max file upload and the memory limit allowed for file uploads in php with a .htaccess file.
the server my website is held on will not give me access to the php.ini file and is running php 4.4.9
is it possible to change the max file upload and the memory limit allowed for file uploads in php with a .htaccess file.
the server my website is held on will not give me access to the php.ini file and is running php 4.4.9
No, you cannot.
you can. if you use the following code this will work if your server will allow you to use .htaccess files.
php_value post_max_size 128M
php_value upload_max_filesize 128M
php_value memory_limit 300M
i went about it a slightly easier way tho by putting the following code inside the php script before the image is processed
ini_set('memory_limit', 'xxM')
yes its possible using above code
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.