PHP新手 - 基本问题...... [英] new to PHP -- basic questions...

查看:76
本文介绍了PHP新手 - 基本问题......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想学习PHP ..我知道JSP,Servlets,现在已经使用Tomcat for

2年了,尽管我知道有很多方法可以使用PHP

与Tomcat合作,我宁愿不修补Tomcat ..


我想我宁愿尝试直接从头开始。 ..遵循

说明, http:// us2。 php.net/tut.php ..所以你需要Apache

**和** PHP服务器?不知道什么时候到达
http://www.apache.org/ (HTTP Server?左边的顶部链接..)我想

for PHP我需要dl这里有什么, http://us2.php.net/downloads.php ..我在W2k上的
,想要一个二进制文件,我假设在Windows二进制文件下排名第一?


PHP服务器是否附带了足够的说明(我的意思是如何一起安装/运行
带Apache服务器..)


非常感谢信息/指导..谢谢..


Frances

I want to learn PHP.. I know JSP, Servlets, have been using Tomcat for
2 years now, and even though I know there are ways you can use PHP in
conjunction with Tomcat, I''d rather not tinker with Tomcat..

I think I''d rather try to do it straight ''from scratch''... following
instructions here, http://us2.php.net/tut.php.. so you need both Apache
**AND** PHP server? not sure what to dl when get to
http://www.apache.org/ (HTTP Server? top link on the left..) I suppose
for PHP I need to dl what''s here, http://us2.php.net/downloads.php.. am
on W2k, would like a binary, I assume top one under "Windows Binaries"?

Does PHP server come with adequate instructions (I mean how to
install/run together w/the Apache server..)

would very much appreciate info/guidelines.. thank you..

Frances

推荐答案

发现可以使用w / IIS,我已经安装了......只是dl''d

PHP ..它在这里说,
http ://us2.php.net/manual/en/install...d ows.installer


安装开放式可执行安装程序..那是哪一个? php.exe?

php-win.exe?我解压缩下载的zip,做了这个安装服务器或只是

解压缩安装程序和其他文件?不知道php.exe是否是实际的

服务器应用程序或安装程序..(不是非常有用的安装说明在

install.txt ..)我的IIS是在c:\ Inetpub(它工作正常,已经测试过

已经..)我在哪里安装PHP服务器以使其与IIS一起运行..

(已下载到c:\所有文件现在都在c:\ php ..)我假设go-pear.bat

是打开服务器吗? (Tomcat服务器我也打开了一个批处理文件..)

谢谢..


Frances写道:
found out can use w/IIS, which I already have installed... just dl''d
PHP.. it says here,
http://us2.php.net/manual/en/install...dows.installer

to install open "executable installer".. which one is that? php.exe?
php-win.exe? I unzipped downloaded zip, did this install server or just
unzip installer and other files? don''t know if php.exe is actual
server-app or installer.. (not very useful installation instructions in
install.txt..) my IIS is at c:\Inetpub (and it works fine, have tested
already..) where do I install PHP server to make it run with IIS..
(downloaded to c:\ all files are now in c:\php..) I assume go-pear.bat
is to turn server on? (Tomcat server I also turn on w/a batch file..)
thank you..

Frances wrote:
我想学习PHP ..我知道JSP,Servlets,已经使用Tomcat 2年了,虽然我知道有很多方法可以使用PHP和Tomcat结合使用,但我知道d而不是修补Tomcat ..

我想我宁愿尝试直接从头开始......按照
说明, http://us2.php.net/tut.php ..所以你需要两个Apache
**和** PHP服务器?不知道什么时候到达
http://www.apache.org/ (HTTP Server?左边的顶部链接..)我想对于PHP我需要dl这里有什么, http://us2.php.net/downloads.php ..我在W2k上,想要一个二进制文件,我假设在Windows二进制文件?

PHP服务器是否附带了足够的说明(我的意思是如何与Apache服务器一起安装/运行..)

非常感谢信息/指导..谢谢..

Frances
I want to learn PHP.. I know JSP, Servlets, have been using Tomcat for
2 years now, and even though I know there are ways you can use PHP in
conjunction with Tomcat, I''d rather not tinker with Tomcat..

I think I''d rather try to do it straight ''from scratch''... following
instructions here, http://us2.php.net/tut.php.. so you need both Apache
**AND** PHP server? not sure what to dl when get to
http://www.apache.org/ (HTTP Server? top link on the left..) I suppose
for PHP I need to dl what''s here, http://us2.php.net/downloads.php.. am
on W2k, would like a binary, I assume top one under "Windows Binaries"?

Does PHP server come with adequate instructions (I mean how to
install/run together w/the Apache server..)

would very much appreciate info/guidelines.. thank you..

Frances






Frances写道:
Frances wrote:
我想学习PHP ..我知道JSP,Servlets,已经使用Tomcat 2年了,尽管我知道有很多方法可以在PHP中使用PHP与Tomcat结合,我宁愿不修补Tomcat ..


你好Frances,

我来自同一个地方。

PHP比J2EE(servlets / taghandlers / etc)更容易掌握。

:-)

我想我宁愿尝试直接从头开始......按照
说明, http://us2.php.net/tut.php ..所以你需要两个Apache
**和** PHP服务器?


是的,你需要一个网络服务器。

这可以是Apache(不错的选择)。


PHP本身不称为服务器。

您可以安装它与现有的网络服务器合作,这样网络服务器

可以做PHP。

不知道是什么转到 http://www.apache.org/ (HTTP Server?)时dl左边的顶部链接..)我想对于PHP我需要dl在这里, http://us2.php.net/downloads.php ..我在W2k上,想要一个二进制文件,我假设在Windows二进制文件下排名第一?


令人困惑? Tomcat也是首发。 ;-)

恕我直言:到目前为止,安装PHP内容的最佳方法是阅读
http://nl2.php.net/manual/en/install.php


Do不要使用现成的安装程序,除非你知道它在做什么。


PHP服务器是否有充分的指示(我的意思是如何安装/运行w / Apache服务器..)


详细描述如下:II。安装和配置

非常感谢信息/指导..谢谢..

Frances
I want to learn PHP.. I know JSP, Servlets, have been using Tomcat for
2 years now, and even though I know there are ways you can use PHP in
conjunction with Tomcat, I''d rather not tinker with Tomcat..
Hi Frances,

I come from the same place.
PHP will is a lot easier to master than J2EE (servlets/taghandlers/etc).
:-)

I think I''d rather try to do it straight ''from scratch''... following
instructions here, http://us2.php.net/tut.php.. so you need both Apache
**AND** PHP server?
Yes, you need a webserver.
This can be Apache (good choice).

PHP itself is not called a server.
You can install it cooperating with an existing webserver, so that webserver
can do PHP.
not sure what to dl when get to http://www.apache.org/ (HTTP Server? top link on the left..) I suppose
for PHP I need to dl what''s here, http://us2.php.net/downloads.php.. am
on W2k, would like a binary, I assume top one under "Windows Binaries"?
Confusing? So is Tomcat for starters. ;-)
IMHO: By far the best way to install your PHP-stuff is AFTER reading through
http://nl2.php.net/manual/en/install.php

Do not use a ready-to-go installer unless you know what it is doing.


Does PHP server come with adequate instructions (I mean how to
install/run together w/the Apache server..)
That is described in detail in: II. Installation and Configuration

would very much appreciate info/guidelines.. thank you..

Frances




我的建议首先让apache启动并运行,当你感觉舒适时,请从PHP开始。

听起来你必须学习apache和PHP,所以不要不要急于求成。

Apache有很多配置选项,所以

的初学者不可能立即阅读和理解它。

来自上面链接的PHP的安装说明有时候有点神秘,但它们很好并涵盖了很多重要的东西。


WAMP:

如果您还计划将mySQL用作数据库,那么您的设置通常是在网上称为WAMP(Windows / Apache / MySQL / PHP) )。


