Ok, for fun i decided to try an make a simple image gallery script in php. Using various resources I got it done. I’m using php 5 on a personal web server(for testing purposes) when i upload the script to my real web host, everything just hits the fan…
$images = explode(“n”, dir /b *_thumb.jpg
);
this is code that i believe is giving me the problems, on my personal web server it explodes and creates an array with 1 element per line…ie
element1
element2
Now, when i upload to the real web host, it wante to create an array with 4 elements per line…ie
element1 element2 element3 element4
element5 element6 element7 element8
I’ve tried various /'s in the code after dir to fix this, yet nothing seems to be working. I’d appreciate if someone out there might be able to help me out.
You can take a look at the output page here: http://www.wasted-days.net/inc_con it’s a mess, unlike my PWS one, even though they use the same exact code.[/b]