Youtube Script Error Download Face Of

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

35 replies · 3,074 views · started 17 years ago · 1 min read

TL;DR · summary of 35 replies
  • - The error was a redirection issue when downloading videos from YouTube using the CatchTube script.
  • - A solution provided was to replace the $sxml = simplexml_load_file($feedURL); line with an alternative method using cURL, as suggested by firemax.
  • - The full edited script snippet for replacing simplexml_load_file() is available in a previous post and can be found at
  • - Some forum members recommended enabling auto redirection settings within Opera browser to resolve the issue.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

13 participants
rdxmob Developer · 68 posts #1

YouTube Script In Error During Dear All Wepmaster Youtube Script Download Stop Working Any One Coder To Help Me To Fix This

Here Is Script Of CatchTube Check And Repair This Agian 😳

Attachments: Youtube Script.rar
subzero Super moderator Fellow · 3,954 posts #2

what is your error ?

wont download at all or you get a errror page ??

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

ranzit2 Developer · 187 posts #4

rap-4ever wrote: buy hosting and this will working :D

thats funny..even paid host have some restrictions.so it not true that it wil work if u buy hosting.u need to find the error in script.may b there is change in youtube api..

she is beautifull than php.and i love her more than php.

heykooldude Junior · 32 posts #6

reply

This stopped working on hostgator to my knowledge. looks like some changes have been made to server.

rdxmob Developer · 68 posts #8

when download video then this msg appear

Redirection Status

The URL was redirected to . Please click the link to go there.

You can enable the automatic redirection in Preferences. Generated by Opera.

rdxmob Developer · 68 posts #9

when download video then this msg appear

Redirection Status

The URL was redirected to . Please click the link to go there.

You can enable the automatic redirection in Preferences.

subzero Super moderator Fellow · 3,954 posts #10

Please load this to your youtube folder ...

I mean your made folder 8)

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Attachments: php.zip
firemax Developer · 221 posts #11

hello, you don't need to buy paid hosting or change server settings for this script.. but you must change this script, bcoz its use a $sxml = simplexml_load_file($feedURL) function for get feeds. this function is using a php fopen , but free hosting providers disable it.. just this is the solution for this problem..

find simplexml_load_file($feedURL) function in your script and replace this code to it.. example- in this script index page code, you can see this function as this

    *$sxml = simplexml_load_file(**$feedURL**) or die (" some error msg ");*

just replace this few lines ..

    $ch = curl_init() or die ( curl_error() );
    curl_setopt( $ch, CURLOPT_URL, **$feedURL** );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$sxml = new SimpleXMLElement($data);

i'm already using this in my byethost.com free hosting plan see it http://yaaya.mobi/downloads/videos

External image (may be gone) Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader PHP Tutorials: [How to Secure Your PHP Script (PHP SECURITY)](http://coding-talk.com/f14/how-to-secure-you…

ranzit2 Developer · 187 posts #12

rdxmob wrote: when download video then this msg appear

Redirection Status

The URL was redirected to . Please click the link to go there.

You can enable the automatic redirection in Preferences.

right click on page and click site preference.then enable auto redirection in setting in ur opera..this script working fine.

she is beautifull than php.and i love her more than php.

strikingv Developer · 70 posts #13

it may work fine for him. what about his visitors?

ranzit2 Developer · 187 posts #14

strikingv wrote: it may work fine for him. what about his visitors?

the redirection is enabled by default in opera.may b he switched off..

she is beautifull than php.and i love her more than php.

rdxmob Developer · 68 posts #15

firemax wrote: hello, you don't need to buy paid hosting or change server settings for this script.. but you must change this script, bcoz its use a $sxml = simplexml_load_file($feedURL) function for get feeds. this function is using a php fopen , but free hosting providers disable it.. just this is the solution for this problem..

find simplexml_load_file($feedURL) function in your script and replace this code to it.. example- in this script index page code, you can see this function as this

    *$sxml = simplexml_load_file(**$feedURL**) or die (" some error msg ");*

just replace this few lines ..

    $ch = curl_init() or die ( curl_error() );
    curl_setopt( $ch, CURLOPT_URL, **$feedURL** );

curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); $data = curl_exec( $ch ); curl_close( $ch ); $sxml = new SimpleXMLElement($data);

i'm already using this in my byethost.com free hosting plan see it Yaaya.mobi Free Mobile Videos Download

which file i use this snippet can u post ur full script 😍

heykooldude Junior · 32 posts #16

full script pls

ya firemax, it will be good if you can post the whole edited script coz i did edit the simplexml_loadfile the way you posted, doesnt seem to work.

firemax Developer · 221 posts #17

you must edit this code in all of pages in your script.. i'll give you my script for all after publish my wap site.. because it's my own edition.

this is a more explain about how to that.

  1. Open your youtube script index.php page and find this location

/ for each category
// set feed URL $feedURL = "http://gdata.youtube.com/feeds/mobile/videos/-/{$c['term']}?max-results=1&orderby=viewCount&format=1";

  // read feed into SimpleXML object
  **$sxml** = simplexml_load_file(**$feedURL**);
  
  // get summary counts from opensearch: namespace
  $counts = $sxml->children('http://a9.com/-/spec/opensearchrss/1.0/');
  $total = $counts->totalResults; 
  1. then add comment (recommend) or remove to red field, as follow

/ for each category
// set feed URL $feedURL = "http://gdata.youtube.com/feeds/mobile/videos/-/{$c['term']}?max-results=1&orderby=viewCount&format=1";

 // read feed into SimpleXML object
  /* **$sxml** = simplexml_load_file(**$feedURL**); */
  
  // get summary counts from opensearch: namespace
  $counts = $sxml->children('http://a9.com/-/spec/opensearchrss/1.0/');
  $total = $counts->totalResults; 
  1. Ok, now ad do that, as follow code..

/ for each category
// set feed URL $feedURL = "http://gdata.youtube.com/feeds/mobile/videos/-/{$c['term']}?max-results=1&orderby=viewCount&format=1";

  // read feed into SimpleXML object

    $ch = curl_init() or die ( curl_error() );
    curl_setopt( $ch, CURLOPT_URL, **$feedURL** );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
*$sxml* = new SimpleXMLElement($data);

  /**$sxml *= simplexml_load_file(**$feedURL**); */
  
  // get summary counts from opensearch: namespace
  $counts = $sxml->children('http://a9.com/-/spec/opensearchrss/1.0/');
  $total = $counts->totalResults; 

thats all, do that for whole your script.. please be sure bold and italic variables are same both curl and commented lines.. every free hosting providers are support for curl..

External image (may be gone) Free Mobile Web Scripts by me: Free Youtube Downloader, Tweets Reader, Facebook Wall Posts Reader PHP Tutorials: [How to Secure Your PHP Script (PHP SECURITY)](http://coding-talk.com/f14/how-to-secure-you…

murshid7 Junior · 22 posts #18

hi brother please tell me where is the sql for youtube script and please tell me how to make it to work can we put it in a wap site and associate with it?

subzero Super moderator Fellow · 3,954 posts #19

murshid7 wrote: hi brother please tell me where is the sql for youtube script and please tell me how to make it to work can we put it in a wap site and associate with it?

Search for it and its in this topic lol

http://coding-talk.com/f16/youtube-script-error-download-face-of-5205/#post42750

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close