Re: [PHP] php exec()

2008-11-02 Thread Ashley Sheridan
On Mon, 2008-11-03 at 15:21 +0800, cheesiong wrote: > hi Chris, > i found out that when execute ipkg, the return is before the header. > > root [ /srv/www/test ]# /program/php-5.2.6/bin/php-cgi ipkg.php > ipkg version 0.99.163 > X-Powered-By: PHP/5.2.6 > Content-type: text/html > > Array > ( > )

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, i found out that when execute ipkg, the return is before the header. root [ /srv/www/test ]# /program/php-5.2.6/bin/php-cgi ipkg.php ipkg version 0.99.163 X-Powered-By: PHP/5.2.6 Content-type: text/html Array ( ) which is different than the whoami program. root [ /srv/www/test ]# /pr

Re: [PHP] take me off the list

2008-11-02 Thread Ashley Sheridan
On Sun, 2008-11-02 at 19:52 -0500, Dennison, Deborah wrote: > Sorry to have to do this to the list but I have tried 4 rimes to > unsubscribe from this list the suggested way yet I continue to get mail. > List Master please remove me. > > > > - > > De

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, i did try, below is the continouos output from prompt when i do su. root [ /srv/www/test ]# su daemon root [ /srv/www/test ]# i didnt manage to switch user. i will create an user... so that i can switch to it. i created a user call lfs into group lfs. able to execute ipkg-cl and /prog

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, my linux system is LFS that i build from scratch. i cant su to daemon. below is my /etc/passwd: root [ /srv/www/test ]# cat /etc/passwd root:x:0:0:root:/root:/bin/bash nobody:x:99:99:Unprivileged User:/dev/null:/bin/false sshd:x:50:50:sshd PrivSep:/var/lib/sshd:/bin

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, my linux system is LFS that i build from scratch. i cant su to daemon. below is my /etc/passwd: root [ /srv/www/test ]# cat /etc/passwd root:x:0:0:root:/root:/bin/bash nobody:x:99:99:Unprivileged User:/dev/null:/bin/false sshd:x:50:50:sshd PrivSep:/var/lib/sshd:/bin/false daemon:x:6:6

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, thank you. i change the path and change the httpd.conf LogLevel to debug then restart apache. but nothing is change from the output or the error log. basically it is still not working. this is weird, isn't it. the apache is run with Daemon, but i already change t

[PHP] Re: Write my own extensions

