Re: include + path
| From: | elias | Date: | Thu, 17 May 2001 19:02:44 +0000 |
| Subject: | Re: include + path | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53184@lists.php.net to get a copy of this message | ||
Easy, ...
Use JavaScript
or simple HTML...
javascript:
<script Language="JavaScript"
src="yousite/yourscripts/statcounter.php"></script>
Now you've just been called from another server!
Now from within your script you can get lots of informations like:
$HTTP_REFERER ...
-elias
http://www.eassoft.cjb.net
""Greg Wright"" <gbvh8k30vd001@sneakemail.com> wrote in message
news:200105171832460342.0DCDA919@mail.ausit.com...
> Hello All,
>
> I have a app that is used to track stats, it was designed to be used on
the
> smae server that the website being tracked is, it uses an include and a
> path statement to register a hit in the page being displayed.
>
> Does anyone know of a method where I could get the remote website to
invoke
> the stat counter? ie is there something that can be used on the remote
site
> to call a php file on another server, this other file would be on the same
> server as the stats php app and therefore include the "include" function
> and the path, the main problem or hold up as I see it is the need for a
> path and not being able to use a http:// path, if the above is
> not clear I
> will e-mail off list if reqd.
>
> an example is..
>
> each page being tracked needs something like this locally....
>
> $file_include_dir = "/stats/include/';
> include($file_include_dir.'stats/include/visitor.inc.php3');
>
> how could this be invoked remotely, or how else does anyone see this as
> being able to be done, in the remote page I want the effect to be
> transparent....
>
> Thanks...
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>