RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] Of course getting an indexed value into an associative array seems a bit odd to me... maybe Jonas could shed some light on why he would go this route... [/snip] Exactly [snip] To get a value from position 2 in an array you use $arrayName[1] (all array elements start numbering at 0,

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] Seem like your missunderstanding me. I'm not using an orignal array. I'm using an map-array. $array = ('element' = 'value'); [/snip] It is called an associative array, a value is associated with a key. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] Lasso can do the following, can PHP? ?LassoScript Variable: 'Colors'=(Map:'red'='#ff','green'='#00ff00','blue'='#ff'); Loop: $Colors-Size; Output: 'br' + $Colors-(Get: Loop_Count),-EncodeNone; /Loop; ? This outputs; ff 00ff00 ff I'm new at PHP but

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Jay Blanchard
[snip] $colors = array('white'='#ff','black'='#00','blue'='#ff'); foreach($colors AS $key = $value){ echo $value . br /\n; } But I don't get anything out of this code. Why? Doesn't echo anything? [/snip] Seriously? Works fine here. -- PHP General Mailing List

RE: [PHP] Echo a value from an arrays position

2006-05-04 Thread Ford, Mike
On 04 May 2006 13:52, John Wells wrote: On 5/4/06, Brad Bonkoski [EMAIL PROTECTED] wrote: Will this also work with an associative array? If this is what he is talking about, I tried it and it does not work I think you're correct. This is because PHP arrays are a mash-up (as

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread John Wells
On 5/4/06, Ford, Mike [EMAIL PROTECTED] wrote: They're not even that. They're pure associative arrays, or maps -- it's just that integer keys are treated somewhat specially so that an array with *only* integer keys will look like a traditional array. True true, thanks for making it crystal

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 7:24 am, Jonas Rosling wrote: Is there any way to call for an element value in an array by the position? Like position 2 in the array and not the key name. You DEFINITELY need to re-read the Array section of the manual. Because you either didn't read it, or didn't

Re: [PHP] Echo a value from an arrays position

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 9:09 am, John Wells wrote: On 5/4/06, Ford, Mike [EMAIL PROTECTED] wrote: They're not even that. They're pure associative arrays, or maps -- it's just that integer keys are treated somewhat specially so that an array with *only* integer keys will look like a traditional

Re: [PHP] echo, print and is_callable()/function_exists()

2006-04-07 Thread Hans Juergen von Lengerke
Just wrap it, like Example 1 of the manual shows function my_echo($array, $key) { echo $array[$key]; } array_walk_recursive($array, 'my_echo'); Date: Fri, 7 Apr 2006 15:42:40 +0100 From: Chris Boget [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] echo, print and

Re: [PHP] echo date(l);

2006-02-07 Thread John Nichel
Khristian Hamilton-Bailey wrote: Hi, I currently use the date function as follows: ?php $day= date(l); ? so I can then use this to call records from a database where todays day matches that of a record, however I would also like to call records for tomorrow, is there a way in which I could

Re: [PHP] echo date(l);

2006-02-07 Thread Stut
John Nichel wrote: Khristian Hamilton-Bailey wrote: Hi, I currently use the date function as follows: ?php $day= date(l); ? so I can then use this to call records from a database where todays day matches that of a record, however I would also like to call records for tomorrow, is there a

Re: [PHP] echo

2005-11-19 Thread Raz
Try nbsp; On 19/11/05, Alex Alfonso [EMAIL PROTECTED] wrote: Can you please tell me how to make a space in php. I know that br is a new line and p is a new paragraph. But I just can't figure out what an earth a space is. Eg ?php echo Television viewers who turned to; echo I need a space

Re: [PHP] echo

2005-11-19 Thread Raz
Or On 19/11/05, Raz [EMAIL PROTECTED] wrote: Try nbsp; On 19/11/05, Alex Alfonso [EMAIL PROTECTED] wrote: Can you please tell me how to make a space in php. I know that br is a new line and p is a new paragraph. But I just can't figure out what an earth a space is. Eg ?php echo

Re: [PHP] echo

2005-11-19 Thread Robert Cummings
On Sat, 2005-11-19 at 03:35, Raz wrote: Or Oh no, don't interpolate your space... that's just plain wasteful of cycles. *lol* Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] echo

