Re: [PHP] To ? or not to ?

2012-04-05 Thread Larry Garfield
On 4/4/12 12:14 AM, Donovan Brooke wrote: Robert Cummings wrote: [snip] Could using ob_start and ob_end_flush eliminate the ambiguity of whether or not to use '?'? In the generally recommended case of don't use them at the end of your file... where's the ambiguity?

Re: [PHP] To ? or not to ?

2012-04-05 Thread Donovan Brooke
Larry Garfield wrote: [snip] Donovan Most major projects at this point leave it off, and their coding standards say to as well. The official PHP docs are generally non-commital by design, but outside of those I think it's pretty well-established to just leave it off and be happy. --Larry

Re: [PHP] learning resources for PHP

2012-04-05 Thread tamouse mailing lists
On Wed, Apr 4, 2012 at 6:16 AM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-04-03, at 10:39 PM, Tim Dunphy bluethu...@gmail.com wrote: Hello list,  I am quite sure that you've heard this question at least a few times before. :) But I have been dabbling a bit in PHP for years

[PHP] foreach

2012-04-05 Thread Ethan Rosenberg
Dear Lists - I know I am missing something fundamental - but I have no idea where to start to look. Here are code snippets: I have truncated the allowed_fields to make it easier to debug. $allowed_fields = array( 'Site' ='POST[Site]', 'MedRec' = '$_POST[MedRec]', 'Fname' =

[PHP] Re: foreach

2012-04-05 Thread Jim Giner
I don't know about others, but I can't make sense of this - way too much presented with no idea of what I am looking at - code or output. One thing: $_Request is not the same var as $_REQUEST. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: [PHP-DB] Re: foreach

2012-04-05 Thread Karl DeSaulniers
And POST[] is not the same as $_POST[] Karl Sent from losPhone On Apr 5, 2012, at 3:24 PM, Jim Giner jim.gi...@albanyhandball.com wrote: I don't know about others, but I can't make sense of this - way too much presented with no idea of what I am looking at - code or output. One thing:

[PHP] Re: foreach

2012-04-05 Thread Al
On 4/5/2012 4:15 PM, Ethan Rosenberg wrote: Dear Lists - I know I am missing something fundamental - but I have no idea where to start to look. Here are code snippets: I have truncated the allowed_fields to make it easier to debug. $allowed_fields = array( 'Site' ='POST[Site]', 'MedRec' =

[PHP] Re: [PHP-DB] Re: foreach

2012-04-05 Thread Kris Carlson
Send the code around line 198, say 170 to 210. On Apr 5, 2012, at 8:42 PM, Al wrote: On 4/5/2012 4:15 PM, Ethan Rosenberg wrote: Dear Lists - I know I am missing something fundamental - but I have no idea where to start to look. Here are code snippets: I have truncated the

[PHP] image inventoryer

2012-04-05 Thread Kirk Bailey
I need a page that will live in a directory and list all image files in there. That is, the page has img src=./foo.typeP tags emitted in it's structure, one per file in the directory with a saught file type- .png, .gif, .jpg, you get the idea. this should use relative addressing so once the

Re: [PHP] image inventoryer

2012-04-05 Thread Tommy Pham
On Thu, Apr 5, 2012 at 7:26 PM, Kirk Bailey kbai...@howlermonkey.net wrote: Now ai am still a novice at p[hp, how can I do this ? Have you read any book on PHP? even the official from PHP.net? Learn the tool so you know how to use it, efficiently. Otherwise how do you know if the tool can

Re: [PHP] image inventoryer

2012-04-05 Thread Jim Giner
As Tommy says - you sound like a total new user who doesn't know how to do it and furthermore doesn't know how many things you are going to have to pick up just to accomplish this task. You have to: determine the folder your script is running from collect an array of image file names from

Re: [PHP] image inventoryer

2012-04-05 Thread Kirk Bailey
ok. ?php filelist=inventory all files in directory ./ for file in filelist: // walk a listing of many items IF filetype in gif, jpg, png { echo 'img src=./'.file.'P' // notice that is a 'singlequote' immedately followed by a doublequote. ? Something like this. In python I would

Re: [PHP] image inventoryer

2012-04-05 Thread Kirk Bailey
jim, I am a novice at this language as I said. On 4/5/2012 10:44 PM, Jim Giner wrote: As Tommy says - you sound like a total new user who doesn't know how to do it and furthermore doesn't know how many things you are going to have to pick up just to accomplish this task. You have to:

Re: [PHP] image inventoryer

2012-04-05 Thread Tommy Pham
On Thu, Apr 5, 2012 at 8:02 PM, Kirk Bailey kbai...@howlermonkey.net wrote: If you don't want to read the manual or a book, you could quickly do some Google'ing as below: ok. ?php filelist=inventory all files in directory ./ filesystem site:php.net for file in filelist: // walk a listing