我在哪里可以学习PHP?想要创建照片库。 [英] Where can I learn PHP? Want to create photo gallery.

查看:52
本文介绍了我在哪里可以学习PHP?想要创建照片库。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


谁能推荐一个好的在线网站来学习PHP? W3Schools

网站非常缺乏 - 还有很多不足之处。我很确定

很多地方,但哪些是好的?


我目前正在运营一个拥有广泛照片库的网站。数百张

张照片。现在我有一个系统,缩略图在

表中列出。你点击缩略图,你会看到完整尺寸的图片。

全尺寸图片在自己的html页面中。所以...数百张

图片=数百个html页面=变化更大的头痛,更多

管理等等


我认为PHP脚本可以解决我的问题。使用PHP,我可以为全尺寸图片创建一个模板页面,然后使用服务器

脚本来获取所请求的图像并将其放在模板页面中。

这样,每张图片都不必拥有它自己的html页面,而且我可以减少页面总数并使网站更精简。 br />

我是否过于简单化?我相信PHP脚本是我想要的

为此,不是吗?至少,它给了我一个借口学习som

PHP。


不幸的是,没有comp.infosystems。 www.authoring.php :>)


提前致谢。


Viken K.

解决方案

Viken Karaguesian写道:
< blockquote class =post_quotes>任何人都可以推荐一个好的在线网站来学习PHP吗?

http://php.net/


(这不是一个学习HTML,HTTP,通用编程或

安全网络编程的好网站 - 所有这些都是
$ b $的先决条件b写网络应用程序)。

W3Schools网站非常缺乏 - 还有很多不足之处。


对于每个主题...

我目前正在运行一个带有大量照片库的网站。数百张照片。现在我有一个系统,缩略图放在一张桌子上。你点击一个缩略图,你会看到完整大小的图片。
全尺寸图片在自己的html页面中。所以...数百张图片=数百个html页面=更大的头痛变化,更多的管理等等。

我认为PHP脚本可以解决我的问题。


它可以做到。 PHP不是我的偏好,但它是一个选项。

使用PHP,我可以为全尺寸图片创建一个模板页面,然后
使用服务器脚本来获取请求的图像并将其放在
模板页面。
这样,每张图片都不必拥有它自己的html页面,而且我可以减少总页数并使网站更精简。


好​​吧,每张图片都有自己的页面,只是没有单独的文件。


它真的不会更瘦 - 你'必须为每个

页面请求运行PHP脚本,并且必须自己处理缓存控制头(或者

期望浏览器为每个视图重新请求页面) 。


你_could_从PHP生成静态HTML文档。

不幸的是,没有comp.infosystems。 www.authoring.php :>)




不,但那里是comp.lang.php和alt.php


-

David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/>

Home是〜/ .bashrc的地方


Viken Karaguesian写道:


我目前正在运行一个包含大量照片库的网站。数百张照片。现在我有一个系统,缩略图放在一张桌子上。你点击一个缩略图,你会看到完整大小的图片。
全尺寸图片在自己的html页面中。所以...数百张图片=数百个html页面=更大的头痛变化,更多的管理等等。



< http:// jalbum .net />


-

jmm(连字符)列表(at)sohnen-moe(点)com

(删除.AXSPAMGN的电子邮件)


在文章< 11 ********************** @ z14g2000cwz.googlegroups .com>,

" Viken Karaguesian" < 6 **** @ aol.com>写道:

我目前正在运行一个拥有广泛照片库的网站。数百张照片。现在我有一个系统,缩略图放在一张桌子上。你点击一个缩略图,你会看到完整大小的图片。
全尺寸图片在自己的html页面中。所以...数百张图片=数百个html页面=更大的头痛变化,更多的管理等等。




我最近有过类似的问题,需要匆忙的照片库,

来显示特定文件夹中的所有照片。虽然我没有为每张照片做一个单独的页面(只是从

缩略图链接的实际照片),但我发现我不需要经过一个Bash shell脚本来生成我上传的静态页面。
毕竟这大部分都是相当简单的文本操作。因此,如果你有一个Linux风格的shell,那么可能比学习另一种脚本语言更容易。很明显,为每张照片生成一个单独的HTML页面是一个小小的补充(大约3行我会猜/ b $ b猜猜)。


每当我更改

照片时,我都会再次生成相册网页。显然我只更新新的照片和缩略图到网站

图像文件夹。


我直接从照片的名称获得标题材料。画廊

全部是CSS,没有涉及表格,而且流畅,而不是静态(CSS的基础

不是我的,并且有评论指着原来的

想法)。目前正在处理180张照片。
http:// site .sheltersrus.com.au / galleryall.html


下一步是从照片文件中提取关键字或评论,并且

