Page 1 of 1

Parse error

Posted: Sat Jan 08, 2005 6:34 pm
by Tempest
im getting a parse error on a line where only a ?> is :\ does anyone know why?

Posted: Sat Jan 08, 2005 6:35 pm
by Log2
put a ; on the previous line

Posted: Sat Jan 08, 2005 6:47 pm
by Tempest
kk i got rid of that but now

error deleting file.

thats always at the top of the page :\ and i think im missing a braket of some sort but i don't know where :\

Posted: Sat Jan 08, 2005 6:50 pm
by markl999
error deleting file
What's generating that error as it's not a PHP one unless you've not posted the full exact error?
Does it give a line number with the error, if so can you post that line of code?

If you're still not sure and the file is relatively short then post the code here ;)

Posted: Sat Jan 08, 2005 6:55 pm
by Tempest
feyd | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


Its not a sort code and it is because before i tried to implement a password protection on the script but it didn't work so i had to un-mod everything i modded up taking out all the username and password things but now after i un-modded everything i have 
error deleting file. 
stuck up there its not a PHP error i think im missing something

Code: Select all

if(isset($unlink)) {
unlink("$filename");
}
elseif(file_exists($filename)) 
{
print "error deleting file."; 
} 
else 
{
print "successful deletion.";
}
thats not the whole code thats just the part where the
Error deleting file is


feyd | Help us, help you. Please use

Code: Select all

and

Code: Select all

tags where approriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Sat Jan 08, 2005 6:58 pm
by Tempest
hehe i figured out my problem when i was un-modding the code i put the bracket in the wrong place lol