Parse error: parse error, unexpected $end in c:\websites\adm

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

Parse error: parse error, unexpected $end in c:\websites\adm

Post by psychotomus »

cant find cause of error.

Parse error: parse error, unexpected $end in c:\websites\admin\videogam\www\test.php on line 50

Code: Select all

<?php

//add downloads to table
$dir = "Midis/";
$MidiCount = 0;
if ($dh = opendir($dir))
{
	//get console directory
	while(false !== ($filename2 = readdir($dh)))
	{
		
		if (is_dir($dir.'/'.$filename2))
		{
			if ($filename2 <> "..")
			{
			$bh = opendir($dir.'/'.$filename2);
			//get game directory
			while(false !== ($filename1 = readdir($bh)))
			{
				if (is_dir($dir.'/'.$filename2.'/'.$filename1))
				{
					if (($filename2 <> ".."))`
					{
						$ch = opendir($dir.'/'.$filename2.'/'.$filename1);
						//get games
						while(false !== ($filename3 = readdir($ch)))
						{
							if (!(is_dir($dir.'/'.$filename2.'/'.$filename1.'/'.$filename3)))
							{
								print $dir.'/'.$filename2.'1/'.$filename1.'2/'.$filename3.'3<br>';


								//$MidiCount = $MidiCount + 1;
								//$filename1 = str_replace("'", "", $filename1);
								//mysql_query ("INSERT INTO Downloads(filename, theconsole,  Downloads) VALUES ('$filename3', '$filename2','0')") 
					//or die(mysql_error());
							}//endif
						}//endwhile
					}//endif
				}//endif
			}//endwhile
			}//endif
		}//end if of is_dir


	}//end of while
}//end if opendir


?>
JCART | Please use

Code: Select all

tags when posting php code. Review [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Code: Select all

if (($filename2 &lt;&gt; &quote;..&quote;))`
Post Reply