description

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Dweebo
Forum Newbie
Posts: 4
Joined: Fri Dec 17, 2010 1:56 pm

description

Post by Dweebo »

Is their such thing as

$Description

I downloaded a "script"

and the description on Google just shows up as my domain name..

I'm in the config file and I notice their is a

$site="http://www.lyricsbot.net/"; // leave trailing slash /
$title="Lyricsbot.net";

but no description..
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: description

Post by Jonah Bron »

Without seeing the script, we have no way of knowing. You can change the description with a <meta> tag though like this:

Code: Select all

<meta name="description" content="This is the description here." />
That HTML would need to be placed in the <head> tag in your HTML.
User avatar
Dweebo
Forum Newbie
Posts: 4
Joined: Fri Dec 17, 2010 1:56 pm

Re: description

Post by Dweebo »

Thanks! yeah that I knew I just wasn't sure if I could use it because of the layout for this script... the "config" file is as follows..

Code: Select all

<?php

$site="http://www.lyricsbot.net/"; // leave trailing slash /
$title="Lyricsbot.net";
$index_cache=24; // How many hours will the script keep the home page cache - 24 hours recommended.
$lyrics_cache=90; // How many days will the script keep the lyrics cache - 90 days recommended.

$use_proxy='no'; // use either  yes or  no

if ($use_proxy=="yes"){
// Please test the proxy and make sure it works before using it in the config fields below
$proxy_ip = '';  // use format ip:port  ex. 202.106.121.134:80 - get more from http://www.samair.ru/proxy/time-01.htm
$proxy_user = :';  // use format user: - some proxies don't need user/pass so in such case make it $proxy_user = '';
} 

$cookiefile='cookies.txt'; // better leave this as it is.

// don't modify under this line.


function getstring($a,$b,$c){ 
$y = explode($b,$a);
$x = explode($c,$y[1]);
return $x[0];
}
function getstring_artist($a,$b,$c){ 
$y = explode($b,$a,2);
$x = explode($c,$y[1],2);
return $x[0];
}
Last edited by Dweebo on Fri Dec 17, 2010 2:20 pm, edited 1 time in total.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: description

Post by Jonah Bron »

Not the config file, the script you downloaded. And please use the PHP Code button to surround your code with

Code: Select all

[/syntax ] tags.
User avatar
Dweebo
Forum Newbie
Posts: 4
Joined: Fri Dec 17, 2010 1:56 pm

Re: description

Post by Dweebo »

Sorry about that.. Changed!.

umm well the site is http://www.lyricsbot.net

its "Scripteen Lyrics Search Engine"
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: description

Post by Jonah Bron »

Well, without scanning through the whole code, since $description wasn't in the default config, it probably doesn't work.
User avatar
Dweebo
Forum Newbie
Posts: 4
Joined: Fri Dec 17, 2010 1:56 pm

Re: description

Post by Dweebo »

hmm, I'm really stuck on what I should do. :(
Post Reply