
Bob
|
| Posted: 05/07/2002, 2:54 PM |
|
Hi,
I'd like to know if Codecharge can work with flatfiles in Perl and PHP.
If so, any pointers on where I should look?
Thanks,
Bob
|
|
|
 |
Alex Alexapolsky
|
| Posted: 05/08/2002, 2:38 AM |
|
It's not a matter of CC , it's a matter whether there is DBI driver for flat files
and phplib driver.
|
|
|
 |
Nicole
|
| Posted: 05/08/2002, 5:55 AM |
|
you can use a flatfile database with Perl on the server side if you have installed the necessary DBD driver module. Refer to http://dbi.symbolstone.org/index.html for more information about the available drivers. In particular, look at the DBD:CSV driver.
|
|
|
 |
Bob
|
| Posted: 05/11/2002, 10:44 PM |
|
I'm sorry, I know I can use flatfiles with Perl and PHP. I have the necessary drivers on my server.
What I'd like to know is if it's possible for Codecharge to generate code in Perl or PHP using a flat file database instead of a MySQL database.
I have a few clients who don't have MySQL access on certain websites.
Thanks,
Bob
|
|
|
 |
Nicole
|
| Posted: 05/13/2002, 5:40 AM |
|
Bob,
yes you can.
AS for perl in CodeCharge, go to Site-->Properties-->Database tab and in the 'Server' portion of the window, enter the 'Connection String' as 'DBI:CSV' if you have placed the .csv file in the same location as your web pages or 'DBI:CSV:f_dir=csv_database_dir' if you have placed the .csv file in a different directory whereby 'csv_database_dir' stands for the directory in question.
|
|
|
 |
Bob
|
| Posted: 05/13/2002, 8:08 PM |
|
Thanks Nicole.
From your answer, I take it that it can be done in Perl, but not PHP as there is no comparable DBI driver for flatfiles in PHP. Correct?
Thanks.
Bob
|
|
|
 |
|

|