MAMEWorld >> Programming
View all threads Index   Flat Mode Flat  

krick
Get Fuzzy
Reged: 02/09/04
Posts: 4235
Send PM
Re: Any php wisemen?
02/09/14 06:38 PM


I think that $randomImage already includes your $dir because you included it in your glob() call.

I think your code should be...

echo '{img src="'.$randomImage.'" width=89}'

(replace curly braces with less-than/greater-than)

I believe this will also work...

echo "{img src=\"$randomImage\" width=89}"

(again, replace curly braces with less-than/greater-than)



Try this. After your glob() call, add this line...

print_r($images);

...And look at the output.


GroovyMAME support forum on BYOAC

Edited by krick (02/09/14 06:45 PM)







Entire thread
Subject Posted by Posted on
* Any php wisemen? GatKong 02/09/14 11:22 AM
. * Re: Any php wisemen? krick  02/09/14 06:38 PM
. * Re: Any php wisemen? GatKong  02/09/14 11:41 PM
. * Re: Any php wisemen? krick  02/09/14 11:54 PM
. * Re: Any php wisemen? GatKong  02/10/14 03:24 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 4 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2788