Page 1 of 1

First timer

Posted: Fri Jan 30, 2004 8:12 am
by tppradeep18
hello PHP world,

I am a new born baby in PHP world. All that I can say is, that I have heard about PHO but never triend to understand what it is. My questions are as below.

1) What server is required under windows 2000 to run PHP. I heard it is mean to run under web server for UNIX and LINUX. in this case which OS is better to study PHP.

2) I heard so I downloaded apache server, which i found might support PHP under windows 2000.

3) Last... whats the best way to learn PHP

4) what Database is supported by PHP.

please help..

thanks

pradeep

Re: First timer

Posted: Fri Jan 30, 2004 8:22 am
by twigletmac
tppradeep18 wrote:hello PHP world,

I am a new born baby in PHP world.
Welcome :)
tppradeep18 wrote:1) What server is required under windows 2000 to run PHP. I heard it is mean to run under web server for UNIX and LINUX. in this case which OS is better to study PHP.
PHP is cross-platform which means it can run on a number of different operating systems. Which is best for you to learn on is up to you.
tppradeep18 wrote:2) I heard so I downloaded apache server, which i found might support PHP under windows 2000.
Yes it does - IIS does too but Apache is the better webserver (IMO).
tppradeep18 wrote:3) Last... whats the best way to learn PHP
Depends on how you learn best - maybe tutorials (http://www.devshed.com) are a good place to start.
tppradeep18 wrote:4) what Database is supported by PHP.
A lot. MySQL, PostgreSQL, MSSQL, Oracle and (shudder) MS Access to name but a few.

HTH,
Mac

Posted: Fri Jan 30, 2004 8:57 am
by malcolmboston
What server is required under windows 2000 to run PHP. I heard it is mean to run under web server for UNIX and LINUX. in this case which OS is better to study PHP.
As Twiglet said, php is cross platform and therefore can be run on pretty much any operating system
I heard so I downloaded apache server, which i found might support PHP under windows 2000.
php supports windows 2000 as i run it on it (server edition btw), i have heard runours of some 'odditys' running PHP under IIS, however as i said these may well just be runours, and besides apache is the best by miles (95% of people voted it the best web server available) and its free download it now!
Last... whats the best way to learn PHP
read tutorials
buy books
fool around with code
if you get stuck ask the community
read the manual extensively!
what Database is supported by PHP.
as twiglet said A Lot, I cannot recommend access however, as it cannot cope with very many connections at all (3/4 max), MySql is probably what you will need as other databases are very complex and are generally not needed by a standard web developer, MySQL is also free and very very fast
[/quote]

Posted: Fri Jan 30, 2004 9:44 am
by Derfel Cadarn
I have heard about PHO
Hm, I've never heard of that one :oops:
Personal Health Organization? Is that M$ too? :lol:

Posted: Fri Jan 30, 2004 11:36 am
by Straterra
If you don't need databases to hold thousands of tables and records, use SQlite. It's small, fast and requires no extra software other than PHP itself!
If you need a SQLite script to look at, here is my music script..

http://eckclan.sytes.net/music.php

Here is a link to the PHP SQLite documentation...

http://www.php.net/sqlite

Posted: Fri Jan 30, 2004 11:11 pm
by tppradeep18
hi Derfel Cadarn and all,

Ok that was a good help by all of you.

if somebody tells me that they are using apache server to run PHP on linux, does it mean that the scripts running under windows will have to be modified for linux.

thanks
pradeep

Posted: Fri Jan 30, 2004 11:28 pm
by McGruff
tppradeep18 wrote:if somebody tells me that they are using apache server to run PHP on linux, does it mean that the scripts running under windows will have to be modified for linux.

thanks
pradeep
Can't find my notes - might be one or two obscure details but basically it shouldn't be an issue.

I always use "/" for file-path separators but I'm ashamed to confess I forget if it really matters.

Whatever problems you have, you can always solve them by setting up a test.

PS: easyphp painlessly sets up apache/mysql/php on Windows. Hunt around on hotscripts.com for alternatives.

Posted: Sat Jan 31, 2004 7:54 am
by Derfel Cadarn
About those '/' or ''': I've got a snipplet of code that checks it automatically:

Code: Select all

<?php
// try find out the script's path, if the first character is / then assume
// that the directory splitter is that too (otherwise use \)
$dir_split = "/";
if($_ENV["DOCUMENT_ROOT"] != "") {
	if(substr($_ENV["DOCUMENT_ROOT"], 0, 1) != "/") {
		$dir_split = "";
		echo "\n<!-- Using dir_split="", $dir_split, "" -->";
	}
}

echo "\n<!-- Using dir_split="", $dir_split, "" -->";

?>
To be honoust: it wasn't my creation but I found it in Matt's Whois-script and I'm usig it in my own whois!
:lol: