Hi,
Is this the whole code in your php script? Can you please paste the whole php script content? I have not used Eclipse
IDE for PHP so I am unable to comment. Do you see any warnings inside eclipse IDE for PHP?
Can you run this code with the Apache Web Server explicitly?