Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie to php 1

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Does the WEB host need special extensions or something to run php pages?


DougP, MCP, A+
 
They need to have PHP installed and integrated with whatever webserver software they are using.

Ken
 
will it run on Win 2003 with IIS
Or do I need Unix/Linux

DougP, MCP, A+
 
- Goto and download the latest version of PHP scripting language.

- Install it (propably on c:/php/)
You don't need to do any configuration or copy any files to //windows/. It is handled by the installer.

- You need a virtual server. Either IIS (it is ok) or i.e apache. (In this case you have to configure a file)

To run the PHP scripts you must call them by the localhost. So create your pages in /localhost/ or C:/inetpub/ and execute them by the explorer, like:
-
Just analyzed more kenrbnsn's post
 
OK so do I get the Binaries or ?
I got these two files
PHP 5.0.4 zip package
PHP 5.0.4 installer
Is that what I need
What is this?
PHP 5.0.4 (tar.bz2) and PHP 5.0.4 (tar.gz)
Are they for Unix/Linux?
IIS is runing on my Windows XP Pro since I needed it for ASP.NET
Can I use this operating system to test with.

DougP, MCP, A+
 
From this page: at: PHP 5.0.4 Complete Source Code
download the 1st or the 2nd. (The difference in file size is due to the archive) (PHP 5.0.4 (tar.bz2) and PHP 5.0.4 (tar.gz))

At an installation step you will be asked in the same page for:
- Smtp server (write "localhost"). So as to use IIS
- the email. This you can change it anytime
 
To test if PHP works::::

- create a file "test.php" (or any_name.php) in localhost. (c:/inetpub/
- write this code
<?
echo phpinfo();
?>

- save it and call it from a windows explorer or whatever you have:
== If you see results, it works! ==


*** The PHP code is executed in the server, in our case in the virtual server. So if you just open a php page/script the explorer will show you the code, with no action and none of the script(s) executed. You HAVE TO:

- Place the page in the localhost, and
- Call it as I show you before.
 
One last,

Check the "install.txt" which is located in the installation path. Contains good info.
(if path not changed by you, c:/php/)
 
Yeah Baby
U Da man !!!!

I got a whole list of stuff/ Don't know what it means but
It shows the PHP 5.04 logo and so on

Stars are in the air !!!!

DougP, MCP, A+
 
I also have MySQL installed too.
I need a code snippet to connect to it.
I created a table using MySQL Command line client earlier

DougP, MCP, A+
 
I do not work with php. If i find any good example i'll post.

MySQL and PHP work perfectly together!

It may be useful to you: From the site php.net you can download the complete source code for:
- php-5.0.4, and
- pecl-5.0.4-Win32

Modify it, do whatever. Code is in C language
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top