On Sat, Apr 7, 2012 at 10:35 PM, Kirk Bailey kbai...@howlermonkey.net wrote:
html
head
titleImage inventory of this directory/title
style TYPE=text/css
body { margin-left: 10; margin-right: 10%; }
body {background-attachment:fixed;}
A:link, A:visited, A:active { text-decoration:none; }
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
Kirk:
Okay, you took the first step. Now please review this:
?php
foreach (glob(images/*.jpg) as $filename)
{
echo(img src=\$filename\br$filename brbr);
}
?
Note:
1. This example does not put in all the embedded formatting shown in your
example. What you did was simply bad form -- you
html
head
titleImage inventory of this directory/title
style TYPE=text/css
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;}
Kirk Bailey kbai...@howlermonkey.net 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
On Fri, Apr 6, 2012 at 8:34 AM, Jim Giner jim.gi...@albanyhandball.comwrote:
Kirk Bailey kbai...@howlermonkey.net 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
David OBrien dgobr...@gmail.com 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
On Apr 6, 2012 9:51 AM, Jim Giner jim.gi...@albanyhandball.com wrote:
David OBrien dgobr...@gmail.com 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
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
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
On Thu, Apr 5, 2012 at 10:04 PM, Kirk Bailey kbai...@howlermonkey.net 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
tamouse mailing lists tamouse.li...@gmail.com 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. :)
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
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
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
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
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:
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
17 matches
Mail list logo