The online racing simulator
arghhhhh php in dreamweaver cs3
(11 posts, started )
arghhhhh php in dreamweaver cs3
trying to embed a php script into a html page

and idea of how to do it

is it something like
Quote :<!--#include file="files/generate.php" -->

or
Quote :<script language="php" src="files/generate.php"><!--#include file="files/generate.php" --></script>

i know im in over my head

but i got the remote thing to work

www.teamka.500servers.co.uk/spectate.html
#2 - filur
But that only works if you're including the PHP page into a page that is a PHP page.

There is no easy/reliable way to include it into a straight HTML page. Just change the extension to .php and use filur's way.
If you're running the page off an Apache server, then you can use Server-Side Includes. So this would work:

<!--#include file="files/generate.php" -->

If it's another server I'd imagine it would have similar features, but I know very little about the subject.

http://en.wikipedia.org/wiki/Server_Side_Includes
http://www.teamka.500servers.co.uk/test02.php


Warning: main(/public_html/files/server.php) [function.main]: failed to open stream: No such file or directory in /home/teamka/public_html/test02.php on line 9

Warning: main() [function.include]: Failed opening '/public_html/files/server.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/teamka/public_html/test02.php on line 9
You are trying to open a file that doesn't exist. Check that the file actually exists in the directory that you are trying to open it, also make sure you have not made a typo in the directory path. Remember that unless you specify a full path, that the file location is relative to whichever directory the script is being run from.
It also looks like its running on a unix-like server. Probably Linux. Unlike Windows these OS' are case sensitive. Check to ensure that you have the case and path correct.
somewhere i read that i had to modify the htaccess file

do i?
It depends on your provider. Probably not.
Not a good idea to post error messages with the full path of the file. Bad things happen when people know where compromised scripts are located within the directory structure.
that's true but there is nothing there that is private or anything but that's true

also i think i might be in over my head, when i get more time i will come back to php

thanks for your help anyway

arghhhhh php in dreamweaver cs3
(11 posts, started )
FGED GREDG RDFGDR GSFDG