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
First timer
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Re: First timer
Welcometppradeep18 wrote:hello PHP world,
I am a new born baby in PHP world.
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: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.
Yes it does - IIS does too but Apache is the better webserver (IMO).tppradeep18 wrote:2) I heard so I downloaded apache server, which i found might support PHP under windows 2000.
Depends on how you learn best - maybe tutorials (http://www.devshed.com) are a good place to start.tppradeep18 wrote:3) Last... whats the best way to learn PHP
A lot. MySQL, PostgreSQL, MSSQL, Oracle and (shudder) MS Access to name but a few.tppradeep18 wrote:4) what Database is supported by PHP.
HTH,
Mac
-
malcolmboston
- DevNet Resident
- Posts: 1826
- Joined: Tue Nov 18, 2003 1:09 pm
- Location: Middlesbrough, UK
As Twiglet said, php is cross platform and therefore can be run on pretty much any operating systemWhat 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 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!I heard so I downloaded apache server, which i found might support PHP under windows 2000.
read tutorialsLast... whats the best way to learn PHP
buy books
fool around with code
if you get stuck ask the community
read the manual extensively!
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 fastwhat Database is supported by PHP.
[/quote]
- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
-
Straterra
- Forum Regular
- Posts: 527
- Joined: Mon Nov 24, 2003 8:46 am
- Location: Indianapolis, Indiana
- Contact:
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
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
Can't find my notes - might be one or two obscure details but basically it shouldn't be an issue.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
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.
- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
About those '/' or ''': I've got a snipplet of code that checks it automatically:
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!

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, "" -->";
?>