2005-11-19 Thread Raz
Jeez! You'd hate to work on a project with me then! All those cycles I'd waste! Har har ;) On 19/11/05, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2005-11-19 at 03:35, Raz wrote: Or Oh no, don't interpolate your space... that's just plain wasteful of cycles. *lol* Rob. --

Re: [PHP] echo

2005-11-19 Thread Chris Shiflett
Alex Alfonso wrote: Can you please tell me how to make a space in php. I know that br is a new line and p is a new paragraph. But I just can't figure out what an earth a space is. Eg ?php echo Television viewers who turned to; echo I need a space here; echo $_POST['word1']; ? Can you please

Re: [PHP] echo

2005-11-19 Thread Robert Cummings
On Sat, 2005-11-19 at 03:55, Raz wrote: Jeez! You'd hate to work on a project with me then! All those cycles I'd waste! Har har ;) I don't think it really matters these days anyways :) I imagine the compile caches optimize strings... but I could be wrong. Cheers, Rob. --

Re: [PHP] echo

2005-11-19 Thread Anas Mughal
Try this: ?php echo Television viewers who turned to . $_POST['word1']; ? -- Anas Mughal On 11/19/05, Alex Alfonso [EMAIL PROTECTED] wrote: Can you please tell me how to make a space in php. I know that br is a new line and p is a new paragraph. But I just can't figure out what an

Re: [PHP] Echo array string index?

2005-07-17 Thread Ben-Nes Yonatan
Matt Darby wrote: I have an array setup as such: *$arr['generated text']='generated number';* What would be the best way to echo the key in a loop? Seems pretty easy but I've never attempted... Thanks all! Matt Darby Unless I didnt understood you.. you can easily use foreach() for that. If

Re: [PHP] echo string with question mark in it

2004-12-01 Thread Richard Lynch
Brent Clements wrote: I have the following string variable $string = 'test.php?id=' . $id; but when I echo out the string it looks like this test.php? id=# ### is the $id variable value btw. How do I make the ? part of the string instead of php evaluating that question

Re: [PHP] echo

2004-12-01 Thread Richard Lynch
Christopher Weaver wrote: I can't get this code, pasted from the documentation, to work properly. The new lines don't occur where they should. You may also want to check out: http://php.net/nl2br if you were trying to get newlines in your HTML. Another option is to consider the HTML PRE tag,

RE: [PHP] echo

2004-11-30 Thread Chris W. Parker
Christopher Weaver mailto:[EMAIL PROTECTED] on Monday, November 29, 2004 6:20 PM said: I can't get this code, pasted from the documentation, to work properly. The new lines don't occur where they should. You are probably expecting the wrong thing. The newlines only appear in the source of

Re: [PHP] echo

2004-11-30 Thread David Dickson
Christopher Weaver wrote: I can't get this code, pasted from the documentation, to work properly. The new lines don't occur where they should. This is because the output is being interpreted by a web browser which expects HTML. You need to put in br / every where you want a new line. -- David

RE: [PHP] echo

2004-11-30 Thread Mike
How are you running the file? If it's in a web browser, you won't see the new lines since you'd need br or p tabs instead of \n's. So when you say that it's not working properly, can you at least say how it *is* working and how that's different from what you expect? -M -Original

RE: [PHP] echo string with question mark in it

2004-11-30 Thread Chris W. Parker
Brent Clements mailto:[EMAIL PROTECTED] on Tuesday, November 30, 2004 3:55 PM said: I have the following string variable $string = 'test.php?id=' . $id; but when I echo out the string it looks like this test.php? id=# How do I make the ? part of the string instead of php

Re: [PHP] echo and html_decode

2004-07-21 Thread John W. Holmes
Karl-Heinz Schulz wrote: I'm trying to use html_decode with the echo function but failed so far. ? echo mysql_result($product, 0,1) ? What would be the correct syntax? Huh? I don't see html_decode anywhere and the function is html_entity_decode(), anyhow. If you want to run the above through

Re: [PHP] 'echo' and 'html_decode'

