How do I open PHP in Linux?

How do I open PHP in Linux?
Answer
Testing PHP:
  1. Open a terminal and type this command: ‘ gksudo gedit /var/www/testing. php ‘ (gedit being the default text editor, others should work too)
  2. Enter this text in the file and save it: <? php phpinfo(); ?>
  3. Restart the php server using this command: ‘ sudo /etc/init. d/apache2 restart ‘
 

Tìm kiếm

Back
Top