Jump to content

MyTube youtube script problem


tubememory

Recommended Posts

I downloaded MyTube script from http://m1net.online.fr and installed it on my site http://www.tubememory.com

 

That script can search and download youtube videos.

 

Now I have a problem, when I enter a search query with more than one word (eg: Red Rose) it gives an error, see >> http://www.tubememory.com/base.php?search=Red%20Rose

 

But if I enter single query (single word) >> "Rose" >> http://www.tubememory.com/base.php?search=Rose it woking fine.

 

Why is that ? can anyone help me to fix this problem, you can download that simple script from http://m1net.online.fr/mytube.zip No MySQL Database required, only few PHP files.

Link to comment
https://forums.phpfreaks.com/topic/164195-mytube-youtube-script-problem/
Share on other sites

Maybe try adding the below line to base.php

<?php
$searchterms = addslashes(trim(str_replace(" ","+",$_GET['search'])));
$searchterms = addslashes(trim(str_replace("-","+",$_GET['search'])));
// ADD THIS LINE
$searchterms = urlencode($searchterms);

  • 8 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.