2004-07-21 Thread Matthew Sims
I'm trying to use html_decode with the echo function but failed so far. ? echo mysql_result($product, 0,1) ? What would be the correct syntax? TIA You should read up on how to use mysql_result properly. Read through the user comments for tips.

Re: [PHP] 'echo' and 'html_decode'

2004-07-21 Thread Daniel Kullik
Matthew Sims wrote: I'm trying to use html_decode with the echo function but failed so far. ? echo mysql_result($product, 0,1) ? What would be the correct syntax? TIA You should read up on how to use mysql_result properly. Read through the user comments for tips.

Re: [PHP] 'echo' and 'html_decode'

2004-07-21 Thread Matthew Sims
Matthew Sims wrote: I'm trying to use html_decode with the echo function but failed so far. ? echo mysql_result($product, 0,1) ? What would be the correct syntax? TIA You should read up on how to use mysql_result properly. Read through the user comments for tips.

Re: [PHP] echo or print

2003-11-21 Thread David T-G
Eugene, et al -- ...and then Eugene Lee said... % % p class=tonue-in-cheek % % Also, the letter 'e' is smaller than 'p', so ASCII-based function % lookups will be faster as well. Most of these speed increases can't be noticed in a small script, where the end is within a few lines, but echo()

RE: [PHP] echo or print

2003-11-21 Thread Wouter van Vliet
David T-G wrote: Eugene, et al -- ...and then Eugene Lee said... % % p class=tonue-in-cheek % % Also, the letter 'e' is smaller than 'p', so ASCII-based function % lookups will be faster as well. Most of these speed increases can't be noticed in a small script, where the end is within

RE: [PHP] echo or print

2003-11-21 Thread Chris W. Parker
Wouter van Vliet mailto:[EMAIL PROTECTED] on Friday, November 21, 2003 10:55 AM said: Point is, which of the inline printing style is preferred by you guyes. I tend to use ?=$Var? a lot, since it reads easier but get into struggles with myself when I do that multiple times in a row.

RE: [PHP] echo or print

2003-11-21 Thread Wouter van Vliet
Chris W. Parker wrote: Wouter van Vliet mailto:[EMAIL PROTECTED] on Friday, November 21, 2003 10:55 AM said: Point is, which of the inline printing style is preferred by you guyes. I tend to use ?=$Var? a lot, since it reads easier but get into struggles with myself when I do that

RE: [PHP] echo or print

2003-11-21 Thread Kelly Hallman
On Fri, 21 Nov 2003, Wouter van Vliet wrote: Point is, which of the inline printing style is preferred by you guyes. I tend to use ?=$Var? a lot, since it reads easier but get into struggles with myself when I do that multiple times in a row. Ultimately I think you'd want to be doing very

RE: [PHP] echo or print

2003-11-21 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: I also prefer ?= $variable ? to ?php echo $variable; ? except that for the sake of cross-system compatibility* I now choose to do ?php echo $variable; ?. I think explicitly using echo is much more readable. While it may be obvious to many what ?=

RE: [PHP] echo or print

2003-11-21 Thread Wouter van Vliet
Kelly Hallman wrote: On Fri, 21 Nov 2003, Wouter van Vliet wrote: Point is, which of the inline printing style is preferred by you guyes. I tend to use ?=$Var? a lot, since it reads easier but get into struggles with myself when I do that multiple times in a row. Ultimately I think you'd

Re: [PHP] echo or print

2003-11-21 Thread Eugene Lee
On Fri, Nov 21, 2003 at 07:55:05PM +0100, Wouter van Vliet wrote: : : (.. long bunch of HTML ..) : Jay asked ?=$Question?, then Tom said ? echo $Answer; ?. ?php I don't like this because it doesn't protect your content from being misinterpreted. It should be more like: Jay asked ?php

Re: [PHP] echo or print

2003-11-21 Thread Jon Kriek
Rasmus Lerdorf There is a difference between the two, but speed-wise it should be irrelevant which one you use. print() behaves like a function in that you can do: $ret = print Hello World; And $ret will be 1 That means that print can be used as part of a more complex expression where echo

Re: [PHP] echo or print

2003-11-21 Thread Curt Zirzow
* Thus wrote Wouter van Vliet ([EMAIL PROTECTED]): Point is, which of the inline printing style is preferred by you guyes. I tend to use ?=$Var? a lot, since it reads easier but get into struggles with myself when I do that multiple times in a row. 1. Turn off short_open_tags 2. Turn off

