Gossamer Forum
Home : Products : Gossamer Links : Discussions :

include php to the page.cgi

Quote Reply
include php to the page.cgi
Is it possible to include php to the page.cgi.
I need to us code like this in the page.cgi

<?php
include('php.php');
get_v( 'a', '' );
?>

I search hours in the forum for help but I didn't find:(.
Quote Reply
Re: [nir] include php to the page.cgi In reply to
In a word - no.

You can't use php inside a perl script.
Quote Reply
Re: [Hargreaves] include php to the page.cgi In reply to
The include is a code that not related to the page, he just do same check on the user, so it actually donít need to have problem to work with the cgi.
Do you maybe have an idea of a way to work with this php page.
Quote Reply
Re: [nir] include php to the page.cgi In reply to
You can still include a remote PHP script using the LWP::Simple tool, or using similar tool from the GT library.
You can do this using a global within a template or from a plugin.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] include php to the page.cgi In reply to
Does someone know who to include php
Quote Reply
Re: [nir] include php to the page.cgi In reply to
If you can access it via a URL, you could use this:

Code:
<%Plugins::ULTRAGlobals::Get_URL('http://www.page.com/something_to_get.php')%>

Or, if its on your server - try a little global:

exec_php_script
Code:
sub {
return system($_[0]);
}

..and call with:

<%exec_php_script("php /path/to/script.php")%>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] include php to the page.cgi In reply to
ThanksSmile