Tag: php
-
How to use .htaccess to run all .html files as .php by using PHP handlers in Apache w/o CGI?
If you are not able to find the correct Handler, Simply create a .php file with the following contents: and run/open this file in browser. Use this output in .htaccess file Create a .htaccess file at the root of your website(usually a folder named public_html or htdocs on linux servers) and add this line: Example…
-
Creating a table in PhpMyAdmin Xampp server.
Hello People. In this post we will discuss that how you can create a table in phpmyadmin xampp server for your php project. Before creating a table first you must create a database, because without database you can not create a table. steps to create a table in phpmyadmin. Start your Xampp server and open…
-
Common PHP.ini directives list for Apache htaccess files
Maximum Execution Time and Maximum Input Time Max Upload file size and Max POST data size Output buffering toggle Expose PHP signature – toggle Maximum Input variables Maximum Memory Limit for PHP Magic Quotes toggle Register Global Variables – useless now Allow remote URL in fopen Max Execution Time for php scripts Set Timezone for…
-
How to change PHP versions in VestaCP Ubuntu – Downgrade Upgrade 5.6, 7.1 and 7.2
For Downgrading 7.2 (default) to 7.1 PHP Reference: Sandy B @ mysterydata.com
-
How to add colon separated hours in PHP using explode function twice?
Problem Statement Tracking hours for multiple days are available in HH:MM:SS format separated by tab element. Add all the time to show total hours worked/tracked.
-
How to get all attributes with all available labels/options in Magento2?
I did a lot of research but could not find a solution for that. so gathered some info and created this code: (it is not the best way to do it, but it works – you can use it at least one time for quick results) the values need to be transformed if you want…
-
[SOLVED] PHP must be run as a CLI application error : Content-type: text/html; charset=UTF-8
php bin/magento cache:cleanContent-type: text/html; charset=UTF-8bin/magento must be run as a CLI application as root user, run the following commands (For php v7.0) The solution involves fixing php variable’s path. We need to find which php is being used right now, you can find out by To fix this PHP cli error, see how to edit…
-
Installing Magento Common Issues
Following are the steps to complete install Magento error-free:- Uncomment the files which are required by Magento in php.ini and restart the server If installation error occurs, set memory_limit = 786M if still error occurs, uninstall the db and make it again after successfull install, go to (root_directory)app/etc/di.xml and change “Symlink” to “Copy” in developerMaterialization section.…
-
Magento 2 temporary fix for Alphabetical sorting of Configurable product options
Just re-write the file vendor/magento/module-configurable-product/Model/ConfigurableAttributeData.php
-
Show Available Stock quantity for each product in Magento 2
Reference: https://magento.stackexchange.com/a/97952/32283