Mam problem z wpisaniem w pewnym skrypcie adresu drugiego skryptu. Spójrzcie na linijkę 4 gdzie trzeba to zrobić...
<? if(($_COOKIE['dostep'])!='dostep') { require(\"funkcje.php\"); // tutaj musisz wpisac sciezke do dostep/funkcje.php lacz_baza(); $dane=mysql_fetch_array(mysql_query(\"select waznosc1, cena1, sms1, telefon1, waznosc2, cena2, sms2, telefon2, wa
z osc3, cena3, sms3, telefon3, regulamin from ustawienia_p where id='1'\")); print '<p>Aby przegladac ta strone musisz wyslac sms. W smsie zwrotnym otrzymasz kod k óry trzeba wpisac w ponizszy formularz.'; if(($dane['waznosc1']!='0') or ($dane['waznosc2']!='0') or ($dane['waznosc3']!='0')) { print '<UL TYPE=\"disc\">'; if($dane['waznosc1']!='0') print '<LI> Dostep na <b>'.$dane['waznosc1'].' dni</b> - sms o tresci <b>'.$dane['sms1'].'</b> na nr <b>'.$dane['telefon1'].'</b> (cena '.$dane['cena1'].' zl + VAT )'; if($dane['waznosc2']!='0') print '<LI> Dostep na <b>'.$dane['waznosc2'].' dni</b> - sms o tresci <b>'.$dane['sms2'].'</b> na nr <b>'.$dane['telefon2'].'</b> (cena '.$dane['cena2'].' zl + VAT )'; if($dane['waznosc3']!='0') print '<LI> Dostep na <b>'.$dane['waznosc3'].' dni</b> - sms o tresci <b>'.$dane['sms3'].'</b> na nr <b>'.$dane['telefon3'].'</b> (cena '.$dane['cena3'].' zl + VAT )'; print '</UL>'; } ?> <form action=\"ciacho.php\" method=\"post\" target=\"submitt\" onsubmit=\"window.open('', 'submitt', 'width=400,height=200');\"> <table > <?// do parametru action musisz wpisac link do katalogu[pliku] dostep/ciacho.php ?> <tr><td width=150>Podaj kod otrzymany smsem:</font></td><td><input type=\"text\" name=\"kod_sms\"></td></tr> <tr><td colspan=2 align=center height=15px><input type=\"submit\" name=\"submit\" value=\" WYŚLIJ \"></td></tr></table></form> }else { //tutaj skopiuj tresc podstrony do ktorej chcesz aby byl platny dostep. nastepnie zmien nazwe pli u na taki jaki // miala ta podstrona } ?>
Cokolwiek bym nie wpisał w czwartej linijce jako adres "funkcja.php" to na stronie wyświetla mi się taki tekst:
Cytat
Warning: main(funkcje.php): failed to open stream: No such file or directory in /home/qwercy/public_html/najnast/index.php on line 4
Warning: main(funkcje.php): failed to open stream: No such file or directory in /home/qwercy/public_html/najnast/index.php on line 4
Fatal error: main(): Failed opening required 'funkcje.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/qwercy/public_html/najnast/index.php on line 4
Warning: main(funkcje.php): failed to open stream: No such file or directory in /home/qwercy/public_html/najnast/index.php on line 4
Fatal error: main(): Failed opening required 'funkcje.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/qwercy/public_html/najnast/index.php on line 4
Wpisywałem tam np. najnast.hosted.pl/dostep/funkcje.php z "http://" na początku i bez i to i tak nic nie dawało. Dodam tylko, że rozkład katalogów dochodzących do funkcje.php na serwerze wygląda tak /public_html/dostep/FUNKCJE.php
Pomóżcie, bo nie mam pojęcia gdzie i co wpisać w 4 linijce kodu na górze posta...
