
Mam problem chce przerobic szablon php wykonany przez kogos na wlasnu użytek, ale nie moge go wogóle otworzyć. Pojawia mi się taki blad:
Warning: mysql_connect(): Unknown MySQL Server Host 'ftp' (1) in /home/www/cconradd.awardspace.com/mysql_db.inc on line 30
Cannot connect to database ftp://conradd.awardspace/cconradd.awardspace.com/ with login cconradd.
http://cconradd.awardspace.com/example.php
W php mam do wypelnienie takie cos:
<?php $db = new mysql_db("<DB_SERVER>", "<DB_USERNAME>", "<DB_PASSWORD>"); $moviedb = new Moviedb($db, "<DATABASE_NAME>", "<TABLE_NAME>"); $moviedb->set_min_cat_num(1); $moviedb->set_lang_file("lang-french.inc"); $moviedb->set_moviedb ?>
A opis taki:
* Create a dynamic view of ANT's movie database.
*
* <b> REQUIREMENTS </b>
*
* 1. PHP4+
* 2. MySQL Server 4.1+
* 3. ANT Movie Catalog export to a MySQL Database
* 4. At least some knowledge of standard HTML and php processes.
*
*
* <b> INSTRUCTIONS </b>
*
* 1. Download ANT Movie Catalog to build your movie database.
* 2. Export your Movie Database as SQL, check the option for include images.
* 3. Import the SQL into your MySQL Database on the server, and upload the images to the server.
* 4. Add the following code to the page you want this script to be displayed. Don't
* forget to also include the style sheet within the header of your HTML file.
* $db = new mysql_db("<DB_SERVER>", "<DB_USERNAME>", "<DB_PASSWORD>");
* $moviedb = new Moviedb($db, "<DATABASE_NAME>", "<TABLE_NAME>");
* print $moviedb->get_html();
* 5. There are several SET functions available which can be used to tweak the way this script
* works on your server. Include the function calls just before the print statement included
* on step four (above). The SET functions available are:
* $moviedb->set_min_cat_num($int); // Sets the Minimum number of movies before a category for that type is displayed. (Default 5)
* $moviedb->set_lang_file($filename); // Sets the language file to use (filename only, NOT path)
* $moviedb->set_moviedb_title($string); // Sets the title to be displayed at the top of the script
* $moviedb->set_default_npp($int); // Sets the number of movies per page to be displayed (Default 10)
* $moviedb->set_img_folder($http_path); // Sets the cover images directory (full HTTP path required) (Default: <script PATH>/images)
*
* *. YOU SHOULD NOT NEED TO EDIT THIS FILE AT ALL UNLESS YOU KNOW WHAT YOU ARE DOING.

Nie wiem jak sobie z tym poradzic. Prosze o pomoc.