Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

exec() function with swiss ephemeris

111 views
Skip to first unread message

ssoom...@yahoo.com

unread,
Sep 23, 2008, 8:03:10 AM9/23/08
to
hello friends

can any one help me to solve the problem.actualy i am makink an php
application and i am using exec() function but when i run the
programme it give the warning "exec() has been disabled for security
reasons"
why this happening can any one tell me

actually the code is
exec("swetest -edir$sweph -bj$ejd -p$p_idx -eswe -fls -g, -head",
$out);

i am Eagerly waiting for that
thanks in advance

bye

Jerry Stuckle

unread,
Sep 23, 2008, 8:13:36 AM9/23/08
to

Like the message says - exec() has been disabled for security reasons.
If this is on your computer, check your php.ini file. If it's on shared
hosting, chances are they will not enable it. You'll need a vps or
dedicated server.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================

Janwillem Borleffs

unread,
Sep 24, 2008, 5:45:02 AM9/24/08
to
ssoom...@yahoo.com schreef:

> actually the code is
> exec("swetest -edir$sweph -bj$ejd -p$p_idx -eswe -fls -g, -head",
> $out);
>

As an alternative you could use popen(), although chances are that this
function has been disabled too.

Another alternative is to use Perl to execute the command and generate a
results page which you can include the regular way through HTTP.


JW

Christian Hansen

unread,
Sep 25, 2008, 4:46:25 PM9/25/08
to
ssoom...@yahoo.com schrieb:

Hi,
check phpinfo() for disable_functions .
bye

0 new messages