problem with copy

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all,
I don't understand why this script want work

if($_POST['students'] == true)
copy("$file" , "/students/$file_name")
else echo "no check";

Parse error: parse error, unexpected T_ELSE

really thanx :)

Re: problem with copy

You forgot the semicolon:

Davide wrote:
Quoted text here. Click to load it

Re: problem with copy

Davide schrieb:

Quoted text here. Click to load it

I would change two things - at first i would use braces. And the second  
thing (it's the error) - use the semikolon at the end of a line!

} else {

good luck

Emails ohne "[nospam]" im Betreff werden kommentarlos gelöscht.  

Site Timeline