Talk:Pow programming languages

From PlainOldWebserver

Jump to: navigation, search

I'm Having trouble using POW with php using windows xp.

I have a webpage set up with the .php extension

 Php fiile is: 'C:\Apps\Dev\Web\Php\Php\php.exe';

What should I put in the System Folder: my Php executable is : C:\Apps\Dev\Web\Php\Php\php.exe


      pow_server.APP_HANDLERS['php']  = 'C:\Apps\Dev\Web\Php\Php\php.exe';


      pow_server.APP_HANDLERS['php']  = 'C:\Apps\Dev\Web\Php\Php\';


      pow_server.APP_HANDLERS['php']  = 'C:\Apps\Dev\Web\Php\Php';
 

Nothing seems to work.

Thanks Murray

Take this problem to the Firefox POW newsgroup. -- Dave

Where is this newsgroup exactly? This is a pretty good question.

==> It's the Google group for POW: http://groups.google.com/group/firefoxpow

I have the same problem with RUBY on windows all paths i tried wont work!!!!!

[edit] Running PHP in Windows XP

I've been having the same problem with pointing to my php binary which is "C:\Program Files\php\php.exe". Javascript of course interprets \ as indicating the next character should be treated literally so I've coded

pow_server.APP_HANDLERS['php'] = 'C:\\Progra~1\\php\\php.exe';

This didn't have the desired effect and I got an "ECHO off" response which made me think it was treating it as a DOS command. Then I spotted there's also a php-cgi.exe in the php directory, so I changed the pointer to:

pow_server.APP_HANDLERS['php'] = 'C:\\Progra~1\\php\\php-cgi.exe';

and now I do get php writing "Hello World" back to my browser. The only thing I'd like to do now is stop the DOS window from opening up and displaying while it processes the php script.

Nick Baggott

[edit] To Run PHP in Windows

What worked for me: 'C:/folder/subfolder/php/php-cgi.exe'

Notice the "/" instead of "\" or "\\".


Actually, my personal use needed:

'K:/xampplite/php/php-cgi.exe'

since I wanted to use that already existing php folder, for testing purposes.

Haven't tried with more complex paths, but since "xampplite" isn't in the 8.3 format, it's possible that the compact 8.3 format for long file names isn't needed.

Jean Untel

Personal tools
Navigation