The Lounge

[Boredom] Wallpaper stealer | HD Walleys!

Submitted by Sozin, , Thread ID: 2783

Thread Closed

RE: [Boredom] Wallpaper stealer | HD Walleys!

Sozin
Nan Ihier Gelair Mordor
Divine
Level:
0
Reputation:
91
Posts:
2.33K
Likes:
375
Credits:
11K
OP
13-04-2015, 08:07 AM
#8
12-04-2015, 09:32 PM
Tropical Wrote:
12-04-2015, 09:12 PM
AmN Wrote:
So I was bored to death and I decided to steal all the wallpapers of a website.

http://askamn.com/wallpapers.php

PRess F5 and you will get new ones.

*No noob. I did not download and upload those millions of images to my server. I just wrote a regex in php and pulled the images from there <.<

About regex, how do you write something like this where it pulls images and such?

Google Regex.

$regex = '#(<img\ssrc="([\d]+)")#;
preg_match_all( $regex, $string, $matches);
foreach( $matches[1] AS $match)
{
echo "Src of image: {$match}";
}

above code will match all strings have an <img src="link"> type of image src in the given HTML code (here $string)
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.


Users browsing this thread: 1 Guest(s)