?
Solved

Alias to the PHP command

Posted on 2006-07-09
2
Medium Priority
?
203 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 2000 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

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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 …
Suggested Courses

771 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