Can't use CLI PHP
Posted by: ppowell777 (---.dc.dc.cox.net)
Date: January 28, 2007 07:34PM

Just installed WAMP5, which is working wonderfully, however, there is one problem your forum doesn't seem to address that I could find:

How do I use CLI PHP? I have an application that requires a CLI-PHP installer to function, but when I do this:

C:\wamp\php\php -q "C:\Documents and Settings\Me\My Documents\docs\tools\app\install.PHP"

Instead of running the PHP script, it displays the raw code instead. How can I get this fixed?

Thanx
Phil



PHP, Tcl, Java, Frustration!!!

Options: ReplyQuote
Re: Can't use CLI PHP
Posted by: yfastud (---.mia.bellsouth.net)
Date: January 28, 2007 10:17PM

Move that folder inside c:/wamp/www and run from there

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: Can't use CLI PHP
Posted by: ppowell777 (---.dc.dc.cox.net)
Date: January 28, 2007 10:24PM

Sorry, same results from within /wamp/php

yfastud wrote:

> Move that folder inside c:/wamp/www and run from there
>
> Have fun
>
> [www.jlbn.com] (testing web
> server)

> [test.jlbn.com] (testing codes)
> [forum.jlbn.com] (testing phpBB2)
> [forums.jlbn.com] (testing
> phpBB3)

> [mail.jlbn.com] (testing
> mailserver)

> [ftp.jlbn.com] (testing ftp
> server)

> [www.jlbn.com] (testing
> flashes)

> [www.jlbn.com] (testing
> images)

> [joomla.jlbn.com] (testing Joomla
> 1.0.10)

> [fusion.jlbn.com] (testing phpFusion
> 6.01.6)

> [nuke.jlbn.com] (testing phpNuke
> 7.9)

> [nukep.jlbn.com] (testing phpNuke
> Platinum 7.6.b.4v2)

> [pnuke.jlbn.com] (testing PostNuke
> 0.800-MS2)

> [nukevo.jlbn.com] (testing phpNuke
> Evolution 2.0.1)




PHP, Tcl, Java, Frustration!!!

Options: ReplyQuote
Re: Can't use CLI PHP
Posted by: yfastud (---.cable.mindspring.com)
Date: January 29, 2007 02:19AM

Quote

Sorry, same results from within /wamp/php
Not sure why you've got that problem, because I tested it w/o problem at all

Here is my test.php saved on D:
<?php
echo "This is a PHP-CLI Script!!";
?>

And here is the screen shot

[i117.photobucket.com]

Also, check this tutor, it might help you out

[www.phpfreaks.com]

BTW, most scripts nowadays uses short_open_tag, so you might want to enable it on php.ini and better open it through tray icon because there are 2 php.ini in wampserver, and remember to restart wampserver after editing

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)



Post Edited (01-29-07 04:15)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Can't use CLI PHP
Posted by: ppowell777 (---.dc.dc.cox.net)
Date: January 29, 2007 10:34AM

I moved the entire folder to /wamp/www and tried via CLI PHP - to no avail, PHP source code gets spit out and no execution takes place..

I tested via browser and all works beautifully!



PHP, Tcl, Java, Frustration!!!

Options: ReplyQuote
Re: Can't use CLI PHP
Posted by: yfastud (72.236.169.---)
Date: January 29, 2007 02:35PM

when installing app, it might requires more than just php, so not sure if cli can handle it, but just for testing cli, suggest you test it as I did and posted above.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: Can't use CLI PHP
Posted by: ppowell777 (---.dc.dc.cox.net)
Date: January 31, 2007 06:32AM

I got it to work BTW:

php -d short_open_tag=on -q "path/to/my/file.php" so it wasn't a WAMP5 issue all along *whew*



PHP, Tcl, Java, Frustration!!!

Options: ReplyQuote
Re: Can't use CLI PHP
Posted by: yfastud (72.236.169.---)
Date: January 31, 2007 01:41PM

You can enable short_open_tag in php.ini through tray icon

Have fun,

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote


Sorry, only registered users may post in this forum.