excuse me i know this is a dumb one,,, but shouldn't this be working fine ?
<script language="JavaScript" type="text/javascript">
var winhandle = null;
function popUp(URL) {
if ((winhandle != null) && (! winhandle.closed)){
winhandle.location.replace(URL);
}
else
{
winhandle=window.open(URL, 'imagewin', 'width=740,height=680,resizable,scrollbars');
}
winhandle.focus();
}
</script>
<?
include ('functions1.inc');
display_content();
?>
and my inc file is:
<?
function display_content();
{
echo "hi";
}
?>
browser gives me a:
Parse error: parse error, expecting `'{'' in /home/tucuadre/public_html/test/functions1.inc on line 2
Fatal error: Call to undefined function: display_content() in /home/tucuadre/public_html/test/catalogo1.php on line 21