First timer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tppradeep18
Forum Newbie
Posts: 2
Joined: Fri Jan 30, 2004 8:12 am

First timer

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Re: First timer

Post 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
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post 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]
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post 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:
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post 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
tppradeep18
Forum Newbie
Posts: 2
Joined: Fri Jan 30, 2004 8:12 am

Post 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
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post 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:
Post Reply