poplastyles.blogg.se

Making gx works 2 run on linux
Making gx works 2 run on linux











making gx works 2 run on linux making gx works 2 run on linux
  1. #Making gx works 2 run on linux install#
  2. #Making gx works 2 run on linux code#

Here the option ‘ -r‘ run the PHP Code in the Linux Terminal directly without tags. We can use phpinfo() which is a very valuable debugging tool directly on the Linux command-line without the need of calling it from a file, simply as: # php -r 'phpinfo() ' Here Option ‘ -f‘ parse and execute the file that follows the command.Ģ. Since the output is too big we can pipeline the above output with ‘ less‘ command to get one screen output at a time, simply as: # php -f /var/www/html/infophp.php | less Run the PHP file located at ‘ /var/Check PHP info from Commandline Same results can be obtained from the Linux terminal without the need of any browser. Next thing, we do is to test a php (if installed correctly or not) commonly as by creating a file infophp.php at location ‘ /var/and then point your browser to which opens this file in web browser.

#Making gx works 2 run on linux install#

# yum install php-cli [ CentOS and alike System) # apt-get install php5-cli [ Debian and alike System) After PHP and Apache2 installation, we need to install PHP command Line Interpreter. This article aims at throwing light on the command-line aspect of PHP scripting Language.ġ. PHP is primarily used on Server-side (and JavaScript on Client Side) to generate dynamic web pages over HTTP, however you will be surprised to know that you can execute a PHP in a Linux Terminal without the need of a web browser. PHP is HTML embedded script which facilitates developers to write dynamically generated pages quickly. The current stable release is PHP Version 5.6.10. PHP is used by some 260 Million websites, as of now. Run PHP Codes in Linux Command Line – Part 1Ī PHP Syntax is very similar to Syntax in C, Java and Perl Programming Language with a few PHP-specific feature.

making gx works 2 run on linux

It is a cross platform scripting language which is highly influenced by C, C++ and Java. PHP is an open source server side scripting Language which originally stood for ‘ Personal Home Page‘ now stands for ‘ PHP: Hypertext Preprocessor‘, which is a recursive acronym.













Making gx works 2 run on linux