Shoutbox

Can some one help me with this php?[solved] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Can some one help me with this php?[solved] (/showthread.php?tid=67801)

Can some one help me with this php?[solved] by Kenji on 10-28-2006 at 09:39 PM

Well its a random avatar php script thingy, felu sent it to me, i cabnt get it to work, can someone tell me what wrong with it, thanks. :)

code:
code removed

RE: Can some one help me with this php? by WDZ on 10-28-2006 at 09:44 PM

You can't use opendir() on a URL. :dodgy: $dir needs to be a local path.


RE: Can some one help me with this php? by J-Thread on 10-28-2006 at 10:06 PM

I guess you have acces to that server... So change the first line to:
$dir = './';

And place the file in the avatars directory on your server;)


RE: Can some one help me with this php? by Kenji on 10-28-2006 at 10:25 PM

Still doesnt seem to work. i put it in the avatars directory aswell. :s

Here is the code now...

code:
code removed

RE: Can some one help me with this php? by WDZ on 10-28-2006 at 10:56 PM

$imgs[] = $imgs;

lol... O_o

Change that line to...

$imgs[] = $img;


RE: Can some one help me with this php? by Nathan on 10-28-2006 at 11:06 PM

Btw (sorry about the spam and offtopicness) WDZ
I have fixed my pic thing now :> - is it correct for you?


RE: Can some one help me with this php? by WDZ on 10-28-2006 at 11:09 PM

quote:
Originally posted by Nathan
Btw (sorry about the spam and offtopicness)
:dodgy:

quote:
I have fixed my pic thing now :> - is it correct for you?
Yeah, the IP works... the view counter stays at 1 because I'm blocking the cookie though... :p
RE: Can some one help me with this php? by Nathan on 10-28-2006 at 11:13 PM

Damn you WDZ :<
Actually i might add it so it says if you've blocked the  cookie.


RE: Can some one help me with this php? by Kenji on 10-28-2006 at 11:24 PM

quote:
Originally posted by WDZ
$imgs[] = $imgs;

lol... O_o

Change that line to...

$imgs[] = $img;
yay, thanks <3
quote:
Originally posted by Nathan
is it correct for you?
I blocked the image :cheesy:






Thanks for all your help :)