Jump to content

Get SOURCE code


summericeweb

Recommended Posts

Guest footballkid4
[code]<?php
$file = "urltoopen.php";
if ( $data = file( $file ) )
{
     $data = join( "\n" , $data );
     preg_match_all( "@<style[^>].+?>[^>](.*?)[^>]</style>@ism" , $data , $match );
     print_r( $match );
}
?>[/code]
Of course, that won't do much if they use an @import statement or a <link rel="stylesheet"...>
Link to comment
https://forums.phpfreaks.com/topic/6443-get-source-code/#findComment-23370
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.