Re: [PHP] Creating a Photo Album

2006-04-08 Thread tedd

Paul:

To continue top-posting,

It's pretty simple, just store the images in a folder, place the 
url's to the images in MySQL, create a web page that can show an 
image and pulls the first one from the dB with a reference such that 
when someone clicks the picture, it increments and pulls the next 
image url from the dB and displays it.


Are you into programming or are you looking for someone to do it for you?

tedd


At 5:05 PM -0700 4/7/06, Paul Goepfert wrote:

updating by user click for now.  I might change that in the future to
update by interval.

Paul

On 4/7/06, tedd [EMAIL PROTECTED] wrote:

 At 12:13 AM -0700 4/7/06, Paul Goepfert wrote:
 Hi all,
 
 I am postilng pictures up on a website.  So far I have a picture per
 page. This will get not be very efficient as time goes on.  Is there
 anyway that I can have one page with only the image updating?  Can
 this be done in PHP.  If it can would someone explain it to me.  The
 only thing I k.now how to do well in PHP is mysql queries and data
 validatlion.
 
 Thanks,
 Paul

 Paul:

 Updating how? By a time interval, by a user click, or what?

 tedd
 --


 http://sperling.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-08 Thread Paul Goepfert
I'm not looking for someome to do it for me.  I would like to learn
how to do this my self.  I have written code in Java and C/C++ before.
 From the function list in the PHP manual some of the functions look
like the C/C++ functions.

Thanks,
Paul

On 4/8/06, tedd [EMAIL PROTECTED] wrote:
 Paul:

 To continue top-posting,

 It's pretty simple, just store the images in a folder, place the
 url's to the images in MySQL, create a web page that can show an
 image and pulls the first one from the dB with a reference such that
 when someone clicks the picture, it increments and pulls the next
 image url from the dB and displays it.

 Are you into programming or are you looking for someone to do it for you?

 tedd


 At 5:05 PM -0700 4/7/06, Paul Goepfert wrote:
 updating by user click for now.  I might change that in the future to
 update by interval.
 
 Paul
 
 On 4/7/06, tedd [EMAIL PROTECTED] wrote:
   At 12:13 AM -0700 4/7/06, Paul Goepfert wrote:
   Hi all,
   
   I am postilng pictures up on a website.  So far I have a picture per
   page. This will get not be very efficient as time goes on.  Is there
   anyway that I can have one page with only the image updating?  Can
   this be done in PHP.  If it can would someone explain it to me.  The
   only thing I k.now how to do well in PHP is mysql queries and data
   validatlion.
   
   Thanks,
   Paul
 
   Paul:
 
   Updating how? By a time interval, by a user click, or what?
 
   tedd
   --
 
 
   http://sperling.com
 
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
 
 


 --
 
 http://sperling.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 14:00, Paul Goepfert wrote:
 I'm not looking for someome to do it for me.  I would like to learn
 how to do this my self.  I have written code in Java and C/C++ before.
  From the function list in the PHP manual some of the functions look
 like the C/C++ functions.

That's a good observation. PHP drew a lot of it's initial design
directly from C.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-08 Thread tedd

At 3:14 PM -0400 4/8/06, Robert Cummings wrote:

On Sat, 2006-04-08 at 14:00, Paul Goepfert wrote:

 I'm not looking for someome to do it for me.  I would like to learn
 how to do this my self.  I have written code in Java and C/C++ before.
  From the function list in the PHP manual some of the functions look
 like the C/C++ functions.


That's a good observation. PHP drew a lot of it's initial design
directly from C.

Cheers,
Rob.


Rob:

Isn't php written in C?

tedd
--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 18:38, tedd wrote:
 At 3:14 PM -0400 4/8/06, Robert Cummings wrote:
 On Sat, 2006-04-08 at 14:00, Paul Goepfert wrote:
   I'm not looking for someome to do it for me.  I would like to learn
   how to do this my self.  I have written code in Java and C/C++ before.
From the function list in the PHP manual some of the functions look
   like the C/C++ functions.
 
 That's a good observation. PHP drew a lot of it's initial design
 directly from C.
 
 Cheers,
 Rob.
 
 Rob:
 
 Isn't php written in C?

It is, but so are many other languages that don't keep much of the C
philosophy :) Part of the philosophy behind PHP was to make it easy for
developers writing traditional CGI (the hard way in C) to make the
switch to PHP. The other part of the philosophy was to make it simple
enough for the average programmer to also use. Somewhere along the line
I think they came across a good mesh... although some critics would say
that those elements are a bad thing. Personally I love the closeness to
C. I've had routines in C that I've cut and pasted into PHP, prefixed
the vars with a $, removed var declarations, tweaked a few other things
here and there (pointers *hah*) and voila, it runs *drool*.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-08 Thread tedd

  Rob:


 Isn't php written in C?


It is, but so are many other languages that don't keep much of the C
philosophy :) Part of the philosophy behind PHP was to make it easy for
developers writing traditional CGI (the hard way in C) to make the
switch to PHP. The other part of the philosophy was to make it simple
enough for the average programmer to also use. Somewhere along the line
I think they came across a good mesh... although some critics would say
that those elements are a bad thing. Personally I love the closeness to
C. I've had routines in C that I've cut and pasted into PHP, prefixed
the vars with a $, removed var declarations, tweaked a few other things
here and there (pointers *hah*) and voila, it runs *drool*.

Cheers,
Rob.


Rob:

