[SOLVED] Parse error

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
Tempest
Forum Newbie
Posts: 10
Joined: Sat Jan 08, 2005 12:33 pm

Parse error

Post by Tempest »

im getting a parse error on a line where only a ?> is :\ does anyone know why?
Log2
Forum Newbie
Posts: 17
Joined: Sat Jan 08, 2005 6:04 pm

Post by Log2 »

put a ; on the previous line
Tempest
Forum Newbie
Posts: 10
Joined: Sat Jan 08, 2005 12:33 pm

Post 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 :\
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post 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 ;)
Tempest
Forum Newbie
Posts: 10
Joined: Sat Jan 08, 2005 12:33 pm

Post 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]
Tempest
Forum Newbie
Posts: 10
Joined: Sat Jan 08, 2005 12:33 pm

Post by Tempest »

hehe i figured out my problem when i was un-modding the code i put the bracket in the wrong place lol
Post Reply