Ahojte, mam vazny problem. Na mojom localhoste, ako aj webserveri a este aj na jednom dalsom fungovala stranka bez problemov. Akonahle som ju vsak premiestnil na dalsi server tak mi vypisuje tieto errory:
Warning: main() [function.main]: Unable to access ./lib/functions.php in /home/clients/zaira.sk/zaira.sk/admin/index.php on line 4
Warning: main(./lib/functions.php) [function.main]: failed to open stream: No such file or directory in /home/clients/zaira.sk/zaira.sk/admin/index.php on line 4
Warning: main() [function.include]: Failed opening './lib/functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/clients/zaira.sk/zaira.sk/admin/index.php on line 4
Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at /home/clients/zaira.sk/zaira.sk/admin/index.php:4) in /home/clients/zaira.sk/zaira.sk/admin/lib/sessions.php on line 2
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/clients/zaira.sk/zaira.sk/admin/index.php:4) in /home/clients/zaira.sk/zaira.sk/admin/lib/sessions.php on line 2
Zaciatok kodu suboru index.php je takyto:
<?php
error_reporting(E_ALL & ~E_NOTICE);
include ("./lib/config.php");
include ("./lib/functions.php");
include ("./lib/sessions.php");
if($sresult){
$basic_set_query = mysql_query("SELECT domain_url, prihl_date FROM settings");
$basic_set =mysql_fetch_assoc($basic_set_query);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="sk" lang="sk" xmlns="http://www.w3.org/1999/xhtml">
<head>
kod v sessions.php vypada zase takto:
<?php
session_register("username");
session_register("psswd");
session_register("datetime");
$sresultquery=mysql_query("SELECT * FROM settings WHERE adm_name='$_SESSION[username]' AND adm_psswd='$_SESSION[psswd]'");
$sresult = mysql_fetch_assoc($sresultquery);
?>
Nechapem hlavne jednu vec. Preco mi nechce includnut subor functions.php... ten sa nachadza v tom istom adresari ako config.php a sessions.php a tie zjavne otvoril bez problemov.
Prosiiim pomoc!!! Dakujem