[Typo3-dev] Indexed Search Engine and indexing of external files

Michiel van Leening leening at saurus.nl
Mon Jul 19 08:25:54 CEST 2004


Hi Glenn,

I believe using an index of a string might lead to some problems when
php5 is used (even think i read it on this list, but cannot be sure).
Better use if (strpos($file,'/')===0) {}

On Sun, 2004-07-18 at 22:58, Glen Gibb wrote:

> +	function toSitePath($file)	{
> +		// Check if the file starts with a slash
> +		if ($file[0] == '/')	{
...
> +	}
>  
--

Met vriendelijke groeten,
Michiel van Leening
---------------------------------------------------------------
 Saurus Internet - http://www.saurus.nl/ - info at saurus.nl
     Vestesingel 8, 9408 CA - Assen, The Netherlands
    tel: +31 (0)592.461.467 - fax: +31 (0)84.86.88.007
	 
     Michiel van Leening - Internet Application Developer
 leening at saurus.nl - gsm: +31 (0)65.57.12.693 - ICQ#51566230
      Registered with the Linux Counter. ID #39463
---------------------------------------------------------------
BOFH excuse #130:

new management
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.typo3.org/pipermail/typo3-dev/attachments/20040719/365935ec/attachment.pgp>


More information about the TYPO3-dev mailing list