LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2006, 05:51 PM   #1
mtndew
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora Core 5
Posts: 13

Rep: Reputation: 0
Need Some Help With PHP5


Hi all,

I just recently upgraded to PHP 5.1.2 from PHP 4[.3.4](?). I mainly use PHP to call shell programs using passthru(), however, in PHP 5.1.2, this function does absolutely nothing. Along with this I tried exec(), popen(), proc_open(), and system(), all of them do not work. (Exec returns a status code of 127 if that helps). I believe this is a problem with my configuration, has any one else had this problem, or know how to fix this?

For the record:

- Downgrading to PHP 4 is not an option, I use libxml now.
- PHP 5 is NOT running in safe mode.
- I'm all out of ideas.

Thanks in advance,

-mtndew
 
Old 01-30-2006, 07:13 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
perhaps safe mode is enabled?
 
Old 01-30-2006, 07:48 PM   #3
mtndew
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora Core 5
Posts: 13

Original Poster
Rep: Reputation: 0
php.ini has `safe_mode = Off' in it, and phpinfo(); says it is off as well.
 
Old 01-30-2006, 10:07 PM   #4
egghead
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware 9.1
Posts: 23

Rep: Reputation: 15
With passthru you need to specify the complete path of the executable.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Php5 Thanotos Linux - Newbie 2 12-07-2005 10:39 AM
phpbb on PHP5 Swift&Smart Linux - Software 1 11-24-2005 06:48 PM
Instal PHP5 ddrummond Mandriva 7 08-20-2005 05:06 AM
php5 Hampster Linux - Software 4 01-09-2005 04:50 PM
Installing PHP5 varunbihani Linux - Software 0 01-07-2005 06:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration