Simple Task, Small Problem, It'll just take a second, please help D= |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Zymic Free Web Hosting Zymic Free Web Hosting - General Discussion & Help |
||
Simple Task, Small Problem, It'll just take a second, please help D= |
||
May 21 2008, 07:22 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 7 Joined: 20-May 08 Member No.: 28,536 |
Well. I was making a listing page for my upload center on http://mike.us.to (http://mike-art.zxq.net) And I was getting an error.
It says this: Parse error: syntax error, unexpected T_VARIABLE in /www/zxq.net/m/i/k/mike-art/htdocs/uploadedfiles/listuploaded.php on line 68 Here's my script for that page... CODE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Mike Studios</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="keywords" content="Site keywords here" /> <meta name="description" content="Site description here" /> <meta name="author" content="Your name here" /> <link rel="stylesheet" type="text/css" href="css/style.css" /> </head> <body> <div id="head"> <h1>YourSite.com</h1> </div> <bh> <bh> <bh> <div id="nav"> <ul> <li><a href="index.html" title=""><span></span>Home</a></li> <li><a href="ploggerb3/index.php" title=""><span></span>Gallery</a></li> <li><a href="uploadcenter.php" title=""><span></span>File Uploading Center</a></li> <li><a href="IntegraMOD141/index.php" title=""><span></span>Forum</a></li> <li><a href="changelog.html" title=""><span></span>Change Log</a></li> </ul> </div> <div id="main"> <h2>Uploaded Files</h2> <?php // open this directory $myDirectory = opendir("uploadedfiles"); // get each entry while($entryName = readdir($myDirectory)) { $dirArray[] = $entryName; } // close directory closedir($myDirectory); // count elements in array $indexCount = count($dirArray); Print ("$indexCount files<br>n"); // sort 'em sort($dirArray); // print 'em print("<TABLE border=1 cellpadding=5 cellspacing=0 class=whitelinks>n"); print("<TR><TH>Filename</TH><th>Filetype</th><th>Filesize</th></TR>n"); // loop through the array of files and print them all for($index=0; $index < $indexCount; $index++) { if (substr("$dirArray[$index]", 0, 1) != "."){ // don't list hidden files print("<TR><TD><a href="$dirArray[$index]">$dirArray[$index]</a></td>"); print("<td>"); print(filetype($dirArray[$index])); print("</td>"); print("<td>"); print(filesize($dirArray[$index])); print("</td>"); print("</TR>n"); } } print("</TABLE>n"); ?> </div> <div id="sidebar"> <h3><center>Links</h3></center> <ul> <li><a href="http://www.endless-online.com" title=""><center>Offical Endless Online Website</center></a></li> <li><a href="http://www.endlessreport.blogspot.com" title=""><center>WickedFrost's Blog</center></a></li> </ul> <h3>Want your link here?</h3> <p><center>If you would like you linked placed on my website, please contact me, I'm Arcitex ingame, and -Mike on the EO forums.</p></center> <center><p>Copyright © 2008 Mike Studios - Design by Mike of <a href="http://mike.us.to/" title=" Mike.us.to - Art Work">Mike.us.to</a> Templete inspired by Vult-r of - <a href="http://www.endless-online.com">Endless Online</a></center> </div> </div> </div> <img src="images/footer-bottem.PNG" alt="" width="700px" height="20px" /> </body> </html> Can anyone help? Also: I put the listuploaded.php files inside the uploadedfiles [DIR] Or else it won't work... |
|
|
![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 19th May 2013 - 12:22 AM |