| 
	
 | 
 Posted by julian_m on 06/16/66 11:39 
Julien CROUZET wrote: 
 
> The probleme is here if : (strpos($buffer, '<?') === true){ 
> 
> strpos returns the position of the first occurence of your searched 
> string or FALSE if it doesn't find it. 
> 
> The operator === is a STRICT comparison, that means that it'll be true 
> if the operands are EXACTLY the same. 
> 
> As your strpos finds a '<?', it returns its position in your file, 
> (ie: 45), and 45 is not EXACTLY true. 
> 
> You have to change 
> strpos($buffer, '<?') === true){ 
> for 
> strpos($buffer, '<?') !== false){ 
> 
 
two things: 
1st: You're faster than the light! Your advice works nice. Thanks! 
 
2nd: What would be EXACTLY true? 1? 
 
regads - jm
 
  
Navigation:
[Reply to this message] 
 |