RE: [nyphp-talk] How to execute external program in php

2007-12-08 Thread Muhammad Rizwan Nawaz
Hi, Thanks for your reply. I have allow the apache server to login as admin. Its works and now its start executing the external program. Thanks Best Regards, Muhammad Rizwan Nawaz Email / MSN Messenger: [EMAIL PROTECTED] Gmail: [EMAIL PROTECTED] Yahoo IM: rizwan051 AOL IM: riznawaz Skype: riz

Re: [nyphp-talk] How to execute external program in php

2007-12-08 Thread Anthony
On w2k3 getting exec() to work is a PITA. If you are running fastcgi you will have to give that user permission to execute cmd.exe. Since it will be running as a network service PHP needs to execute both the program and cmd.exe. First I would try and figure out who is requesting the file (who do

Re: [nyphp-talk] distances between two zip codes

2007-12-08 Thread Brian D.
Here's a more efficient method: use this guy's free class file. I've used it for similar solutions, and it's pretty easy to hack to make it fit into whatever architecture you need. The code is fairly straightforward. http://www.micahcarrick.com/04-19-2005/php-zip-code-range-and-distance-calculatio

RE: [nyphp-talk] distances between two zip codes

2007-12-08 Thread Jeff Wilhelm - NYPHP
If you're going to do that you should use Google's API, otherwise when they make a change to their HTML your code will fail. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Papillion Sent: Saturday, December 08, 2007 2:37 AM To: NYPHP Talk Subjec

[nyphp-talk] How to execute external program in php

2007-12-08 Thread Muhammad Rizwan Nawaz
Hello, I have apache 2 , php5 on windows 2003 server. I want to execute the external command like, system( 'c:/PHP/safedir/pdftk.exe C:/AppServ/www/mylegalwork/images/pdf_files/PROD-5298b6/MLW_Demo_Form_1.pdf dump_data_fields > C:/AppServ/www/mylegalwork/images/pdf_files/PROD-5298b6/rizwan'