Welcome Guest, Not a member yet? Register   Sign In
many problems on real web server
#1

[eluser]Unknown[/eluser]
hi there,
i'm new in a codeigniter so i have few questions and problems:
http://pbury-test.c0.pl/musicCI2/index.php this link supposed to move you to my site but... i have to put: http://pbury-test.c0.pl/musicCI2/index.php/musicGlowna to get there. i donno why because on my local serwer(xampp) this works fine. in addition i've put the default controller in my routes file.
next problem is my paths. i have a function in my class (not in a controller) like this:
Code:
public function tworzGalerie(){
     $pliki = array();
     $i=0;

     $sciezka = './images/galeria';
     $katalog = opendir($sciezka);
     $content = NULL;
     while (false !== ($nazwa_pliku = readdir($katalog))) {
        if ($nazwa_pliku!='.' && $nazwa_pliku!='..' && !is_dir($sciezka.'/'.$nazwa_pliku)) {
            $pliki[]=$nazwa_pliku;
            $i++;
        }
    }
    sort($pliki);
   $licznik =0;
   $file = "";
   echo "<table class=tabGaleria ><tr>";
    for ($z=0;$z<count($pliki);$z++){
        $file = $sciezka.'/'.$pliki[$z];
        if (($licznik % 5)){
           echo"<td><a ><p align=center ><img  /></p></a> </td>";
        }else echo"</tr><tr><td><a ><p align=center ><img  /></p></a> </td>";    
        $licznik++;
    }
    
        echo "</tr>";
    
    echo "</table>";
    echo $licznik;
    echo $this->tmp;
    return $pliki;
  }

this function should make an image gallery on ma view page. $sciezka is a path to the folder with images. and again: on local works gr8 and on web server it doesnt see files:/

the 3rd problem is a agile carousel problem. here is my config:
Code:
<div id="slide_holder"><img class="loading" src="agile_carousel/images/ajax_loader.gif" alt=""/>
                    [removed]
                    $('#slide_holder').agile_carousel({

                        php_doc_location: "&lt;?php echo base_url() ?&gt;/agile_carousel/make_slides.php",
                        path_to_slides: "&lt;?php echo base_url() ?&gt;/agile_carousel/agile_carousel_slides",

                        slide_directory: "agile_carousel_slides",
                        remove_content: "yes",
                        slide_buttons: "yes",
                        slide_number_display: "yes",
                        transition_type: "fade",
                        next_prev_buttons: "no",
                        water_mark: "no"

                     });
                    [removed]



                    </div>

and 3 declarations in header:
Code:
&lt;link rel="stylesheet" type="text/css" href="&lt;?php echo base_url();?&gt;agile_carousel/carousel_glowna.css"/&gt;
        [removed][removed]
        [removed][removed]

the same thing: local ok, web server not:/


Messages In This Thread
many problems on real web server - by El Forum - 04-16-2010, 12:52 PM
many problems on real web server - by El Forum - 04-17-2010, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB