Results 1 to 3 of 3

Thread: seperating something in a file

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005

    seperating something in a file

    ok i need some help.

    say i got a file and want to extract this from it(all images)(note that the url will vary)
    <img src="image" border="0" />
    then once finding all the <img src="image" border="0" />'s in a file i want to extract the img url part. how would i go about doing this?

    thanks in advance, high6

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Brighton, UK

    Re: seperating something in a file

    you just need to use preg_match_all which will allow to find the information you need

    try this
    PHP Code:

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Ickenham, UK

    Re: seperating something in a file

    You might find the function in this post useful too:
    PHP || MySql || Apache || Get Firefox || || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!

    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width