Re: can't make php exe on debian

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




--- In php-objects@yahoogroups.com, Knowles Burrell <kburrell3@g...>
wrote:
> >  sorry dude! ok, i have a php file php.php on my debian box that looks
> >  like this:
> >  #!/usr/bin/php
> >  <?php
> >  print("Hello World\n");
> >  ?>
> >  i am logged in as root but when i run php.php from the shell i get:
> >  bash: php.php: command not found
> >  how do i make debian run php.php as if i ran "php php.php"?
> 
> After a quick check of the PHP manual [1] we need to know what version
> of php you have. The CLI was not available until 4.2.0 and until 4.3.0
> you had to configure it in with ./configure --enable-cli. I am going
> out on a limb assuming this is what you are trying to do and not the
> cgi variant. To make sure you have the option do php -v you should get
> some out put like this:
> # php -v
> PHP 4.3.1 (cli) (built: Mar 27 2003 14:41:51)
> Copyright (c) 1997-2002 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
> 
> Also are you sure the path is /usr/bin/php and not /usr/local/bin/php?
> 
> kb3
> 
> 
> [1]http://us2.php.net/features.commandline

this is what i got when i ran php-v:
angelmoreno:~# php -v
PHP 4.3.9-1.dotdeb.3 (cli) (built: Oct  7 2004 10:57:01)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

and the path is actually /usr/bin/php, but still that path does not
make it run. i know it is the path because i can run it as
/usr/bin/php php.php and it runs fine.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux