Fwd: [PHP] What does this mean?

2009-06-25 Thread Eddie Drapkin
Just getting this back on the list >.> -- Forwarded message -- From: Eddie Drapkin Date: Fri, Jun 26, 2009 at 2:36 AM Subject: Re: [PHP] What does this mean? To: Jason Carson It's used in key value combinations in several places. When building an array: $foo =

[PHP] What does this mean?

2009-06-25 Thread Jason Carson
Hey all, I'm new to the list and I have a question... What does => mean? The book I am reading is called Programming PHP published by O'Reilly. I haven't read the whole book yet. I was flipping through the pages and in the book there is mention of <= (less than or equal) and >= (greater than or e

Re: [PHP] What does

2008-12-28 Thread tedd
At 6:06 PM + 12/28/08, Benjamin Hawkes-Lewis wrote: On 28/12/08 16:47, Jim Lucas wrote: short tags are enabled. Disable them in your php.ini file and you will be good. Alternately: '; ?> -- Benjamin Hawkes-Lewis Bingo -- we have a winner! Thanks Benjamin -- that works without me havi

Re: [PHP] What does

2008-12-28 Thread Ashley Sheridan
On Sun, 2008-12-28 at 11:40 -0500, tedd wrote: > Hi gang: > > I have a small php routine to provide the user with a style choice. > The working url is here: > > http://php1.net/a1/david/ > > The simple code that allows style switching follows: > > $the_style = isset($_SESSION['the_style']) ?

Re: [PHP] What does

2008-12-28 Thread Yeti
I think it can also be set in .htaccess php_flag short_open_tag off somebody confirm this or not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does

2008-12-28 Thread Benjamin Hawkes-Lewis
On 28/12/08 16:47, Jim Lucas wrote: short tags are enabled. Disable them in your php.ini file and you will be good. Alternately: '; ?> -- Benjamin Hawkes-Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does

2008-12-28 Thread Daniel Brown
On Sun, Dec 28, 2008 at 11:47, Jim Lucas wrote: > > short tags are enabled. Disable them in your php.ini file and you will be > good. Correct. It's shared hosting, so short_open_tags is on for compatibility's sake. That's on one of my servers, so let me know if you need a hand, Tedd. --

Re: [PHP] What does

2008-12-28 Thread Jim Lucas
tedd wrote: > Hi gang: > > I have a small php routine to provide the user with a style choice. The > working url is here: > > http://php1.net/a1/david/ > > The simple code that allows style switching follows: > > $the_style = isset($_SESSION['the_style']) ? $_SESSION['the_style'] : > 'style1';

[PHP] What does

2008-12-28 Thread tedd
Hi gang: I have a small php routine to provide the user with a style choice. The working url is here: http://php1.net/a1/david/ The simple code that allows style switching follows: As you can see, the code works. However, if I add the following line IN THE HTML (i.e., after ?>): I rec

Re: [PHP] What does "<<<" mean?

2007-05-03 Thread itoctopus
never ever used it... I also voted! -- itoctopus - http://www.itoctopus.com "Philip Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: > >> On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: >>> Hello, folks. >>> I rember I'

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Daniel Brown
No, to my knowledge, even PHP3 (I honestly don't remember if it was in PHP/FI, but I don't think so) allowed you to use the same name for multiple heredoc's. It just works like the for/next concept in BASIC for this = this to that (do something), next this. Meaning that as soon as the con

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Daniel Brown
On 5/2/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Cool! They fixed http://php.net/<<< to go to the strings page! Just wish it jumped to the anchor as well... :-) I'm greedy. :-) :-) :-) I'll say you are! Next you'll want all of the links on the site to point to the correct spots! -- Da

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:18 pm, Paul Novitski wrote: > When I first started using PHP I thought that each heredoc label had > to be unique. Turns out that's not true, and now I use the simple > shorthand: > > $sResult = <<<_ > Some text. > _; I suspect earlier versions of PHP required unique labe

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 3:41 pm, Micky Hulse wrote: > Daniel Brown wrote: >>Actually, that should be directed at the OP who said that. I was >> able >> to bring up the heredoc, too. ;-P > > Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( Cool! They fixed http://php.net/<<< to

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:44 pm, Greg Donald wrote: > On 4/30/07, Greg Donald <[EMAIL PROTECTED]> wrote: >> All parts of a heredoc statement do not have to be right justified, >> only the closing line. > > I meant my other right, the one on my left. Sorry. You don't *HAVE* to left-justify the re

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:19 pm, Richard Davey wrote: > Greg Donald wrote: > >> On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: >>> > echo <<>> > BROWSER: $_SERVER[HTTP_USER_AGENT] >>> > EOF; >>> >>> Isn't that form (sans quote marks) deprecated and frowned upon? >> >> > >> error_reporting( E_

RE: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 6:33 pm, Daevid Vincent wrote: >> echo "BROWSER: " . $_SERVER['HTTP_USER_AGENT'] . "\n"; > > I've always had problems with heredoc when I try using arrays like > that. I > will either pull them into a straight $foo, or use the ${} thing. It probably won't do 2-D arrays, but

Re: [PHP] What does "<<<" mean?

2007-05-01 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, mov

Re: [PHP] What does "<<<" mean?

2007-05-01 Thread Greg Donald
On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Greg Donald wrote: > Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) Django is very under-developed compared to Rails. There's not a Javascript library in sight and the developers have a "do it yo

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Larry Garfield
On Monday 30 April 2007, Greg Donald wrote: > Sounds like you got MVC-itis. PHP can't really help with that since > it's a templating language. > > Try Rubyonrails, it's the best cure for the MVC itch. Except that it's a PAC framework, not MVC, like the vast majority of web apps frameworks out

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Greg Donald wrote: Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) -- Wishlists: Switch: BCC?: My: -- PHP General Mailing Li

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Robert Cummings
On Mon, 2007-04-30 at 19:42 -0500, Greg Donald wrote: > On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: > > I'm not dissing heredoc syntax, it has its uses (now and again) but it's > > far from "clean", especially when embedded deep in classes > > Classes? PHP is the absolute worst language

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Greg Donald <[EMAIL PROTECTED]> wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, move on to ruby or pytho

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated and frowned upon? I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especiall

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Paul Novitski
At 4/30/2007 03:38 PM, Philip Thompson wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ I'm interested in knowing if this i

RE: [PHP] What does "<<<" mean?

2007-04-30 Thread Brian Seymour
Heredoc is truly a great thing. You'll learn to love heredoc whenever you have tons of stuff you need to print instead of escaping php. A great example is output that comes from classes, where you can't break the class into multiple code blocks. Just don't forget that heredoc end part has to be on

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated and frowned upon? http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What does "<<<" mean?

2007-04-30 Thread Daevid Vincent
> echo "BROWSER: " . $_SERVER['HTTP_USER_AGENT'] . "\n"; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ If you're not using it y

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Philip Thompson
On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<< END some code END What

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Daniel Brown
No need to apologize at all, Micky! On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: >Actually, that should be directed at the OP who said that. I was able > to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wi

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wishlists: Switch: BCC?:

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Daniel Brown
Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi Daniel, Daniel Brown wrote: >> BTW: >> PHP .net search breaks if you search for <<< Try this: www.php.net/<<< And then scroll

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Hi Daniel, Daniel Brown wrote: BTW: PHP .net search breaks if you search for <<< Try this: www.php.net/<<< And then scroll down to heredoc section. Heredoc comes in handy from time-to-time. Cheers, M -- Wishlists: Switch: BCC?:

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Daniel Brown
It means to read until it reaches the matching expression --- in this case, END. On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<<

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<< END some code END What exactly does it mean. BTW: PHP .net search breaks if

[PHP] What does "<<<" mean?

2007-04-30 Thread Nick Gorbikoff
Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<< END some code END What exactly does it mean. BTW: PHP .net search breaks if you search for <<< Regards, --

Re: [PHP] What does this mean:

2006-04-08 Thread Dave Goodchild
...is a concise, if less readable way, to echo the value of arse. It is only used to echo a value. To do anything else, for example, call a method, use the second approach you describe. In fact, you already seem to know the difference, so why the question? Are you trying to replace this notation

Re: [PHP] What does this mean:

2006-04-08 Thread Rory Browne
On 4/8/06, Merlin <[EMAIL PROTECTED]> wrote: > > Hi there, > > I am somehow confused about the this command: > What does the equetion sigh mean? > > I would like to replace the > > loadJsApp(true) ?> > > so I could do something like this: > $ajax->loadJsApp(true); > echo '

[PHP] What does this mean:

2006-04-08 Thread Merlin
Hi there, I am somehow confused about the this command: loadJsApp(true) ?> so I could do something like this: loadJsApp(true); echo 'test'; ?> But this does not work. Some how this equetion sign has something to do with it. Thank you for any hint, Merlin -- PHP General Mailing List (http

RE: [PHP] What does a "?" represent

2006-02-17 Thread Jeff
> -Original Message- > From: Shaunak Kashyap [mailto:[EMAIL PROTECTED] > Sent: Friday, February 17, 2006 15:22 > To: php-general@lists.php.net > Subject: RE: [PHP] What does a "?" represent > > > I'm not sure if these completely answer your que

Re: [PHP] What does a "?" represent

2006-02-17 Thread Satyam
Subject: Re: [PHP] What does a "?" represent It's usually used as a single character wildcard. So "something = ?" would match "A", "B", "1", etc.. but not "AB, "A1". -TG = = = Original message = = = In the some code I

Re: [PHP] What does a "?" represent

2006-02-17 Thread tg-php
It's usually used as a single character wildcard. So "something = ?" would match "A", "B", "1", etc.. but not "AB, "A1". -TG = = = Original message = = = In the some code I'm working with I see many database queries using the PEAR DB class where "?" is used for a value in the SQL. What is t

RE: [PHP] What does a "?" represent

2006-02-17 Thread Shaunak Kashyap
ender by reply e-mail and destroy all copies of this transmission. -Original Message- From: Jeff [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 11:54 AM To: php-general@lists.php.net Subject: [PHP] What does a "?" represent In the some code I'm working with

Re: [PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5)

2006-01-09 Thread Ligaya Turmelle
AIL PROTECTED] Sent: Monday, January 09, 2006 9:13 PM To: php-general@lists.php.net Subject: [PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5) I'm trying to understand function definitions and can't seem to find any reference to the meaning of (PHP 4 >= 4.0.1, PHP 5) or variations th

Re: [PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5)

2006-01-09 Thread Chris
mailto:[EMAIL PROTECTED] >> Sent: Monday, January 09, 2006 9:13 PM >> To: php-general@lists.php.net >> Subject: [PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5) >> >> I'm trying to understand function definitions and can't seem >> to find any referenc

RE: [PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5)

2006-01-09 Thread Erin Fortenberry
>= is "greater or equal to" -Erin > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Sent: Monday, January 09, 2006 9:13 PM > To: php-general@lists.php.net > Subject: [PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5) > > I'm try

[PHP] what does this mean? (PHP 4 >= 4.0.1, PHP 5)

2006-01-09 Thread Chris
I'm trying to understand function definitions and can't seem to find any reference to the meaning of (PHP 4 >= 4.0.1, PHP 5) or variations there of, shown at the beginning of each definition. I get the idea it is telling me that the particular function is supported in PHP 4 & 5. But what does th

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Jason, Friday, February 25, 2005, 12:42:30 PM, you wrote: J> Note to self: write "ternary" on the blackboard 100 times. You're telling me. I knew what it was but it took me like five minutes to remember what it was called! -- Leif (TB lists moderator and fellow end user). Using The Ba

RE: [PHP] what does this mean?

2005-02-25 Thread Chris W. Parker
Jochem Maas on Friday, February 25, 2005 12:31 PM said: > I thought 'tertiary' also - I could remember the 'other' name... > I was under the impression that both names were valid.. > anyone know if this is true? google brings up relevant hits for > both, from what I

Re: [PHP] what does this mean?

2005-02-25 Thread Guillermo Rauch
Including more than one you can make a complex control structure, not just if else $a = ($a == 0) ? ($b < $a ) ? $b : $a :$c; On Fri, 25 Feb 2005 13:26:51 -0600, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > on which page of php.net can I find out what this code does? > $a = $b? $a :"

Re: [PHP] what does this mean?

2005-02-25 Thread Jochem Maas
Jason Barnett wrote: Leif Gregory wrote: Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D> on which page of php.net can I find out what this code does? D> $a = $b? $a :"dian"; It's called a ternary operator, basically an if-else statement. Note to self: write "ternary" on the

RE: [PHP] what does this mean?

2005-02-25 Thread Jay Blanchard
[snip] on which page of php.net can I find out what this code does? $a = $b? $a :"dian"; [/snip] It is a ternary IF statement...verbose if ($a = $b){ $a; } else { "dian"; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what does this mean?

2005-02-25 Thread Leif Gregory
Hello Diana, Friday, February 25, 2005, 7:07:29 AM, you wrote: D> on which page of php.net can I find out what this code does? D> $a = $b? $a :"dian"; It's called a ternary operator, basically an if-else statement. There really isn't a page (that I've found) that explains in on php.net, bu

Re: [PHP] what does this mean?

2005-02-25 Thread Jochem Maas
Diana Castillo wrote: on which page of php.net can I find out what this code does? $a = $b? $a :"dian"; its a form of if statement called the tertiary form (or something), it does exactly the same as this: if ($b) { $a = $a; } else { $a = "dian"; } don't know which page its on

Re: [PHP] what does this mean?

2005-02-25 Thread Jason Barnett
Leif Gregory wrote: > Hello Diana, > > Friday, February 25, 2005, 7:07:29 AM, you wrote: > D> on which page of php.net can I find out what this code does? > D> $a = $b? $a :"dian"; > > > It's called a ternary operator, basically an if-else statement. Note to self: write "ternary" on the bl

[PHP] what does this mean?

2005-02-25 Thread Diana Castillo
on which page of php.net can I find out what this code does? $a = $b? $a :"dian"; -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com http://www.de

Re: [PHP] [php] What does PHP mean?

2004-11-22 Thread John Holmes
John Taylor-Johnston wrote: I'm writing an article where I'm going to explain what PHP is in a short sentence. PHP once meant Personal Home Page, right? PHP, originally an anacronym for "Personal Home Page", is a textual, "general-purpose scripting language" (www.PHP.net) designed to collect and

[PHP] [php] What does PHP mean?

2004-11-22 Thread John Taylor-Johnston
I'm writing an article where I'm going to explain what PHP is in a short sentence. PHP once meant Personal Home Page, right? PHP, originally an anacronym for "Personal Home Page", is a textual, "general-purpose scripting language" (www.PHP.net) designed to collect and process data between HTML

Re: [PHP] What does \\0 means?

2004-08-05 Thread John W. Holmes
From: "John Nichel" <[EMAIL PROTECTED]> >>On Thursday 05 August 2004 07:39, Jay offered up the following tid-bit of >>information : >> Found the following code in the PHP manual: >> $text = "http://www.somelink.com";; >> echo(ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", >>

Re: [PHP] What does \\0 means?

2004-08-05 Thread John Nichel
On Thursday 05 August 2004 10:03, John W. Holmes offered up the following tid-bit of information : > oo.ooo... can I do it?? ;) > > \\0 is actually the entire string that was matches. \\1 would be the > first parenthesized substring, \\2 the second, etc. > > Don't worry, I had to look in the manua

[PHP] What does \\0 means?

2004-08-05 Thread Jay
Hi! Found the following code in the PHP manual: $text = "http://www.somelink.com";; echo(ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text)); What does \\0 means, i have seen this before with \\1 and \\2 what does they mean? Thanx In Advance Jay -- PHP Gene

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-09 Thread Raditha Dissanayake
Richard Davey wrote: Hello Ben, Friday, April 9, 2004, 3:36:04 AM, you wrote: BR> Well, is there actually a way to do this or a way to check the filesize BR> and send a nice message to the user that the file is over the BR> limit--other than just some error being thrown? Not until it gets to t

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
JWH> That's what $_FILES['whatever']['size'] is for. Although if the JWH> file is too large, like over the php.ini max file size setting, JWH> I don't think you get to control what happens. That's what I JWH> thought was being discussed. That's exactly what I was asking about. So, there's no way t

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread John W. Holmes
Richard Davey wrote: BR> That's what I was asking about, actually. How do I capture the filesize BR> without PHP throwing an error about the file being too big? Do a filesize() on the tmp file after upload? If it exceeds whatever limit you think is fair, error nicely. Your limit and the one impos

Re[2]: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Richard Davey
Hello Ben, Friday, April 9, 2004, 3:54:44 AM, you wrote: BR> That's what I was asking about, actually. How do I capture the filesize BR> without PHP throwing an error about the file being too big? Do a filesize() on the tmp file after upload? If it exceeds whatever limit you think is fair, erro

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
RD> Just let them upload the file, check the size when it's arrived and RD> say "sorry, you just wasted X minutes of your life uploading that, RD> try again". That's what I was asking about, actually. How do I capture the filesize without PHP throwing an error about the file being too big? -- Re

Re[2]: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Richard Davey
Hello Ben, Friday, April 9, 2004, 3:36:04 AM, you wrote: BR> Well, is there actually a way to do this or a way to check the filesize BR> and send a nice message to the user that the file is over the BR> limit--other than just some error being thrown? Not until it gets to the server, no. JavaScr

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
JWH> I think the intent is that the browser would catch files that are JWH> too large before they actually have to be uploaded. I don't know JWH> that any browsers actually support this, though. Well, is there actually a way to do this or a way to check the filesize and send a nice message to the

Re: [PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread John W. Holmes
Ben Ramsey wrote: I was reading about this here: http://us3.php.net/manual/en/features.file-upload.php It says: But you should add MAX_FILE_SIZE anyway as it saves users the trouble to wait for a big file being transferred only to find out that it was too big afterwards. So, I decided to ad

[PHP] What does MAX_FILE_SIZE do?

2004-04-08 Thread Ben Ramsey
I was reading about this here: http://us3.php.net/manual/en/features.file-upload.php It says: But you should add MAX_FILE_SIZE anyway as it saves users the trouble to wait for a big file being transferred only to find out that it was too big afterwards. So, I decided to add to my form. It

Re: [PHP] What does it take to give a good technical presentation?

2004-03-19 Thread John Coggeshall
On Fri, 2004-03-19 at 15:53, John W. Holmes wrote: > 1) Rehearse: This is a must. You have to run through your presentation a > couple times and preferably in front of other people so they can provide > feedback. Some people are really good at impromptu speaking and can wing it, This is a valid is

Re: [PHP] What does it take to give a good technical presentation?

2004-03-19 Thread Chris Shiflett
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > Yeah, live demos are great, but I don't want to sit there and watch > you type all of your PHP code. Have it already typed and just load > it, explain it, and run it. I guess it depends. I agree with you on some level, but I have seen the live demo

Re: [PHP] What does it take to give a good technical presentation?

2004-03-19 Thread John W. Holmes
From: "Chris Shiflett" <[EMAIL PROTECTED]> > > 3) Typing Code: Don't type code during your presentation. > > Why not? From my experience, people appreciate live demonstrations of the > techniques you're discussing. Yeah, live demos are great, but I don't want to sit there and watch you type all o

Re: [PHP] What does it take to give a good technical presentation?

2004-03-19 Thread Chris Shiflett
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > Since I'm fresh back from php|cruise, I thought I'd comment and ask > for comments on what it takes to give a good technical presentation. > I'm planning on writing about this topic in my next php|architect > column, so be aware that anything said h

[PHP] What does it take to give a good technical presentation?

2004-03-19 Thread John W. Holmes
Since I'm fresh back from php|cruise, I thought I'd comment and ask for comments on what it takes to give a good technical presentation. I'm planning on writing about this topic in my next php|architect column, so be aware that anything said here may appear in it. This is in no way a jab at any of

Re: [PHP] what does this mean?

2004-03-10 Thread "Miguel J. Jiménez"
That's a boolean casting; used for forcing a variable to become boolean... Hope it helps... Harry Wiens wrote: $this->styles['shadow'] = (boolean)$bool; what does "(boolean)$bool" mean? mfg. harry wiens -- Miguel J. Jiménez ISOTROL, S.A. (Á

Re: [PHP] what does this mean?

2004-03-10 Thread Richard Davey
Hello Harry, Wednesday, March 10, 2004, 12:55:44 PM, you wrote: $this->>styles['shadow'] = (boolean)$bool; HW> what does "(boolean)$bool" mean? It's casting the value ($bool) to a boolean (i.e. TRUE or FALSE). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP

Re: [PHP] what does this mean?

2004-03-10 Thread Raditha Dissanayake
The () operator means 'cast into' so (boolean)$bool means cast this into a booolean. Harry Wiens wrote: $this->styles['shadow'] = (boolean)$bool; what does "(boolean)$bool" mean? mfg. harry wiens -- Raditha Dissanayake. ---

[PHP] what does this mean?

2004-03-10 Thread Harry Wiens
$this->styles['shadow'] = (boolean)$bool; what does "(boolean)$bool" mean? mfg. harry wiens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] _("What does this do?")

2004-01-12 Thread Yann Larrivee
This is the equivalent to the function gettext http://ca3.php.net/manual/en/function.gettext.php Yann Larrivee http://conf.phpquebec.com http://protonicdesign.com On Mon, 2004-01-12 at 12:42, Kelly Hallman wrote: > I just ran across this syntax in someone else's code. > I can't detect any differ

Re: [PHP] _("What does this do?")

2004-01-12 Thread Marek Kilimajer
It's an alias to this function: http://sk2.php.net/manual/en/function.gettext.php Kelly Hallman wrote: I just ran across this syntax in someone else's code. I can't detect any difference between these two expressions: _("String value") and "String value" Is there a difference? What does _("xyz"

[PHP] _("What does this do?")

2004-01-12 Thread Kelly Hallman
I just ran across this syntax in someone else's code. I can't detect any difference between these two expressions: _("String value") and "String value" Is there a difference? What does _("xyz") do, and is it documented anywhere? I'm curious why this code (SquirrelMail) uses it in one place, but n

Re: [PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-24 Thread Scott Fletcher
:-) "Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Robert Sedlacek wrote: > > On Thu, 23 Oct 2003 18:36:20 -0500, John Nichel wrote: > > > >>Scott Fletcher wrote: > >> > >>>What does the word, 'parse' meant when you do a XML parse? What is it and > >>>what does it e

Re: [PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-24 Thread Burhan Khalid
Robert Sedlacek wrote: On Thu, 23 Oct 2003 18:36:20 -0500, John Nichel wrote: Scott Fletcher wrote: What does the word, 'parse' meant when you do a XML parse? What is it and what does it exactly do? Ummm...it parses the XML document. I think this would be a nice ~/.signature ;-) Even better as

Re: [PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-23 Thread John Nichel
Scott Fletcher wrote: What does the word, 'parse' meant when you do a XML parse? What is it and what does it exactly do? Thanks, Scott F. Ummm...it parses the XML document. Yeah, yeah, good answer!!! -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http:

Re: [PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-23 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > What does the word, 'parse' meant when you do a XML parse? http://dictionary.reference.com/search?q=parse http://en.wikipedia.org/wiki/Parse Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://http

[PHP] What does the word 'parse' meant when you do a XML parse...

2003-10-23 Thread Scott Fletcher
What does the word, 'parse' meant when you do a XML parse? What is it and what does it exactly do? Thanks, Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does -> mean?

2003-08-14 Thread murugesan
mes Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 12:44 PM Subject: [PHP] What does -> mean? > Hello, > > I've searched through Zend and php.net and can't find the answer. > > In the following code: >

[PHP] What does -> mean?

2003-08-14 Thread James Johnson
Hello, I've searched through Zend and php.net and can't find the answer. In the following code: $this->vendor = $vendor; What does the -> mean or do? Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What does -> mean?

2003-08-14 Thread Marco Schuler
Hi James Am Donnerstag, 14. August 2003 um 09:14 schrieb James Johnson: > Hello, > I've searched through Zend and php.net and can't find the answer. > In the following code: > $this->vendor = $vendor; What does the ->> mean or do? http://www.php.net/manual/en/language.oop.php -- Cheers!

Re: [PHP] What does -> mean?

2003-08-14 Thread Petre Agenbag
You should read up on classes and objects in the manual. On Thu, 2003-08-14 at 09:14, James Johnson wrote: > Hello, > > I've searched through Zend and php.net and can't find the answer. > > In the following code: > > $this->vendor = $vendor; > > What does the -> mean or do? > > Thanks, >

Re: [PHP] What does this do?

2003-06-10 Thread Steve Keller
At 6/10/2003 02:56 PM, Stephen Goddard wrote: > Can anyone tell me what this does ${varname} > I cant find any information as to what the braces do. Which is odd because searching for "braces" at PHP.net takes you the "strings" section, which explains in detail several functions of curly braces.

[PHP] What does this do?

2003-06-10 Thread Stephen Goddard
Hi, Can anyone tell me what this does ${varname} I cant find any information as to what the braces do. Cheers Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what does _\\_ mean?

2002-10-12 Thread Ns_Andy
I ,beginner of PHP, would like to ask what _\\_ means? Here's the code: $fp = @fopen ("a.txt") while ($buf = @fgets($fp,1024) { trim($buf) if (substr($buf,-1 == _\\_) { . .. with the above code Two or more lines ended with \ will be joined, for example, aa\ a become , aaa --

Re: [PHP] What does this error mean

2002-09-22 Thread Randy Johnson
at least 1 (one) paramter: > the query String. > http://www.php.net/manual/en/function.mysql-query.php > > Regards, > Daniel Kushner > > Need hosting? http://thehostingcompany.us > > > > > -Original Message----- > From: R

RE: [PHP] What does this error mean

2002-09-22 Thread Daniel Kushner
hosting? http://thehostingcompany.us -Original Message- From: Randy Johnson [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 22, 2002 2:26 PM To: Paul Nicholson; Bryan McLemore; PHP GEN LIST Subject: [PHP] What does this error mean What does this error mean? Warning: Wrong parameter

[PHP] What does this error mean

2002-09-22 Thread Randy Johnson
What does this error mean? Warning: Wrong parameter count for mysql_query() Thanks Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What does register_globals do?

2002-07-22 Thread Martin Clifford
; Matt Schroebel <[EMAIL PROTECTED]> 07/22/02 04:41PM >>> > From: Martin Clifford [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 22, 2002 4:21 PM > Subject: Re: [PHP] What does register_globals do? > My way of thinking about is: > > With register_globals ON, all

  1   2   >