473,395 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

database types for php?

nc
Anyone able to help me out and tell me if there is a
default datafile type installed with PHP? If there is
no default datafile type, what would be the most
common type of datafile and does the server type
matter (ie, IIS / apache) matter in this instance?

Thanks alot for any help.

Ralph
Dec 2 '05 #1
6 3618
I assume you mean by datafile a database?

The most common database used with php is mysql. Linux, Apache, MySQL,
PHP are used so routinely together that the group of technologies sis
simply called LAMP. (might include perl or python as well).

However php 5 does come with a database bundled with it called sqlite.
Docs on this are http://php.net/sqlite. It supports view and
transactions and is actually quite handy.

PHP will work on apache with mod_php and IIS. Most prefer to use php
with apache; I personally would never use php with IIS for a production
environment, mainly because IIS is complete crap and extensive crap at
that. But I know people who have php on IIS and have no problems with
it.

Dec 2 '05 #2
C.
> Anyone able to help me out and tell me if there is a
default datafile type installed with PHP?
No - its a programming language.
what would be the most
common type of datafile


erm....PDf for documents, JPEG/GIF/PNG for images although soem image
types may be happier in a different format (e.g. TIFF for faxes).
Ogg/Mp3/Wav for audio....

Of course there's nothing to prevent you creating your own file format.

I guess it depends what you are trying to acheive.

C.

Dec 2 '05 #3
nc
"Sean" <or**********@gmail.com> wrote:
I assume you mean by datafile a database?
Yes, exactly (.dbf, .mdb, .csv, .asc, ...). Thanks for
the correct inference.
The most common database used with php is mysql.
Linux, Apache, MySQL, PHP are used so routinely
together that the group of technologies sis simply
called LAMP. (might include perl or python as well).

However php 5 does come with a database bundled
with it called sqlite. Docs on this are http://php.net/sqlite.
It supports view and transactions and is actually quite
handy.
The server is running apache with php 4.3. And there's
MySQL there as well. Do you (or anyone else) know
if there's a tool similar to Access for creating visual
links and such when messing with MySQL? If no,
anyone know of any suggested links for getting feet wet?
And possibly something describing the details of how it's
set up, ie database filenames used to store the files, db
file formats, etc. I'd like to get a hold of a file and view
it with a hex-editor. You were right on (target) in your
inferences.
PHP will work on apache with mod_php and IIS. Most
prefer to use php with apache; I personally would never
use php with IIS for a production environment, mainly
because IIS is complete crap and extensive crap at
that. But I know people who have php on IIS and
have no problems with it.


Are you refering to a particular version of IIS?

Thanks much.

Ralph.

Dec 3 '05 #4
NC
nc wrote:

Anyone able to help me out and tell me if there is a
default datafile type installed with PHP?
No. PHP can be configured to work with ODBC and almost any major
database management system, both commercial (Oracle, SQL Server, DB2,
etc.) and open-source (MySQL, PostgreSQL, SQLite). The key word,
however, is CAN. If you plan on deploying your application on
third-party servers (such as Web hosting services), you need to know
what database connectivity these servers have, because their
administrators will most likely be unwilling to accommodate your
requests for changes in PHP configuration and installing database
servers you want.
If there is no default datafile type,
I think you should change your terminology. "Datafile type" is
something you deal with in desktop databases. When writing PHP
applications, you work with a client-server system, with PHP operating
the client and the database management system working as the server.
SQLite is about the only exception to this rule.
what would be the most common type of datafile
The database management system most commonly used with PHP is MySQL.
and does the server type matter (ie, IIS / apache)
matter in this instance?


No, as long as PHP is configured correctly. Moreover, PHP and the
database server can even reside on different physical machines under
different operating systems.

Cheers,
NC
[No, this is not a message to myself... :) ]

Dec 3 '05 #5
If you want a visual interface for editing and administrating mysql you
should get phpmyadmin. It's probably one of the best php open source
tools ever, and takes about 3 to 4 seconds to set up. phpmyadmin comes
with help buttons all over the place detailing what things are, what db
types to use and will even format your sql queries into php useable
code.

http://www.phpmyadmin.net/home_page/index.php

There are loads of hex editors about there, however if you are looking
for some editor to edit mysql files directly I would strongly suggest
against that.

PHP should run on IIS 3 and up.

Dec 4 '05 #6
Sean wrote:
If you want a visual interface for editing and administrating mysql you
should get phpmyadmin. It's probably one of the best php open source
tools ever, and takes about 3 to 4 seconds to set up. phpmyadmin comes
with help buttons all over the place detailing what things are, what db
types to use and will even format your sql queries into php useable
code.

http://www.phpmyadmin.net/home_page/index.php


Besides PHPMyAdmin I can recommend SQLYog:
http://www.webyog.com/sqlyog/download_sqlyogfree.html

It's very extensive and easy to use.

HTH.
Peter.
--
http://www.phpforums.nl
Dec 4 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kunle Odutola | last post by:
I have a database that tracks players for children's sports clubs. I have included representative DDL for this database at the end of this post. A single instance of this database supports...
5
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of...
6
by: richard.pasco | last post by:
Hey all I am trying to write a script that allows users to search through a database of names. But rather than give a search string and then return all those that match, I would like it to...
5
by: Seok Bee | last post by:
Dear Experts, I currently trying to use the FileUpload control from asp.net 2.0 to upload files. The uploading of the file I would like to store it in the Access Database. Unfortunately, I've no...
2
by: Seok Bee | last post by:
Dear Experts, I'm using the asp.net 2.0 fileupload control to upload files into Access Database. The file types that being uploaded may be in word, excel or image format. Therefore, I would like...
1
by: Seok Bee | last post by:
Dear Experts, I'm using the asp.net 2.0 fileupload control to upload files into Access Database. The file types that being uploaded may be in word, excel or image format. Therefore, I would like...
5
by: MadDiver | last post by:
Guys, I need to create an application that handles several product types/ categories. Each product type can have totally different fields to describe it. For instance a car would have Year,...
0
by: jehugaleahsa | last post by:
Try this instead: // T - the type you are attempting to retrieve. // o - the data that you want to turn into a T T get<T>(object o) { // handle nulls - turns Nullables into null, reference...
4
by: jehugaleahsa | last post by:
Hello: Say I were to query the schema tables from a database management system. Say I got a DataType field that held the string 'VARCHAR2'. Now, I know that VARCHAR2 associates to System.String....
0
debasisdas
by: debasisdas | last post by:
DATABASE LINK =============== A database link is a path through which a remote user in another database can connect to any other database. Once created database link exists as an object in the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.