Re: [PHP] Website with a Instant Messenger
"Raditha Dissanayake" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Ricardo Cezar wrote: > > >Hello all, > > > >I want to put a instant messenger in a website. People connect to this > >website to stay in touch with each other. There is a photo album for > >everyone, a Forum, groups... > > > >The IM must work like ICQ, MSN and other, but via web. Users of the site can > >add other users to the list, and when people log in their status go ONLINE. > >Then we can open another window and chat, or send a message... > Strange as it may seem. This is not asking too much. Jabber > (http://www.jabber.org) can do all that. You will even find a couple of > PHP classes to talk to a jabber server. > > Raditha Dissanayake. Thanks Raditha. I will look jabber.org for some docs. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to execute a remote command from php [done]
- Original Message - From: "Sethi, Samir (IDS DM&DS)" <[EMAIL PROTECTED]> To: "Victor Alvarez" <[EMAIL PROTECTED]> Sent: Monday, September 27, 2004 5:47 PM Subject: RE: [PHP] how to execute a remote command from php Exactly, I had to generate keys for nobody and now I am able to execute remote commands. Thank you so much. Victor. I think when you execute the command it is run as user nobody. You may need to generate keys for the nobody account and update the authorized keys on the remote system. Samir. -Original Message- From: Victor Alvarez [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 12:35 PM To: [EMAIL PROTECTED] Subject: [PHP] how to execute a remote command from php Hello, Since last week I am trying to execute a remote machine command from php without success. Since ssh ask for a password, I managed to use ssh with dsa authentication so it's possible to call the remote command without password and only with one line: ssh -l victor 192.168.129.211 -i /root/.ssh/id_dsa "whoami". It works perfectly from command line but I have nothing if I try to do the same from php: exec("ssh -l victor 192.168.129.211 -i /root/.ssh/id_dsa \"whoami\"",$results); $results is empty after the execution. I wonder if somebody could answer this question. I have found no solution googling it. Thank you. Regards, Victor. If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: grabbing information from websites
ugh, obviously I'm a bad typer :) The code should be: preg_match('#username=champinoman&category=13.*align="right">(.*)#mi', $text, $out); Or using any other patterndelimiter... ;) M. Sokolewicz wrote: I thought I clearly stated that for the m modifier you need to use PCRE functions! eg: preg_match('/username=champinoman&category=13.*align="right">(.*)/mi', $text, $out); Champinoman wrote: so does this look right: eregi ("username=champinoman&category=13.*align=\"right\">(.*)"m,$line,$out)) is that where i am ment to put the 'm' modifier? or am i still off on the wrong track? "Graham Cossey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] From http://gnosis.cx/publish/programming/regular_expressions.html: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions; now you have two problems." To me regular expressions are some kind of black art, I've been programming for 20 years and until recently have pretty much managed to avoid them. The above URL is a pretty good tutorial. HTH Graham -Original Message- From: champinoman [mailto:[EMAIL PROTECTED] Sent: 28 September 2004 09:35 To: [EMAIL PROTECTED] Subject: [PHP] Re: grabbing information from websites instead of the POSIX regexp, tr using PERL style RegExps (www.php.net/pcre) Once you've done that, you can add the pattern modifier 'm' to allow multilines . i think im lost now. i had a look at the site but im not sure what im looking at. any chance u could make a mock script up so i can see what your explaining? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: grabbing information from websites
I thought I clearly stated that for the m modifier you need to use PCRE functions! eg: preg_match('/username=champinoman&category=13.*align="right">(.*)/mi', $text, $out); Champinoman wrote: so does this look right: eregi ("username=champinoman&category=13.*align=\"right\">(.*)"m,$line,$out)) is that where i am ment to put the 'm' modifier? or am i still off on the wrong track? "Graham Cossey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] From http://gnosis.cx/publish/programming/regular_expressions.html: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions; now you have two problems." To me regular expressions are some kind of black art, I've been programming for 20 years and until recently have pretty much managed to avoid them. The above URL is a pretty good tutorial. HTH Graham -Original Message- From: champinoman [mailto:[EMAIL PROTECTED] Sent: 28 September 2004 09:35 To: [EMAIL PROTECTED] Subject: [PHP] Re: grabbing information from websites instead of the POSIX regexp, tr using PERL style RegExps (www.php.net/pcre) Once you've done that, you can add the pattern modifier 'm' to allow multilines . i think im lost now. i had a look at the site but im not sure what im looking at. any chance u could make a mock script up so i can see what your explaining? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: grabbing information from websites
so does this look right: eregi ("username=champinoman&category=13.*align=\"right\">(.*)"m,$line,$out)) is that where i am ment to put the 'm' modifier? or am i still off on the wrong track? "Graham Cossey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From http://gnosis.cx/publish/programming/regular_expressions.html: > > "Sometimes you have a programming problem and it seems like the best > solution is to use regular expressions; now you have two problems." > > To me regular expressions are some kind of black art, I've been > programming > for 20 years and until recently have pretty much managed to avoid them. > The > above URL is a pretty good tutorial. > > HTH > > Graham > > -Original Message- > From: champinoman [mailto:[EMAIL PROTECTED] > Sent: 28 September 2004 09:35 > To: [EMAIL PROTECTED] > Subject: [PHP] Re: grabbing information from websites > > > >> instead of the POSIX regexp, tr using PERL style RegExps >> (www.php.net/pcre) Once you've done that, you can add the pattern >> modifier >> 'm' to allow multilines . > > i think im lost now. i had a look at the site but im not sure what im > looking at. any chance u could make a mock script up so i can see what > your > explaining? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Need help in implementing Payment Gatewaydetails
Hi. Any one could tell me about how to implement VeriSign Payment Gateway. I mean I want to know how to implement the AVS and CSC filter settings in test mode and how to convert them in to live mode. Its Very Important Thanks in advance... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: grabbing information from websites
>From http://gnosis.cx/publish/programming/regular_expressions.html: "Sometimes you have a programming problem and it seems like the best solution is to use regular expressions; now you have two problems." To me regular expressions are some kind of black art, I've been programming for 20 years and until recently have pretty much managed to avoid them. The above URL is a pretty good tutorial. HTH Graham -Original Message- From: champinoman [mailto:[EMAIL PROTECTED] Sent: 28 September 2004 09:35 To: [EMAIL PROTECTED] Subject: [PHP] Re: grabbing information from websites > instead of the POSIX regexp, tr using PERL style RegExps > (www.php.net/pcre) Once you've done that, you can add the pattern modifier > 'm' to allow multilines . i think im lost now. i had a look at the site but im not sure what im looking at. any chance u could make a mock script up so i can see what your explaining? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: grabbing information from websites
where abouts am i putting the modifier 'm' in the expression to allow the multilines? "Champinoman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> instead of the POSIX regexp, tr using PERL style RegExps >> (www.php.net/pcre) Once you've done that, you can add the pattern >> modifier 'm' to allow multilines . > > i think im lost now. i had a look at the site but im not sure what im > looking at. any chance u could make a mock script up so i can see what > your explaining? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Shell command in php script
Vincent Fonteneau wrote: Hi, I'm trying to find how to execute a shell command in a php script, I meen I would like for example to stop services like ssh or others in /etc/init.d with command stop and start it again. I've tried some commands without success, and I've missed something like script owner or group. I really don't know. Perhaps it sould be in php conf ? Is someone have any idea ? Thanks Vincent use one of these there a few more... but I can't remember which -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] grabbing information from websites
hi everyone, im fairly new to php scripting and was having trouble grabing information from a website. i have been able to grab information that is in amongst other text (for example, the word firemaking below) --- Firemaking 7,386 61 333,575 --- but the number i want to grab is the 61. its on its own line which i think is the reason im having trouble. i have been using this: eregi ("username=champinoman&category=13.*align=\"right\">(.*)",$line,$out) what am i doing wrong? have i posted enough information. thank you for the help. p.s. try and keep the answers fairly straight forward as i am new to this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: grabbing information from websites
Champinoamn wrote: hi everyone, im fairly new to php scripting and was having trouble grabing information from a website. i have been able to grab information that is in amongst other text (for example, the word firemaking below) --- Firemaking 7,386 61 333,575 --- but the number i want to grab is the 61. its on its own line which i think is the reason im having trouble. i have been using this: eregi ("username=champinoman&category=13.*align=\"right\">(.*)",$line,$out) what am i doing wrong? have i posted enough information. thank you for the help. p.s. try and keep the answers fairly straight forward as i am new to this instead of the POSIX regexp, tr using PERL style RegExps (www.php.net/pcre) Once you've done that, you can add the pattern modifier 'm' to allow multilines . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Shell command in php script
Hi, I'm trying to find how to execute a shell command in a php script, I meen I would like for example to stop services like ssh or others in /etc/init.d with command stop and start it again. I've tried some commands without success, and I've missed something like script owner or group. I really don't know. Perhaps it sould be in php conf ? Is someone have any idea ? Thanks Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: grabbing information from websites
> instead of the POSIX regexp, tr using PERL style RegExps > (www.php.net/pcre) Once you've done that, you can add the pattern modifier > 'm' to allow multilines . i think im lost now. i had a look at the site but im not sure what im looking at. any chance u could make a mock script up so i can see what your explaining? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How can I formated a PHP script into colored HTML
Hi! How can I make a code into html format like this Shi MuQi LangFang ABC (China) °v° Tel:(86)-316-6838216 /(_)\ E-mail:[EMAIL PROTECTED] ^ ^
Re: [PHP] Re: Mass Mailing Using PHP
Quoting Manuel Lemos <[EMAIL PROTECTED]>: > You may just need to tune qmail to maximize the number of simultaneous deliveries > according to the available bandwidth. How do I tune qmail in that manner ? If the answer is too long and complicated, pls flame me softly as this is already OT. > For this reason, during deliveries of messages to many recipients, it is better to > pause once in a while to let the queue be fully processed and do not stall other > programs. Do you mean, say we fetched 100,000 addresses from database, we make our script sleep for a while after sending, say 1000 mails ? -- roger --- Sign Up for free Email at http://ureg.home.net.my/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php