Solved

Alias to the PHP command

Posted on 2006-07-09
2
197 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
Comment Utility
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
Comment Utility
excellent that work great
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …

763 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now