Communauté Informatique NDFR.net : Petit problème de eregi() - Programmation Web (HTML, PHP, ASP, Java, XML, etc.)
 
Petit problème de eregi()
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 07-09-2007, 10:45
Magi-X's Avatar
Magi-X Magi-X is offline
Modérateur
1 Highscore
 
Join Date: 31-10-2002
Location: Bruxelles
Age: 42
Posts: 816
Send a message via MSN to Magi-X
Quote:
Originally Posted by bastien View Post
J'ai essayé, mais echo ne renvoie que du blanc
Tu as copié le code du fichier pdf ? Il faut que tu mette le $text sur une ligne, car le pdf il a mit des cariage return. Ou bien recopie le code ci-dessous:

PHP Code:
$text '<div><object width="425" height="255"><param name="movie" value="http://www.dailymotion.com/swf/5XfKpEkBU9Ry1kuwQ"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/5XfKpEkBU9Ry1kuwQ" type="application/x-shockwave-flash" width="425" height="255" allowfullscreen="true"></embed></object><br /><b><a href="http://www.dailymotion.com/video/x2wogc_halo-3-combat_creation">Halo 3 combat</a></b><br /><i>envoy&eacute; par <a href="http://www.dailymotion.com/xbox">xbox</a></i></div>';

preg_match("#<param name=\\\"movie\\\" value=\\\"http://www.dailymotion.com/swf/(.+?)\\\"></param>#\", $text$matches);

echo 
$matches[1]
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Petit problème pour lire les divx Dark_G@mer Matériel 8 23-07-2005 21:20
petit problème ac msn 6.2 anna_19 Logiciels 5 07-11-2004 04:32
Petit probléme avec outlook express !!! Alexlesioux Internet, Réseaux et Sécurité 11 31-08-2004 08:16
Petit problème de gravure d'un divx sur DVD! bastien Logiciels 33 22-08-2004 00:29
petit probleme ...y a t il une solution? znarf Windows NT4/2000/XP Client 4 04-01-2004 22:23

All times are GMT +2. The time now is 12:45.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.