|
|
Author |
Thread |
GRUMBLE
Paranoid (IV) Mad Scientist
From: Omicron Persei 8 Insane since: Oct 2000
|
posted 03-11-2001 17:21
i wonder how anyone can code his php without having his own webserver installed?
actually i use to write the code, then quickly transfer it to www.f2s.com and execute test via normal browser.
but what if i wouldn't have an internet-connection?
i just tried to install the latest php on my IIS5, but something doesn't work?
is there another way to test php locally?
|
mr.maX
Maniac (V) Mad Scientist
From: Belgrade, Serbia Insane since: Sep 2000
|
posted 03-11-2001 17:32
I'm running Apache+ActivePerl+PHP4+MySQL on my Win2K and I also have a RedHat Linux server with all those gizmos in my local network...
And that's how I do it!
|
GRUMBLE
Paranoid (IV) Mad Scientist
From: Omicron Persei 8 Insane since: Oct 2000
|
posted 03-11-2001 17:48
apache on a windows machine? isnt that a bit ironically? hehe!
btw. what mysql do you run? MS MySQL?
|
mr.maX
Maniac (V) Mad Scientist
From: Belgrade, Serbia Insane since: Sep 2000
|
posted 03-11-2001 18:00
1. No, it isn't ironic, because Apache is the most used web server on the net.
2. "MS MySQL" doesn't exist... For more info about MySQL, take a look here: http://www.mysql.com/ (I really can't believe that you're not familiar with MySQL, it's the no.1 database choice for use with PHP)
|
GRUMBLE
Paranoid (IV) Mad Scientist
From: Omicron Persei 8 Insane since: Oct 2000
|
posted 03-11-2001 18:11
1. i just thought so, cause apache is usually only used on linux/unix machines. correct me, if im wrong.
2. MS SQL was what i meant. (of course im familiar with mySQL, im actually programming a guestbook using a mySQL db. remember? you gave me the tutorial-link? )
|
mr.maX
Maniac (V) Mad Scientist
From: Belgrade, Serbia Insane since: Sep 2000
|
posted 03-11-2001 18:17
1. That doesn't mean that I shouldn't run it on Windows. Windows is most used OS, though...
2. You wrote MS MySQL in above post and that is silly... Correct?
[This message has been edited by mr.maX (edited 03-11-2001).]
|
GRUMBLE
Paranoid (IV) Mad Scientist
From: Omicron Persei 8 Insane since: Oct 2000
|
posted 03-11-2001 18:23
1. ok, i just wondered....
2. yepp, correct. so you dont run a server, but just the db itself, correct?
|
mr.maX
Maniac (V) Mad Scientist
From: Belgrade, Serbia Insane since: Sep 2000
|
posted 03-11-2001 18:30
I don't understand your last question...
|
GRUMBLE
Paranoid (IV) Mad Scientist
From: Omicron Persei 8 Insane since: Oct 2000
|
posted 03-11-2001 18:44
ok, i've never really administrated a database, so i may talk complete jibberish.
but is there a difference between a SQL-Server and a mySQL-database?
|
WarMage
Maniac (V) Mad Scientist
From: Rochester, New York, USA Insane since: May 2000
|
posted 03-11-2001 19:28
Let me help clear this up.
Apache is the server.
Php is the server side language parser.
MySQL is the database.
Now you use Php to link to the MySQL database, you will also need to use SQL statements to send and recieve data from the database.
The Apache server is used to link them all togeather. When it calls up a .php or .phps or... any of the names you denote in the httpd.conf file it will send the file first to the Php processor. The file will then processed and finally sent to the webbrowser.
If you throw MySQL and SQL commands into your .php when the .php is called the file will be sent to the Php processor, when it reaches a MySQL command the information will be sent to the MySQL application, and will communicate and send information back to the Php processor, the Php processor will then interperate the returned data acording to your code, and then send the information back to the browser.
-mage-
|
mr.maX
Maniac (V) Mad Scientist
From: Belgrade, Serbia Insane since: Sep 2000
|
posted 03-11-2001 19:28
SQL (Structured Query Language) is only a way of communication with database server (and database server/system can be MySQL, Oracle, PostgreSQL, MS SQL Server, Access, etc.).
|
GRUMBLE
Paranoid (IV) Mad Scientist
From: Omicron Persei 8 Insane since: Oct 2000
|
posted 03-11-2001 19:38
ok, i already knew that. thanks anyway!
let me 'redesign' my question:
does a SQL-Server (e.g. MS SQLServer) provide a mySQL database? or what else?
|
bitdamaged
Maniac (V) Mad Scientist
From: 100101010011 <-- right about here Insane since: Mar 2000
|
posted 03-11-2001 20:23
No, MySQL is it's own type of database. MSSQL is another. PHP can access MS SQL dbs but I believe you need to put some entries in your PHP.ini file to point to it where PHP support for MYSQL is built in.
I'm running IIS on win 2K with MySQL &PHP, it works like a champ. I had to play with it for a while to get it running but it's not too hard. I don't know if it would be any easier configuring it for *nix apache.
To make things a bit easier ther is a windows PHP installer you can download here which will do 98% of the IIS setup for you. Read the readme and you should be able to get PHP on IIS working pretty easily. First you may want to install MySQL to it's default directory and you will get built in PHP/MySQL support. (You may be able to install PHP first and Mysql second but I'd go this route)
hope it helps
Walking the Earth like Kane
|
butcher
Paranoid (IV) Inmate
From: New Jersey, USA Insane since: Oct 2000
|
posted 03-16-2001 00:59
Just for the record, I'm running Apache/PHP/MySQL on windows 98 with no problems whatsoever. It made it very easy to start learning PHP/MySQL without having the expense of a host that supports them. Write it on your machine, test it on your machine, the only way to fly.
|
rotren
Bipolar (III) Inmate
From: Camrose, Alberta, Canada, Hörnefors, Västerbotten, Sweden Insane since: Jun 2000
|
posted 03-16-2001 07:19
I'm running PHP/MySQL on a Xitami web server locally. The Xitami web server is ridiculously easy to setup! Then when you install PHP, it plugs right into Xitami. Couldn't be easier. It works excellent. When I'm done coding, I upload the stuff to the real web server (Apache of course).
|
GRUMBLE
Paranoid (IV) Mad Scientist
From: Omicron Persei 8 Insane since: Oct 2000
|
posted 03-17-2001 11:41
i tried the php-installer, bitdamaged, but i still cannot run php....
grrr.
im sure i have all the options set up correctly!
|