R
R
rubtsoff2016-05-02 14:02:37
PHP
rubtsoff, 2016-05-02 14:02:37

Why is the php parser not working?

The script seems to be correct but gives a 500 error

<?php
$result = "<source src="http://site.com/592caa503725b373?download_token=e142c54f24af82854fa39cac8c0c8838826caef5dd12ef5a97314ec818399f20" type="video/mp4">";
preg_match_all("/(?<=download_token=).*(?=" type="video\/mp4/"), $result, $video );
var_dump($video);
?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jacksparrow, 2016-05-02
@jacksparrow

You messed up with double and single quotes, your ide doesn't highlight it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question