FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Find Strings (Tokens) in File and push them into an array - How?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Find Strings (Tokens) in File and push them into an array - How? [message #169540 is a reply to message #169537] Fri, 17 September 2010 12:23 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 17/09/2010 14:09, DigitalDude escribió/wrote:
> I need to solve this problem and by now I'm really stuck...
>
> I managed to go through the files I want to look for the tokens in a
> loop and I checked them with str_pos and get a correct message that a
> token is in my template.
>
> My tokens look like this:
>
> $__txtToken1; $__txtToken2; ...
>
> I get the String-Position of the beginning of the token, but I just
> can't figure out how I could parse my file and save these tokens to my
> array!

If you know the length, simply use substr():

http://es.php.net/substr


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Advanced SQL injection complete tool pack(tutorials,scanners,admin finder,shells,md5)
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 04:34:35 GMT 2024

Total time taken to generate the page: 0.04845 seconds