可以找到一些随时可用的安装人员来安装整个shebang吧

给你,但我不知道如果他们是好/可靠的le。

(我宁愿手工做东西,直到我想我明白了什么是

on。)


如果你感到迷茫,总是从 www.php.net 开始阅读用户贡献的

笔记。在90%的情况下,你会看到其他人有你的问题/问题

之前。


祝你好运!


问候,

Erwin Moller



My advise is to first get apache up and running, and when you feel
confortable, start with PHP.
It sounds like you must learn both apache and PHP, so don''t rush yourself.
Apache is huge with many configurationoptions, so it is impossible for
starters to read and understand it all right away.

The installinstructions for PHP from the above link are sometimes a bit
cryptic, but they are good and cover a lot of important stuff.

WAMP:
If you also plan on using mySQL as a database, then your setup is often
refered to on the net as WAMP (Windows/Apache/MySQL/PHP).

A few ready-to-go installers can be found to install the whole shebang right
away for you, but I don''t know if they are good/reliable.
(I rather do stuff by hand myself untill I think I understand what is going
on.)

If you feel lost, always start at www.php.net and read the usercontributed
notes. In 90% of the cases you''ll see others had your questions/problems
before.

Good luck!

Regards,
Erwin Moller


Frances写道:
Frances wrote:
发现可以使用我已经安装了IIS,只是dl''d
PHP ..它在这里说,
http://us2.php.net/manual/en/install...dows.installer

安装打开可执行安装程序..那是哪一个? php.exe?
php-win.exe?我解压缩下载的zip,这个安装服务器还是只是解压缩安装程序和其他文件?不知道php.exe是否是实际的服务器应用程序或安装程序..(
install.txt中不是非常有用的安装说明..)我的IIS位于c:\ Inetpub(和它工作正常,已经测试
已经..)我在哪里安装PHP服务器使其与IIS一起运行..
(下载到c:\所有文件现在都在c:\ php。 。)我假设go-pear.bat
是打开服务器? (Tomcat服务器我也打开w /批处理文件..)
谢谢..
found out can use w/IIS, which I already have installed... just dl''d
PHP.. it says here,
http://us2.php.net/manual/en/install...dows.installer

to install open "executable installer".. which one is that? php.exe?
php-win.exe? I unzipped downloaded zip, did this install server or just
unzip installer and other files? don''t know if php.exe is actual
server-app or installer.. (not very useful installation instructions in
install.txt..) my IIS is at c:\Inetpub (and it works fine, have tested
already..) where do I install PHP server to make it run with IIS..
(downloaded to c:\ all files are now in c:\php..) I assume go-pear.bat
is to turn server on? (Tomcat server I also turn on w/a batch file..)
thank you..




不要使用该安装程序,除非你不打算使用任何

扩展名(例如:一个数据库)。

手工安装。

ISAPI目前工作正常IIS。

instalationsteps很简单。


go-pear与安装PHP无关,但有额外的软件包/库。


请先花点时间匆匆忙忙,然后先阅读整个安装部分,然后再继续阅读,请相信我:它会安全

你后来头疼。


如果你不是,你最终可能会得到4个php.ini',ISAPI和CGI两个

安装了,有些apache你不确定它是否正在运行(或者它是什么?b $ b IIS?),你在IIS等地方改变了什么等。


去看看installinstructions。


祝你好运。


问候,

Erwin Moller



Do not use that installer, unless you are not planning on using ANY
extension (eg: a database).
Install it by hand.
ISAPI is now working good under IIS.
The instalationsteps are easy.

go-pear has nothing to do with installing PHP, but with extra packages/libs.

Please take your time before you rush into things, and read first through
the whole installationsection before proceeding, believe me: it will safe
you a headache later.

If you don''t, you''ll probably end up with 4 php.ini''s, ISAPI and CGI both
installed, some apache you are not sure of if it is running (or was it
IIS?), what did you change where in IIS, etc etc.

go read the installinstructions.

Good luck.

Regards,
Erwin Moller


这篇关于PHP新手 - 基本问题......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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