Re: [PHP] echo or print

2003-11-21 Thread Robert Cummings
On Sat, 2003-11-22 at 00:13, Curt Zirzow wrote: * Thus wrote Wouter van Vliet ([EMAIL PROTECTED]): Point is, which of the inline printing style is preferred by you guyes. I tend to use ?=$Var? a lot, since it reads easier but get into struggles with myself when I do that multiple times

Re: [PHP] echo or print

2003-11-20 Thread Tom Rogers
Hi, Friday, November 21, 2003, 12:37:50 AM, you wrote: JF when should i use echo ' '; vs. print ' '; JF JF Jay Fitzgerald, Design Director JF - Certified Professional Webmaster (CPW-A) JF - Certified Professional Web Designer (CPWDS-A) JF -

Re: [PHP] echo or print

2003-11-20 Thread John W. Holmes
Jay Fitzgerald wrote: when should i use echo ' '; vs. print ' '; You should always use echo. It'll make a significant performance increase in your scripts as it's only four letters instead of five. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect:

RE: [PHP] echo or print

2003-11-20 Thread Johnson, Kirk
when should i use echo ' '; vs. print ' '; Here's a link listed in the manual at http://www.php.net/manual/en/function.print.php http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] echo or print

2003-11-20 Thread Burhan Khalid
Tom Rogers wrote: Hi, Friday, November 21, 2003, 12:37:50 AM, you wrote: JF when should i use echo ' '; vs. print ' '; JF JF Jay Fitzgerald, Design Director JF - Certified Professional Webmaster (CPW-A) JF - Certified Professional Web Designer

Re: [PHP] echo or print

2003-11-20 Thread Eugene Lee
On Thu, Nov 20, 2003 at 12:36:42PM -0500, John W. Holmes wrote: : : Jay Fitzgerald wrote: : : when should i use echo ' '; vs. print ' '; : : You should always use echo. It'll make a significant performance : increase in your scripts as it's only four letters instead of five. p

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread - Edwin -
(Just FYI) On Wed, 29 Oct 2003 23:03:55 +0100 Ryan A [EMAIL PROTECTED] wrote: If I have said it once I have said it a thousand times..MAC's are evil. Step away from it and leave the darkness behind.come towards the light and thePC ...[snip]... Too bad for you... Just by reading

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Leif K-Brooks
- Edwin - wrote: Just by reading this - http://www.apple.com/macosx/ esp. these last two sections: * Solid as a rock * Developer's dream would give people reason to consider and even switch... Mac OS X is fairly stable, I'll give you that. As for developer's dream, that's a matter of

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread - Edwin -
On Thu, 30 Oct 2003 02:47:47 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: - Edwin - wrote: Just by reading this - http://www.apple.com/macosx/ esp. these last two sections: * Solid as a rock * Developer's dream would give people reason to consider and even switch... Mac OS X

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Ryan A
The devil will always give you lots of reasons to convert you Do not always take the smooth path, the rough path sometimes.. is the right path. :-D Cheers, -Ryan Oh BTW - Macs are EVIL. On Thu, 30 Oct 2003 02:47:47 -0500 Leif K-Brooks [EMAIL PROTECTED] wrote: - Edwin - wrote:

RE: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Chris W. Parker
- Edwin - mailto:[EMAIL PROTECTED] on Wednesday, October 29, 2003 11:26 PM said: [snip lots of nice things about mac osx] Yes, I can do those and more on my Mac. And it doesn't even crash on me even if I do many things at the same time. I could run it for months! Yeah but... it's a Mac.

RE: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Filip de Waard
Chris, I seriously disagree with you, in my not so humble opinion OS X is really great. I currently only have Linux installed, but i've just ordered a PowerBook... However, I don't see the point in discussing this topic any longer. You won't change your opinion and Apple afficionados won't

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Chris Garaffa
Sorry to continue this, but I just have to know... On Oct 30, 2003, at 6:32 PM, Chris W. Parker wrote: But seriously folks... The reason I don't like Macs is not because they don't perform well but it's because they have a retarded UI. It looks like crap and it works like crap. They do some of

