I noticed that too :)
--
itoctopus - http://www.itoctopus.com
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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 q
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) {
>
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
I got it to work! I just had to place the HTML elements outside of the PHP
code.
Thanks for your help.
--
Steve Marquez
on 6/5/07 2:02 PM Jochem Maas ([EMAIL PROTECTED]) wrote:
> Robert Cummings wrote:
>> > On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote:
>>> >> do you notice the totally w
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
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 interpolated). read up on php strings
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
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
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
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:
>
> http://php.
>
> 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
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 works:
>
>
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:
* 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
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 $
* 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
>
> > 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
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
> > > $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
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
> $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"; }
-
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
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
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_
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
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_
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
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
(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
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
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
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
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\
: 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
-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
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
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
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
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
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,
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
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) {
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]";
Here is a snippet example.
function assign() {
global $adminurl, $string;
top();
if ($string) {
$data = explode ("|", $string);
echo "$data[0]";
}
$array = array("$new_cat,$assig
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
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
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
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
$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 l
> $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
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
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
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.
>
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
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
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 u
Could parse_str() help?
>From http://php.net/manual/en/function.parse-str.php:
void parse_str (string str [, array arr])
Parses str as if it were the query string passed via an URL and sets
variables in the current scope. If the second parameter arr is present,
variables are stored in this vari
[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
str_replace()
I think the syntax is
$foo = str_replace($old_foo,"http://www.something.com","");
Gfunk - http://www.gfunk007.com/
I sense much beer in you. Beer leads to intoxication, intoxication to
hangovers, and hangovers to... suffering.
- Original Message -
F
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
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
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 there
62 matches
Mail list logo