PHP file_get_contents help

Hi there,

I'm trying to use file_get_contents to grab the contents of a page and then echo only characters between two parts of the code.

Right now I'm using this:


$text = file_get_contents("");

preg_match('/<!-- start -->(.*)<!-- end -->/s', $text, $matches);

$code = $matches[1];

echo $code;


However now I want to do it to a page that doesn't have markers such as <!-- start -->, it only has straight html code.

I need someone to echo the contents between two parts of code such as <form> and </form>

If someone can work out how to do this for me I'll give you $50.



BTW, I need this done asap!

Taidot: PHP

Näytä lisää: file_get_contents post, php file_get_contents, file_get_contents post php, php post file_get_contents, php file_get_contents post, file_get_contents php, file_get_contents example, post file_get_contents, php file_get_contents example web page, php file_get_contents example, file_get_contents php post, file_get_contents html, parts now, file_get_contents example php, php file_get_contents html, php help file_get_contents, php text file_get_contents, file_get_contents form, file_get_contents examples, php file_get_contents curl post, php file_get_contents secure html pages, php check file_get_contents, php file_get_contents web page part, php file_get_contents examples, exemple php file_get_contents

Tietoa työnantajasta:
( 12 arvostelua ) Hamilton, New Zealand

Projektin tunnus: #426962

Myönnetty käyttäjälle:


Please check PMB. jexplorer

$30 USD 0 päivässä
(154 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Please check PM

$30 USD 0 päivässä
(215 arvostelua)

Hi, You are in BIG trouble

$50 USD 0 päivässä
(13 arvostelua)

Please check PMB... I think you'll like what you see :)

$30 USD 0 päivässä
(7 arvostelua)

Hello, This is web experts community. We provide excellent programmer and 100% error free code. Thanks Prospective Web Experts

$50 USD 1 päivässä
(0 arvostelua)