RE: [PHP] [php] -help me
$str_array = explode(/, /home/karthik/welcome.php/view.php); // $str_array[4] shoud be view.php From: K Karthik [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] [php] -help me Date: Fri, 18 Feb 2005 11:20:29 +0530 MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800 Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for [EMAIL PROTECTED]; Fri, 18 Feb 2005 00:49:59 -0500 Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 - Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 - X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90= Return-Path: [EMAIL PROTECTED] X-Host-Fingerprint: 216.92.131.4 lists.php.net Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:php-general@lists.php.net Delivered-To: mailing list php-general@lists.php.net Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC) FILETIME=[AEF42BA0:01C5157D] i have got string as /home/karthik/welcome.php/view.php i just need view.php how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- 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] [php] -help me
Tyler Replogle wrote: $str_array = explode(/, /home/karthik/welcome.php/view.php); // $str_array[4] shoud be view.php From: K Karthik [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] [php] -help me Date: Fri, 18 Feb 2005 11:20:29 +0530 MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800 Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for [EMAIL PROTECTED]; Fri, 18 Feb 2005 00:49:59 -0500 Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 - Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 - X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90= Return-Path: [EMAIL PROTECTED] X-Host-Fingerprint: 216.92.131.4 lists.php.net Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:php-general@lists.php.net Delivered-To: mailing list php-general@lists.php.net Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC) FILETIME=[AEF42BA0:01C5157D] i have got string as /home/karthik/welcome.php/view.php i just need view.php how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php or use basename() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [php] -help me
i have got string as /home/karthik/welcome.php/view.php i just need view.php how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] -help me
On Thu, 2005-02-17 at 23:50, K Karthik wrote: i have got string as /home/karthik/welcome.php/view.php i just need view.php how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik Lets see if you can learn to fish. Since you are new you should learn that one of the greatest resources in all of opensource software is the php.net documentation. try entering php.net/searchterm in the browser ie: php.net/filename hmm looks like there is a function called basename you might want to look at. The manual has all functions arranged by functional area ( eg filesystem) I can't tell you enough what a powerful resource this was to me a a beginning php programmer and remains so to this day. Bret -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php