Computer Hope

Internet & Networking => Web design => Topic started by: Kyle on December 11, 2007, 10:45:40 PM

Title: YouTube Clone php (New Webmaster)
Post by: Kyle on December 11, 2007, 10:45:40 PM
I am a new Webmaster and got a YouTube clone on Ebay-Said it was easy.lol
Could not find any info anywhere.Below is the zip file-I did un-zip mine.
Thanks-Just hope someone can help me =]


http://www.ghhwebsolutions.com/DigitalStore1746/websites/YouTubeClone_7h9s2m5f9.zip
Title: Re: YouTube Clone php (New Webmaster)
Post by: Kyle on December 11, 2007, 10:47:05 PM
Guess I was not that clear I want it to be the homepage of my site...
Also below is the demo:
http://ghhwebsolutions.com/demo/youtube/
Title: Re: YouTube Clone php (New Webmaster)
Post by: Astoria on December 12, 2007, 03:21:46 PM
If you have your own site, use a FTP client to upload the unzipped files to your site.
Title: Re: YouTube Clone php (New Webmaster)
Post by: Kyle on December 12, 2007, 05:02:54 PM
I do.
I also have now SmartFTP Client.
And I did that but,looks like it did not work.
See:
http://www.blacklinevid.com
If you have your own site, use a FTP client to upload the unzipped files to your site.
Title: Re: YouTube Clone php (New Webmaster)
Post by: Astoria on December 12, 2007, 08:24:36 PM
I clicked a little further untill I was at http://www.blacklinevid.com/YouTubeClone/YouTubeClone_7h9s2m5f9/
I assume this is where all the files are.

and got this error.

Failed opening required 'c:\MyWeb/smarty/libs/Smarty.class.php'

Ofcourse that's wrong coding, because on the webserver there is no "c:\MyWeb\" folder.




Title: Re: YouTube Clone php (New Webmaster)
Post by: Kyle on December 12, 2007, 11:46:05 PM
Yes,Saw that...Do you know how I can fix it? ???
YouTubeClone\YouTubeClone_7h9s2m5f9\smarty\libs
Smarty.class(62 KB) PHP file.
I found the above in the YouTubeClone I have saved on my destop.

I clicked a little further untill I was at http://www.blacklinevid.com/YouTubeClone/YouTubeClone_7h9s2m5f9/
I assume this is where all the files are.

and got this error.

Failed opening required 'c:\MyWeb/smarty/libs/Smarty.class.php'

Ofcourse that's wrong coding, because on the webserver there is no "c:\MyWeb\" folder.





Title: Re: YouTube Clone php (New Webmaster)
Post by: Kyle on December 13, 2007, 12:31:50 AM
Also I read that for this script to work I need PHP/MYSQL-I have that.
But,It also says I need  ffmpeg and ffmpeg-php not really sure what this is even... :(
Title: Re: YouTube Clone php (New Webmaster)
Post by: Astoria on December 13, 2007, 12:49:25 AM
How to fix the error (c:\MyWeb\etc...) I'll look into that tomorrow morning.

And I never heard of ffmpeg, i will look into that tomorrow as well.

Since it's almost 1am here, it's time for me to get some sleep :)

Hopefully I can provide you with some help/info to help you further tomorrow!
Title: Re: YouTube Clone php (New Webmaster)
Post by: michaewlewis on December 13, 2007, 01:27:52 PM
who's your webhost? Do they have a control panel that you can access (like CPanel)?
Title: Re: YouTube Clone php (New Webmaster)
Post by: Astoria on December 13, 2007, 02:23:28 PM
who's your webhost? Do they have a control panel that you can access (like CPanel)?

What good is Cpanel going to do, if there are errors in the script??  ???  :P

@Kyle: I'm still working on it
Title: Re: YouTube Clone php (New Webmaster)
Post by: Kyle on December 13, 2007, 09:08:27 PM
My host is www.newvisionhost.com
And yes I have CPanelX
who's your webhost? Do they have a control panel that you can access (like CPanel)?
Title: Re: YouTube Clone php (New Webmaster)
Post by: michaewlewis on December 14, 2007, 10:48:15 AM
What good is Cpanel going to do, if there are errors in the script??  ???  :P

Just looking for more info about the server and services.


open config.php (the one referenced in the fatal error on the linked page) in a text editor and find line 44 where the C:\... part is and change that to point to the proper directory where Smarty.class.php is.
Also check to see if there are any other places where the C: is and make changes accordingly. But before making these changes, you may want to make a backup copy of the files. (always make backups) ;)

Also check in your CPanel and see what options are available for php. Sometimes server hosts will shut off options by default and it could be stopping the program from running. Check the requirements for your program and make sure they match up with the available options on the server. I've never seen the ffmpeg extension for php, so it may be something you have to install. Did it come with your program?
Title: Re: YouTube Clone php (New Webmaster)
Post by: Astoria on December 14, 2007, 11:25:10 AM
Actually it's not line 44, it's line 5:

$config['BASE_DIR']        =  'c:\\MyWeb';

Line 44 is this:

require_once($config['BASE_DIR'].'/smarty/libs/Smarty.class.php');

change line 5 into:

$config['BASE_DIR']        =  'http://www.blacklinevid.com/YouTubeClone;

About ffmpeg: (taken from wikipedia)
Quote
FFmpeg is a collection of software libraries that can record, convert and stream digital audio and video in numerous formats. It includes libavcodec, an audio/video codec library used by several other projects, and libavformat, an audio/video container mux and demux library.

You would have to ask if your webserver supports thies software.