Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Since using forums in my early days 10 years ago in CompuServe, one had to log back on and sometimes wait days for a response. Now I get a response e-mailed to me which I can click a link and go right back to exactly where My post was..."

Geography

Where in the world do Tek-Tips members come from?

I'm trying to execute an external p

CajunCenturion (Programmer)
18 May 12 12:19
I'm trying to execute an external program from Apache/PHP, and the PHP scrips hangs up on the exec command.

Details:
Windows 2008 R2, Apache 2.4, and PHP 5.2.17
The executable was building Visual FoxPro 9.0, SP2.
The exe currently resides in the Windows\System32 directory. It's only there for now to try to take permissions out of the equation.

The topic has been address in the PHP forum: thread434-1683454: Trying to exec foxpro app from within PHP

Since the program executes as expected when run directly from the command line, and also executes as expected by PHP as follows:
c:\>php script.php
I can't help but wonder if there is something amiss with the Apache config. Apache is currently configured to log in as Administrator in hopes to take any permission issues out of play.

Any help graciously appreciated.

--------------
Good Luck
To get the most from your Tek-Tips experience, please read
FAQ181-2886: How can I maximize my chances of getting an answer?
Wise men speak because they have something to say, fools because they have to say something. - Plato

CajunCenturion (Programmer)
18 May 12 13:31
The problem has been solved. It turns out is was a combination of a corrupt DLL, permissions, and an invalid Foxpro resource file.

--------------
Good Luck
To get the most from your Tek-Tips experience, please read
FAQ181-2886: How can I maximize my chances of getting an answer?
Wise men speak because they have something to say, fools because they have to say something. - Plato

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close