Re: [PHP] image inventoryer

2012-04-08 Thread Tedd Sperling
Kirk: Okay, you took the first step. Now please review this: $filename "); } ?> Note: 1. This example does not put in all the embedded formatting shown in your example. What you did was simply bad form -- you should learn css as well. Also, you don't need to place the code within a bunch of h

Re: [PHP] image inventoryer

2012-04-08 Thread Kirk Bailey
Thank you! Not QUITE the first; I have used snippets and small routines for a while; however I did not know how to do this in php. Turns out there are at least 2 methods: glob, and an iteration of the directory with readdir() to build up an array, then one by one print the elements in the arr

Re: [PHP] image inventoryer

2012-04-07 Thread tamouse mailing lists
On Sat, Apr 7, 2012 at 10:35 PM, Kirk Bailey wrote: > > > Image inventory of this directory > > body { margin-left: 10; margin-right: 10%; } > body {background-attachment:fixed;} > A:link, A:visited,  A:active { text-decoration:none; } > A:hover { text-decoration:underline; } > .justify{text-al

[PHP] image inventoryer

2012-04-07 Thread Kirk Bailey
Image inventory of this directory body { margin-left: 10; margin-right: 10%; } body {background-attachment:fixed;} A:link, A:visited, A:active { text-decoration:none; } A:hover { text-decoration:underline; } .justify{text-align:justify;} .center{text-align:center;} This page inventories the

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
"tamouse mailing lists" wrote in message news:CAHUC_t-M_dg_D+if01BQm=RPd=GgL7d=naxfadxwybse-nn...@mail.gmail.com... > knowledge. Read first. Ask smart questions. There are BOATLOADS of > tutorials on PHP on the net, just a google away. I like that! "just a google away". :) -- PHP General

Re: [PHP] image inventoryer

2012-04-06 Thread tamouse mailing lists
On Thu, Apr 5, 2012 at 10:04 PM, Kirk Bailey wrote: > jim, I am a novice at this language as I said. > And were people this nice to you when YOU asked beginner questions? When I ask beginner questions, I spend time doing my homework first. This list is not a class to teach you to write PHP. The p

Re: [PHP] image inventoryer

2012-04-06 Thread Tedd Sperling
On Apr 5, 2012, at 10:26 PM, Kirk Bailey wrote: > I need a page that will live in a directory and list all image files in > there. That is, the page has > > 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

Re: [PHP] image inventoryer

2012-04-06 Thread David OBrien
On Apr 6, 2012 9:51 AM, "Jim Giner" wrote: > > "David OBrien" wrote in message > news:CAF=yD_06vDEHLP-nyEJxUNt6nHexA42X90U5-6+MBzc0=tc...@mail.gmail.com... > >> > > I googled "php show images in folder" and lo and behold the first was was > > a script almost exactly what you are wanting to do...

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
"David OBrien" wrote in message news:CAF=yD_06vDEHLP-nyEJxUNt6nHexA42X90U5-6+MBzc0=tc...@mail.gmail.com... >> > I googled "php show images in folder" and lo and behold the first was was > a script almost exactly what you are wanting to do > Damn - now the OP missed a golden opportunity to do

Re: [PHP] image inventoryer

2012-04-06 Thread David OBrien
On Fri, Apr 6, 2012 at 8:34 AM, Jim Giner wrote: > "Kirk Bailey" wrote in message > news:4f7e5d2f.3050...@howlermonkey.net... > > jim, I am a novice at this language as I said. > > > > Then you are taking on too big of a task. > > When I decided to pick up some web programming skills I bought a $

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
"Kirk Bailey" wrote in message news:4f7e5d2f.3050...@howlermonkey.net... > jim, I am a novice at this language as I said. > Then you are taking on too big of a task. When I decided to pick up some web programming skills I bought a $50 book/manual on learning PHP and another on MySQL. I read t

Re: [PHP] image inventoryer

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

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: determine

Re: [PHP] image inventoryer

2012-04-05 Thread Kirk Bailey
ok. ' // notice that is a 'singlequote' immedately followed by a "doublequote". ?> Something like this. In python I would write something like: #!/usr/bin/python import string, glob files=glob.glob("./*.*") # files is a list variable (a 1 dimensional addressable ar

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 that

Re: [PHP] image inventoryer

2012-04-05 Thread Tommy Pham
On Thu, Apr 5, 2012 at 7:26 PM, Kirk Bailey 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 do what you want... Wh

[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 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 tool is built I can us