Gossamer Forum
Home : Products : DBMan SQL : Discussion :

php includes

Quote Reply
php includes
Hello

Is there any way to include the results in a php page?

or a php page call the db.cgi ?

Thanks

Fábio
Quote Reply
Re: [assombracao] php includes In reply to
Hi Fabio,

To the best of my knowledge, there is no way to integrate PHP and perl code - they are different scripting languages and are processed totally differently by the server. So you can't execute a cgi script on a page that has a .php extension, and vice versa.

The only way I know of that you can accomplish this is with frames (or an <IFRAME>). That way, you can have two different pages (one in PHP and the other a cgi) viewable in the same browser window at the same time.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [hennagaijin] php includes In reply to
ok, I guessed that

And with SSI, how can I call the script? I could only include pages

Fábio
Quote Reply
Re: [assombracao] php includes In reply to
Something like:

<!--#exec cgi="cgi-bin/db.cgi?do=xxx&db=xxx"-->

Just change the path to the path to your db.cgi file and enter whatever parameters you need for the ssi in question. If you feel like getting a bit more sophisticated, you might take a look at:

http://httpd.apache.org/docs/howto/ssi.html

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund