PHP website authentication / shadow file?

PHP website authentication / shadow file?

am 23.12.2005 02:33:02 von Henry Ortega

------=_Part_1181_15660384.1135301582843
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I want my PHP script authentication to be based on my system
username/password sets. My box is an email server also therefore
I wanted my users to use the same username/password that they use
checking their emails.

Maybe I can have my PHP script check against my shadow file?
Or maybe a totally separate C program that i can do popen and pass on
parameters?

Any suggestions? Is there an easy way to do this in PHP that I am not aware
of?

------=_Part_1181_15660384.1135301582843--

how can I execute bash file by using exec or system

am 23.12.2005 08:41:56 von Murat Beyhan

hello,

I try to execute bash script file by using following script

exec('/path/test.sh');

this test.sh file includes the Global Mapping Tools script and create map.ps
file taht is the epicenter distribution file of the earthquakes.

I have obtain epicenters.csv file by using PHP-MYSQL relation

$query = "SELECT Date , Time , Mag , Lat , Lon , Depth INTO OUTFILE
'$filename' FIELDS TERMINATED BY ',' FROM list WHERE Mag >0";


than after I try to draw epicenter distribution map by using test.sh file.All
this can easily run on the console but by using php I could not execute
test.sh file.
I also use

system('/path/test.sh');

But also this could not run bash file.
Are there any people to solve my problem.
Thanks all.
Murat

______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster@deprem.gov.tr
______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

how can I execute bash file by using exec or system

am 23.12.2005 14:11:24 von Murat Beyhan

hello,

I try to execute bash script file by using following script

exec('/path/test.sh');

this test.sh file includes the Global Mapping Tools script and
create map.ps file taht is the epicenter distribution file of the earthquakes.

I have obtain epicenters.csv file by using PHP-MYSQL relation

$query = "SELECT Date , Time , Mag , Lat , Lon , Depth INTO OUTFILE
'$filename' FIELDS TERMINATED BY ',' FROM list WHERE Mag >0";

than after I try to draw epicenter distribution map by using
test.sh file.All this can easily run on the console but by using php
I could not execute test.sh file. I also use

system('/path/test.sh');

But also this could not run bash file.
Are there any people to solve my problem.
Thanks all.
Murat



______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster@deprem.gov.tr
______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: how can I execute bash file by using exec or system

am 23.12.2005 15:23:54 von Bastien Koert

I would suspect that the user (apache as nobody usually) does not have
permissions to run the bash script...try looking at the permissions to
malign them...

Bastien


>From: "Murat Beyhan"
>To: php-db@lists.php.net
>Subject: [PHP-DB] how can I execute bash file by using exec or system
>Date: Fri, 23 Dec 2005 15:11:24 +0200
>
>
> hello,
>
> I try to execute bash script file by using following script
>
> exec('/path/test.sh');
>
> this test.sh file includes the Global Mapping Tools script and
> create map.ps file taht is the epicenter distribution file of the
>earthquakes.
>
> I have obtain epicenters.csv file by using PHP-MYSQL relation
>
> $query = "SELECT Date , Time , Mag , Lat , Lon , Depth INTO OUTFILE
> '$filename' FIELDS TERMINATED BY ',' FROM list WHERE Mag >0";
>
> than after I try to draw epicenter distribution map by using
> test.sh file.All this can easily run on the console but by using php
> I could not execute test.sh file. I also use
>
> system('/path/test.sh');
>
> But also this could not run bash file.
> Are there any people to solve my problem.
> Thanks all.
> Murat
>
>
>
>______________________________________
>XamimeLT - installed on mailserver for domain @deprem.gov.tr
>Queries to: postmaster@deprem.gov.tr
>______________________________________
>The views and opinions expressed in this e-mail message are the sender's
>own
>and do not necessarily represent the views and the opinions of Earthquake
>Research Dept.
>of General Directorate of Disaster Affairs.
>
>Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak
>T.C.
>B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte
>degildir.
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: how can I execute bash file by using exec or system

am 23.12.2005 16:05:18 von Jim McDonald

=20

Try=20

exec('source /path/test.sh');



-jim

-----Original Message-----
From: Murat Beyhan [mailto:beyhan@deprem.gov.tr]=20
Sent: Friday, December 23, 2005 1:42 AM
To: php-db@lists.php.net
Subject: how can I execute bash file by using exec or system

hello,

I try to execute bash script file by using following script

exec('/path/test.sh');

this test.sh file includes the Global Mapping Tools script and create
map.ps file taht is the epicenter distribution file of the earthquakes.

I have obtain epicenters.csv file by using PHP-MYSQL relation

$query =3D "SELECT Date , Time , Mag , Lat , Lon , Depth INTO OUTFILE
'$filename' FIELDS TERMINATED BY ',' FROM list WHERE Mag >0";


than after I try to draw epicenter distribution map by using test.sh
file.All this can easily run on the console but by using php I could not
execute test.sh file.
I also use=20

system('/path/test.sh'); =20

But also this could not run bash file.
Are there any people to solve my problem.
Thanks all.
Murat

______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to:
postmaster@deprem.gov.tr ______________________________________
The views and opinions expressed in this e-mail message are the sender's
own and do not necessarily represent the views and the opinions of
Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal
olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici
nitelikte degildir.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: how can I execute bash file by using exec or system

am 23.12.2005 16:12:50 von Jim McDonald

Oops, my bad. I thought you were trying to launch a .bashrc file. I've
had my second cup of coffee, and I am feeling better, thank you.

More likely than not your PHP path does not include the path to bash, or
your test.sh script does not have the correct path to bash in it.
Otherwise, it is probably a permissions issue, where the PHP user does
not have execute access to your script.

I can't make any assumptions about your operating system or web server,
as this is really off topic in the php-db list. =20

Oh, and the first email I sent you bounced... "The e-mail account does
not exist at the organization this message was sent to."

-jim

-----Original Message-----
From: Murat Beyhan [mailto:beyhan@deprem.gov.tr]=20
Sent: Friday, December 23, 2005 1:42 AM
To: php-db@lists.php.net
Subject: how can I execute bash file by using exec or system

hello,

I try to execute bash script file by using following script

exec('/path/test.sh');

this test.sh file includes the Global Mapping Tools script and create
map.ps file taht is the epicenter distribution file of the earthquakes.

I have obtain epicenters.csv file by using PHP-MYSQL relation

$query =3D "SELECT Date , Time , Mag , Lat , Lon , Depth INTO OUTFILE
'$filename' FIELDS TERMINATED BY ',' FROM list WHERE Mag >0";


than after I try to draw epicenter distribution map by using test.sh
file.All this can easily run on the console but by using php I could not
execute test.sh file.
I also use=20

system('/path/test.sh'); =20

But also this could not run bash file.
Are there any people to solve my problem.
Thanks all.
Murat

______________________________________
XamimeLT - installed on mailserver for domain @deprem.gov.tr Queries to:
postmaster@deprem.gov.tr ______________________________________
The views and opinions expressed in this e-mail message are the sender's
own and do not necessarily represent the views and the opinions of
Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal
olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici
nitelikte degildir.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php