做某事与他们一起,以增加更多的灵活性。这是非常多的b $ b目前正在进行的工作,所以我实际上并没有链接到其他地方的页面

。这主要是因为该网站的所有者可以看到他已经有的照片。如果你有兴趣,我可以发送或发布shell脚本的内容




-
http://www.ericlindsay.com


Hello everyone,

Can anyone recommend a good online site to learn PHP? The W3Schools
website is quite lacking - leaves much to be desired. I''m sure there
are many places, but which ones are good?

I currently run a site with an extensive photo gallery. Hundreds of
photos. Right now I have a system which the thumbnails are laid out in
a table. You click on a thumbnail and you see the full size picture.
That full size picture is in its own html page. So...hundreds of
pictures = hundreds of html pages = bigger headache for changes, more
management, etc.

I think that PHP scripting can solve my issue. With PHP, I could create
one template page for the full-size picture, then use the server
scripting to get the requested image and place it in the template page.
That way, each picture would not have to have it''s own html page, and I
can reduce the total number of pages and make the site leaner.

Am I oversimplifying this? I believe that PHP scripting is what I want
for this, no? At the very least, it gives me an excuse to learn som
PHP.

Unfortunately, there''s no comp.infosystems.www.authoring.php :>)

Thanks in advance.

Viken K.

解决方案

Viken Karaguesian wrote:

Can anyone recommend a good online site to learn PHP?
http://php.net/

(Which is _not_ a good site to learn HTML, HTTP, general programming or
secure web programming - all of which are pretty much prerequisites for
writing web applications).
The W3Schools website is quite lacking - leaves much to be desired.
For every subject...
I currently run a site with an extensive photo gallery. Hundreds of
photos. Right now I have a system which the thumbnails are laid out in
a table. You click on a thumbnail and you see the full size picture.
That full size picture is in its own html page. So...hundreds of
pictures = hundreds of html pages = bigger headache for changes, more
management, etc.

I think that PHP scripting can solve my issue.
It could do. PHP wouldn''t be my preference, but it is an option.
With PHP, I could create one template page for the full-size picture, then
use the server scripting to get the requested image and place it in the
template page.
That way, each picture would not have to have it''s own html page, and I
can reduce the total number of pages and make the site leaner.
Well, each image would have its own page, just not seperate files.

It wouldn''t really be leaner - you''d have to run the PHP script for every
page request, and have to deal with cache control headers yourself (or
expect browsers to rerequest the page for every view).

You _could_ generate static HTML documents from PHP.
Unfortunately, there''s no comp.infosystems.www.authoring.php :>)



No, but there is comp.lang.php and alt.php

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Viken Karaguesian wrote:


I currently run a site with an extensive photo gallery. Hundreds of
photos. Right now I have a system which the thumbnails are laid out in
a table. You click on a thumbnail and you see the full size picture.
That full size picture is in its own html page. So...hundreds of
pictures = hundreds of html pages = bigger headache for changes, more
management, etc.


<http://jalbum.net/>

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


In article <11**********************@z14g2000cwz.googlegroups .com>,
"Viken Karaguesian" <vi****@aol.com> wrote:

I currently run a site with an extensive photo gallery. Hundreds of
photos. Right now I have a system which the thumbnails are laid out in
a table. You click on a thumbnail and you see the full size picture.
That full size picture is in its own html page. So...hundreds of
pictures = hundreds of html pages = bigger headache for changes, more
management, etc.



I recently had a similar problem, of needing a photo gallery in a hurry,
to show all the photos in a specific folder. While I am not doing a
separate page for each photo (just the actual photo linked from the
thumbnail), I found that I didn''t need to go past a Bash shell script to
generate a static page that I upload. It is after all mostly fairly
easy text manipulation. So if you have a Linux style shell, that may be
easier than learning another scripting language. Obviously generating a
separate HTML page for each photo is a minor addition (about 3 lines I''d
guess).

I generate the album web page again whenever I make changes to the
photos. Obviously I only update new photos and thumbnails to the site
image folder.

I get the title material direct from the name of the photo. The gallery
is all in CSS, no tables involved, and is fluid, not static (the basis
for the CSS isn''t mine, and there is a comment pointing to the original
idea). Working fine with 180 photos at the moment.
http://site.sheltersrus.com.au/galleryall.html

Next step is to extract keywords or comments from the photo files, and
do something with them, so as to add more flexibility. This is very
much a work in progress at the moment, so I don''t actually have links to
the page anywhere else. It was mainly so the owner of the site could
see which photos he already had available. I can send or post the guts
of the shell script if you are interested.

--
http://www.ericlindsay.com


这篇关于我在哪里可以学习PHP?想要创建照片库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