PHP

PHP: How to fix Image rotation issue in img tag because of EXIF

Photos captured by some smartphones especially iPhones are automatically rotated when we use it in <img> tag which is mostly not acceptable as we don’t need such unwanted rotation. This happens because of EXIF Data stored in that image. But we can easily fix it using PHP by following these steps:

Or you can also fix it with just one line […]

Best Websites to Learn Programming in Free

https://www.class-central.com
http://www.udacity.com
http://www.freecodeamp.com
https://codecademy.com
https://mva.microsoft.com/
https://github.com/open-source-society/computer-science
https://www.khanacademy.org
https://www.safaribooksonline.com/ ( One Month Free Trial )
http://edx.org
http://coursera.org
http://udemy.com
https://www.skillshare.com/
https://thenewboston.com/videos.php
https://angularfirebase.com/
http://w3schools.com
https://www.airpair.com/
https://egghead.io
http://tutsplus.com
https://www.pluralsight.com/browse/software-development ( 10 Days Free Trial )
https://hackr.io
https://academy.fossbytes.com/
https://www.codeschool.com
http://www.learnvern.com/
http://www.lynda.com (10 Days Free Trial)
https://www.datacamp.com
https://alison.com/
http://programming-motherfucker.com/become.html
https://itpro.tv/PAID

https://www.cbtnuggets.com
https://linuxacademy.comAWS (Amazon Web Services)
https://www.youtube.com/watch?v=BDBvHOaaKHo&list=PLv2a_5pNAko0Mijc6mnv04xeOut443Wnk
https://linuxacademy.com/ (AWS and other cloud solutions )
 […]

How to remove index.php from codeigniter in UBUNTU?

This tutorial will show you that how to remove index.php from codeigniter in UBUNTU or how to enable url rewriting.

Step 1 :

Add this in htaccess file

Step 2 :

Remove index.php in codeigniter config

Step 3 :

Allow overriding htaccess in Apache Configuration (Command)

and edit the file & change to

for www folder

Step 4 :

Enabled apache mod rewrite (Command)

Step 5 :

Restart Apache (Command)

Source […]

PHP: How to run / execute a script in the background forever through SSH ?

You can execute a php script in the background forever by using SSH through PHP but for that you have to make sure first that SSH2 extension is available.

PHP DOCS: http://www.php.net/manual/en/function.ssh2-exec.php

If you want to do same thing through SSH Terminal (PuTTY) then follow this tutorial:
SSH: how to run a PHP script in background forever in Linux (CentOS) ? […]

SSH: how to run a PHP script in background forever in Linux (CentOS) ?

If you want to run a PHP script in the background forever through SSH then follow these steps:

If you are using a SSH terminal (PuTTY) then directly run following command:

Now your script is running in background and will keep running indefinitely even after closing terminal.

To check if your script is running or not You can run following command:

If you want to […]

CentOS: how to execute a php file with different php version than the php version of OS

To execute a php file with different php version than the version installed on the main php of your Server follow this:

You should know that where is that php version located so that you can add the path.

In my case I want to use PHP 7 that is installed in the plesk hosting panel folder so I’ll run following command:

 /opt/plesk/php/7.0/bin/php server.php

In […]

PHP: How to force to download remote file using php?

Following funcion can be used to force to download remote files via curl:

  […]