Solved

Alias to the PHP command

Posted on 2006-07-09
2
201 Views
Last Modified: 2008-03-06
Ok sorry for silly question

I have Ubuntu setup running web server and would like to how to create a shortcut or alias to enable php command from anywhere with entering the full adress like /opt/lampp/bin/php

thanks
0
Comment
Question by:mrwilde
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 500 total points
ID: 17070816
Check your environment by using the set command.
set | grep PATH

THen use one of the dirs in your path (for instance /usr/bin)
cd /usr/bin
ln -s /opt/lampp/bin/php php

That should give you access to php from everywhere...
0
 
LVL 1

Author Comment

by:mrwilde
ID: 17070960
excellent that work great
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question