Forum Moderators: mack
What is the file extension of the file you are trying to use include in? is it .php or .html or something else?
Is the preview.php file located in a /cgi-bin/?
another thing you could try to see if php is installed and how is to create a file called phpinfo.php with the following code in it.
<?php
phpinfo();
?>
save it, upload it and view it and that will contain all of the information about the php install.
You could also ask your host.
The php section...
"<?php include('include.php');?> "
will require php to be installed on your system.
Php is a scripting language and you require the php language to be installed before you can execute any form of php code.
If you are using windows there will be a windows php installer available for download. On linux php will almost certainly be available on your distro cd/ftp.
I think if you install php the problem will be resolved.
Mack.
Just create a file called
pasta.php
and put one line in it
<? phpinfo();?>
Then open it through your server
[localhost...]
and report back on what happens
Tom