2008-11-02 Thread Lupus Michaelis
Gautier Di Folco a écrit : I am a French student, so I do not speak english very well, I am sorry... We(re a lot in this case :p For a few weeks I want to write my own extension for PHP in C++ language... Do it in C, not C++. And compile in C, not C++. C and C++ are slightly different

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, thank you. i change the path and change the httpd.conf LogLevel to debug then restart apache. but nothing is change from the output or the error log. basically it is still not working. this is weird, isn't it. the apache is run with Daemon, but i already change the chmod to 777. shoul

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, i change the script to: the output from browser: array() other stuff remain the same. can i conclude php program is not a problem here? It could be a path problem still even though you put it in /usr/bin/ try a full path (recommended anyway): exec('/usr/bin/ipkg

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, i change the script to: the output from browser: array() other stuff remain the same. can i conclude php program is not a problem here? i will try to use other server to see if it is server inheritance. and will try to increase errorlog level to see what is the problem. regards,-keo

Re: [PHP] php exec()

2008-11-02 Thread Chris
cheesiong wrote: hi Chris, thank you. it is not working as well. i copy the ipkg-cl into /usr/bin add error_reporting(E_ALL); and ini_set('display_errors', true); to the top of your script. any errors/warnings/whatever show up? -- Postgresql & php tutorials http://www.designmagick.com/

Re: [PHP] php exec()

2008-11-02 Thread cheesiong
hi Chris, thank you. it is not working as well. i copy the ipkg-cl into /usr/bin do i need to set anything in the httpd.conf on the directive? i am running apache-2.2.9. this is code copy from you suggestion: output from browser: Array ( ) output from prompt if i execute on the linux system:

Re: [PHP] php exec()

2008-11-02 Thread Chris
the output from the browser is the same and not the expecting version of the ipkg-cl. then i tried to echo exec('ifconfig'); the output is the same also. You need to do this: $output = array(); exec('/program/', $output); for it to put the results of running the command into the $output

[PHP] Re: php exec()

2008-11-02 Thread cheesiong
i try to use the system() function, i found the the last line of the ifconfig is actually nothing. but i still cannot execute the ipkg-cl program. any idea? thank you. regards,-keo On Mon, Nov 3, 2008 at 11:31 AM, cheesiong <[EMAIL PROTECTED]> wrote: > hi all, > this is the first time i try out

[PHP] php exec()

2008-11-02 Thread cheesiong
hi all, this is the first time i try out the mailing list. i hope to get help from here. thank you. i hope this email can reach the mail group as i use bluecolour.sz to sign on the news group but using bluecolour to do all the emailing. i am facing a problem when i study exec() php function: i t

Re: [PHP] take me off the list

2008-11-02 Thread Robert Cummings
On Sun, 2008-11-02 at 19:52 -0500, Dennison, Deborah wrote: > Sorry to have to do this to the list but I have tried 4 rimes to > unsubscribe from this list the suggested way yet I continue to get mail. > List Master please remove me. On time.. at band camp... I tried 4 rhymes AND a limerick. Chee

Re: [PHP] phpbb forum & site login integratio

2008-11-02 Thread Robert Cummings
On Mon, 2008-11-03 at 00:31 +0100, Maciek Sokolewicz wrote: > Richard Heyes wrote: > >> Hi All I am looking to integrate phpbb forum with an existing site login > >> system. > > > > Not having looked at it, you could look at using HTTP auth. Might make > > things easier. Then again, it might not.

Re: [PHP] take me off the list

2008-11-02 Thread Chris
Dennison, Deborah wrote: Sorry to have to do this to the list but I have tried 4 rimes to unsubscribe from this list the suggested way yet I continue to get mail. List Master please remove me. Very clear instructions here: http://php.net/unsub.php If you still can't work it out, read the "Sti

[PHP] take me off the list

2008-11-02 Thread Dennison, Deborah
Sorry to have to do this to the list but I have tried 4 rimes to unsubscribe from this list the suggested way yet I continue to get mail. List Master please remove me. - Deborah Dennison email: [EMAIL PROTECTED] Phone: 978-614-6073

RE: [PHP] Re: Simple app to Fill in TBL/Access Control Function.

2008-11-02 Thread bruce
Hi Maciek, My bad for the confusion. A number of apps allow users to sign up, and perform certain functions on the site, based on the user roles/access privs. In some cases, the apps allow the user(s) to modify underlying data, that's written to a given tbl. The ADMIN function for some of these ap

[PHP] Re: Simple app to Fill in TBL/Access Control Function.

2008-11-02 Thread Maciek Sokolewicz
bruce wrote: Hi guys... Forgive me! I'm looking for a simple app that has the user complete a TBL (don't care what), and has an access control process, along with an ADMIN function I have no idea what you want, that explenation is _so_ vague ("a TBL (don't care what"... means... what exactl

Re: [PHP] phpbb forum & site login integratio

2008-11-02 Thread Maciek Sokolewicz
Richard Heyes wrote: Hi All I am looking to integrate phpbb forum with an existing site login system. Not having looked at it, you could look at using HTTP auth. Might make things easier. Then again, it might not. [shrugs] Ask on the phpbb forums, I don't know how they handle logins exactly a

[PHP] Simple app to Fill in TBL/Access Control Function.

2008-11-02 Thread bruce
Hi guys... Forgive me! I'm looking for a simple app that has the user complete a TBL (don't care what), and has an access control process, along with an ADMIN function Something simple that I can rip apart, and build on top of!!! The CMS/Drupal/Typo/etc.. are way too complex. I'm currently lo

Re: [PHP] phpbb forum & site login integratio

2008-11-02 Thread Richard Heyes
> Hi All I am looking to integrate phpbb forum with an existing site login > system. Not having looked at it, you could look at using HTTP auth. Might make things easier. Then again, it might not. [shrugs] -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org

[PHP] phpbb forum & site login integration

2008-11-02 Thread Progwihz
Hi All I am looking to integrate phpbb forum with an existing site login system. I 've been searching the web for information on how to do this and cant find one. I came across this and I dont know if anyone here has had any experience with it or if anyone has tried it out. http://www.phpclas

Re: [PHP] Write my own extensions

2008-11-02 Thread Nathan Nobbe
On Sun, Nov 2, 2008 at 1:02 PM, Stut <[EMAIL PROTECTED]> wrote: > On 2 Nov 2008, at 18:57, Gautier Di Folco wrote: > >> I am a French student, so I do not speak english very well, I am sorry... >> >> For a few weeks I want to write my own extension for PHP in C++ >> language... >> >> But I do not

Re: [PHP] Write my own extensions

2008-11-02 Thread Stut
On 2 Nov 2008, at 18:57, Gautier Di Folco wrote: I am a French student, so I do not speak english very well, I am sorry... For a few weeks I want to write my own extension for PHP in C++ language... But I do not find any trivial things, all the exemples did not have any paramaters... D

[PHP] Write my own extensions

2008-11-02 Thread Gautier Di Folco
Hello, I am a French student, so I do not speak english very well, I am sorry... For a few weeks I want to write my own extension for PHP in C++ language... But I do not find any trivial things, all the exemples did not have any paramaters... Do you know where I can find concrete things t

Re: [PHP] Re: Yahoo/Gmail/Hotmail Contacts API

2008-11-02 Thread Eric Butera
On Sun, Nov 2, 2008 at 5:03 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> Open id's really a toy at this point. > > Now that MS and Google have signed up it will soon get a lot bigger. > > http://news.bbc.co.uk/1/hi/technology/7699320.stm > > -- > Richard Heyes > > HTML5 Graphing for FF, Chrome,

Re: [PHP] Re: Yahoo/Gmail/Hotmail Contacts API

2008-11-02 Thread Richard Heyes
> Open id's really a toy at this point. Now that MS and Google have signed up it will soon get a lot bigger. http://news.bbc.co.uk/1/hi/technology/7699320.stm -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated October 25th) -- PHP General Mailing