Well, I agree with you. I like the cryptic nature of php; and it 
being absent from all the pointer confusion; and I especially like 
the way php handles strings. For me, C was always problematic in the 
string area.


Plus, php linked with MySQL makes for a very complete development 
package that runs on more computers than any other language to date.


The only major problem I see is that it's server-side and thus 
isolated somewhat from user input. I would like to see more user 
inter-reaction and that's the reason I'm investigating ajax. In 
short, I miss the event loop.


Also, while I know how to pass variables by reference (i.e., 
pointers) to functions, I still wonder if one can obtain a pointer to 
a function? But, I'll find out in time.


tedd
--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-08 Thread Robert Cummings
On Sat, 2006-04-08 at 19:46, tedd wrote:

 Rob:
 
 Well, I agree with you. I like the cryptic nature of php; and it 
 being absent from all the pointer confusion; and I especially like 
 the way php handles strings. For me, C was always problematic in the 
 string area.
 
 Plus, php linked with MySQL makes for a very complete development 
 package that runs on more computers than any other language to date.
 
 The only major problem I see is that it's server-side and thus 
 isolated somewhat from user input. I would like to see more user 
 inter-reaction and that's the reason I'm investigating ajax. In 
 short, I miss the event loop.
 
 Also, while I know how to pass variables by reference (i.e., 
 pointers) to functions, I still wonder if one can obtain a pointer to 
 a function? But, I'll find out in time.

Like the following?

?php

function f_a()
{
echo 'a';
}

function f_b()
{
echo 'b';
}

function f_c()
{
echo 'c';
}

$map = array
(
'a' = 'f_a',
'b' = 'f_b',
'c' = 'f_c',
);

$map['a']();
$map['b']();
$map['c']();

?

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-07 Thread Chris

Paul Goepfert wrote:

Hi all,

I am postilng pictures up on a website.  So far I have a picture per
page. This will get not be very efficient as time goes on.  Is there
anyway that I can have one page with only the image updating?  Can
this be done in PHP.  If it can would someone explain it to me.  The
only thing I k.now how to do well in PHP is mysql queries and data
validatlion.


this might give you some ideas:
http://www.cssplay.co.uk/menu/lightbox.html

you could do it in flash too:
http://www.airtightinteractive.com/simpleviewer/

there is probably something already out there to do what you want ;)

--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-07 Thread Gerry Danen
Sure you can, Paul. See
http://www.lily-gallery.com/h/showlily.php?id=53div=1 for an example.
There are 5 thumbnails and they all link to photo.php to display the
larger version.

On 4/7/06, Paul Goepfert [EMAIL PROTECTED] wrote:
 Hi all,

 I am postilng pictures up on a website.  So far I have a picture per
 page. This will get not be very efficient as time goes on.  Is there
 anyway that I can have one page with only the image updating?  Can
 this be done in PHP.  If it can would someone explain it to me.  The
 only thing I k.now how to do well in PHP is mysql queries and data
 validatlion.



--
Gerry
http://dev.danen.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Creating a Photo Album

2006-04-07 Thread Jay Blanchard
[snip]
I am postilng pictures up on a website.  So far I have a picture per
page. This will get not be very efficient as time goes on.  Is there
anyway that I can have one page with only the image updating?  Can
this be done in PHP.  If it can would someone explain it to me.  The
only thing I k.now how to do well in PHP is mysql queries and data
validatlion.
[/snip]

Check out http://gallery.menalto.com/ There is a way to watch a
slideshow in a single page, but it uses a Java component. 
http://www.akehrer.com/ffgallery/ is an Ajax and PHP photo gallery (it
resembles Lightbox), but it doesn't have the action that you require.
http://www.frwrd.net/minishowcase/ is another Ajax attempt.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-07 Thread Jason S. Motes

Jay Blanchard wrote:

[snip]
I am postilng pictures up on a website.  So far I have a picture per
page. This will get not be very efficient as time goes on.  Is there
anyway that I can have one page with only the image updating?  Can
this be done in PHP.  If it can would someone explain it to me.  The
only thing I k.now how to do well in PHP is mysql queries and data
validatlion.
[/snip]




I would look at coppermine to see how they do it.

http://coppermine-gallery.net/index.php


--
Jason S. Motes
php at imotes.com
www.imotes.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-07 Thread tedd

At 12:13 AM -0700 4/7/06, Paul Goepfert wrote:

Hi all,

I am postilng pictures up on a website.  So far I have a picture per
page. This will get not be very efficient as time goes on.  Is there
anyway that I can have one page with only the image updating?  Can
this be done in PHP.  If it can would someone explain it to me.  The
only thing I k.now how to do well in PHP is mysql queries and data
validatlion.

Thanks,
Paul


Paul:

Updating how? By a time interval, by a user click, or what?

tedd
--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Creating a Photo Album

2006-04-07 Thread Paul Goepfert
updating by user click for now.  I might change that in the future to
update by interval.

Paul

On 4/7/06, tedd [EMAIL PROTECTED] wrote:
 At 12:13 AM -0700 4/7/06, Paul Goepfert wrote:
 Hi all,
 
 I am postilng pictures up on a website.  So far I have a picture per
 page. This will get not be very efficient as time goes on.  Is there
 anyway that I can have one page with only the image updating?  Can
 this be done in PHP.  If it can would someone explain it to me.  The
 only thing I k.now how to do well in PHP is mysql queries and data
 validatlion.
 
 Thanks,
 Paul

 Paul:

 Updating how? By a time interval, by a user click, or what?

 tedd
 --
 
 http://sperling.com

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php