BizzyLizzy
Technical User
Hi hope someone can help me.
I have been given the task of updating and maintaining our company website which is fine as most of its written in html which I am used to dealing with. However, the new design template that we have been given is written in php.
I am getting an error showing in the apache error logs as follows:-
[Thu Dec 08 11:09:56 2005] [error] [client 127.0.0.1] PHP Notice: Undefined variable: view in C:\\Program Files\\Apache Group\\Apache2\\realdocs\\index.php on line 50
[Thu Dec 08 11:09:56 2005] [error] [client 127.0.0.1] PHP Warning: include(.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:\\Program Files\\Apache Group\\Apache2\\realdocs\\index.php on line 50
[Thu Dec 08 11:09:56 2005] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\Program Files\\Apache Group\\Apache2\\realdocs\\index.php on line 50
Line 50 on the index.php code is as follows :-
<?php include ("$view.php"); ?>
and there are several lines further down that want to use the $view variable eg:
<td width="50%"><a href="index.php?$view=home"><font size="1"><img border="0" src="navi.jpg".....
I realise that the variable is undefined but how and where do I define it??
Can any explanations please be written in words of one syllable so that a complete moron (like me!) can understand.
Many thanks
Lizzy
I have been given the task of updating and maintaining our company website which is fine as most of its written in html which I am used to dealing with. However, the new design template that we have been given is written in php.
I am getting an error showing in the apache error logs as follows:-
[Thu Dec 08 11:09:56 2005] [error] [client 127.0.0.1] PHP Notice: Undefined variable: view in C:\\Program Files\\Apache Group\\Apache2\\realdocs\\index.php on line 50
[Thu Dec 08 11:09:56 2005] [error] [client 127.0.0.1] PHP Warning: include(.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:\\Program Files\\Apache Group\\Apache2\\realdocs\\index.php on line 50
[Thu Dec 08 11:09:56 2005] [error] [client 127.0.0.1] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '.php' for inclusion (include_path='.;C:\\php5\\pear') in C:\\Program Files\\Apache Group\\Apache2\\realdocs\\index.php on line 50
Line 50 on the index.php code is as follows :-
<?php include ("$view.php"); ?>
and there are several lines further down that want to use the $view variable eg:
<td width="50%"><a href="index.php?$view=home"><font size="1"><img border="0" src="navi.jpg".....
I realise that the variable is undefined but how and where do I define it??
Can any explanations please be written in words of one syllable so that a complete moron (like me!) can understand.
Many thanks
Lizzy