On Sun, Jul 13, 2008 at 7:19 PM, Cog Rusty cog.rusty@gmail.com wrote:
Probably this is not the problem either. How could this code produce file_get_contents(http://abc.mywebsite.com/?prt=test) on "line 22"?
here is the complete error message: warning: file_get_contents(http://abc.mywebsite.com/?prt=test) [function.file-get-contents]: failed to open stream: Connection refused in /var/www/html/includes/common.inc(1352) : eval()'d code on line 22.
no idea what file line 22 refers to.
I believe I find the related code for file_get_contents()
function contemplate_get_file($node_type, $field) { $files = contemplate_available_files(); if (isset($files['node-'. $node_type .'-'. $field .'.tpl'])) { $file = $files['node-'. $node_type .'-'. $field .'.tpl']; } elseif (isset($files['node-'. $node_type .'.tpl'])) { $file = $files['node-'. $node_type .'.tpl']; } elseif (isset($files['node.tpl'])) { $file = $files['node.tpl']; }
if ($file) { $file->contents = file_get_contents($file->filename); $return = $file; } else { $return = FALSE; } return $return; }
is there a way to replace file_get_contents() to find more in detail?
thanks.
tom