![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Script Error | jazz8146 | UNIX for Dummies Questions & Answers | 0 | 04-23-2008 04:38 AM |
| awk Shell Script error : "Syntax Error : `Split' unexpected | Herry | UNIX for Dummies Questions & Answers | 2 | 03-17-2008 07:16 AM |
| Shell - a small error! :( | abrox | Shell Programming and Scripting | 8 | 07-19-2007 01:32 AM |
| error in shell script | jalpan.pota | UNIX for Dummies Questions & Answers | 2 | 05-18-2007 06:14 AM |
| no shell connection closed error | giulianob | UNIX for Dummies Questions & Answers | 2 | 10-07-2003 10:08 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi,
Now that I'm going to be using my Mac as a web host, I decided to use the PHP shell. However, when I type php straight in the terminal, the session freezes. Is there anything wrong that I'm doing? |
| Forum Sponsor | ||
|
|
|
|||
|
When I type "php -v", I get this:
Quote:
When I type "which php", I get the directory which the php Unix application is installed (/usr/bin/php). And although I did this before I asked the question, I get a manual on the PHP program when I type "man php." Here's the whole terminal session: Code:
Last login: Fri Jul 16 21:12:56 on console Welcome to Darwin! iMac:~ danny$ php -v PHP 4.3.2 (cli) (built: Sep 13 2003 22:04:20) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies iMac:~ danny$ which php /usr/bin/php iMac:~ danny$ man php iMac:~ danny$ logout [Process completed] |
|
|||
|
so, if you only type:
Code:
php the cursor moves down one line without a prompt? If so, this is normal. It means php is waiting for the code to execute. In that case, enter: Code:
<? phpinfo() ?> If you get a long list of settings, then php command line is working as it should. It just needs to be started, then script/command entered, and told when to process the script/command. |
|||
| Google UNIX.COM |