PDA

View Full Version : Question about pHp



cowax
July 12th, 2001, 13:08
This is coming from a beginner in pHp....

In CGI, you create data files. In pHp you use MySQL. Can you also create data files in pHp as well?

lucifer
July 12th, 2001, 13:33
yep in php you can create files no problems :)

you can use mySQL with perl etc too :cool:

cowax
July 12th, 2001, 13:47
Is it more effective to use MySQL?

lucifer
July 12th, 2001, 13:58
depends what you do.

for little things a flat file is easy and works great.

MySQL is good if your getting lots of hits cos it'll do all the clever stuff for you so you don't corupt stuff. eg read you flat file at the same time as you're writing to it. - but this has overheads.

php has the advantage that it works well with mySQL very easily - but perl is hardly much harder.

as ever there are many ways to do things.