Re: [PHP] Echo issue RESOLVED!

2003-10-30 Thread Larry E . Ullman
However, I don't see the point in discussing this topic any longer. You won't change your opinion and Apple afficionados won't change their opinion either. I would like to suggest that you try Linux, BSD or OS X before you speak. On the bright side, Linux, Windows, and Mac OS X all run PHP. And

Re: [PHP] Echo issue

2003-10-29 Thread David Otton
On Wed, 29 Oct 2003 11:56:11 +1100, you wrote: I have spent about an hour looking at this and have found I can't echo anything with 16 characters or less! It can be over a single line or multiple lines eg. ?php echo(12345678); echo(12345678); ? - but ?php echo(12345678); echo(123456789); ?

Re: [PHP] Echo issue

2003-10-29 Thread Payne
Payne Wrtote: \n is what you are needing. \n means new line. So you want a new line you have to do this echo (abc\n); echo (Elm Street\n); echo (Anytown, NY 0 \n); to get abc Elm Street Anytown, NY 0 you can also use a printf then you can use html code to get the same br. You

Re: [PHP] Echo issue

2003-10-29 Thread John Nichel
Payne wrote: Payne Wrtote: \n is what you are needing. \n means new line. So you want a new line you have to do this echo (abc\n); echo (Elm Street\n); echo (Anytown, NY 0 \n); to get abc Elm Street Anytown, NY 0 you can also use a printf then you can use html code to get the same

Re: [PHP] Echo issue

2003-10-29 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: Is this on Windoze or *nix? Sounds like some sort of buffering issue... Yes, it does. what is 'output_buffering' set too in your ini? This shouldn't matter either. I can't think of a reason why he would see the behavior he describes. In fact, this

Re: [PHP] Echo issue

2003-10-29 Thread John Nichel
Chris Shiflett wrote: --- John Nichel [EMAIL PROTECTED] wrote: Is this on Windoze or *nix? Sounds like some sort of buffering issue... Yes, it does. what is 'output_buffering' set too in your ini? This shouldn't matter either. I can't think of a reason why he would see the behavior he

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Kim Kohen
G'day Adam, David, John etc I have spent about an hour looking at this and have found I can't echo anything with 16 characters or less! I'm glad to report this is not a PHP issue. It turns out to be a Safari problem with Mac OSX (Safari was updated with OSX 10.3). All my PHP stuff is

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Ryan A
If I have said it once I have said it a thousand times..MAC's are evil. Step away from it and leave the darkness behind.come towards the light and thePC :-D Cheers, -Ryan (P.S in case you hav'nt guesseda PC user) G'day Adam, David, John etc I have spent about an hour looking

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Chris Shiflett
--- Kim Kohen [EMAIL PROTECTED] wrote: I'm glad to report this is not a PHP issue. It turns out to be a Safari problem with Mac OSX (Safari was updated with OSX 10.3). All my PHP stuff is working correctly in IE so it looks like development will proceed there until Apple gets a fix. I would

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Kim Kohen
G'day Chris I would be very interested in learning more about this issue. Would you happen to be able to provide an example HTTP transaction that Safari mishandles? If you use a 'proper' html file it works OK. If you simply create a text file (with .html extension) with less than 16

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread Jason Wong
On Thursday 30 October 2003 06:03, Ryan A wrote: If I have said it once I have said it a thousand times..MAC's are evil. Step away from it and leave the darkness behind.come towards the light and thePC :-D Cheers, -Ryan (P.S in case you hav'nt guesseda PC user) Define

Re: [PHP] Echo issue RESOLVED!

