CrackFeed.Com
Account Closed
- Impact
- 13
Ok I have a variable names $source that hold the HTML code from a remote page.
What I am trying to do is use preg_match_all along with a foreach loop with preg_replace in it to go through $source and grab all the substring in the img src="" tag. The issue I am having is that some have full paths and some have relative paths. I need to remove the path to the file and leave the filename only.
Has anyone got a snipet of code for me? Nothing I have tried does what I need, close but no cigar. Any other ideas that are more efficient? I don't want to use libraries or 3rd party code, because this is a personal vendeta between me and this dang script. LOL
Any help will be well appreciated and probably rewarded with a few bucks to paypal.
What I am trying to do is use preg_match_all along with a foreach loop with preg_replace in it to go through $source and grab all the substring in the img src="" tag. The issue I am having is that some have full paths and some have relative paths. I need to remove the path to the file and leave the filename only.
Has anyone got a snipet of code for me? Nothing I have tried does what I need, close but no cigar. Any other ideas that are more efficient? I don't want to use libraries or 3rd party code, because this is a personal vendeta between me and this dang script. LOL
Any help will be well appreciated and probably rewarded with a few bucks to paypal.
















