Installing phpMyAdmin on Amazon Linux phpMyAdmin is a web-based database management tool that you can use to view and edit the MySQL databases on your EC2 instance. Follow the steps below to install and configure phpMyAdmin on your Amazon Linux instance. A. Enable the Extra Packages for Enterprise Linux (EPEL) repository from the Fedora project […]
Deprecated features in PHP 7
Deprecated features in PHP 7 Even though PHP 7.0 is a new major version, efforts have been made to make migration as painless as possible. This release focuses mainly on removing functionality deprecated in previous versions and improving language consistency. PHP 4 style constructors
1 2 3 4 5 6 7 |
<?php class foo { function foo() { echo 'I am the constructor'; } } ?> |
The above example will output:
1 |
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in example.php on line 3 |
Static calls to non-static […]
Some PHP Tips
Some PHP Tips There are lot of things which you should follow when working with PHP.In this article ,I am going to look into some useful tips and techniques that can be used to improve and optimize your PHP code. These PHP tips will help you to write a more structured PHP script in less […]
Get the size of an image using a PHP function
Get the size of an image using a PHP function PHP provides a function to get the width and height of an image. getimagesize() Get the size of an image. Description The getimagesize() function will determine the size of any supported given image file and return the dimensions along with the file type and a […]