I assume the page is static and you have no knowledge of PHP. Just insert <?php include('path/to/your/script.php'); ?> Code (markup): Somewhere in HTML template, where you want the scripts output located.
I don't think that will work in a html file, it'll have to be a php file. Either that or have your server parse html files as php, you can do that with a few .htaccess lines I think.
It's being mentioned cause it's necessary. html files will just spit out the php as text if the handler is not declared.
As suggested over the previous posts you have two choices... You can make the html page you have work by changing the file extension from ".html" to ".php". Note you will have to change all links pointing to the page to the php file extension as well. Simply change the name from "yourpage.html" to "yourpage.php" Alternatively you could leave the page file extension the same and create a .htaccess file in the same directory and place the following info provided by noppid in the file... AddType application/x-httpd-php .php .html that should get you up and running...
I changed the page from htm to php and the script worked inside the web page. Good up to there But! The PHP script is a keyword generater ( 3 files- index.php, keyword.php and a download php.) Once I submit a keyword the results do not appear. how would I make the results appear inside another page?
Why not keep this public? This is a good thread. Lots of good knowledge that's probably being shared behind the scenes. Threads like this one are the reason this forum's such a great resource. No, sorry, I don't actually have anything to add that's worth mentioning, at this point. I haven't seen the details either :/
Thread is still public, livingearth is just taking a look at the files involved; Hopefully he will have more to add. Thanks
Does this mean that IM didn't help you? Then again, your message implies other issues. You have "an already prepared web page." Is this a straight HTML page? You probably need to change the suffixes in your site and add something like require_once("something.php"); DoSomething(); Code (markup): to all your pages. You also need to redirect all your HTML pages to the new PHP pages. (301, I think) Does the pre-prepared site already use PHP? Much easier. Just add the new script to your page and call it. Or do you have a bunch of CGI scripts running python/perl, and you need to add in a PHP script? That might actually be interesting. Choices, choices. CORBA? XMLRPC? What other options do people suggest? Or am I 100% off-base here? (It *has* happened before. Once or twice...)
Are the files so private they can't be attached? If they're so big that attaching them here is a problem, you probably have at least one other basic problem.
I got some PHP scripts, one was a (keyword suggester - index.php, keyword.php download.php) to run on a site that I'm working on. I need the scripts to run inside a web page that I have pre-prepared. still with me? Ok, I changed the htm page to a PHP page and added this code where I wanted the script to display - <?php include('path/to/your/script.php'); ?> The index.php showed up on the page allowing me to enter a keyword. BUT when I press the submit button the next event does not display (ie:the suggested keywords) How do I resolve this problem?