2003-10-29 Thread David Otton
On Thu, 30 Oct 2003 10:00:51 +1100, you wrote: I would be very interested in learning more about this issue. Would you happen to be able to provide an example HTTP transaction that Safari mishandles? If you use a 'proper' html file it works OK. If you simply create a text file (with .html

RE: [PHP] Echo $PHP_SELF not working

2003-10-10 Thread Daniel Perez Clavero
try to use $_SERVER['PHP_SELF'] instead of. -Original Message- From: Jeff McKeon [mailto:[EMAIL PROTECTED] Sent: viernes, 10 de octubre de 2003 14:09 To: php Subject: [PHP] Echo $PHP_SELF not working I've just published a new website and something is wrong. I suspect the PHP.ini on

Re: [PHP] echo statements

2003-07-18 Thread Chris Shiflett
--- Jay Fitzgerald [EMAIL PROTECTED] wrote: When echoing html code that will include variables from a while or if loop, which method is best? ... Method 1: echo td align=\left\ VALIGN=\top\font class=\dbtables\$employer/font/td; OR Method 2: td align=left valign=topfont class=dbtables?php

Re: [PHP] echo statements

2003-07-18 Thread Curt Zirzow
Jay Fitzgerald [EMAIL PROTECTED] wrote: When echoing html code that will include variables from a while or if loop, which method is best? Method 1: echo td align=\left\ VALIGN=\top\font class=\dbtables\$employer/font/td; OR Method 2: td align=left valign=topfont class=dbtables?php echo

Re: [PHP] echo not working!!!

2003-07-06 Thread Tom Rogers
Hi, Sunday, July 6, 2003, 3:55:39 PM, you wrote: a I'm setting up php on the apache server for the first time here running a Slackware linux, and I cannot get the echo command to display properly. a My source file is phptest.php and it looks like this: a html a head a titlePHP Test/title a

Re: [PHP] echo not working!!!

2003-07-06 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sun, 6 Jul 2003 at 16:57, lines prefixed by '' were originally written by you. ?php echo (h1PHP is running./h1); ? it displays the string AND the closing double quote, paren, semicolon, question mark, and on a new line. What the hell is

RE: [PHP] echo

2003-03-20 Thread Martin Towell
is this what you're after ? flush(); wait(5); // I think wait() is in seconds echo blah; -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 2:54 PM To: php list Subject: [PHP] echo hello all, is it possible to delay an echo say by 5 seconds

Re: [PHP] echo

2003-03-20 Thread Sebastian
php has a wait function? I didn't know that... But i get: Fatal error: Call to undefined function: wait() I just want to delay some text from loading too quick. i am sure is can be done in java but i don't have any experience in it :s cheers, - Sebastian - Original Message - From:

Re: [PHP] echo

2003-03-20 Thread Chris Shiflett
--- Sebastian [EMAIL PROTECTED] wrote: is it possible to delay an echo say by 5 seconds after the page loads? This sounds similar to a little script I wrote a while back to demonstrate flush() for someone. Maybe it will help you: http://shiflett.org/tutorials/php_flush.php Chris = Become

RE: [PHP] echo

2003-03-20 Thread Martin Towell
sorry - sleep(5); -Original Message- From: Sebastian [mailto:[EMAIL PROTECTED] Sent: Friday, March 21, 2003 3:58 PM To: Martin Towell; php list Subject: Re: [PHP] echo php has a wait function? I didn't know that... But i get: Fatal error: Call to undefined function: wait() I just

Re: [PHP] echo

2003-03-20 Thread Sebastian
thank you. now we're talking, Works great :) cheers, - Sebastian - Original Message - From: Martin Towell [EMAIL PROTECTED] | sorry - sleep(5); | | -Original Message- | From: Sebastian [mailto:[EMAIL PROTECTED] | | php has a wait function? I didn't know that... But i get: |

Re: [PHP] Echo # problem

2003-02-12 Thread Petre Agenbag
Two ways: a) echo blabla # $blabla; or b) echo 'blabla # '.$blabla; The # character must just be inside the echo's quotes. On Wed, 2003-02-12 at 13:36, Paul McQ wrote: I am writing an application in which I need to redirect to an url using the Header function. This redirection must

RE: [PHP] Echo # problem

2003-02-12 Thread Chris Hayes
At 13:46 12-2-03, you wrote: The code I am trying to get working is shown below however, as the # is interpreted as a comment the header function is only redirecting to ./itemadmin.php3?submittedby=$submittedbycat=$cat $head = ./itemadmin.php3?submittedby=$submittedbycat=$cat#$edit; header

RE: [PHP] Echo # problem

2003-02-12 Thread Ford, Mike [LSS]
-Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED]] Sent: 12 February 2003 13:02 At 13:46 12-2-03, you wrote: The code I am trying to get working is shown below however, as the # is interpreted as a comment the header function is only redirecting to

