Hi
Mitra said:
We are using include of view.php3 in several places, via http, - here is
code from one of our files, note how we build up the &cmd paramater.
$metadata = "http://localhost$AA_INSTAL_EDIT_PATH/view.php3".
"?vid=$PTS_PROJECT_METADATA_VID".
"&cmd[$PTS_PROJECT_METADATA_VID]=i-$PTS_PROJECT_METADATA_VID-$projects_item".
// "&$query".
$debug_param.
""; // metadata does not need &retrun_url. It does not
have any links
include $metadata;
If you want to pass the URL parameters to view.php3 then you can pass &$query.
It is not &query but &$query, sorry. (I have changed above lines).
$query can be a copy of $QUERY_STRING which defined by Apache.
$query=$QUERY_STRING; // saving QUERY_STRING, init_page.php3 destroy the
value
love
setu
- Mitra
At 11:24 AM 3/14/2002 +0100, Honza Malik wrote:
>On 13 Mar 2002 at 10:06, Rob Ellis wrote:
>
> > <?php
> > if (!@include("http://localhost/apc-aa/view.php3?vid=29"))
> > print "News is offline\n";
> > ?>
>
>Yes, this is the way, but there are still some limitations. The biggest
>limitation is,
>that the url parameters are not passed to the called script, so it
>displays the page
>displays allways the same content.
>
>The Atilla's option 1) and 2) do not work in PHP. The option 3):
>
> > 3, using include() function under php.
> > <?
> > include ("/apc-aa/view.php3?vid=29")
> > ?>
>
>Should work in modified form:
><?
> $vid=29
> include ("/apc-aa/view.php3")
>?>
>
>But we do not use it. Maybe it is usefull for our pages, but it is big
>problem if You
>create pages in PHP for Your users and then give them the FTP access to the
>files. I they will be able to edit the PHP file with the include, they
>will be able to get
>the database password of the database, which is big security problem.
>
>In Econnect we use allways the SSI includes in *.shtml pages and we allready
>created quite big toolkit projects - without problem (http://detizeme.cz/
>for example)
>
>The *shtml page with AA then obviously looks like:
>
><!--#include virtual='inc/head.php'-->
><!--#include virtual="/aa/slice.php3?slice_id=5242865445eb2bf2be"-->
><!--#include virtual='inc/foot.php'-->
>
>Honza
>
>
>On 13 Mar 2002 at 13:29, Attila Farago wrote:
>
> > Hi,
> >
> > I have a problem while trying to use apc-aa.
> > I tried to use it to fill a box with the news under an existing cover
> > page written in php.
> >
> > I tried it several ways.
> >
> > 1, using the original SSI under PHP
> > <!--#include virtual="/apc-aa/view.php3?vid=29"-->
> >
> > => PHP ignores (doesn't process SSI)
> >
> > 2, using virtual() function under php.
> > <?
> > virtual ("/apc-aa/view.php3?vid=29")
> > ?>
> >
> > => PHP virtual refuses to make a virtual apache sub-request with
> > virtual for a php file. It recommends include.
> >
> > 3, using include() function under php.
> > <?
> > include ("/apc-aa/view.php3?vid=29")
> > ?>
> >
> > => fails
> >
> > 4, using virtual() function under php for an shtml page containung the
> > virtual SSI call
> >
> > => apache error (from php.net)
> >
> > > rwidmer@...
> > > 08-Dec-1999 03:38
> > >
> > > If the .html file you reference in virtual() contains <!--#include
> > virtual""-->> of a php file it will result in a Segmentation
> > > fault of the Apache process. At least with php 3.0.12, but I suspect
> this
> > > is actually an Apache issue, and all php versions will do it.
> >
> >
> > please HELP me!!! :)
> > Thanks
> > Attila Farago
> >
> >
> > _______________________________________________
> > apc-aa-general mailing list
> > apc-aa-general@...
> > https://lists.sourceforge.net/lists/listinfo/apc-aa-general
> >
>
>Jan Malik (honza.malik@...)
>Econnect o.s.
> Poskytovatel Internetu pro neziskove organizace
>Ceskomalinska 23, 160 00 Praha 6, Czech Republic
>Tel.: +420-2-24311780, Fax: +420-2-24317892, http://www.ecn.cz
>
>----------------------------------------------------
>Press Servis - snadny zpusob zasilani tiskovych zprav do medii
>Toolkit - publikovani na Internetu jen vyplnenim formulare
>http://kalendar.ecn.cz - Kalendar akci v obcanskem sektoru
>----------------------------------------------------
>
>
>_______________________________________________
>apc-aa-general mailing list
>apc-aa-general@...
>https://lists.sourceforge.net/lists/listinfo/apc-aa-general
_______________________________________________
apc-aa-general mailing list
apc-aa-general@...
https://lists.sourceforge.net/lists/listinfo/apc-aa-general
|