Parse error help.., thanks..
- From: ianlyy@xxxxxxxxx ("Ian")
- Date: Sat, 31 Mar 2007 05:55:36 +0800
Hi everyone, i am new to PHP, but not a programmer..,
i got this php code to workout on something on my blog, but it seems that it
gives me the following error:
Parse error: syntax error, unexpected ';' in
/hxxx/xxxxx/domains/xxxxx.com/public_html/blog/labels.php on line 15
<ul class="labels">
<?php
define('PREFIX', 'http://xxxx.xxxxx.com/labels');
define('SEARCH_DIR','/xxxx/xxxxx/domains/xxxxx.com/public_html/blog/labels');
define('THIS_FILE', 'cloud.php');
if(file_exists(SEARCH_DIR.'_cloud_include_cache.html') &&
filemtime(SEARCH_DIR.'_cloud_include_cache.html')>(time()-(60*60)))
echo file_get_contents(SEARCH_DIR.'_cloud_include_cache.html');
else
{
$output = '';
$files = array();
$dir = opendir(SEARCH_DIR);
while($file = readdir($dir))
if($file != '.' && $file != '..' && $file != THIS_FILE
&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;&
$file != CACHE_FILE)
{
$files[] = $file;
}
--------
Anyhelp on this will ve be very much appreciated, thanks..
Ian
.
- Follow-Ups:
- Re: [PHP] Parse error help.., thanks..
- From: "Tijnema !"
- Re: [PHP] Parse error help.., thanks..
- From: Davi
- Re: [PHP] Parse error help.., thanks..
- Prev by Date: Re: [PHP] Ide help needed
- Next by Date: Re: [PHP] PHP sample code for XMLHttprequest with jQuery
- Previous by thread: RE: [PHP] Parsing database variables
- Next by thread: Re: [PHP] Parse error help.., thanks..
- Index(es):
Relevant Pages
|