Help with rotator script error

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
It was working fine on the test server. loaded it onto iis6 server after
installing php and got everything working (after redirecting it to the
correct directory) except for 1 annoying error that I don't understand.

Any help would be appreciated - the sooner the better so I can get some
sleep tonight!
Undying gratitude to anyone willing to help a php beginner!

here's the page with the error / and...

php code follows:

//This is the directory route to the folder
//This is a relative link to the directory if it is not in the same
directory as the file you are displaying the images on

die("Failed to read directory");
if(ereg($pattern, $s))

//Spit it out

$notSWF = "\.(gif|jpg|jpeg|png|bmp)$";
if( ereg( $notSWF , "$directory$image[$randNum]" ) )
echo "<br><img src=\"$directory$image[$randNum]\" $size[3]>";

echo "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"

ab#version=6,0,0,0\" WIDTH=\"589\"

HEIGHT=\"165\" id=\"image_one\" ALIGN=\"\">
<PARAM NAME=movie VALUE=\"$directory$image[$randNum]\">
<PARAM NAME=quality VALUE=high>
<param name=loop value=false>
<EMBED src=\"$directory$image[$randNum]\" quality=high bgcolor=#FFFFFF
WIDTH=\"589\" HEIGHT=\"165\"

NAME=\"$directory$image[$randNum]\" ALIGN=\"\"


Re: Help with rotator script error

Carolyn Gill wrote:
Quoted text here. Click to load it

That isn't an error - simply a notice letting you know that that
variable hasn't been defined. Either put

$image = '';

at the top of your script to define $image before starting, or put

error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);

at the top to hide such notices.

Jasper Bryant-Greene
Cabbage Promotions

Re: Help with rotator script error

Thank you so much! I can now get some sleep before the next crisis in my
life crops up  :)
You're a lifesaver.

Quoted text here. Click to load it

Re: Help with rotator script error

On Sun, 5 Sep 2004 23:17:21 -0700, "Carolyn Gill"

Quoted text here. Click to load it

Give thanks by not top posting.

Quoted text here. Click to load it

gburnore@databasix dot com          
                  How you look depends on where you go.
Gary L. Burnore                       |  ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
                                      |  ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
DataBasix                             |  ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
                                      |  ۳ 3 4 1 4 2  ݳ޳ 6 9 0 6 9 ۳
Black Helicopter Repair Svcs Division |     Official Proof of Purchase
      Want one?  GET one!

Site Timeline