Why file upload show upload_max_filesize error even changes in php.ini or .htaccess file

Hi friends,

I am sharing my own experience, I have tried file upload in core PHP project its not work more than 2MB. I have tried searching for solutions…

After search i added file php.ini with code like below


But it’s not working, for checking i added one more file for phpinfo() to check upload max filesize changed or not. phpinfo() that show me upload_max_filesize=100M, yet there is getting restriction for file upload, then i tried for better solutions…

then i added code in .htaccess file like below

php_value memory_limit 120M
php_value post_max_size 100M
php_value upload_max_filesize 100M
php_value max_execution_time 500
php_value max_input_time 500

after changed .htaccess file i got same file size error…

My search faith was almost finished, I know after lots of search and try, i could not get solution for upload file more than 2MB…

After some time i was thinking phpinfo() that show me 100MB why its not upload more than 2MB file size, so i checked phpinfo() output in inner folder where i had written upload file code. i was surprised to see phpinfo() was showing upload_max_filesize=2M, I don’t know why its showing upload_max_filesize=2M in my inner folder, so i copied php.ini file and pasted to inner folder. after that i checked file upload and its working for me.


How to display any posts type listing with customization

Do you want to show any posts type listing using widget or short-code with lots of filters and customization option so that display of listing look similar to your theme look, we have created one plug-in with new features like editing CSS, adding pagination, customization of output using theme functions.php file, generate short-code using short-code generator tool. Lets know about all these features.

  1. Plug-in page :- Dashboard > Posts > Post Shortcode
    In that page we generate short-code and edit CSS of plug-in, also you can reset plug-in CSS using update empty text area of CSS. Please refer below screen-short.screenshot-3
  2. Dashboard Widget Area :- Dashboard > Appearance > Widgets > PS Widget
    In that widget you can filter post using category or tags or taxonomy, order by, order, post type, taxonomy relation, post parent (not),post in (not), post name in.
    In that widget you can show read more, title, excerpt, content, post meta, date, category, tag, pagination, feature image with size, theme. Please refer below screen-short.screenshot-1
  3. Front End Display – Front page
    Please refer below screen-short that show output of short-code or PS Widget. Do you want to change the layout of shortcode or widget output, ( Like you want to add bootstrap layout ). For this first copy function pcs_get_post_output() from the plugin folder post-shortcode/inc/pcs-shortcode.php file, then paste it into your theme functions.php file and rename function name as pcs_get_custom_post_output() and edit the function.screenshot-2

Read More