Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Run php script in console?

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
powderfinger
Posts: 5
Joined: 2007-09-21 07:41
Location: sweden
Contact:

Run php script in console?

#1 Post by powderfinger »

I have used several dists, but Debian is the first where i can't run php scripts in console like:
php my_script.php

I use cakephp when i develop DB centric projects in php, and in cake one of the great things is bake, a nice little script for genereating all the basic code in your project.

Since i turned ti Debian i can't bake anymore!!!!

pls help me out here!

If there is no easy way of getting php to run in console i have to turn back to good old Slackware :)

greenhat
Posts: 170
Joined: 2006-06-03 17:32

#2 Post by greenhat »

Code: Select all

$ apt-get install php5-cli
php5-cli : command-line interpreter for the php5 scripting language
This package provides the /usr/bin/php5 command interpreter, useful for
testing PHP scripts from a shell, or perhaps even performing general
shell scripting tasks

Post Reply