need simple php script 5$bitcoin

morganfr3

Newbie
Joined
Mar 31, 2019
Messages
5
Reaction score
1
Hi i need a simple php script to get text links to hyperlink with code!

example, i have a div box like this!

HTML:
<div class="mydiv">
1
1,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt
2,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt
3,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt
...
30,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt

2
1,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt
2,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt
3,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt
...
30,https://mixdrop.co/f/idvideo,https://example.com/subtitle.srt
</div>


i need auto transform to something like this:

HTML:
<?php
// code here 
?>

<div class="mydiv">
<div class="season">Season 1</div>
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 1</a>
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 2</a>
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 3</a>
....
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 30</a>
</div>
<div class="season">Season 2</div>
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 1</a>
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 2</a>
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 3</a>
....
<a href="https://mixdrop.co/f/idvideo?subtitle=https://example.com/subtitle.srt">Episode 30</a>
</div>
</div>
 
That’s actually pretty easy, in fact, I may have a script already python laying around. I could change some parts to get it to php. Let me know if you still need this.
 
You can use str_replace() or preg_replace() function in php to do this.
 
My guess is building your form to something like this:


<form action="file.php" method="get">
Movie url: <input type="text" name="url">
Movie title: <input type="text" name="title">
</form>

And your file.php like this:

<?php
echo <a href=“$_GET["url"]”> $_GET[“title”] </a>
?>

Again, just a guess, never tried making something like this.
 
That’s actually pretty easy, in fact, I may have a script already python laying around. I could change some parts to get it to php. Let me know if you still need this.
I will need it and if possible to send your email
 
Back
Top