IMpossible
Supreme Member
- Apr 15, 2012
- 1,344
- 304
Has anyone figured yet out why my pics are NOT getting linked to the md5 file, but instead to the original file name, thus resulting in not displaying the picture?
Should be a option on that page to add a user to a database
Grabber works fine on hostgator baby plan, but it didn't work on my old host.
You're host is the problem.
The grabber issue doesn't seem to be related to the host, I've tried it using both a hostwinds account and hostgator neither are posting to the site or database. All I get is an email with the posts listed.
Having problems with the grabber. I can get it to run, but am getting the following error message in the email notification:
line 1: ?php: No such file or directory
line 3: syntax error near unexpected token `'classes/settings.php''
line 3: `include_once ('classes/settings.php');'
Please help if you can.
Still no luck, would appreciate some help. my sk ype is brendan4tthanks
im running grabber on godaddy hosting im getting the emails from the cron with this in error any ideas? No valid argv provided
Who knows how fix grabber ?
<?php header('Content-type: text/xml; charset=utf-8'); ?>
<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n"; ?>
<?php echo "<rss xmlns:atom=\"http://www.w3.org/2005/Atom\" version=\"2.0\">\r\n"; ?>
<?php
error_reporting(0);
include("xmlparse.php");
include("sitesarray.php");
function p_array($array) {
echo "<pre>";
print_r($array);
echo "</pre>";
}
$forbiddentitles = array(
"damnlol",
"damnyouautocorrect"
);
function format_website($string) {
if (preg_match("/http:\/\//i",$string)) {
$string = str_replace("http://","",$string);
}
if (preg_match("/www/i",$string)) {
$string = str_replace("www.","",$string);
}
if (preg_match("/\//i",$string)) {
$string = explode("/",$string);
$string = $string[0];
}
return $string;
}
function get_images($file){
global $sites;
$dom = new DOMDocument();
$dom->loadHTML($file);
// To hold all your links...
$links = array();
// Get all images
$imgs = $dom->getElementsByTagName("img");
foreach($imgs as $img) {
// Check the src attr of each img
$src = "";
$src = $img->getAttribute("src");
$links[] = $src;
break;
}
return $links;
}
function cleantitle($title) {
global $forbiddentitles;
$proceed = "yes";
foreach ($forbiddentitles as $f) {
if (preg_match("/$f/i",$title)) {
$proceed = "no";
break;
}
}
return ($proceed == "yes") ? true:false;
}
function getExt($img) {
$str = pathinfo($img);
$ext = strtolower($str["extension"]);
if ($ext == "jpg" || $ext == "jpeg" || $ext == "png" || $ext == "gif") {
return true;
} else {
return false;
}
}
function validateImg($img) {
if (preg_match("/http:\/\//i",$img) == true && getExt($img) == true) {
return true;
} else {
return false;
}
}
$domain = format_website($_GET["site"]);
foreach ($sites as $site) {
$sxml = xml2array($site);
foreach ($sxml["rss"]["channel"]["item"] as $s) {
$createitem = false;
$imgvalid = false;
$imagelink = array();
$img = "";
$title = "";
$link = "";
$title = $s["title"];
$link = $s["guid"];
if ($link == "") {
$link = $s["link"];
}
if ($link == "") {
$link = $domain;
}
if (isset($s["link"]["1_attr"]["href"])) {
$img = $s["link"]["1_attr"]["href"];
}
if (validateImg($img) == true) {
$imgvalid = true;
}
if (isset($s["content:encoded"])) {
if ($imgvalid == false) {
$imagelink = get_images($s["content:encoded"]);
$img = $imagelink[0];
}
}
if (validateImg($img) == true) {
$imgvalid = true;
}
if (isset($s["description"])) {
if ($imgvalid == false) {
$imagelink = get_images($s["description"]);
$img = $imagelink[0];
}
}
if (validateImg($img) == true) {
$imgvalid = true;
}
if ($imgvalid == true && $title != "" && $img != "" && cleantitle($title) == true) {
$createitem = true;
}
if ($createitem == true) {
echo "\r\n\t<item>\r\n";
echo "\t\t<title>".htmlspecialchars($title)."</title>\r\n";
echo "\t\t<img>".$img."</img>\r\n";
echo "\t\t<source>".$link."</source>\r\n";
echo "\t</item>\r\n\r\n";
}
}
}
echo "</rss>\r\n";
?>
I also have the hostgator baby plan! I have even called hostagtor as mentioned in my post. The cron itself is working, since I am getting an email with all the posts it grabbed, but they are not being posted to my site or database.
Do you know how to fix this aswell?... Btw, I cannot get adsense on my website
I also have the hostgator baby plan! I have even called hostagtor as mentioned in my post. The cron itself is working, since I am getting an email with all the posts it grabbed, but they are not being posted to my site or database.
View attachment 13364
Do you know how to fix this aswell?... Btw, I cannot get adsense on my website
I'm using godaddy. When I try "php /home/myusername/public_html/mysite.com/grabber/grabber.php start" or "php -q /home/myusername/public_html/mysite.com/grabber/grabber.php", I get an error email saying "/bin/sh: php: command not found".
You are changing the "myusername" and "mysitename" to your own, right? Other than that, Call your host and ask them for the correct path you need to run the cron. These are working with hostgator. Still not posting to my site, but I'm not getting any errors from the cron itself.
You don't point to /grabber/grabber.php you point to /public_html/grabber.php
You guys don't read instructions correctly, then you've already lost.
It had trouble at first, but follow the instructions to a T, and re-upload from zip via ftp. You will love this script, it's autopilot. You just have to promote site a bit, for substantial revenue.
Everything is working fine on my site. I even tweaked the template, buttons, and added pages. My website is in the list of domains drdankmendez listed
You don't point to /grabber/grabber.php you point to /public_html/grabber.php
You guys don't read instructions correctly, then you've already lost.
It had trouble at first, but follow the instructions to a T, and re-upload from zip via ftp. You will love this script, it's autopilot. You just have to promote site a bit, for substantial revenue.
Everything is working fine on my site. I even tweaked the template, buttons, and added pages. My website is in the list of domains drdankmendez listed
does google every penalize you for copying content?
Finally got the grabber working and posting to the site with this cron:
php /home/myusername/public_html/mysite/grabber.php start
BUT, now I have another problem. I went through the posts that the grabber posted to the site and removed a few that were semi-nude to avoid problems with adsense, etc and now everytime the cron runs it will only post the images that I just deleted. I deleted 5 posts, then the cron ran and re-posted ONLY the 5 images I deleted. Any ideas on this?