Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl


zielony112
Napisane: 29.09.2010, 14:40:05





Grupa: Zarejestrowani
Postów: 2
Dołączył: 28.09.2010

Ostrzeżenie: (0%)
-----

Dziękuje za pomoc, udało się zrobić. Co prawda wystąpiły jeszcze inne błędy ale metodą prób i błędów dopiąłem swego smile.gif

Jeszcze raz dzięki smile.gif
  Forum: Przedszkole · Podgląd postu: #794094 · Odpowiedzi: 2 · Wyświetleń: 402

zielony112
Napisane: 28.09.2010, 22:41:11





Grupa: Zarejestrowani
Postów: 2
Dołączył: 28.09.2010

Ostrzeżenie: (0%)
-----

Witam wszystkich forumowiczów. Na początku chciałem zaznaczyć, że jestem na prawdę raczkującym amatorem php. Otóż ściągnąłem jedno z darmowych portfolio. Jednak mam problem z jego uruchomieniem. Stronkę próbuje otworzyć poprzez krasnala. Wrzucam wszystko do katalogu odpalam i wyświetla mi się następujący komunikat:

Cytat
Warning: mysql_connect(): Can't connect to MySQL server on 'internal-db.s69633.gridserver.com' (10061) in c:\usr\krasnal\www\portfolio\config.php on line 15
Can't connect to MySQL server on 'internal-db.s69633.gridserver.com' (10061)


W stronie załączono instrukcję instalacji jednak nie do końca umiem się w niej połapać. Instrukcja wygląda następująco:

Cytat
Install Instructions
1. Open up the file config.php and change the Databse Host, Username, Password and Name information to your own values.

2. Upload the folder ProFolio to your website (You can also upload the files within the folder into your website's root directory).

3. Direct your browser to the folder. For example, if your website is http://website.com, then to access your the folder, go to http://website.com/ProFolio or if you installed the files in the root directory of your website, you would access the page by just going to http://website.com

4. Follow the install instructions presented. When you have pressed the Finish button, you can Login to your ProFolio in the top-right corner of the page. Once logged in, you can edit your general settings by clicking Change Settings & Pages or customize your ProFolio by clicking Customize!


You have successfully installed your ProFolio! To access your ProFolio at any time, just point your browser address to where you installed the files (ex. http://website.com/ProFolio or if you installed the files in the root directory of your web host, it would be http://website.com). In order to add pieces to your portfolio, click on Add To Your Portfolio!



Natomiast plik config.php wygląda następująco:

Kod
<?
ob_start("gzip_handler");
ob_start();

//Change the following four items to their appropriate values (Your MySQL host, Your database username, Your database password, Database Name)
$host = "internal-db.s69633.gridserver.com";
$db_username = "db69633_client";
$db_password = "eclipse2";
$database = "db69633_profolio";

//Optional Table Prefix (Leave blank for default)
$prefix = '';

//MySQL - Do not touch.
mysql_connect($host, $db_username, $db_password) or die(mysql_error());
mysql_select_db($database) or die(mysql_error());
?>


Proszę o pomoc co powinno znaleźć się w wyznaczonych miejscach.

Dziękuje każdemu za pomoc pozdrawiam.
  Forum: Przedszkole · Podgląd postu: #793949 · Odpowiedzi: 2 · Wyświetleń: 402


New Posts  Nowe odpowiedzi
No New Posts  Brak nowych odpowiedzi
Hot topic  Popularny temat (Nowe)
No new  Popularny temat (Brak nowych)
Poll  Sonda (Nowe)
No new votes  Sonda (Brak nowych)
Closed  Zamknięty temat
Moved  Przeniesiony temat
 

RSS Wersja Lo-Fi Aktualny czas: 28.04.2024 - 07:48