472,954 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 software developers and data experts.

Passthru

Hi,

Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable this
function? How can I best work around if I can't use this function?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~l-.~~~~~~~~~~~~~~~~~~~
GG-1175498 ____| ]____,
Rafal 'Raf256' Maj X-( * )
Rafal(at)Raf256(dot)com ,"----------"
Jul 17 '05 #1
3 7124
On 8 Nov 2003 18:52:32 GMT, "Rafal 'Raf256' Maj" <sp**@raf256.com> wrote:
Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable this
function? How can I best work around if I can't use this function?


Looks like you're in safe_mode with passthru listed in the disable_functions
option.

http://www.php.net/features.safe-mode

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #2
Andy Hassall" <an**@andyh.co.uk> wrote in message
news:jt********************************@4ax.com...
On 8 Nov 2003 18:52:32 GMT, "Rafal 'Raf256' Maj" <sp**@raf256.com> wrote:
Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable thisfunction? How can I best work around if I can't use this function?
Looks like you're in safe_mode with passthru listed in the

disable_functions option.

http://www.php.net/features.safe-mode


Can't he use ini_set() to get around it?
--
Sharif Tanvir Karim
Samples and Resume:
http://www.freewebs.com/stk15/
Jul 17 '05 #3
On Sun, 09 Nov 2003 20:46:39 GMT, "Sharif Tanvir Karim" <sh****@nyc.rr.com>
wrote:
Andy Hassall" <an**@andyh.co.uk> wrote in message
news:jt********************************@4ax.com.. .
On 8 Nov 2003 18:52:32 GMT, "Rafal 'Raf256' Maj" <sp**@raf256.com> wrote:
Warning: passthru() has been disabled for security reasons in ...

how can I change my php.ini file (php4/apache/winxp server) to enable
this function? How can I best work around if I can't use this function?


Looks like you're in safe_mode with passthru listed in the
disable_functions option.

http://www.php.net/features.safe-mode


Can't he use ini_set() to get around it?


No, read the manual page, particularly the disable_functions entry.

If you could disable safe_mode features from within a script, what would be
the point in having safe_mode in the first place?

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Yemi | last post by:
Hi There. I seem to be getting some inconsistent results when using passthru() in safe mode. They appear to be related to the fact that passthru should treat all command arguments as one single...
3
by: Jerry | last post by:
I've found a problem with exec, passthru, shell_exec & system. I'm trying to run the following exec("sort -r -n -k2,2 r1.txt > r2.txt") with r1.txt being a numeric file. The file looks like...
2
by: Greg Chapman | last post by:
I am at my wit's end trying to get information out of Streamline.net's support dept about my problem. They reply quickly enough, but seem to try and give out the least possible amount of info each...
2
by: Martin Kofahl | last post by:
Hello, I'm slightly confused with the passthru() command. The program I call writes html headers itself. However, passthru() makes apache sending some generated headers first. There's no fault...
1
by: Spudster3 | last post by:
I'm trying to get this to work.. <?php echo passthru('wmic cpu get loadpercentage'); ?> and just output to the browser... It looks like cmd.exe hangs when it tries to execute the command. ...
2
by: Robertico | last post by:
Hi, I tried to use the Passthru and System function to resolve some whois information. echo passthru('whois 62.69.168.12') .'<br>'; -or- $whois = system('whois 62.69.168.12', $retval); It...
2
by: rickcasey | last post by:
I cannnot seem to get exec() or passthru() to execute a perl script; here's the code snippet: if ($debug) { echo "username1 = ".$username1."<br>"; echo "dbname = ".$dbname."<br>"; echo...
1
by: bobh | last post by:
Hi All, In AccessXP I'm trying to change a query I have to a 'passthru' query and its failing. I think its due the fact that I have an 'IIF' in it. What is the sql equivalant to Access ' IIF '...
5
by: amalprakash3220 | last post by:
Hi, I want to implement a Web based System administration page in PHP. I'm planning to use apache server, mySQL and Ubuntu/debian. Can I implement it using the functions passthru(),exec() and...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
1
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.