Solved

Alias to the PHP command

Posted on 2006-07-09
2
199 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to count in a table in php 22 35
PHP and google maps 13 44
paypal ipn url 5 57
Dynamic varibles 5 32
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

770 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