Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-16-2010, 06:53 AM   #16
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148

Sounds as if you have safe mode on. In which case you can only execute external programs from within PHP that are in the safe_mode_exec_dir as defined by your php.ini file.
Old 06-16-2010, 07:45 AM   #17
LQ Newbie
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you graemef,

But I'm able to print the data which are passed to the perl script from php,(in the perl script, at the line 95). If I run the php script via the command prompt, it executes. But If I read the data from the form and pass to the perl script for the processing, the control does not go beyond line 98.
Old 06-17-2010, 08:15 AM   #18
LQ Newbie
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0

The problem I'm facing here is, I'm able to print the values from the perl script, which are passed from the form. But The control is not passing beyond these print statement.

print "@token[0]<br>@token[1]<br>@token[2]<br>@token[3]<br>@token[4]<br>@token[5]<br>@token[6]<br>@token[7]";
print "UserLogin\n";
If run the php file directly from the browser, The control is being passed beyond these lines.

Any solution will be greatly appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Calling perl script and passing variable from php script hosea Programming 5 10-21-2008 08:01 AM
pass php variables to shell script viveksnv Programming 1 03-04-2008 11:46 PM
how to pass in a parameter to a perl script new_2_unix Linux - Newbie 2 12-09-2007 12:48 AM
Adding users with PHP (pass php variables to Expect script) Jayla Programming 1 10-20-2006 10:44 AM
script (or other) to pass variables to C++ program ngwenyama Programming 9 01-20-2005 09:54 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:16 AM.

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