Hello,

I use jCarousel with dynamic content loading via Ajax from a PHP
script, and it works fiiine :)

But there's always a but :) The images are loaded via a php file
called dynamaic_ajax_php.php, which contains an image array :
$images = array(
    'http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg',
    'http://static.flickr.com/75/199481072_b4a0d09597_s.jpg',
    'http://static.flickr.com/57/199481087_33ae73a8de_s.jpg',
    'http://static.flickr.com/77/199481108_4359e6b971_s.jpg',
    'http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg',
    'http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg',
    'http://static.flickr.com/58/199481218_264ce20da0_s.jpg',
    'http://static.flickr.com/69/199481255_fdfe885f87_s.jpg',
    'http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg',
    'http://static.flickr.com/70/229228324_08223b70fa_s.jpg',
);

Now here is what I'd like to do : I'd like to use a php function
instead of this array. Is this possible ??? Could someone show me an
example (or a link ??? I've searched Google for hours, for no
result...) of what this function should look like ?

In fact as soon as I replace the array with a require
'my_dynamic_array.php'; it stops working :( And I don't know why...

Reply via email to