daCode can work with any extension. For common extensions, if you arev running a Unix-like operationg system, just cd to the daCode directory and type
$ make phpto change the extensions as well as the links inside the files. This will work with php, php3 and php4 extensions.
If you need some excentric extension, you'll have to modify the makefile. Ask on dacode-user list if you have a problem.
Warning (big one in red, with flashing lights): CVS will only work with original extensions, thus you'll have to switch back to .php3 (make php3) before getting the last changes with CVS.
Simply use phpMyAdmin. Probably your provider has already set this up for you. See with him how to acces the database adminstration interface. Alternatively, you can download a copy (it' free software, too) and install it.
Once you are in the administration interface of phpMyAdmin, select your database, then "run queries on database". Choose the file sql/daCode.mysql and validate the form.
Probably the mail() function has been disabled. Ask your provider to find out, and to find if a replacement is available. The BIG problem is that without a way to automatically send mails, users will never get their passwords, and thus will never be created at all...
If there is a replacement function, seach the calls to the mail function in the source and replace it with the specific function for your provider. Be careful: the number of arguments an their order may not be the same.
If there's no replacement available, or if you can just send a mail to yourself, there are some ugly turnarounds, described below.
First solution (by Matthieu Ros): if you have a way to send mails to yourself, use this to send the passwords to yourself... Of course you will know the passwords of all your users...
Second solution (by Guillaume Postaire): you print the password instead of sending it.
A classical problem. In the file newsindex.tmpl of the linuxfr theme, daCode calls a fonction which gets the latest versions of the Linux kernel. This uses finger(???) and your provider may very well forbid any outgoing connexion on this port.
Just comment (with a hash mark on the begining of the line) the offending line in the template.
mv phplib htdocs/secretAnd then edit htdocs/daCode.php3 to change $libdir:
$libdir = $topdir . "./secret";and this should work.
I get an error "Cannot redefine class ..."
I use phplib. Can I use dacode with it?
<IfModule mod_php4.c> # # local settings for php in this domain # include path is the path where PHP looks for # required and included files # #php_value include_path ".:/home/httpd/lib/externs/phplib/php/:/home/httpd/lib/php/internal/" php_value auto_prepend_file /home/httpd/lib/externs/phplib/php/prepend.php3 </IfModule>
This comes probably from the database, which is ignored by PHP. Just look at the file php.ini or php3.ini to see if the database extensions are loaded.
If the extension is not loaded, you'll have to modify the config file, and restart the web server.
ANother way to see if the extension is loaded is to create a small file containing only phpinfo() ?$gt; and to call this file throug a web server. If there is support for a database, there should be a paragraph about it.