Page 1 of 1

ubuntu 7.10 install CLI?

Posted: Tue Mar 25, 2008 2:32 pm
by jbangert
I'd like to run php CLI + curl on ubuntu 7.10.

I ran Synaptic, did what it said,
everything seems to be OK.

How do I run a command?

Been writing code for 44 years,
currently C# in Windows.
Installed ubuntu from Sobell's Practical Guide.
Everything is OK.

Thanks for the help.

Re: ubuntu 7.10 install CLI?

Posted: Tue Mar 25, 2008 5:03 pm
by Zoxive

Code: Select all

sudo apt-get install php5-cli php5-curl
jbangert wrote:How do I run a command?
What kind of command?

Code: Select all

kyle@w3jubuntu:~$ php5 -r "
> var_dump(null);
> ";
NULL
(One way to execute some code)

Like usual look at the manual.

Code: Select all

man php5

Re: ubuntu 7.10 install CLI?

Posted: Wed Mar 26, 2008 4:38 am
by jbangert
Many thanks for the quick reply.
I'm guessing the main problem here is:
there's lots of stuff I don't know.
I don't know what is common knowledge.
I don't remember a lot of Unix. That was 30 years ago.

But, so far I'm making progress with your suggestions.

Next step -- learn to use the text editor.
'Cause, I'm sure NOT going to go back to
vi or emacs.

Thanks.