Hi rapidz,
I really don't understand what $1 is in your code. Variables can not start with number as I know.
If you are trying to replace the link try to use :
PHP Code:
<?php
$replace = 'http://www.dailymotion.com/swf/NEWNEWNEW';
$text = '<div><object width="425" height="335"><param name="movie" value="http://www.dailymotion.com/swf/6TMx6A6bDKSlyikB7"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/6TMx6A6bDKSlyikB7" type="application/x-shockwave-flash" width="425" height="335" allowfullscreen="true"></embed></object><br /><b><a href="http://www.dailymotion.com/video/x2ln7h_gagner-de-l-argent-en-restant-chez_videogames">GAGNER DE L ARGENT EN RESTANT CHEZ SOI</a></b><br /><i>Uploaded by <a href="http://www.dailymotion.com/zdax6">zdax6</a></i></div>';
Can you create a file.php with my 1st code , upload it and give me the link. It should work 100% online.
If you have a different code, I can help only if I see the entire code.
Ripe, $1 is an internal value used in preg, it means use the first match as the replacement string.
Threw me off by making a new post, glad I spotted it
Try changing the $1 for a \1 instead, I know some web servers conform to different preg values.
If that is still no help then can you upload the following to your server and give us a link?
PHP Code:
<?php
$text = '<div><object width="425" height="335"><param name="movie" value="http://www.dailymotion.com/swf/6TMx6A6bDKSlyikB7"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/6TMx6A6bDKSlyikB7" type="application/x-shockwave-flash" width="425" height="335" allowfullscreen="true"></embed></object><br /><b><a href="http://www.dailymotion.com/video/x2ln7h_gagner-de-l-argent-en-restant-chez_videogames">GAGNER DE L ARGENT EN RESTANT CHEZ SOI</a></b><br /><i>Uploaded by <a href="http://www.dailymotion.com/zdax6">zdax6</a></i></div>';
var_dump($text);
?>
Last edited by MrCoder; 07-25-2007 at 02:22 PM.
Originally Posted by temp.user123
You know... You're not so smart. Do you need me to educate you?
If you say, "please," (and do so, nicely) then I will show you where you're dead wrong.
Bookmarks