Re: [PHP] Strings

2007-06-06 Thread itoctopus
t? >> using either single quotes or double quotes (if you want variables named >> inside >> the string to be interpolated). read up on php strings here: >> >> http://php.net/string > > He's probably using MS-Word to write code... those look very similar to

Re: [PHP] Strings

2007-06-05 Thread Richard Lynch
It would really help if you didn't use funky characters for quote that aren't quote in your email. It would help even more if you copy/paste your actual script. On Tue, June 5, 2007 12:50 pm, Steve Marquez wrote: > The following code works: > > > $image = ³²; > > if ($image == NULL) { >

Re: [PHP] Strings

2007-06-05 Thread Jochem Maas
Pastor Steve wrote: > Thank you. > > I tried what you suggested below and it gave me an unexpected > T_CONSTANT_ESCAPED_STRING error. > > Would this be valid: (I am typing in my Entourage, but I am writing the code > in Dreamweaver. You are probably seeing the quotes that Entourage (my email > a

Re: [PHP] Strings

2007-06-05 Thread Steve Marquez
; do you notice the totally weird string delimiters in your original post? >>> >> using either single quotes or double quotes (if you want variables named >>> inside >>> >> the string to be interpolated). read up on php strings here: >>> >> >

Re: [PHP] Strings

2007-06-05 Thread Jochem Maas
Pastor Steve wrote: > Thank you. > > I tried what you suggested below and it gave me an unexpected > T_CONSTANT_ESCAPED_STRING error. > > Would this be valid: (I am typing in my Entourage, but I am writing the code > in Dreamweaver. get a real text editor before you go mad. textpad or ultraedi

Re: [PHP] Strings

2007-06-05 Thread Jochem Maas
Robert Cummings wrote: > On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote: >> do you notice the totally weird string delimiters in your original post? >> using either single quotes or double quotes (if you want variables named >> inside >> the string to be in

Re: [PHP] Strings

2007-06-05 Thread Pastor Steve
Thank you. I tried what you suggested below and it gave me an unexpected T_CONSTANT_ESCAPED_STRING error. Would this be valid: (I am typing in my Entourage, but I am writing the code in Dreamweaver. You are probably seeing the quotes that Entourage (my email application) is giving you.) > $im

Re: [PHP] Strings

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 11:04 -0700, Richard S. Crawford wrote: > On Tuesday 05 June 2007 10:50:15 Steve Marquez wrote: > > It seems that if I add a string, rather than just the variable, then does > > not work. I am getting an unexpected T_IS_EQUAL error. > > Your string delimiters are very strange

Re: [PHP] Strings

2007-06-05 Thread Richard S. Crawford
On Tuesday 05 June 2007 10:50:15 Steve Marquez wrote: > It seems that if I add a string, rather than just the variable, then does > not work. I am getting an unexpected T_IS_EQUAL error. Your string delimiters are very strange; I'm not sure if your code has those in it or not, so I can't really d

Re: [PHP] Strings

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote: > do you notice the totally weird string delimiters in your original post? > using either single quotes or double quotes (if you want variables named > inside > the string to be interpolated). read up on php strings here: >

RE: [PHP] Strings

2007-06-05 Thread Jim Moseby
> > your syntax is broken because of the weird quotes it seems. I agree. After replacing all the superscripted 2's and 3's with proper quotes, the examples both work as expected. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strings

2007-06-05 Thread Jochem Maas
do you notice the totally weird string delimiters in your original post? using either single quotes or double quotes (if you want variables named inside the string to be interpolated). read up on php strings here: http://php.net/string Steve Marquez wrote: > The following code wo

[PHP] Strings

2007-06-05 Thread Steve Marquez
The following code works: However, this does not: ²; } ?> It seems that if I add a string, rather than just the variable, then does not work. I am getting an unexpected T_IS_EQUAL error. -- Thanks, Steve Marquez

Re: [PHP] strings

2003-08-01 Thread Anthony Ritter
Curt Zirzow writes: > I did some testing you can see the code and results here: > http://zirzow.dyndns.org/html/php/tests/preg/parse_doc.php .. Thanks Curt. I checked it out and I still pick up the following lines which I was looking to delete on the pattern match. They are:

Re: [PHP] strings

2003-08-01 Thread Curt Zirzow
* Thus wrote Anthony Ritter ([EMAIL PROTECTED]): > Curt Zirzow wrote in message: > > > This exact thing was talked about earlier today, with the subject > > 'Using eregi_replace()'. > > > Right. > > However, I've tried using the following code in which the text from the

Re: [PHP] strings

2003-08-01 Thread Anthony Ritter
Curt Zirzow wrote in message: > This exact thing was talked about earlier today, with the subject > 'Using eregi_replace()'. Right. However, I've tried using the following code in which the text from the URL is printed out completely and then I change the variable from $

Re: [PHP] strings

2003-08-01 Thread Curt Zirzow
* Thus wrote Anthony Ritter ([EMAIL PROTECTED]): > In the following snippet, I'm trying to open and read a URL into the > variable $contents. > I'd like to use preg_replace() to return only part of that string beginning > with say - regional and ending with new - but I get the complete URL string >

[PHP] strings

2003-08-01 Thread Anthony Ritter
In the following snippet, I'm trying to open and read a URL into the variable $contents. I'd like to use preg_replace() to return only part of that string beginning with say - regional and ending with new - but I get the complete URL string returned. Thank you for any assistance. Tony Ritter .

RE: [PHP] Strings and regular expression?

2003-02-07 Thread John W. Holmes
> > Very true, I agree. For your solution, though, wouldn't it correctly > match a > > string such as '2,3,11,12' even though there is no entry that's just > one? > > Ok, why not something like this.. > There is almost always a better solution than regex > > > $string = '98,244,9,243,2,6,36,3,1

Re: [PHP] Strings and regular expression?

2003-02-07 Thread Kevin Waterson
This one time, at band camp, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > Very true, I agree. For your solution, though, wouldn't it correctly match a > string such as '2,3,11,12' even though there is no entry that's just one? Ok, why not something like this.. There is almost always a bet

Re: [PHP] Strings and regular expression?

2003-02-07 Thread 1LT John W. Holmes
> > > $a1="1,8,98,244,9,243,2,6,36,3,111,"; > > > > > > $a2="8,98,244,9,243,2,1,6,36,3,111,"; > > > > > > How can I exactly match "1," in both strings using one regular expression? > > > (first "1" is the first element and second time in a random position)? > > > > if(preg_match('/(^|,)1(,|$)/',$st

Re: [PHP] Strings and regular expression?

2003-02-07 Thread Kevin Waterson
This one time, at band camp, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > $a1="1,8,98,244,9,243,2,6,36,3,111,"; > > > > $a2="8,98,244,9,243,2,1,6,36,3,111,"; > > > > How can I exactly match "1," in both strings using one regular expression? > > (first "1" is the first element and second tim

Re: [PHP] Strings and regular expression?

2003-02-07 Thread 1LT John W. Holmes
> $a1="1,8,98,244,9,243,2,6,36,3,111,"; > > $a2="8,98,244,9,243,2,1,6,36,3,111,"; > > How can I exactly match "1," in both strings using one regular expression? > (first "1" is the first element and second time in a random position)? if(preg_match('/(^|,)1(,|$)/',$str)) { echo "one is found"; } -

[PHP] Strings and regular expression?

2003-02-07 Thread Radu Manole
Hi guys, I have 2 strings $a1="1,8,98,244,9,243,2,6,36,3,111,"; $a2="8,98,244,9,243,2,1,6,36,3,111,"; How can I exactly match "1," in both strings using one regular expression? (first "1" is the first element and second time in a random position)? Thanks, Radu -- PHP General Mailing List (h

Re: [PHP] Strings and default values...

2002-12-20 Thread Leif K-Brooks
1) You most likely have magic_quotes_gpc set to on. Either set it to off or stripslashes() the input. 2) No, it won't print. Think of a heredoc as a quotes string without the quotes. You can, however, do something like: $variable = <<< WHATEVER whatever text goes here WHATEVER; $variable.= exe

[PHP] Strings and default values...

2002-12-20 Thread Steven Kallstrom
Dear List, This is a simple problem, but I can't really find a good solution. and I have a general question also. 1) I have a webform that is save to a variable $html using heredoc. $html = <<< WEBFORM . . the problem is that when you enter an apostrophe, and then repost

Re[2]: [PHP] strings and vars

2002-11-23 Thread empty
yiihhuuuvvv it works; I heard it, i remember variable variables I guess Thanks all EEV> $var = 'string'; EEV> $$var will resolve as $string -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strings and vars

2002-11-23 Thread Ernest E Vogelsinger
At 02:05 24.11.2002, empty said: [snip] >i have string like: "string"; > >how can i get variable $string; [snip] $var = 'string'; $$var will resolve as $string -- >O Ernest E. Vogelsinger (\)ICQ #1339

[PHP] strings and vars

2002-11-23 Thread empty
Hi; i have a string and I want to set it as a variable name. like tahat i have string like: "string"; how can i get variable $string; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strings and php.ini

2002-11-16 Thread Jason Wong
On Sunday 17 November 2002 06:27, Khalid El-Kary wrote: > hi, > i was asking if there should be difference in functionality of PH string > functions (not mb_) between the two following configurations: > > the company: PHP 4.2.1, Apache 1.3.20, linux > me: PHP 4.2.3, Apache 1.3.24, windows > magic_

Re: [PHP] Strings and php.ini

2002-11-16 Thread @ Edwin
Hello, (B (B"Khalid El-Kary" <[EMAIL PROTECTED]> wrote: (B> hi, (B> i was asking if there should be difference in functionality of PH string (B> functions (not mb_) between the two following configurations: (B> (B> the company: PHP 4.2.1, Apache 1.3.20, linux (B> me: PHP 4.2.3, Apache 1.3.2

Re: [PHP] Strings and php.ini

2002-11-16 Thread Khalid El-Kary
hi, i was asking if there should be difference in functionality of PH string functions (not mb_) between the two following configurations: the company: PHP 4.2.1, Apache 1.3.20, linux me: PHP 4.2.3, Apache 1.3.24, windows my confthe company's conf thread safety Enabled Disabled allow_

Re: [PHP] Strings and php.ini

2002-11-16 Thread @ Edwin
Hello, (B (B"Khalid El-Kary" <[EMAIL PROTECTED]> wrote: (B (B> hi, (B> the script infact never used register_globals because it's a (B> class that has nothing to do with the direct script input, but (B> there's an idea that came to my mind, maybe the company (B> compiled its own PHP? may th

Re: [PHP] Strings and php.ini

2002-11-16 Thread Khalid El-Kary
hi, the script infact never used register_globals because it's a class that has nothing to do with the direct script input, but there's an idea that came to my mind, maybe the company compiled its own PHP? may this change anything? generally is Linux different from windows in String functions? e

Re: [PHP] Strings and php.ini

2002-11-16 Thread @ Edwin
(B"Khalid El-Kary" <[EMAIL PROTECTED]> wrote: (B> hi, (B> infact i'm un (B> able to obtain a copy of my hosting company's php.ini (B (BThen, perhaps, try running phpinfo() and compare. (B (BI think it might even have something to do with "register_globals". (B (B- E (B (B (B-- (BPH

Re: [PHP] Strings and php.ini

2002-11-16 Thread Khalid El-Kary
hi, infact i'm un able to obtain a copy of my hosting company's php.ini thanx _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP General Mailing List (http://www.p

Re: [PHP] Strings and php.ini

2002-11-15 Thread @ Edwin
Hello, (B (B"Khalid El-Kary" <[EMAIL PROTECTED]>wrote: (B> hi, (B> (B> are there any php.ini directives that control the PHP string functions? (B (BYou mean something like this? (Under "; Safe Mode") (B (B-> (B; This directive allows you to disable certain functions for security (Bre

[PHP] Strings and php.ini

2002-11-15 Thread Khalid El-Kary
hi, are there any php.ini directives that control the PHP string functions? sorry i'm not percise but infact i have a 1200 lines script that acts well on a windows machine with PHP 4.2.3 Apache 1.3.24, but on a linux machine with PHP 4.2.1 (keep it secret :)) and Apache 1.3.20 it acts bad but th

Re: [PHP] Strings with embedded quotes and double quotes

2002-07-02 Thread Jason Wong
On Wednesday 03 July 2002 09:54, C. Cormier - Ormetal Inc. wrote: > I need to echo a string that contains both quotes and double > quotes. > > I remember doing this once using a special construct where the > string started on a new line with a triple slash if I remember well. Or > it was a triple

[PHP] Strings with embedded quotes and double quotes

2002-07-02 Thread C. Cormier - Ormetal Inc.
I need to echo a string that contains both quotes and double quotes. I remember doing this once using a special construct where the string started on a new line with a triple slash if I remember well. Or it was a triple something... I can't find the topic in the online PHP doc... Anybody rem

Re: [PHP] strings and \n

2002-01-25 Thread Jason Wong
On Saturday 26 January 2002 04:48, Greg Sidelinger wrote: > Ok I'm having a problem with the new line char \n in strings. I'm > trying to contrast an email that gets sent with the mail() function. > Here is what I'm doing. > > $message = "line1\n"; > $message .= "line2\n\n"; > $message .= "line3\

RE: [PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
: Friday, January 25, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] strings and \n -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Greg Sidelinger blurted > Ok I'm having a problem with the new line char \n in strings. I'm > trying to contrast an email that ge

Re: [PHP] strings and \n

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Greg Sidelinger blurted > Ok I'm having a problem with the new line char \n in strings. I'm > trying to contrast an email that gets sent with the mail() function. > Here is what I'm doing. > > $message = "line1\n"; > $message .= "li

[PHP] strings and \n

2002-01-25 Thread Greg Sidelinger
Ok I'm having a problem with the new line char \n in strings. I'm trying to contrast an email that gets sent with the mail() function. Here is what I'm doing. $message = "line1\n"; $message .= "line2\n\n"; $message .= "line3\n"; ... $message = "lne99"; mail ("email", "subject", $message);

Re: [PHP] Strings Question

2001-12-24 Thread Matt McClanahan
On Mon, Dec 24, 2001 at 01:48:38PM -0800, Phillip B. Bruce wrote: > I want to take something like the following: > > $row = 1; > $ column = 1; > > if ( $pages = "r$row$column") > >What I want to see is r1c1 as a string so I'm actually > concatenating the strings togethe

[PHP] Strings Question

2001-12-24 Thread Phillip B. Bruce
Hi, I want to take something like the following: $row = 1; $ column = 1; if ( $pages = "r$row$column") What I want to see is r1c1 as a string so I'm actually concatenating the strings together. Any ideas? -- ***

Re: [PHP] strings in a function return

2001-08-30 Thread
From: Gerard Samuel <[EMAIL PROTECTED]> Date: Wed, Aug 29, 2001 at 09:58:12PM -0400 Message-ID: <[EMAIL PROTECTED]> Subject: Re: [PHP] strings in a function return > I found an error, but it didn't do me any good. > I tried this, any tips... > T

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Im beginning to think that functions aren't all that cracked up to be. I may as well go back to my old "non function" way of coding. I was displaying the form in the function because the application Im using currently displays forms in functions. Ill try and see what I can do with this new found

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 11:38, Gerard Samuel wrote: > top(); is a function that displays a menu, that works. > is where the form goes. > In its current setup less the array/implode/explode/foreach loop > I can get it to echo 'a' return that I specify. But its no good, when > I have 7 seven fields in

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
top(); is a function that displays a menu, that works. is where the form goes. In its current setup less the array/implode/explode/foreach loop I can get it to echo 'a' return that I specify. But its no good, when I have 7 seven fields in the form to process. David Robley wrote: > On Thu,

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 10:45, Gerard Samuel wrote: > Mozilla sucks sometimes with email formatting. > Correction==> > > Here is a snippet example. > > function assign() { > global $adminurl, $string; > top(); > if ($string) { > $data = explode ("|", $st

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
I found an error, but it didn't do me any good. I tried this, any tips... Thanks function assign() { global $adminurl, $string; top(); if ($string) { $data = explode ("|", $string); foreach ($data as $foo) {

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Mozilla sucks sometimes with email formatting. Correction==> Here is a snippet example. function assign() { global $adminurl, $string; top(); if ($string) { $data = explode ("|", $string); echo "$data[0]";

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Here is a snippet example. function assign() { global $adminurl, $string; top(); if ($string) { $data = explode ("|", $string); echo "$data[0]"; } $array = array("$new_cat,$assig

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 10:19, Gerard Samuel wrote: > I was doing it like so ==> > $string = array(var1, var2...); > return string; > > I also tried to implode the array into a string and return the result, > but no go. > > David Robley wrote: > > On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: > >>He

Re: [PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
I was doing it like so ==> $string = array(var1, var2...); return string; I also tried to implode the array into a string and return the result, but no go. David Robley wrote: > On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: > >>Hey all. I just started venturing into functions. I have a fu

Re: [PHP] strings in a function return

2001-08-29 Thread David Robley
On Thu, 30 Aug 2001 09:35, Gerard Samuel wrote: > Hey all. I just started venturing into functions. I have a function > that displays a form, but I have a problem with getting the multiple > strings back after the submit. Im tryed a return statement at the > bottom of the function, but it canno

[PHP] strings in a function return

2001-08-29 Thread Gerard Samuel
Hey all. I just started venturing into functions. I have a function that displays a form, but I have a problem with getting the multiple strings back after the submit. Im tryed a return statement at the bottom of the function, but it cannot take more than one string. I tried turning the ar

Re: [PHP] Strings with Spaces in URLS

2001-08-22 Thread Christian Reiniger
On Wednesday 22 August 2001 03:05, Chris Aitken wrote: > I have come up with a bit of a problem > > I have a little funky search form on a page, and when I send the search > data on as a URL, anything with a space is screwed up example > > $search = "This is a test"; > ec

RE: [PHP] Strings with Spaces in URLS

2001-08-21 Thread Lawrence . Sheed
$search= urlencode ($search); urlencode - have a look on the php site. -Original Message- From: Chris Aitken [mailto:[EMAIL PROTECTED]] Sent: August 22, 2001 9:05 AM To: [EMAIL PROTECTED] Subject: [PHP] Strings with Spaces in URLS I have come up with a bit of a problem I have a

RE: [PHP] Strings with Spaces in URLS

2001-08-21 Thread Jason Murray
> $search = "This is a test"; > echo "http://www.blah.com/foo.php?search=$search>"; You'll want this: echo "http://www.blah.com/foo.php?search=".urlencode($search).">"; ^^ Jason -- PHP General Mailing List

[PHP] Strings with Spaces in URLS

2001-08-21 Thread Chris Aitken
I have come up with a bit of a problem I have a little funky search form on a page, and when I send the search data on as a URL, anything with a space is screwed up example $search = "This is a test"; echo "http://www.blah.com/foo.php?search=$search>"; and when the li

Re: [PHP] STRINGS

2001-05-17 Thread Manuel Román
THANKS But I fix the problem with other way. Thanks for reply me. Manuel Román VIVA EL ALAVES ("LIFE ALAVES" IN ENGLISH, is the spanish futbol club than yesterday played with Liverpool the UEFA final) ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9e0lsi$e5v$[EMAIL PROTECTED]">news

Re: [PHP] STRINGS

2001-05-17 Thread Plutarck
Take out that first bit with the wrote in message 9e06qr$pmq$[EMAIL PROTECTED]">news:9e06qr$pmq$[EMAIL PROTECTED]... > Hi, > > How I can save the below string??? > > I try concatenate, but when I try with echo or print not display > nothing. > > > Best Regards > > > > -- > PHP General Mai

[PHP] STRINGS

2001-05-17 Thread Manuel Román
Hi, How I can save the below string??? I try concatenate, but when I try with echo or print not display nothing. Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] Strings in URL

2001-03-26 Thread trogers
the href should be print "http://www.contus.com/test_quote/quotepage.php3?site=$site&page=miniquote&; subject=$headline'\"> I think.. Tom At 09:41 PM 26/03/01 -0500, Claudia wrote: >I am attempting to pass a string value via a URL. I have tried using >urlencode and ereg_replace--with no luck. >

Re: [PHP] Strings in URL

2001-03-26 Thread CC Zona
In article <99ou1p$tif$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Claudia") wrote: > $headline=urlencode("$headline"); > print " ='http://www.contus.com/test_quote/quotepage.php3?site=$site&page=miniquote&; > subject=$headline'>Contact us for more information"; > > Then in the quotepage.php3 file

Re: [PHP] Strings in URL

2001-03-26 Thread David Robley
On Tue, 27 Mar 2001 12:11, Claudia wrote: > I am attempting to pass a string value via a URL. I have tried using > urlencode and ereg_replace--with no luck. > > Here is sample code: > > $headline=urlencode("$headline"); > print " ='http://www.contus.com/test_quote/quotepage.php3?site=$site&page=m

RE: [PHP] Strings in URL

2001-03-26 Thread Jack Dempsey
I believe you have to urldecode. Try that and see what happens... -jack -Original Message- From: Claudia [mailto:[EMAIL PROTECTED]] Sent: Monday, March 26, 2001 9:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Strings in URL I am attempting to pass a string value via a URL. I have tried

[PHP] Strings in URL

2001-03-26 Thread Claudia
I am attempting to pass a string value via a URL. I have tried using urlencode and ereg_replace--with no luck. Here is sample code: $headline=urlencode("$headline"); print "Contact us for more information"; Then in the quotepage.php3 file if( $page == "miniquote" ) { print "Get A Quote"; pri

RE: [PHP] Strings..

2001-03-09 Thread Nathaniel Hekman
his variable as an array elements instead. -Original Message- From: Ashwin Kutty [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 9:04 AM To: [EMAIL PROTECTED] Subject: [PHP] Strings.. Was wondering if someone could tell me how I could do this.. I need the dynamically generated num

[PHP] Strings..

2001-03-09 Thread Ashwin Kutty
Was wondering if someone could tell me how I could do this.. I need the dynamically generated number () from a string, where the string is:- http://blah.blah.com/blah/blah?blah.com/blah=something:%3Asessionid=&dbname=blah Now I tried explode and split, with the '&' being as the delimiter, but

Re: [PHP] strings

2001-01-30 Thread Teodor Cimpoesu
[EMAIL PROTECTED] wrote: > > How can i make http://www.something.com/blah/blah.zip into > > blah/blah.zip > > http://www.somethingcom is a constant.. always the same thing > > how can i cut it out? > what comes to my mind right now is str_replace ('http://www.../','',$url) where $url is

Re: [PHP] strings

2001-01-29 Thread Josh G
--- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 30, 2001 2:41 PM Subject: [PHP] strings > How can i make http://www.something.com/blah/blah.zip into > > blah/blah.zip > > http://www.somethingcom is a constant..

[PHP] strings

2001-01-29 Thread PeterOblivion
How can i make http://www.something.com/blah/blah.zip into blah/blah.zip http://www.somethingcom is a constant.. always the same thing how can i cut it out? thnx - Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: [PHP] Strings??

2001-01-16 Thread Chris Hayes
Ade asked: > I have a form which has 10 fields, is there any way in PHP to take the values > once submitted and create a string for each?? Absolutely. Worse; it is already done for you! If you give the input box a name, and submit to a php page, the php page contains a variable with that name! I

Re: [PHP] Strings??

2001-01-16 Thread April
done that wrong, I've been doing stuff in ASP the last two weeks and I can't seem to keep them straight anymore. April - Original Message - From: "Benjamin Munoz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, Jan

RE: [PHP] Strings??

2001-01-16 Thread Benjamin Munoz
Ade, What kind of string? What do you want to do with them? -Ben -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:18 PM To: [EMAIL PROTECTED] Subject: [PHP] Strings?? Quick Question. I have a form which has 10 fields, is

[PHP] Strings??

2001-01-16 Thread Website4S
Quick Question. I have a form which has 10 fields, is there any way in PHP to take the values once submitted and create a string for each?? Thanks Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED