Jump to content

php video script help -


exaR

Recommended Posts

Hi Basically i purchased this php video script that searches all major video sites and pulls back the results.

 

Basically i can't get it working don't know whats wrong but it's all php based. I've tried getting help from them, they say they have no idea whats wrong.

 

I was wondering if anyone could take a quick look for me.

 

http://www.exarmedia.co.uk

 

Try and search for anything and you get page not found, it doesn't seem to want to work =s, i have all the files if anyone wants me to upload.

 

php is the only code i don't really know which is annoying as it's one of the biggest! I'm learning it slowly though inbetween work =]

 

Thanks for any replies

 

exaR

Link to comment
https://forums.phpfreaks.com/topic/130711-php-video-script-help/
Share on other sites

To me it looks like a mod_rewrite issue. I'm not sure though. If it is mod_rewrite then it's not a PHP problem. Are you 100% sure you've done all the correct configuration.

And there is a Third Party Scripts board that this should be on. :)

Ah right, sorry for placing in the wrong spot =].

I'm at work so don't have much time to search through things.

 

Yeah all the readme told me to do is chmod 777 to 3 txt files.

 

What chmod should my php files be? 755?

 

 

Thanks for the quick reply by the way.

 

exaR

Heres a link to the script. I also have the 4.0 deluxe that i bought to see if it was the version problem but turns out it wasnt.

 

http://exarmedia.co.uk/video_search_engine_v2.0_by_phpvideosearch.zip

 

If anyone can take a look n see why the thing doesn't work me mee, it would be very much appreciated!

 

exaR

Hi mate.

 

Well i downloaded the script,

 

it has some REALLY bad coding in it, but thats beside the point.

 

the script itself should work.

 

i installed in on my localhost and it workis fine, i suggest you reupload the entire script.

 

Matt

although if it doesnt work after reupload try replacing the index page with this:

 

<?php
error_reporting(1);
$searchterms = trim(str_replace(" ","+",$_GET["search"]));
$searchterms = stripslashes(trim(str_replace("-","+",$_GET["search"])));
$searchterms2 = stripslashes(ucwords(str_replace("+"," ",$searchterms)));
?>
<html>

<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta name="robots" content="INDEX, FOLLOW" />
<title>Multiple source video search<?php if($searchterms) echo " - $searchterms2"; ?></title>
<style type="text/css">
<!--
.style6 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #000000;
}
.style8 {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; }
-->
</style>
</head>

<body>
<style>
body,td { font-family: verdana; font-size: 8pt; }
body { background: #FFFFFF; }
td { font-family: verdana; font-size: 8pt; vertical-align: middle; }
table { border-collapse: collapse; }
a,a:hover,a:visited,a:active { font-family: verdana; font-size: 7pt; text-transform: uppercase; color: #000000; font-weight: bold; text-decoration: none; }
a:hover { color: #008800; }
</style>

<script language="javascript" src="js.js"></script>
<form action="search.php" method="post">
<p align="center">

<?php
if(!$searchterms) {
echo "<br><br><br><br><br>";
}
?>

<img src="header.jpg" border=0><br>
<table width="250" border=0>
<tr><td width="146"><input type="text" name="search" style="font-family: verdana; font-size: 8pt; background: #FFFFFF; border: 1px solid #D5DCE4; width: 140px; height: 20px; padding-left: 5px;"></td><td width="94"><input type="submit" value="Search" style="height: 24px;"></td></tr></table>
</p>
</form>


<?php
if($searchterms) {
include("merge.php");
$videos = getall($searchterms);
echo "<div align='center'>";
include "ad-search.html";
echo "</div>";
echo "<br>";
include("main.php");
}
include("views.php");
?>

<div align="center"><table width="400" border=0><tr><td>
<div style="font-size: 7pt; color: #444444">
<p align="center"><span class="style6">Overall Views:</span> <?php getviews(); ?></p>
<br>
<p align="center"><span class="style8">Latest searches:</span> 
  <?php include_once("latest.php"); getlatest(); ?></p>
<br>
<p align="center" class="style8">All videos copyright to their respective owners.<br> 
©2008 PhpVideoSearch.com</p>
</div>
</td></tr></table>

</body>

</html>

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.