protection
French 
CrawlTrack, webmaster dashboard.
Web analytic, SEO and protection

CrawlProtect, your website safety.
Reinforced protection

Two php/MySQL scripts, free and easy to install
The tools you need to manage and keep control of your site.





diable

CrawlTrack and CrawlProtect support forum

You are not logged in.


#1 25-05-2006 21:07:01

jay
Nouveau membre
Registered: 25-05-2006
Posts: 1

Can not include code in all pages

Hi there and thanks for the great work!!!

I have a problem not really related to your coding but including the code to call your script.

If i inlude it in normal php pages everything is cool, but i have a script that generates like 10.000 pages dynamic from database every night and i create the pages with fwrite.

Now when i include your code to be written to these files i get an error as the code:

$url =urlencode($_SERVER['REQUEST_URI']);

is not written in the head of these files, somehow it gets executed and stops with an error with T_ENCAPSED_AND_WHITESPACE.

I checked myself and it is the part

$_SERVER['REQUEST_URI']
$_SERVER['HTTP_USER_AGENT']
$_SERVER['REMOTE_ADDR']
$url_crawlt2['host']
$url_crawlt2['path']

i can not get to work with fwrite as - like i said - gets executed when I write it.

Any help appeciated

Jermaine

Last edited by jay (25-05-2006 21:09:41)

Offline

 

#2 25-05-2006 21:19:44

Jidébé
Administrateur
Registered: 30-10-2005
Posts: 2919

Re: Can not include code in all pages

Hi,

Try to put \ before each, like that:

\$_SERVER['REQUEST_URI']

Hope this will help you,

Jean-Denis


CrawlTrack & CrawlProtect developer

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB