Setup your connection like this to see what kind of detail error message you get so you can have a better understanding of the issue.
<?php
$conn = @ora_logon("user@wrongTNS", "pass");
if (!$conn) {
echo "Unable to connect to the database.<BR>\n";
echo ora_error(), "\n";
}
?>
This will output:
Unable to connect to the database.<BR>
ORA-12154: TNS:could not resolve service name