[PHP] Oracle Connection
Hi All, will anybody tell me how to connect oracle database using php script. Thanx Syed
[PHP] links extract from a string
Hi all i m doing a project in which i m displaying the statistics of clickcounts of links send thru a message. For that i have to extract the links from the message string given by user. So pls tell me how to get the url/links from a string (or) To track clicks of all outgoing links embedded in the message string Thanks Syed
[PHP] Get Value
Hi All Will anybody tell me how to extract the value (say Google) from the code below: Google(value to extract) Thanks and Regards Syed
Re: [PHP] Get Value
Thankyou. i got the solution Thanks & Regards syed - Original Message - From: "Robby Russell" <[EMAIL PROTECTED]> To: "Syed Ghouse" <[EMAIL PROTECTED]> Cc: "php mailinglists" <[EMAIL PROTECTED]> Sent: Thursday, August 26, 2004 AM 09:48 Subject: Re: [PHP] Get Value -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Another Help
Hi Also pls tell me how to extract the href value of the code below http://www.google.com"> i m weak in regular expression in php and tell me how to learn easily. Regards Syed
[PHP] File Transfer
Hi All i have to transfer files from one server to another server thru php program.will anybody tell me how to do it? Regards syed
[PHP] Rsync
Hi all will anybody tell me how to use rsync command to transfer files in php Syed
[PHP] Rsync
Hi all will anybody tell me how to use rsync command to transfer files in php Syed
[PHP] Rsync + ssh
Hi All i m using rsync command to transfer files from server to server. i use the below code rsync --password-file .passfile ssh [EMAIL PROTECTED]:/remote/dir /localdir/dir/ where .passfile has the password... But eventhough i have passed the password file it asks for password... Tell me how t use the rsync command with ssh and without prompting for password Regards Syed
Fw: [PHP] Rsync + ssh
Hi All i m using rsync command to transfer files from server to server. i use the below code rsync --password-file .passfile ssh [EMAIL PROTECTED]:/remote/dir /localdir/dir/ where .passfile has the password... But eventhough i have passed the password file it asks for password... Please anybody tell me how t use the rsync command with ssh and without prompting for password Regards Syed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] create emailaccount using php
Hi Everybody i want to know how to create an email account in the mails server using php.Also how to manage the mails usng php regards Syed
[PHP] email autoresponder
Hi All will anybody explain me what is email autoresponder?. and how to create in php? Regards Syed
[PHP] ibill.com
Hi All Any body tell me how to use ibill.com payment site for my project
[PHP] mail program
Hi all i want to send more than 1000 mails from php program at a time.how can i send it and will the execution of program become slow. pls reply to the above ASAP syed
[PHP] Regular expression
Hi All will anyone give me a solution to get the name and email address of sender from the mail text below using regular expression. The result shud get name as syed ghouse and email as [EMAIL PROTECTED] --- Mail text start --- Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 25523 invoked by uid 508); 19 Jun 2004 06:23:25 - Received: from localhost (HELO 192.168.90.8) (127.0.0.1) by mail.jinis.com with SMTP; 19 Jun 2004 06:23:25 - Received: from 192.168.90.20 (proxying for 192.168.90.85) (SquirrelMail authenticated user [EMAIL PROTECTED]) by 192.168.90.8 with HTTP; Sat, 19 Jun 2004 11:53:25 +0530 (IST) Message-ID: <[EMAIL PROTECTED]> Date: Sat, 19 Jun 2004 11:53:25 +0530 (IST) Subject: test >From : 'syed ghouse' <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED],[EMAIL PROTECTED] User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal test mail ignore --- Mail text end --- Regards Syed
Fw: [PHP] Re: Regular expression
- Original Message - From: "Syed Ghouse" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 30, 2004 PM 04:43 Subject: Re: [PHP] Re: Regular expression > Thanks Aiden for ur help > > i used ur code and i got > > name as Red Wingate<[EMAIL PROTECTED] > and no email. > > So pls correct the code and send me such that i get name and email > separately. > > Regards > syed > > - Original Message - > From: "Red Wingate" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 30, 2004 PM 04:27 > Subject: [PHP] Re: Regular expression > > > > If you still like to gather the information without using any tools: > > > > $email = explode( "\n" , $mailText ); > > > > foreach ( $email AS $emailLine ) { > > $emailLine = trim( $emailLine ); > > > > if ( strtoupper ( substr( $emailLine , 0 , 4 ) ) == 'FROM' ) { > > preg_match( '#^from\s*:\s*([^>]+)(<([^>]+)>)?#si' ,$emailLine > ,$parts ); > > break ; > > } > > } > > > > $name = $parts[1] ; > > $email = $parts[3] ; > > > > But you should consider the following: > > > > FROM: Red Wingate <[EMAIL PROTECTED]> > > FROM: Red Wingate > > FROM: [EMAIL PROTECTED] > >. > > > > Which makes working like this a pita. > > > >-- red > > > > > I suggest not using a regex. > > > > > > There are better tools for parsing an email, for example "formail". > > > > > > $email = `formail -x Return-Path`; > > > > > > See google.com for more information > > > > > > Regards, > > > Aidan > > > > > > > > > "Syed Ghouse" <[EMAIL PROTECTED]> wrote in message > > > news:[EMAIL PROTECTED] > > > Hi All > > > > > > will anyone give me a solution to get the name and email address of > sender > > > from the mail text below using regular expression. > > > > > > The result shud get > > > name as syed ghouse > > > and > > > email as [EMAIL PROTECTED] > > > > > > --- Mail text start --- > > > > > > Return-Path: <[EMAIL PROTECTED]> > > > Delivered-To: [EMAIL PROTECTED] > > > Received: (qmail 25523 invoked by uid 508); 19 Jun 2004 06:23:25 - > > > Received: from localhost (HELO 192.168.90.8) (127.0.0.1) > > > by mail.jinis.com with SMTP; 19 Jun 2004 06:23:25 - > > > Received: from 192.168.90.20 (proxying for 192.168.90.85) > > > (SquirrelMail authenticated user [EMAIL PROTECTED]) > > > by 192.168.90.8 with HTTP; > > > Sat, 19 Jun 2004 11:53:25 +0530 (IST) > > > Message-ID: <[EMAIL PROTECTED]> > > > Date: Sat, 19 Jun 2004 11:53:25 +0530 (IST) > > > Subject: test > > > > > > From : 'syed ghouse' <[EMAIL PROTECTED]> > > > > > > To: [EMAIL PROTECTED] > > > Cc: [EMAIL PROTECTED],[EMAIL PROTECTED] > > > User-Agent: SquirrelMail/1.4.2 > > > MIME-Version: 1.0 > > > Content-Type: text/plain;charset=iso-8859-1 > > > Content-Transfer-Encoding: 8bit > > > X-Priority: 3 > > > Importance: Normal > > > > > > test mail ignore > > > > > > --- Mail text end --- > > > > > > > > > Regards > > > > > > Syed > > > > -- > > 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] suexec in php
Hi All Is there any suexec function in php to create a unix user or there is any function to create user dynamically from php code Thanks in advance Regards syed
Fw: [PHP] Re: Regular expression
Yeah i used ur coding below and i got the solution for my problem. Thanks Aidan Syed - Original Message - From: "Syed Ghouse" <[EMAIL PROTECTED]> To: "php mailinglists" <[EMAIL PROTECTED]> Sent: Wednesday, June 30, 2004 PM 04:45 Subject: Fw: [PHP] Re: Regular expression > > - Original Message - > From: "Syed Ghouse" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 30, 2004 PM 04:43 > Subject: Re: [PHP] Re: Regular expression > > > > Thanks Aiden for ur help > > > > i used ur code and i got > > > > name as Red Wingate<[EMAIL PROTECTED] > > and no email. > > > > So pls correct the code and send me such that i get name and email > > separately. > > > > Regards > > syed > > > > - Original Message - > > From: "Red Wingate" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, June 30, 2004 PM 04:27 > > Subject: [PHP] Re: Regular expression > > > > > > > If you still like to gather the information without using any tools: > > > > > > $email = explode( "\n" , $mailText ); > > > > > > foreach ( $email AS $emailLine ) { > > > $emailLine = trim( $emailLine ); > > > > > > if ( strtoupper ( substr( $emailLine , 0 , 4 ) ) == 'FROM' ) { > > > preg_match( '#^from\s*:\s*([^>]+)(<([^>]+)>)?#si' ,$emailLine > > ,$parts ); > > > break ; > > > } > > > } > > > > > > $name = $parts[1] ; > > > $email = $parts[3] ; > > > > > > But you should consider the following: > > > > > > FROM: Red Wingate <[EMAIL PROTECTED]> > > > FROM: Red Wingate > > > FROM: [EMAIL PROTECTED] > > >. > > > > > > Which makes working like this a pita. > > > > > >-- red > > > > > > > I suggest not using a regex. > > > > > > > > There are better tools for parsing an email, for example "formail". > > > > > > > > $email = `formail -x Return-Path`; > > > > > > > > See google.com for more information > > > > > > > > Regards, > > > > Aidan > > > > > > > > > > > > "Syed Ghouse" <[EMAIL PROTECTED]> wrote in message > > > > news:[EMAIL PROTECTED] > > > > Hi All > > > > > > > > will anyone give me a solution to get the name and email address of > > sender > > > > from the mail text below using regular expression. > > > > > > > > The result shud get > > > > name as syed ghouse > > > > and > > > > email as [EMAIL PROTECTED] > > > > > > > > --- Mail text start --- > > > > > > > > Return-Path: <[EMAIL PROTECTED]> > > > > Delivered-To: [EMAIL PROTECTED] > > > > Received: (qmail 25523 invoked by uid 508); 19 Jun 2004 06:23:25 - > > > > Received: from localhost (HELO 192.168.90.8) (127.0.0.1) > > > > by mail.jinis.com with SMTP; 19 Jun 2004 06:23:25 - > > > > Received: from 192.168.90.20 (proxying for 192.168.90.85) > > > > (SquirrelMail authenticated user [EMAIL PROTECTED]) > > > > by 192.168.90.8 with HTTP; > > > > Sat, 19 Jun 2004 11:53:25 +0530 (IST) > > > > Message-ID: <[EMAIL PROTECTED]> > > > > Date: Sat, 19 Jun 2004 11:53:25 +0530 (IST) > > > > Subject: test > > > > > > > > From : 'syed ghouse' <[EMAIL PROTECTED]> > > > > > > > > To: [EMAIL PROTECTED] > > > > Cc: [EMAIL PROTECTED],[EMAIL PROTECTED] > > > > User-Agent: SquirrelMail/1.4.2 > > > > MIME-Version: 1.0 > > > > Content-Type: text/plain;charset=iso-8859-1 > > > > Content-Transfer-Encoding: 8bit > > > > X-Priority: 3 > > > > Importance: Normal > > > > > > > > test mail ignore > > > > > > > > --- Mail text end --- > > > > > > > > > > > > Regards > > > > > > > > Syed > > > > > > -- > > > 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help ASAP
Hi All Will anybody tell me how to execute a shell script thru php and how to create a unix user thru php Thanks in advance Regards Syed
[PHP] what is difference between php and perl
Hi all will anybody tell me the difference between perl and php Regards Syed
Fw: [PHP] what is difference between php and perl
Thanks for help Regards Syed > - Original Message - > From: "Syed Ghouse" <[EMAIL PROTECTED]> > To: "php mailinglists" <[EMAIL PROTECTED]> > Sent: Wednesday, July 21, 2004 PM 12:35 > Subject: [PHP] what is difference between php and perl > > > Hi all > > will anybody tell me the difference between perl and php > > Regards > Syed > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Exec() denied read on Apache (fedora core 3)
Hi, I've been trying to execute some system commands and print back the output on the webpage. I found the following code to do so, however, it is not working. I get following errors in my /var/log/messages Dec 24 12:03:34 melville kernel: audit(1103889814.948:0): avc: denied { read } for pid=13794 exe=/usr/sbin/httpd name=sh dev=hda2 ino=670441 scontext=root:system_r:httpd_t tcontext=system_u:object_r:bin_t tclass=lnk_file Apache server is ran by user apache and the .php file is also owned by user apache. Apache is not running in Safe_Mode safe_mode Off Off safe_mode_exec_dir /var/www/html/sh/var/www/html/sh safe_mode_gid Off Off safe_mode_include_dir /var/www/html /var/www/html However, i tried to switch on the Safe_Mode but that wasn't any good either. Any idea how can i get it work? Thanks, Zia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Exec() denied read on Apache (fedora core 3)
Thanks for ur reply. I'm running httpd with php on my linux box. I dont know how to enable the exec in php.ini. Tried safe mode but no use. I get the following output from the command [EMAIL PROTECTED] html]# php -r 'system("whoami");' Error in argument 1, char 2: option not found r however, with who.php, it works [EMAIL PROTECTED] html]# php who.php Content-type: text/html X-Powered-By: PHP/4.3.9 root :( I'm still stuck with it. Z. On Fri, 24 Dec 2004 08:13:37 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > On Fri, 24 Dec 2004 12:09:51 +, Zia Syed <[EMAIL PROTECTED]> wrote: > > I've been trying to execute some system commands and print back the > > output on the webpage. I found the following code to do so, however, > > it is not working. > > > echo exec('whoami'); > > ?> > > > > However, i tried to switch on the Safe_Mode but that wasn't any good either. > > Any idea how can i get it work? > > I assume you're hosting with someone and they have dsiabled that > function via the php.ini, I dunno.. Anyway, you might get lucky and > they are using a different php.ini for the php binary. Try this from > command line: > > php -r 'system( "whoami" );' > > -- > Greg Donald > Zend Certified Engineer > http://gdconsultants.com/ > http://destiney.com/ > > -- > 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] Exec() denied read on Apache (fedora core 3)
I just found out that I was having SELinux enabled, which was causing the trouble. Once disabled, I can run PHP in safemode and use exec. I know its not the safest thing to do, but until I learn a bit more about SELinux, this is the way to go :) Z. On Fri, 24 Dec 2004 14:48:20 +, Zia Syed <[EMAIL PROTECTED]> wrote: > Thanks for ur reply. I'm running httpd with php on my linux box. I > dont know how to enable the exec in php.ini. Tried safe mode but no > use. I get the following output from the command > > [EMAIL PROTECTED] html]# php -r 'system("whoami");' > Error in argument 1, char 2: option not found r > > however, with who.php, it works > > [EMAIL PROTECTED] html]# php who.php > Content-type: text/html > X-Powered-By: PHP/4.3.9 > > root > > :( I'm still stuck with it. > > Z. > On Fri, 24 Dec 2004 08:13:37 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > > On Fri, 24 Dec 2004 12:09:51 +, Zia Syed <[EMAIL PROTECTED]> wrote: > > > I've been trying to execute some system commands and print back the > > > output on the webpage. I found the following code to do so, however, > > > it is not working. > > > > > echo exec('whoami'); > > > ?> > > > > > > However, i tried to switch on the Safe_Mode but that wasn't any good > > > either. > > > Any idea how can i get it work? > > > > I assume you're hosting with someone and they have dsiabled that > > function via the php.ini, I dunno.. Anyway, you might get lucky and > > they are using a different php.ini for the php binary. Try this from > > command line: > > > > php -r 'system( "whoami" );' > > > > -- > > Greg Donald > > Zend Certified Engineer > > http://gdconsultants.com/ > > http://destiney.com/ > > > > -- > > 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