Re: [PHP] echo w/ here document

2002-11-11 Thread Marco Tabini
You need to remove the semicolon from the beginning of your heredoc expression. The semicolon tells PHP (incorrectly) that the instruction terminates, while in fact it doesn't: ?php $name=John Doe echo ENDOFECHO; HTML BODY H3ECHO TEST/H3 Hello, $name. /BODY /HTML ENDOFECHO; ? This will work.

Re: [PHP] echo w/ here document

2002-11-11 Thread @ Edwin
Hello Marco, Marco Tabini [EMAIL PROTECTED] wrote: You need to remove the semicolon from the beginning of your heredoc expression. The semicolon tells PHP (incorrectly) that the instruction terminates, while in fact it doesn't: I think... ?php $name=John Doe you meant the semicolon at

Re: [PHP] echo writes number of chars written

2002-09-30 Thread Tom Rogers
Hi, Tuesday, October 1, 2002, 4:12:46 AM, you wrote: DB List, DB On my php.4.2.3, Apache 4.0.42 install my echo statements all output the DB number of characters written (in hex). DB So this code: DB echo addrone$id-addrone/addrone; DB echo addrtwo$id-addrtwo/addrtwo; DB echo

Re: [PHP] Echo Informative Text will Script Runs - how ?

2002-03-25 Thread Jon Farmer
How can I echo some text such as Processing, please wait... whilst the PHP script runs. Rather than displaying a blank screen with the results being echoed once the script has fully completed. echo (\Processing, please wait...\); flush(); //processing code here... -- Jon Farmer Systems

Re: [PHP] Echo Informative Text will Script Runs - how ?

2002-03-25 Thread Erik Price
On Monday, March 25, 2002, at 10:39 AM, Chris wrote: How can I echo some text such as Processing, please wait... whilst the PHP script runs. Rather than displaying a blank screen with the results being echoed once the script has fully completed. A hackish and inelegant way to do it

Re: [PHP] echo and Session Variables

2002-03-21 Thread David Johansen
Thanks that fixed the problem, but I have a question then. Am I supposed to put the ' in the $_SESSION[] in the normal parts of code. Thanks, Dave Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 21 Mar 2002, David Johansen wrote: I was just

RE: [PHP] echo and Session Variables

2002-03-21 Thread Kevin Stone
Johansen [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 4:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] echo and Session Variables Thanks that fixed the problem, but I have a question then. Am I supposed to put the ' in the $_SESSION[] in the normal parts of code. Thanks, Dave Miguel

RE: [PHP] echo and Session Variables

2002-03-21 Thread Rasmus Lerdorf
PM To: [EMAIL PROTECTED] Subject: Re: [PHP] echo and Session Variables Thanks that fixed the problem, but I have a question then. Am I supposed to put the ' in the $_SESSION[] in the normal parts of code. Thanks, Dave Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

RE: [PHP] echo and Session Variables

2002-03-21 Thread Johnson, Kirk
.. $myarray = array ('myvar' = 'myvalue'); echo $myarray[myvar]; // prints out 'myvalue' -Kevin -Original Message- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 4:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] echo and Session Variables Thanks

Re: [PHP] echo and Session Variables

2002-03-21 Thread Erik Price
On Thursday, March 21, 2002, at 06:26 PM, David Johansen wrote: Thanks that fixed the problem, but I have a question then. Am I supposed to put the ' in the $_SESSION[] in the normal parts of code. Thanks, Dave You should use either single quotes or double quotes in any associative

Re: [PHP] echo HTML code ;

2002-01-31 Thread Shooter
ok.. well an echo goes echo what u want to echo; so u would do it this way echo html code.. making sure u dont use a in any of ur html code; php stuff echo $phpvariable br more html code.. if u want to use a use a ' instead.; more php stuff. Neil - Original Message - From: André

Re: [PHP] echo HTML code ;

2002-01-31 Thread val petruchek
ok.. well an echo goes echo what u want to echo; so u would do it this way echo html code.. making sure u dont use a in any of ur html code; php stuff echo $phpvariable br more html code.. if u want to use a use a ' instead.; more php stuff. If u want to use use \ instead... if u

