Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [php][js][html]Pomoc przy uruchomieniu aplikacji PHP
Forum PHP.pl > Forum > Przedszkole
movax
Witam jestem kompletnym nowicjuszem w php, a chcialem uruchomic przykladowe aplikacjie z ksiazki "Beginning Google Maps with PHP and AJAX"
Zainstalowalem krasnala wrzucilem to odpowiedniego folderu ale gdy uruchamiam widac biala strone - nic sie nie pokazuje...

tutaj znajduja sie te rozdzialy http://googlemapsbook.com/gmaps_php_code.tar.gz

czy moze mi ktos wytlumaczyc co mam zrobic tak "krok po kroku" aby uruchomic jakis rodzial? (co zainstalowac ewentualnie...) bylbym bardzo wdzieczny
qrees
widocznie robisz coś nie tak. Pliki wrzuczasz do folderu ze stroną krasnala, a potem w przeglądarce wpisujesz http://localhost/ i tyle.
movax
tak zrobilem ale nie wiem czy to wystarczy

jestem tam plik readme..

Kod
Hello!

...

You should unpack this into the root of your experimental site, put your API
key in the apikey.php file inthe root and fill in your database credentials
in the db_credentials.php file. If you're not operating from the root then
you'll need to make some minor changes to the way these two file are included
in the scripts.

Also, for some examples you'll still need to download the raw data that makes
the code go. The BlueMarble example from chapter 7 is the best example of this
as it requires a very large download and would not compress sufficiently to
include directly in this archive.

We hope these examples serve you well as a foundation upon which you build your
own projects. Please let us know if you build something cool!

Enjoy!

Cam Turner, Jeffrey Sambells & Mike Purvis.

nie wiem o co chodzi z tym db_credentials.php, ponadto umiescielem w pliku apikey.php wygenerowany klucz z maps.google.com, tam bylo pytanie o adres url do ktorego bedzie sie odnosil ten klucz i podalem http://localhost, wrzucialem caly folder z tymi chapterami do C:\usr\apache\httpd\html\gmaps_php_code\ i uruchamiam np. http://127.0.0.1/gmaps_php_code/chapter2/ i nic sie nie wyswietla(ale widac ze cos tam strona robi bo ma ikonke zajetosci przez pare sekund, blad tez sie zaden nie pojawia, i w zwiazku tym prosba czy ktos zorientowany pomogl by mi to uruchomic....
maziak
Witaj,
na początek - zmień krasnala na coś innego.
Polecam :
http://www.wampserver.com/en/download.php
http://www.apachefriends.org/en/xampp-windows.html

I sprawdź czy serwer działa poprawnie.
Wtedy przetestuj przykład z Googla.

Jest pewna szansa, że to wina staruteńkiego krasnalka smile.gif

PS. zawartość pliku db_credentials.php musisz uzupelnic swoimi danymi.

  1. <?
  2.  
  3. $db_host = "localhost"; // to zostaw w spokoju
  4. $db_name = "googlemapsbook"; // tutaj nazwa Twojej bazy danych
  5. $db_pass = "secret";  // tutaj hasło
  6.  
  7. ?>
movax
ok, dzieki działa smile.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.