I am trying to use a site translator but i am having problems as my server does not accept the function file_get_contents.
Advance help for any help
If file_get_contents() is not supported/enabled, then neither is file(), it is most likely due to file handling functions being disabled for security reasons. Unless it is PHP4 < 4.3…
u can use direct links to the Google translator
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://126.96.36.199/translate_c?hl=en&ie=UTF-8&oe=UTF-8&langpair=$lang&u=" . urlencode($_GET["u"]) . "&prev=/language_tools"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $html = curl_exec($ch); curl_close($ch); ?>