Re: [PHP] echo HTML code ;

2002-01-31 Thread André Felix Miertschink
Personal, I think I expressed myself wrong, because it is like this that I use, but the one that I want to know, if the echo HTML code it is much slower than if I put the HTML code out of the PHP block. Can these several echo's harm the processing of the server? Can that turn slow the

Re: [PHP] echo diferent coluns from left join

2002-01-10 Thread Miles Thompson
If I understand you correctly, use Javascript to open a second browser window for url_2. Miles Thompson At 02:49 PM 1/10/2002 -0200, Rodrigo Peres wrote: Dear List, I have this sql command that grabs a result of 3 tables. What i want is if there's a way to do a while printing the site and

Re: [PHP] echo diferent coluns from left join

2002-01-10 Thread Rodrigo Peres
Sorry, Ithink that I not explain right. I nedd to create a list, something like: url site br url site br url_2 site_2 br url_2 site_2 br When the values returned by url and site finished them proceed to url_2 and site_2 values. Thank's Rodrigo on 1/10/02 3:16 PM, Miles Thompson at [EMAIL

Re: [PHP] echo diferent coluns from left join

2002-01-10 Thread Miles Thompson
Two ways actually ... You could execute two separate SQL statements, and process them one after another. or You could process your result set, echo()'ing or print()'ing the first elements of the result set, then go back to the beginning and do the second set, something like this ... for ($i

Re: [PHP] echo problem NEW

2002-01-09 Thread Henning Sprang
Hy, universal2001 wrote: Hi again! Thanks for the reply! I still have another question: so I tired to use (echo) like this: echo table border=0 cellpadding=0 cellspacing=0 width=639 tr tdimg src=img_heading/spacer.gif width=25 height=1 border=0/td /tr tr td

Re: [PHP] echo problem NEW

2002-01-09 Thread Nicolas Costes
Hellorghh !!! You'd better do like this : echo table border='0' cellpadding='0' cellspacing='0' width='639' Le Mercredi 9 Janvier 2002 13:05, Henning Sprang a écrit : Hy, universal2001 wrote: Hi again! Thanks for the reply! I still have another question: so I tired to use

Re: [PHP] echo problem NEW

2002-01-09 Thread Henning Sprang
Nicolas Costes wrote: Hellorghh !!! You'd better do like this : echo table border='0' cellpadding='0' cellspacing='0' width='639' just another one - but i am too out of practice with html standarts to know if this is compliant ( a browser showing a result doesn't neccessary mean it's

Re: [PHP] echo problem NEW

2002-01-09 Thread Nicolas Costes
Yes, you're right !!! some browsers like IE will accept even blah blah=0, blah blah='0', blah blah=0, and some like Opera will only understand : IE SuxWithTooEasySyntax=1 ;-)) Le Mercredi 9 Janvier 2002 14:17, Henning Sprang a écrit : Nicolas Costes wrote: -- ( * Nicolas Costes,

Re: [PHP] echo problem NEW

2002-01-09 Thread Bas van Rooijen
Hello, In addition to Henning Sprang's fine solutions, you can also do the following (given you use PHP 4); ? $xmp_width = 5; $xmp_tdcolor = #FF; $xmp_text = Some text; echo EOF TABLE WIDTH={$xmp_width} TRTD COLOR={$xmp_tdcolor}$xmp_text/TD/TR /TABLE EOF; ? Note that

Re: [PHP] echo problem NEW

2002-01-09 Thread Paul Burney
on 1/9/02 8:17 AM, Henning Sprang at [EMAIL PROTECTED] appended the following bits to my mbox: just another one - but i am too out of practice with html standarts to know if this is compliant ( a browser showing a result doesn't neccessary mean it's standarts compliant!) FYI: By default,

Re: [PHP] echo problem NEW

2002-01-08 Thread Steven Cayford
On 2002.01.09 02:00:55 -0600 universal2001 wrote: so I tired to use (echo) like this: echo table border=0 cellpadding=0 cellspacing=0 width=639 tr tdimg src=img_heading/spacer.gif width=25 height=1 border=0/td /tr tr td colspan=11img name=index_r1_c1

<    1   2   3   >