elyfrank
Members-
Posts
45 -
Joined
-
Last visited
Everything posted by elyfrank
-
Teamatomic, Thanks for trying to help me. still doesn't work. this is what I got so far: <?php $mydomain = "www.yourwebsite.com"; // Set this to your domain $list = file_get_contents("sites.txt"); $urls = explode ("\n", $list); echo "<B>Checking back links to $mydomain....</B><P><FONT SIZE=-1>"; $urls = explode ("\n", $list); foreach ($urls as $url) { if (strlen ($url)) { echo $url . "<B><FONT COLOR="; sleep(10); if (strpos (file_get_contents("$url"), $mydomain) !== false) { echo "GREEN> Found"; } else { echo "RED> Missing"; } echo "</FONT></B><BR>"; } } echo "</FONT>"; ?>
-
Same error
-
Same error, They all say missing but the last one.
-
I know all these three have my link. http://for-the-love-of-dogsdotnet/index.cfm?id=4214&fuseaction=browse&pageid=95 Missing http://www.information-about-dogsdotcom/pet-links-5.html Warning: file_get_contents(http://www.information-about-dogsdotcom/pet-links-5.html ) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /hermes/bosweb/check.php on line 9 RED> Missing http://pipdoggy.com/catalog/linksdotphp?lPath=10 Found I replaced .com for dotcom in case you wanted to check those pages.
-
I know that. I just put those two to see if the script was working.
-
::http://for-the-love-of-dogs.net/index.cfm?id=4214&fuseaction=browse&pageid=95 :: ::http://www.google.com :: ::http://www.yahoo.com::
-
Good guess. That was the first thing i checked too. That is not the problem. anything else? Thanks
-
>:(Hi guys, Maybe somebody can help me out here. I have this php file that read urls from a text file where my link should be placed. The script works fine with one link but when I add a second link I get this error:failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in check.php on line 8 RED> Missing or this one: all the links say missing. This is the script: <?php $mydomain = "www.yourwebsite.com"; // Set this to your domain $list = file_get_contents("sites.txt"); $urls = explode ("\n", $list); echo "<B>Checking back links to $mydomain....</B><P><FONT SIZE=-1>"; foreach ($urls as $url) { if (strlen ($url)) { echo $url . "<B><FONT COLOR="; if (strpos (file_get_contents($url), $mydomain) != FALSE) { echo "GREEN> Found"; } else { echo "RED> Missing"; } echo "</FONT></B><BR>"; } } echo "</FONT>"; ?>
-
Hi, I am trying to add fields to this form and send the fields to email. I am able to upload a file to my server but I need other info to go to an email. --------------------------------------------------------------------------------------------- This is the form: ---------------------------------------------------------------------------------------------- <form id="Upload" action="<?php echo $uploadHandler ?>" enctype="multipart/form-data" method="post"> <h1> Upload form </h1> <p> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size ?>"> </p> <p> <label for="file">File to upload:</label> <input id="file" type="file" name="file"> <label for="subject">Subject:</label> <input name="subject" type="text" size="40" /> </p> <p> <label for="submit">Press to...</label> <input id="submit" type="submit" name="submit" value="Upload me!"> </p> </form> ---------------------------------------------------------------- Some how I need to add this line in the php file that process the form but I don't how to do it. mail($your_email, $_POST['subject'] below is the php file that process the form: ------------------------------------------------------------------ <?php // filename: upload.processor.php // first let's set some variables // make a note of the current working directory, relative to root. $directory_self = str_replace(basename($_SERVER['PHP_SELF']), '', $_SERVER['PHP_SELF']); // make a note of the directory that will recieve the uploaded files $uploadsDirectory = $_SERVER['DOCUMENT_ROOT'] . $directory_self . 'uploaded_files/'; // make a note of the location of the upload form in case we need it $uploadForm = 'http://' . $_SERVER['HTTP_HOST'] . $directory_self . 'upload.form.php'; // make a note of the location of the success page $uploadSuccess = 'http://' . $_SERVER['HTTP_HOST'] . $directory_self . 'upload.success.php'; // name of the fieldname used for the file in the HTML form $fieldname = 'file'; // Now let's deal with the upload // possible PHP upload errors $errors = array(1 => 'php.ini max file size exceeded', 2 => 'html form max file size exceeded', 3 => 'file upload was only partial', 4 => 'no file was attached'); // check the upload form was actually submitted else print form isset($_POST['submit']) or error('the upload form is neaded', $uploadForm); // check for standard uploading errors ($_FILES[$fieldname]['error'] == 0) or error($errors[$_FILES[$fieldname]['error']], $uploadForm); // check that the file we are working on really was an HTTP upload @is_uploaded_file($_FILES[$fieldname]['tmp_name']) or error('not an HTTP upload', $uploadForm); // validation... since this is an image upload script we // should run a check to make sure the upload is an image @getimagesize($_FILES[$fieldname]['tmp_name']) or error('only image uploads are allowed', $uploadForm); // make a unique filename for the uploaded file and check it is // not taken... if it is keep trying until we find a vacant one $now = time(); while(file_exists($uploadFilename = $uploadsDirectory.$now.'-'.$_FILES[$fieldname]['name'])) { $now++; } // now let's move the file to its final and allocate it with the new filename @move_uploaded_file($_FILES[$fieldname]['tmp_name'], $uploadFilename) or error('receiving directory insuffiecient permission', $uploadForm); // If you got this far, everything has worked and the file has been successfully saved. // We are now going to redirect the client to the success page. header('Location: ' . $uploadSuccess); // make an error handler which will be used if the upload fails function error($error, $location, $seconds = 5) { header("Refresh: $seconds; URL=\"$location\""); echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'."\n". '"http://www.w3.org/TR/html4/strict.dtd">'."\n\n". '<html lang="en">'."\n". ' <head>'."\n". ' <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">'."\n\n". ' <link rel="stylesheet" type="text/css" href="stylesheet.css">'."\n\n". ' <title>Upload error</title>'."\n\n". ' </head>'."\n\n". ' <body>'."\n\n". ' <div id="Upload">'."\n\n". ' <h1>Upload failure</h1>'."\n\n". ' <p>An error has occured: '."\n\n". ' <span class="red">' . $error . '...</span>'."\n\n". ' The upload form is reloading</p>'."\n\n". ' </div>'."\n\n". '</html>'; exit; } // end error handler ?>
-
Hi, Guys I hope you can help me with this one. How can I add a form field to send in an email. The upload file form is working, I just need to received an email with some fields once the customer uploaded the file. See the code attached. Thank you very much! > [attachment deleted by admin]
-
It doesn't show anything. It supouse to show a report if the link exist or not. You can see it working here. http://www.finalwebsites.com/demos/php_back_link_checker.php Maybe I am missing something. Thanks.
-
Hi Guys, I copied a script to monitor backlinks but I can't make it work. This is the script: ----------------------------------------------------------- <?php function check_back_link($remote_url, $your_link) { $match_pattern = preg_quote(rtrim($your_link, "/"), "/"); $found = false; if ($handle = @fopen($remote_url, "r")) { while (!feof($handle)) { $part = fread($handle, 1024); if (preg_match("/<a(.*)href=[\"']".$match_pattern. "(\/?)[\"'](.*)>(.*)<\/a>/", $part)) { $found = true; break; } } fclose($handle); } return $found; } ?> --------------------------------------------------------------- And this is the form I use. In this page:http://www.flyawaytrip.com/link_checker.php --------------------------------------------------------------- <form method="post" action="link.php" style="margin-top:20px;"> <div> <label for="remote">Enter a valid target URL (target website) <br /></label> <input name="remote" type="text" id="remote" value="" size="50" /> </div> <div> <label for="my_link">Enter here the URL you want to search inside the html code of the target website<br /></label> <input name="my_link" type="text" id="my_link" value="" size="75" /> </div> <div> <input type="submit" name="Submit" value="Check!" /> </div> </form> ----------------------------------------------------------------- Thank you
-
It is working, thanks. For some reason wasn't showing up before.
-
here http://flyawaytrip.com
-
The feeds are not showing up. It works fine on Internet Explorer
-
Sorry to bother you again. It is not working with Firefox, Do you know how to solve this problem? Thanks again
-
It worked! You are the best! Thank you very much!
-
I would like somebody to guide me on how can I show this feeds on my webpage. I think I am missing some kind of code to show this feeds I can't figure out. Sorry for my ignorance on php. Thank you for your time this is what I have on the head of the page <link href="http://flyawaytrip.com/main.php?"XMLFILE=http://rss.news.yahoo.com/rss/topstories&TEMPLATE=main.htm&MAXITEMS=<max-items> this is what I have on the body <?php include('http://www.flyawaytrip.com/main.php'); ?> This is what the main.php has that I can change: // If XLMFILE is passed as part of the URL, XMLFILE=, then it will be used // otherwise the the file below is used. //$XMLfilename = "http://rss.news.yahoo.com/rss/topstories"; $XMLfilename = "http://rss.news.yahoo.com/rss/topstories"; // // If TEMPLATE is passed as part of the URL. TEMPLATE=, then it will be used // otherwise the the file below is used. //$TEMPLATEfilename = "http://www.flyawaytrip.com/main.htm"; $TEMPLATEfilename = "http://www.flyawaytrip.com/main.htm";
-
Hi guys, I am trying to use the rss2html.php on my website and for some reason it display the feeds with no problem when I display rss2html.php. The problem is that I am trying to call it from my webpage and it doesn't work. This is the webpage I am trying to show the the rss feeds http://flyawaytrip.com/index-php.php it suppouse to show just below the news at the left corner. An this is the rss2html.php (I changed the name to main.php) webpage showing the feeds. http://www.flyawaytrip.com/main.php Any help will be appreciate it. thank you very much.