Create shortcut for PHP
Posted
by
Daniel
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Daniel
Published on 2012-06-05T16:44:01Z
Indexed on
2012/06/05
16:47 UTC
Read the original article
Hit count: 367
I have XAMPP
installed and my PHP is:
/opt/lampp/bin/php-5.3.8
Every time I need to execute a PHP file I need to do this:
/opt/lampp/bin/php-5.3.8 testando.php
Is there another way to execute it besides using symbolic link?
I did this on /etc/init.d/
:
sudo ln -s /opt/lampp/bin/php-5.3.8 php
Why when I need to run PHP I have to do this ./php
instead of just php
?
And is there a way to do this without the ./
? Like it was installed via apt-get
?
© Ask Ubuntu or respective owner