Jump to content

Recommended Posts

Hi Guyz.

 

This code was working and all of a sudden it is not displaying anything. Is there anything that stands out to you that may be causing this or could it be I have been blocked and if, so how can i find out of my code is not grabbing anything?

Had to cut some form selections to make the 40,000 limit

 

Thanks guyz.

 

 <?php
$st = isset($_POST['submit']) ? $_POST['state'] : '';

$urls = array();

if ($st == "AL") 
{
$urls = array("http://auburn.craigslist.org", "http://bham.craigslist.org");
}
else if ($st == "auburn") 
{
$urls= array("http://auburn.craigslist.org");
}
else if ($st == "bham") 
{
$urls= array("http://bham.craigslist.org");
}
else if ($st == "columbusga") 
{
$urls= array("http://columbusga.craigslist.org");
}
else if ($st == "dothan") 
{
$urls= array("http://dothan.craigslist.org");
}
else if ($st == "shoals") 
{
$urls= array("http://shoals.craigslist.org");
}
else if ($st == "gadsden") 
{
$urls= array("http://gadsden.craigslist.org");
}
else if ($st == "huntsville") 
{
$urls= array("http://huntsville.craigslist.org");
}
else if ($st == "montgomery") 
{
$urls= array("http://montgomery.craigslist.org");
}

else if ($st == "ALASKA") 
{
$urls= array("http://alaska.craigslist.org");
}
else if ($st == "anchorage") 
{
$urls= array("http://anchorage.craigslist.org");
}
else if ($st == "fairbanks") 
{
$urls= array("http://fairbanks.craigslist.org");
}
else if ($st == "kenai") 
{
$urls= array("http://kenai.craigslist.org");
}
else if ($st == "juneau") 
{
$urls= array("http://juneau.craigslist.org");
}
else if ($st == "ARIZONA") 
{
$urls= array("http://arizona.craigslist.org");
}

else if ($st == "flagstaff") 
{
$urls= array("http://flagstaff.craigslist.org");
}
else if ($st == "mohave") 
{
$urls= array("http://mohave.craigslist.org");
}
else if ($st == "phoenix") 
{
$urls= array("http://phoenix.craigslist.org");
}

else if ($st == "prescott") 
{
$urls= array("http://prescott.craigslist.org");
}
else if ($st == "showlow") 
{
$urls= array("http://showlow.craigslist.org");
}
else if ($st == "sierravista") 
{
$urls= array("http://sierravista.craigslist.org");
}
else if ($st == "tucson") 
{
$urls= array("http://tucson.craigslist.org");
}
else if ($st == "yuma") 
{
$urls= array("http://yuma.craigslist.org");
}

else if ($st == "ARKANSAS") 
{
$urls= array("http://arkansas.craigslist.org");
}

else if ($st == "fayar") 
{
$urls= array("http://fayar.craigslist.org");
}
else if ($st == "fortsmith") 
{
$urls= array("http://fortsmith.craigslist.org");
}
else if ($st == "jonesboro") 
{
$urls= array("http://jonesboro.craigslist.org");
}
else if ($st == "littlerock") 
{
$urls= array("http://littlerock.craigslist.org");
}
else if ($st == "memphis") 
{
$urls= array("http://memphis.craigslist.org");
}
else if ($st == "texarkana") 
{
$urls= array("http://texarkana.craigslist.org");
}

else if ($st == "CALIFORNIA") 
{
$urls= array("http://california.craigslist.org");
}
else if ($st == "sfbay") 
{
$urls= array("http://sfbay.craigslist.org");
}
else if ($st == "bakersfield") 
{
$urls= array("http://bakersfield.craigslist.org");
}
else if ($st == "chico") 
{
$urls= array("http://chico.craigslist.org");
}
else if ($st == "fresno") 
{
$urls= array("http://fresno.craigslist.org");
}
else if ($st == "goldcountry") 
{
$urls= array("http://goldcountry.craigslist.org");
}
else if ($st == "hanford") 
{
$urls= array("http://hanford.craigslist.org");
}
else if ($st == "humboldt") 
{
$urls= array("http://humboldt.craigslist.org");
}
else if ($st == "imperial") 
{
$urls= array("http://imperial.craigslist.org");
}
else if ($st == "inlandempire") 
{
$urls= array("http://inlandempire.craigslist.org");
}
else if ($st == "merced") 
{
$urls= array("http://merced.craigslist.org");
}
else if ($st == "modesto") 
{
$urls= array("http://modesto.craigslist.org");
}
else if ($st == "monterey") 
{
$urls= array("http://monterey.craigslist.org");
}
else if ($st == "orangecounty") 
{
$urls= array("http://orangecounty.craigslist.org");
}
else if ($st == "palmsprings") 
{
$urls= array("http://palmsprings.craigslist.org");
}
else if ($st == "redding") 
{
$urls= array("http://redding.craigslist.org");
}
else if ($st == "reno") 
{
$urls= array("http://reno.craigslist.org");
}
else if ($st == "sacremento") 
{
$urls= array("http://sacremento.craigslist.org");
}
else if ($st == "sandiego") 
{
$urls= array("http://sandiego.craigslist.org");
}
else if ($st == "slo") 
{
$urls= array("http://slo.craigslist.org");
}
else if ($st == "santabarbara") 
{
$urls= array("http://santabarbara.craigslist.org");
}
else if ($st == "santamaria") 
{
$urls= array("http://santamaria.craigslist.org");
}
else if ($st == "siskiyou") 
{
$urls= array("http://siskiyou.craigslist.org");
}
else if ($st == "stockton") 
{
$urls= array("http://stockton.craigslist.org");
}
else if ($st == "susanville") 
{
$urls= array("http://susanville.craigslist.org");
}
else if ($st == "ventura") 
{
$urls= array("http://ventura.craigslist.org");
}
else if ($st == "visalia") 
{
$urls= array("http://visalia.craigslist.org");
}
else if ($st == "yubasutter") 
{
$urls= array("http://yubasutter.craigslist.org");
}
else if ($st == "COLORADO") 
{
$urls= array("http://colorado.craigslist.org");
}
else if ($st == "boulder") 
{
$urls= array("http://boulder.craigslist.org");
}
else if ($st == "cosprings") 
{
$urls= array("http://cosprings.craigslist.org");
}
else if ($st == "denver") 
{
$urls= array("http://denver.craigslist.org");
}
else if ($st == "eastco") 
{
$urls= array("http://eastco.craigslist.org");
}
else if ($st == "fortcollins") 
{
$urls= array("http://fortcollins.craigslist.org");
}
else if ($st == "rockies") 
{
$urls= array("http://rockies.craigslist.org");
}
else if ($st == "pueblo") 
{
$urls= array("http://pueblo.craigslist.org");
}
else if ($st == "westslope") 
{
$urls= array("http://westslope.craigslist.org");
}
else if ($st == "CONNECTICUT") 
{
$urls= array("http://connecticut.craigslist.org");
}
else if ($st == "newlondon") 
{
$urls= array("http://newlondon.craigslist.org");
}
else if ($st == "hartford") 
{
$urls= array("http://hartford.craigslist.org");
}
else if ($st == "newhaven") 
{
$urls= array("http://newhaven.craigslist.org");
}
else if ($st == "nwct") 
{
$urls= array("http://nwct.craigslist.org");
}
else if ($st == "newyork") 
{
$urls= array("http://newyork.craigslist.org");
}
else if ($st == "District of Columbia") 
{
$urls= array("http://washingtondc.craigslist.org");
}
else if ($st == "DELAWARE") 
{
$urls= array("http://delaware.craigslist.org");
}
else if ($st == "FLORIDA") 
{
$urls= array("http://florida.craigslist.org");
}
else if ($st == "daytona") 
{
$urls= array("http://daytona.craigslist.org");
}
else if ($st == "keys") 
{
$urls= array("http://keys.craigslist.org");
}
else if ($st == "fortmyers") 
{
$urls= array("http://fortmyers.craigslist.org");
}
else if ($st == "gainesville") 
{
$urls= array("http://gainesville.craigslist.org");
}
else if ($st == "cfl") 
{
$urls= array("http://cfl.craigslist.org");
}
else if ($st == "jacksonville") 
{
$urls= array("http://jacksonville.craigslist.org");
}
else if ($st == "lakeland") 
{
$urls= array("http://lakeland.craigslist.org");
}
else if ($st == "lakecity") 
{
$urls= array("http://lakecity.craigslist.org");
}
else if ($st == "ocala") 
{
$urls= array("http://ocala.craigslist.org");
}
else if ($st == "okaloosa") 
{
$urls= array("http://okaloosa.craigslist.org");
}
else if ($st == "orlando") 
{
$urls= array("http://orlando.craigslist.org");
}
else if ($st == "panamacity") 
{
$urls= array("http://panamacity.craigslist.org");
}
else if ($st == "pensacola") 
{
$urls= array("http://pensacola.craigslist.org");
}
else if ($st == "sarasota") 
{
$urls= array("http://sarasota.craigslist.org");
}
else if ($st == "miami") 
{
$urls= array("http://miami.craigslist.org");
}
else if ($st == "spacecoast") 
{
$urls= array("http://spacecoast.craigslist.org");
}
else if ($st == "staugustine") 
{
$urls= array("http://staugustine.craigslist.org");
}
else if ($st == "tallahassee") 
{
$urls= array("http://tallahassee.craigslist.org");
}
else if ($st == "tampa") 
{
$urls= array("http://tampa.craigslist.org");
}
else if ($st == "treasure") 
{
$urls= array("http://treasure.craigslist.org");
}
else if ($st == "GEORGIA") 
{
$urls= array("http://georgia.craigslist.org");
}
else if ($st == "albanyga") 
{
$urls= array("http://albanyga.craigslist.org");
}
else if ($st == "atlanta") 
{
$urls= array("http://atlanta.craigslist.org");
}
else if ($st == "augusta") 
{
$urls= array("http://augusta.craigslist.org");
}
else if ($st == "brunswick") 
{
$urls= array("http://brunswick.craigslist.org");
}
else if ($st == "albanyga") 
{
$urls= array("http://albanyga.craigslist.org");
}
else if ($st == "columbusga") 
{
$urls= array("http://columbusga.craigslist.org");
}
else if ($st == "macon") 
{
$urls= array("http://macon.craigslist.org");
}
else if ($st == "nwga") 
{
$urls= array("http://nwga.craigslist.org");
}
else if ($st == "savannah") 
{
$urls= array("http://savannah.craigslist.org");
}
else if ($st == "statesboro") 
{
$urls= array("http://statesboro.craigslist.org");
}
else if ($st == "valdosta") 
{
$urls= array("http://valdosta.craigslist.org");
}
else if ($st == "HAWAII") 
{
$urls= array("http://honolulu.craigslist.org");
}
else if ($st == "IDAHO") 
{
$urls= array("http://idaho.craigslist.org");
}
else if ($st == "boise") 
{
$urls= array("http://boise.craigslist.org");
}
else if ($st == "eastidaho") 
{
$urls= array("http://eastidaho.craigslist.org");
}
else if ($st == "lewiston") 
{
$urls= array("http://lewiston.craigslist.org");
}
else if ($st == "pullman") 
{
$urls= array("http://pullman.craigslist.org");
}
else if ($st == "spokane") 
{
$urls= array("http://spokane.craigslist.org");
}
else if ($st == "twinfalls") 
{
$urls= array("http://twinfalls.craigslist.org");
}
else if ($st == "ILLINOIS") 
{
$urls= array("http://bn.craigslist.org", "http://chambana.craigslist.org", "http://chicago.craigslist.org" , "http://decatur.craigslist.org" , "http://lasalle.craigslist.org", "http://mattoon.craigslist.org", "http://peoria.craigslist.org", "http://quadcities.craigslist.org", "http://rockford.craigslist.org", "http://carbondale.craigslist.org" );
}
else if ($st == "bn") 
{
$urls= array("http://bn.craigslist.org");
}
else if ($st == "chambana") 
{
$urls= array("http://chambana.craigslist.org");
}
else if ($st == "chicago") 
{
$urls= array("http://chicago.craigslist.org");
}
else if ($st == "decatur") 
{
$urls= array("http://decatur.craigslist.org");
}
else if ($st == "lasalle") 
{
$urls= array("http://lasalle.craigslist.org");
}
else if ($st == "mattoon") 
{
$urls= array("http://mattoon.craigslist.org");
}
else if ($st == "peoria") 
{
$urls= array("http://peoria.craigslist.org");
}
else if ($st == "quadcities") 
{
$urls= array("http://quadcities.craigslist.org");
}
else if ($st == "rockford") 
{
$urls= array("http://rockford.craigslist.org");
}
else if ($st == "carbondale") 
{
$urls= array("http://carbondale.craigslist.org");
}
else if ($st == "springfieldil") 
{
$urls= array("http://springfieldil.craigslist.org");
}
else if ($st == "stlouis") 
{
$urls= array("http://stlouis.craigslist.org");
}
else if ($st == "quincy") 
{
$urls= array("http://quincy.craigslist.org");
}
else if ($st == "INDIANA") 
{
$urls= array("http://bn.craigslist.org", "http://bloomington.craigslist.org", "http://evansville.craigslist.org" , "http://fortwayne.craigslist.org" ,"http://indianapolis.craigslist.org", "http://kokomo.craigslist.org", "http://tippycanoe.craigslist.org", "http://muncie.craigslist.org", "http://richmondin.craigslist.org", "http://southbend.craigslist.org", "http://terrahaute.craigslist.org" );
}
else if ($st == "bloomington") 
{
$urls= array("http://bloomington.craigslist.org");
}
else if ($st == "evansville") 
{
$urls= array("http://evansville.craigslist.org");
}
else if ($st == "bloomington") 
{
$urls= array("http://bloomington.craigslist.org");
}
else if ($st == "fortwayne") 
{
$urls= array("http://fortwayne.craigslist.org");
}
else if ($st == "indianapolis") 
{
$urls= array("http://indianapolis.craigslist.org");
}
else if ($st == "kokomo") 
{
$urls= array("http://kokomo.craigslist.org");
}
else if ($st == "tippycanoe") 
{
$urls= array("http://tippycanoe.craigslist.org");
}
else if ($st == "muncie") 
{
$urls= array("http://muncie.craigslist.org");
}
else if ($st == "richmondin") 
{
$urls= array("http://richmondin.craigslist.org");
}
else if ($st == "southbend") 
{
$urls= array("http://southbend.craigslist.org");
}
else if ($st == "terrahaute") 
{
$urls= array("http://terrahaute.craigslist.org");
}
else if ($st == "IOWA") 
{
$urls= array("http://ames.craigslist.org", "http://bloomington.craigslist.org", "http://cedarrapids.craigslist.org" , "http://desmoines.craigslist.org" ,"http://dubuque.craigslist.org", "http://fortdodge.craigslist.org", "http://iowacity.craigslist.org", "http://masoncity.craigslist.org", "http://omaha.craigslist.org", "http://quadcities.craigslist.org", "http://siouxcity.craigslist.org", 
"http://ottumwa.craigslist.org", "http://waterloo.craigslist.org");
}
else if ($st == "ames") 
{
$urls= array("http://ames.craigslist.org");
}
else if ($st == "cedarrapids") 
{
$urls= array("http://cedarrapids.craigslist.org");
}
else if ($st == "desmoines") 
{
$urls= array("http://desmoines.craigslist.org");
}
else if ($st == "dubuque") 
{
$urls= array("http://dubuque.craigslist.org");
}
else if ($st == "fortdodge") 
{
$urls= array("http://fortdodge.craigslist.org");
}
else if ($st == "iowacity") 
{
$urls= array("http://iowacity.craigslist.org");
}
else if ($st == "masoncity") 
{
$urls= array("http://masoncity.craigslist.org");
}
else if ($st == "omaha") 
{
$urls= array("http://omaha.craigslist.org");
}
else if ($st == "quadcities") 
{
$urls= array("http://quadcities.craigslist.org");
}
else if ($st == "siouxcity") 
{
$urls= array("http://siouxcity.craigslist.org");
}
else if ($st == "ottumwa") 
{
$urls= array("http://ottumwa.craigslist.org");
}
else if ($st == "waterloo") 
{
$urls= array("http://waterloo.craigslist.org");
}
else if ($st == "KANSAS") 
{
$urls= array("http://kansascity.craigslist.org","http://lawrence.craigslist.org","http://ksu.craigslist.org","http://nwks.craigslist.org","http://salina.craigslist.org","http://seks.craigslist.org","http://swks.craigslist.org", "http://topeka.craigslist.org","http://wichita.craigslist.org");
}
else if ($st == "kansascity") 
{
$urls= array("http://kansascity.craigslist.org");
}
else if ($st == "lawrence") 
{
$urls= array("http://lawrence.craigslist.org");
}
else if ($st == "ksu") 
{
$urls= array("http://ksu.craigslist.org");
}
else if ($st == "nwks") 
{
$urls= array("http://nwks.craigslist.org");
}
else if ($st == "salina") 
{
$urls= array("http://salina.craigslist.org");
}
else if ($st == "seks") 
{
$urls= array("http://seks.craigslist.org");
}
else if ($st == "swks") 
{
$urls= array("http://swks.craigslist.org");
}
else if ($st == "topeka") 
{
$urls= array("http://topeka.craigslist.org");
}
else if ($st == "wichita") 
{
$urls= array("http://wichita.craigslist.org");
}
else if ($st == "KENTUCKY") 
{
$urls= array("http://bgky.craigslist.org","http://cincinnati.craigslist.org","http://wichita.craigslist.org","http://eastky.craigslist.org","http://huntington.craigslist.org","http://lexington.craigslist.org","http://louisville.craigslist.org","http://owensboro.craigslist.org","http://westky.craigslist.org" );
}
else if ($st == "bgky") 
{
$urls= array("http://bgky.craigslist.org");
}
else if ($st == "cincinnati") 
{
$urls= array("http://cincinnati.craigslist.org");
}
else if ($st == "eastky") 
{
$urls= array("http://eastky.craigslist.org");
}
else if ($st == "huntington") 
{
$urls= array("http://huntington.craigslist.org");
}
else if ($st == "lexington") 
{
$urls= array("http://lexington.craigslist.org");
}
else if ($st == "louisville") 
{
$urls= array("http://louisville.craigslist.org");
}
else if ($st == "owensboro") 
{
$urls= array("http://owensboro.craigslist.org");
}
else if ($st == "westky") 
{
$urls= array("http://westky.craigslist.org");
}

foreach ($urls as $url) {
    $html = file_get_contents("$url/muc/");


    preg_match_all('/<a href="([^"]+)">([^<]+)<\/a><font size="-1">([^"]+)<\/font>/s', $html,$posts,PREG_SET_ORDER);
    //echo "<pre>";print_r($posts);
$i = 1; //set start point;
$limit = 60; //set limit;
foreach ($posts as $post) {
   //print $post[0]; //HTML
   $post[2] = str_ireplace($url,"",$post[2]); //remove domain
  
echo "<a href=\"$url{$post[1]}\" target=\"_blank\">{$post[2]}<font size=\"3\">{$post[3]}</font></a><br />";
   print "<BR />\n";


   if ($i == $limit)
   {
      break;
   }
  $i++; 
}

}
?>

 

form

  
<html>
<body>

<FORM name="classifieds" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
<select name="location">
<b><option value="AL">ALABAMA</option></b>
<option value="bham">auburn, AL</option>
<option value="colombusga">colombusga, AL</option>
<option value="dothan">dothan, AL</option>  
<option value="shoals">shoals, AL</option>
<option value="gadsden">gadsden, AL</option>
<option value="huntsville">huntsville, AL</option>
<option value="montgomery">montgomery, AL</option> 
<option value="tuscaloosa">tuscaloosa, AL</option>           
<option value=""></option>
<option value="AK">Alaska</option>
<option value="anchorage">anchorage, AK</option>	
<option value="fairbanks">fairbanks, AK</option>
<option value="kenai">kenai, AK</option>
<option value="juneau">juneau, AK</option>
<option value=""></option>

<option value="AZ">ARIZONA</option>
<option value="flagstaff">flagstaff, AZ</option>           
<option value="mohave">mohave, AZ</option>
<option value="phoenix">phoenix, AZ</option>
<option value="prescott">prescott, AZ</option>	
<option value="showlow">showlow, AZ</option>
<option value="sierravista">sierravista, AZ</option>
<option value="tucson">tucson, AZ</option>
<option value="yuma">yuma, AZ</option>	
<option value=""></option>
</select>

<center><input type="submit" value= "Post" name="submit" /></center>
</form>

I see nothing horribly wrong, but a lot of stylistic issues. For example, all those else if' s can be compressed into a single switch statement

switch($st){
case "montgomery":
$url = array(...);
break;
case "etc...";
break;
}

edit: or take premiso's advice

 

try adding the following to the top of your page to allow error reporting

error_reporting(E_ALL);
ini_set("display_errors", 1);

 

 

 

and report whatever errors the script spits back.

 

also, make sure you view the source if the page is still blank, malformed html may cause the error to be written inside tags that don't show up

Seriously? You expect us to wade through all of that? There was no reason to post hundreds of lines of elseif's. That's some pretty inefficient code. Put your URLs into an array with the state as the key. No need to use endless elseif's.

 

[quoe]... how can i find out of my code is not grabbing anything?

 

Testing it would be the first thing that comes to mind. You need to test each step removing all other variables. So first, test that huge elseif section. If you pass the state ($st) is the proper array set? If no, fix it. If yes, then test the next bit of code. Looks like most of the functionality is in the last 20 lines or so. It appears you are doing some screen scraping and then modifying the content to get the data you need. Perhaps something has changed in the output that makes the "lean up" remove all the content. Did you verify if you received anything back?

 

Then again, maybe cCraig's List decided it was tired of you steraling thier content and blocked your IP. Would serve you right.

Seriously? You expect us to wade through all of that? There was no reason to post hundreds of lines of elseif's. That's some pretty inefficient code. Put your URLs into an array with the state as the key. No need to use endless elseif's.

 

[quoe]... how can i find out of my code is not grabbing anything?

 

Testing it would be the first thing that comes to mind. You need to test each step removing all other variables. So first, test that huge elseif section. If you pass the state ($st) is the proper array set? If no, fix it. If yes, then test the next bit of code. Looks like most of the functionality is in the last 20 lines or so. It appears you are doing some screen scraping and then modifying the content to get the data you need. Perhaps something has changed in the output that makes the "lean up" remove all the content. Did you verify if you received anything back?

 

Then again, maybe cCraig's List decided it was tired of you steraling thier content and blocked your IP. Would serve you right.

 

Actually i'm linking back to craigslist, dummy. (Read my signature below)

I see nothing horribly wrong, but a lot of stylistic issues. For example, all those else if' s can be compressed into a single switch statement

switch($st){
case "montgomery":
$url = array(...);
break;
case "etc...";
break;
}

edit: or take premiso's advice

 

try adding the following to the top of your page to allow error reporting

error_reporting(E_ALL);
ini_set("display_errors", 1);

 

 

 

and report whatever errors the script spits back.

 

also, make sure you view the source if the page is still blank, malformed html may cause the error to be written inside tags that don't show up

 

Here's my error.

Notice: Undefined index: state in /home/a7250761/public_html/iwj/test.php on line 20

 

Listen guyz, i'm not here to receive any insults. Please don't say anything on here that you wouldn't say to my face.

I am always respectful, so don't disrespect me. If you don't like my question, DON'T ANSWER IT!

im assuming thats the

$st = ...... : $_POST['state'];

line? that means that $_POST['state'] doesn't exist, so you probably have the name of the key wrong. Can you post your form? have you verified that there is indeed an input named 'state'

im assuming thats the

$st = ...... : $_POST['state'];

line? that means that $_POST['state'] doesn't exist, so you probably have the name of the key wrong. Can you post your form? have you verified that there is indeed an input named 'state'

 

Hi Mike,

 

Yeah . I did forget to change the key to state, but after doing so i receive no errors and a blank page?

 

I also edited the code per presimo's suggestion to the following:

 <?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
$st = isset($_POST['submit']) ? $_POST['state'] : '';

$urls= array("http://" . $st . ".craigslist.org");
foreach ($urls as $url) {
    $html = file_get_contents("$url/muc/");


    preg_match_all('/<a href="([^"]+)">([^<]+)<\/a><font size="-1">([^"]+)<\/font>/s', $html,$posts,PREG_SET_ORDER);
    //echo "<pre>";print_r($posts);
$i = 1; //set start point;
$limit = 60; //set limit;
foreach ($posts as $post) {
   //print $post[0]; //HTML
   $post[2] = str_ireplace($url,"",$post[2]); //remove domain
  
echo "<a href=\"$url{$post[1]}\" target=\"_blank\">{$post[2]}<font size=\"3\">{$post[3]}</font></a><br />";
   print "<BR />\n";


   if ($i == $limit)
   {
      break;
   }
  $i++; 
}

}
?>
[code]

The form is simply a selection box. here's a fraction of the form.
[code] <FORM name="classifieds" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" >
<select name="state">
<b><option value="AL">ALABAMA</option></b>
<option value="bham">auburn, AL</option>
<option value="colombusga">colombusga, AL</option>
<option value="dothan">dothan, AL</option>  
<option value="shoals">shoals, AL</option>
<option value="gadsden">gadsden, AL</option>
<option value="huntsville">huntsville, AL</option>
<option value="montgomery">montgomery, AL</option> 
<option value="tuscaloosa">tuscaloosa, AL</option>           
<option value=""></option>
<option value="AK">Alaska</option>
<option value="anchorage">anchorage, AK</option>	
<option value="fairbanks">fairbanks, AK</option>
<option value="kenai">kenai, AK</option>
<option value="juneau">juneau, AK</option>
<option value=""></option>

<option value="AZ">ARIZONA</option>
<option value="flagstaff">flagstaff, AZ</option>           
<option value="mohave">mohave, AZ</option>
<option value="phoenix">phoenix, AZ</option>
<option value="prescott">prescott, AZ</option>	
<option value="showlow">showlow, AZ</option>
<option value="sierravista">sierravista, AZ</option>
<option value="tucson">tucson, AZ</option>
<option value="yuma">yuma, AZ</option>	
<option value=""></option>
</select>

<center><input type="submit" value= "Post" name="submit" /></center>
</form>

are both of them empty? which one is empty? if its $posts, then your regex isn't finding any matches

 

Wow, any reason why 'out of the blue' that would happen since this is untouched code i've been using to sample a display page?

either your regex became outdated, your urls are wrong, or craigslist banned you. i'd guess that your urls are wrong. when you print_r $urls, try going to one of the links, and see if it exists (Dont forget to add the /muc/ part of the url you seem to be adding in the for loop)

either your regex became outdated, your urls are wrong, or craigslist banned you. i'd guess that your urls are wrong. when you print_r $urls, try going to one of the links, and see if it exists (Dont forget to add the /muc/ part of the url you seem to be adding in the for loop)

 

I get an unexpected T_VARIABLE error when attempting to print_r $url; or $url;

Actually i'm linking back to craigslist, dummy. (Read my signature below)

 

Um, no, you are scraping their content. This is YOUR code:

    $html = file_get_contents("$url/muc/");

 

All of the $url's you defined are at craigslist. You are obviously scraping their site. The fact that you are only scraping their links to point back to their site is beside the point. They want people to browse their site for these links - not yours. There does happen to be a copyright notice at the bottom of each of those pages you are scraping.

 

And, is it really necessary to result to name calling. I mean really, I can't help it that you suck at programming.

Well, the problem is that (as I supposed in my first post):

Perhaps something has changed in the output

 

Your regular expression is build to expect that the FONT tag immediately follows the closing A tag. However, the pages you are scraping currently have have " - " between the anchor tag and the font tag, thus the preg_match returns no results.

Corrected code below. Note, I've split the data from the logic to make management much, much easier.

 

Change your current script file to just this:

<?php

//include the data file
include("craiglistURLS.php");

//Set limit for posts per url
$post_limit = 60;

//Get url for the selected state
$urls = (in_array($_POST['state'], array_keys($urlList))) ? $urlList[$_POST['state']]: array();

//Get contents for each url
foreach ($urls as $url)
{
    $html = file_get_contents("$url/muc/");
    //Extract link data
    preg_match_all('/<a href="([^"]+)">([^<]+)<\/a>[^<]*<font size="-1">([^"]+)<\/font>/s', $html, $posts, PREG_SET_ORDER);
    //Limit post resutls
    $posts = array_slice($posts, 0, $post_limit);
    //Display the results
    foreach ($posts as $post)
    {
        echo "<a href=\"{$post[1]}\" target=\"_blank\">{$post[2]}<font size=\"3\">{$post[3]}</font></a>\n";
        print "<br /><br />\n";
    }
}

?>

 

Create a separate file to store all the URLs. Call it something like craiglistURLS.php. Just make sure you reference it the same in the above script.

<?php

$urlList = array(
    "AL" => array("http://auburn.craigslist.org", "http://bham.craigslist.org"),
    "auburn" => array("http://auburn.craigslist.org"),
    "bham" => array("http://bham.craigslist.org"),
    "columbusga" => array("http://columbusga.craigslist.org"),
    "dothan" => array("http://dothan.craigslist.org"),
    "shoals" => array("http://shoals.craigslist.org"),
    "gadsden" => array("http://gadsden.craigslist.org"),
    "huntsville" => array("http://huntsville.craigslist.org"),
    "montgomery" => array("http://montgomery.craigslist.org"),
    "ALASKA" => array("http://alaska.craigslist.org"),
    "anchorage" => array("http://anchorage.craigslist.org"),
    "fairbanks" => array("http://fairbanks.craigslist.org"),
    "kenai" => array("http://kenai.craigslist.org"),
    "juneau" => array("http://juneau.craigslist.org"),
    "ARIZONA" => array("http://arizona.craigslist.org"),
    "flagstaff" => array("http://flagstaff.craigslist.org"),
    "mohave" => array("http://mohave.craigslist.org"),
    "phoenix" => array("http://phoenix.craigslist.org"),
    "prescott" => array("http://prescott.craigslist.org"),
    "showlow" => array("http://showlow.craigslist.org"),
    "sierravista" => array("http://sierravista.craigslist.org"),
    "tucson" => array("http://tucson.craigslist.org"),
    "yuma" => array("http://yuma.craigslist.org"),
    "ARKANSAS" => array("http://arkansas.craigslist.org"),
    "fayar" => array("http://fayar.craigslist.org"),
    "fortsmith" => array("http://fortsmith.craigslist.org"),
    "jonesboro" => array("http://jonesboro.craigslist.org"),
    "littlerock" => array("http://littlerock.craigslist.org"),
    "memphis" => array("http://memphis.craigslist.org"),
    "texarkana" => array("http://texarkana.craigslist.org"),
    "CALIFORNIA" => array("http://california.craigslist.org"),
    "sfbay" => array("http://sfbay.craigslist.org"),
    "bakersfield" => array("http://bakersfield.craigslist.org"),
    "chico" => array("http://chico.craigslist.org"),
    "fresno" => array("http://fresno.craigslist.org"),
    "goldcountry" => array("http://goldcountry.craigslist.org"),
    "hanford" => array("http://hanford.craigslist.org"),
    "humboldt" => array("http://humboldt.craigslist.org"),
    "imperial" => array("http://imperial.craigslist.org"),
    "inlandempire" => array("http://inlandempire.craigslist.org"),
    "merced" => array("http://merced.craigslist.org"),
    "modesto" => array("http://modesto.craigslist.org"),
    "monterey" => array("http://monterey.craigslist.org"),
    "orangecounty" => array("http://orangecounty.craigslist.org"),
    "palmsprings" => array("http://palmsprings.craigslist.org"),
    "redding" => array("http://redding.craigslist.org"),
    "reno" => array("http://reno.craigslist.org"),
    "sacremento" => array("http://sacremento.craigslist.org"),
    "sandiego" => array("http://sandiego.craigslist.org"),
    "slo" => array("http://slo.craigslist.org"),
    "santabarbara" => array("http://santabarbara.craigslist.org"),
    "santamaria" => array("http://santamaria.craigslist.org"),
    "siskiyou" => array("http://siskiyou.craigslist.org"),
    "stockton" => array("http://stockton.craigslist.org"),
    "susanville" => array("http://susanville.craigslist.org"),
    "ventura" => array("http://ventura.craigslist.org"),
    "visalia" => array("http://visalia.craigslist.org"),
    "yubasutter" => array("http://yubasutter.craigslist.org"),
    "COLORADO" => array("http://colorado.craigslist.org"),
    "boulder" => array("http://boulder.craigslist.org"),
    "cosprings" => array("http://cosprings.craigslist.org"),
    "denver" => array("http://denver.craigslist.org"),
    "eastco" => array("http://eastco.craigslist.org"),
    "fortcollins" => array("http://fortcollins.craigslist.org"),
    "rockies" => array("http://rockies.craigslist.org"),
    "pueblo" => array("http://pueblo.craigslist.org"),
    "westslope" => array("http://westslope.craigslist.org"),
    "CONNECTICUT" => array("http://connecticut.craigslist.org"),
    "newlondon" => array("http://newlondon.craigslist.org"),
    "hartford" => array("http://hartford.craigslist.org"),
    "newhaven" => array("http://newhaven.craigslist.org"),
    "nwct" => array("http://nwct.craigslist.org"),
    "newyork" => array("http://newyork.craigslist.org"),
    "District of Columbia" => array("http://washingtondc.craigslist.org"),
    "DELAWARE" => array("http://delaware.craigslist.org"),
    "FLORIDA" => array("http://florida.craigslist.org"),
    "daytona" => array("http://daytona.craigslist.org"),
    "keys" => array("http://keys.craigslist.org"),
    "fortmyers" => array("http://fortmyers.craigslist.org"),
    "gainesville" => array("http://gainesville.craigslist.org"),
    "cfl" => array("http://cfl.craigslist.org"),
    "jacksonville" => array("http://jacksonville.craigslist.org"),
    "lakeland" => array("http://lakeland.craigslist.org"),
    "lakecity" => array("http://lakecity.craigslist.org"),
    "ocala" => array("http://ocala.craigslist.org"),
    "okaloosa" => array("http://okaloosa.craigslist.org"),
    "orlando" => array("http://orlando.craigslist.org"),
    "panamacity" => array("http://panamacity.craigslist.org"),
    "pensacola" => array("http://pensacola.craigslist.org"),
    "sarasota" => array("http://sarasota.craigslist.org"),
    "miami" => array("http://miami.craigslist.org"),
    "spacecoast" => array("http://spacecoast.craigslist.org"),
    "staugustine" => array("http://staugustine.craigslist.org"),
    "tallahassee" => array("http://tallahassee.craigslist.org"),
    "tampa" => array("http://tampa.craigslist.org"),
    "treasure" => array("http://treasure.craigslist.org"),
    "GEORGIA" => array("http://georgia.craigslist.org"),
    "albanyga" => array("http://albanyga.craigslist.org"),
    "atlanta" => array("http://atlanta.craigslist.org"),
    "augusta" => array("http://augusta.craigslist.org"),
    "brunswick" => array("http://brunswick.craigslist.org"),
    "albanyga" => array("http://albanyga.craigslist.org"),
    "columbusga" => array("http://columbusga.craigslist.org"),
    "macon" => array("http://macon.craigslist.org"),
    "nwga" => array("http://nwga.craigslist.org"),
    "savannah" => array("http://savannah.craigslist.org"),
    "statesboro" => array("http://statesboro.craigslist.org"),
    "valdosta" => array("http://valdosta.craigslist.org"),
    "HAWAII" => array("http://honolulu.craigslist.org"),
    "IDAHO" => array("http://idaho.craigslist.org"),
    "boise" => array("http://boise.craigslist.org"),
    "eastidaho" => array("http://eastidaho.craigslist.org"),
    "lewiston" => array("http://lewiston.craigslist.org"),
    "pullman" => array("http://pullman.craigslist.org"),
    "spokane" => array("http://spokane.craigslist.org"),
    "twinfalls" => array("http://twinfalls.craigslist.org"),
    "ILLINOIS" => array("http://bn.craigslist.org", "http://chambana.craigslist.org", "http://chicago.craigslist.org" ,
                        "http://decatur.craigslist.org" , "http://lasalle.craigslist.org", "http://mattoon.craigslist.org",
                        "http://peoria.craigslist.org", "http://quadcities.craigslist.org", "http://rockford.craigslist.org",
                        "http://carbondale.craigslist.org" ),
    "bn" => array("http://bn.craigslist.org"),
    "chambana" => array("http://chambana.craigslist.org"),
    "chicago" => array("http://chicago.craigslist.org"),
    "decatur" => array("http://decatur.craigslist.org"),
    "lasalle" => array("http://lasalle.craigslist.org"),
    "mattoon" => array("http://mattoon.craigslist.org"),
    "peoria" => array("http://peoria.craigslist.org"),
    "quadcities" => array("http://quadcities.craigslist.org"),
    "rockford" => array("http://rockford.craigslist.org"),
    "carbondale" => array("http://carbondale.craigslist.org"),
    "springfieldil" => array("http://springfieldil.craigslist.org"),
    "stlouis" => array("http://stlouis.craigslist.org"),
    "quincy" => array("http://quincy.craigslist.org"),
    "INDIANA" => array("http://bn.craigslist.org", "http://bloomington.craigslist.org", "http://evansville.craigslist.org" ,
                       "http://fortwayne.craigslist.org" ,"http://indianapolis.craigslist.org", "http://kokomo.craigslist.org",
                       "http://tippycanoe.craigslist.org", "http://muncie.craigslist.org", "http://richmondin.craigslist.org",
                       "http://southbend.craigslist.org", "http://terrahaute.craigslist.org" ),
    "bloomington" => array("http://bloomington.craigslist.org"),
    "evansville" => array("http://evansville.craigslist.org"),
    "bloomington" => array("http://bloomington.craigslist.org"),
    "fortwayne" => array("http://fortwayne.craigslist.org"),
    "indianapolis" => array("http://indianapolis.craigslist.org"),
    "kokomo" => array("http://kokomo.craigslist.org"),
    "tippycanoe" => array("http://tippycanoe.craigslist.org"),
    "muncie" => array("http://muncie.craigslist.org"),
    "richmondin" => array("http://richmondin.craigslist.org"),
    "southbend" => array("http://southbend.craigslist.org"),
    "terrahaute" => array("http://terrahaute.craigslist.org"),
    "IOWA" => array("http://ames.craigslist.org", "http://bloomington.craigslist.org", "http://cedarrapids.craigslist.org" ,
                    "http://desmoines.craigslist.org" ,"http://dubuque.craigslist.org", "http://fortdodge.craigslist.org",
                    "http://iowacity.craigslist.org", "http://masoncity.craigslist.org", "http://omaha.craigslist.org",
                    "http://quadcities.craigslist.org", "http://siouxcity.craigslist.org",
                    "http://ottumwa.craigslist.org", "http://waterloo.craigslist.org"),
    "ames" => array("http://ames.craigslist.org"),
    "cedarrapids" => array("http://cedarrapids.craigslist.org"),
    "desmoines" => array("http://desmoines.craigslist.org"),
    "dubuque" => array("http://dubuque.craigslist.org"),
    "fortdodge" => array("http://fortdodge.craigslist.org"),
    "iowacity" => array("http://iowacity.craigslist.org"),
    "masoncity" => array("http://masoncity.craigslist.org"),
    "omaha" => array("http://omaha.craigslist.org"),
    "quadcities" => array("http://quadcities.craigslist.org"),
    "siouxcity" => array("http://siouxcity.craigslist.org"),
    "ottumwa" => array("http://ottumwa.craigslist.org"),
    "waterloo" => array("http://waterloo.craigslist.org"),
    "KANSAS" => array("http://kansascity.craigslist.org","http://lawrence.craigslist.org","http://ksu.craigslist.org",
                      "http://nwks.craigslist.org","http://salina.craigslist.org","http://seks.craigslist.org",
                      "http://swks.craigslist.org", "http://topeka.craigslist.org","http://wichita.craigslist.org"),
    "kansascity" => array("http://kansascity.craigslist.org"),
    "lawrence" => array("http://lawrence.craigslist.org"),
    "ksu" => array("http://ksu.craigslist.org"),
    "nwks" => array("http://nwks.craigslist.org"),
    "salina" => array("http://salina.craigslist.org"),
    "seks" => array("http://seks.craigslist.org"),
    "swks" => array("http://swks.craigslist.org"),
    "topeka" => array("http://topeka.craigslist.org"),
    "wichita" => array("http://wichita.craigslist.org"),
    "KENTUCKY" => array("http://bgky.craigslist.org","http://cincinnati.craigslist.org","http://wichita.craigslist.org",
                        "http://eastky.craigslist.org","http://huntington.craigslist.org","http://lexington.craigslist.org",
                        "http://louisville.craigslist.org","http://owensboro.craigslist.org","http://westky.craigslist.org" ),
    "bgky" => array("http://bgky.craigslist.org"),
    "cincinnati" => array("http://cincinnati.craigslist.org"),
    "eastky" => array("http://eastky.craigslist.org"),
    "huntington" => array("http://huntington.craigslist.org"),
    "lexington" => array("http://lexington.craigslist.org"),
    "louisville" => array("http://louisville.craigslist.org"),
    "owensboro" => array("http://owensboro.craigslist.org"),
    "westky" => array("http://westky.craigslist.org")
);

?>

 

 

Corrected code below. Note, I've split the data from the logic to make management much, much easier.

 

Change your current script file to just this:

<?php

//include the data file
include("craiglistURLS.php");

//Set limit for posts per url
$post_limit = 60;

//Get url for the selected state
$urls = (in_array($_POST['state'], array_keys($urlList))) ? $urlList[$_POST['state']]: array();

//Get contents for each url
foreach ($urls as $url)
{
    $html = file_get_contents("$url/muc/");
    //Extract link data
    preg_match_all('/<a href="([^"]+)">([^<]+)<\/a>[^<]*<font size="-1">([^"]+)<\/font>/s', $html, $posts, PREG_SET_ORDER);
    //Limit post resutls
    $posts = array_slice($posts, 0, $post_limit);
    //Display the results
    foreach ($posts as $post)
    {
        echo "<a href=\"{$post[1]}\" target=\"_blank\">{$post[2]}<font size=\"3\">{$post[3]}</font></a>\n";
        print "<br /><br />\n";
    }
}

?>

 

Create a separate file to store all the URLs. Call it something like craiglistURLS.php. Just make sure you reference it the same in the above script.

<?php

$urlList = array(
    "AL" => array("http://auburn.craigslist.org", "http://bham.craigslist.org"),
    "auburn" => array("http://auburn.craigslist.org"),
    "bham" => array("http://bham.craigslist.org"),
    "columbusga" => array("http://columbusga.craigslist.org"),
    "dothan" => array("http://dothan.craigslist.org"),
    "shoals" => array("http://shoals.craigslist.org"),
    "gadsden" => array("http://gadsden.craigslist.org"),
    "huntsville" => array("http://huntsville.craigslist.org"),
    "montgomery" => array("http://montgomery.craigslist.org"),
    "ALASKA" => array("http://alaska.craigslist.org"),
    "anchorage" => array("http://anchorage.craigslist.org"),
    "fairbanks" => array("http://fairbanks.craigslist.org"),
    "kenai" => array("http://kenai.craigslist.org"),
    "juneau" => array("http://juneau.craigslist.org"),
    "ARIZONA" => array("http://arizona.craigslist.org"),
    "flagstaff" => array("http://flagstaff.craigslist.org"),
    "mohave" => array("http://mohave.craigslist.org"),
    "phoenix" => array("http://phoenix.craigslist.org"),
    "prescott" => array("http://prescott.craigslist.org"),
    "showlow" => array("http://showlow.craigslist.org"),
    "sierravista" => array("http://sierravista.craigslist.org"),
    "tucson" => array("http://tucson.craigslist.org"),
    "yuma" => array("http://yuma.craigslist.org"),
    "ARKANSAS" => array("http://arkansas.craigslist.org"),
    "fayar" => array("http://fayar.craigslist.org"),
    "fortsmith" => array("http://fortsmith.craigslist.org"),
    "jonesboro" => array("http://jonesboro.craigslist.org"),
    "littlerock" => array("http://littlerock.craigslist.org"),
    "memphis" => array("http://memphis.craigslist.org"),
    "texarkana" => array("http://texarkana.craigslist.org"),
    "CALIFORNIA" => array("http://california.craigslist.org"),
    "sfbay" => array("http://sfbay.craigslist.org"),
    "bakersfield" => array("http://bakersfield.craigslist.org"),
    "chico" => array("http://chico.craigslist.org"),
    "fresno" => array("http://fresno.craigslist.org"),
    "goldcountry" => array("http://goldcountry.craigslist.org"),
    "hanford" => array("http://hanford.craigslist.org"),
    "humboldt" => array("http://humboldt.craigslist.org"),
    "imperial" => array("http://imperial.craigslist.org"),
    "inlandempire" => array("http://inlandempire.craigslist.org"),
    "merced" => array("http://merced.craigslist.org"),
    "modesto" => array("http://modesto.craigslist.org"),
    "monterey" => array("http://monterey.craigslist.org"),
    "orangecounty" => array("http://orangecounty.craigslist.org"),
    "palmsprings" => array("http://palmsprings.craigslist.org"),
    "redding" => array("http://redding.craigslist.org"),
    "reno" => array("http://reno.craigslist.org"),
    "sacremento" => array("http://sacremento.craigslist.org"),
    "sandiego" => array("http://sandiego.craigslist.org"),
    "slo" => array("http://slo.craigslist.org"),
    "santabarbara" => array("http://santabarbara.craigslist.org"),
    "santamaria" => array("http://santamaria.craigslist.org"),
    "siskiyou" => array("http://siskiyou.craigslist.org"),
    "stockton" => array("http://stockton.craigslist.org"),
    "susanville" => array("http://susanville.craigslist.org"),
    "ventura" => array("http://ventura.craigslist.org"),
    "visalia" => array("http://visalia.craigslist.org"),
    "yubasutter" => array("http://yubasutter.craigslist.org"),
    "COLORADO" => array("http://colorado.craigslist.org"),
    "boulder" => array("http://boulder.craigslist.org"),
    "cosprings" => array("http://cosprings.craigslist.org"),
    "denver" => array("http://denver.craigslist.org"),
    "eastco" => array("http://eastco.craigslist.org"),
    "fortcollins" => array("http://fortcollins.craigslist.org"),
    "rockies" => array("http://rockies.craigslist.org"),
    "pueblo" => array("http://pueblo.craigslist.org"),
    "westslope" => array("http://westslope.craigslist.org"),
    "CONNECTICUT" => array("http://connecticut.craigslist.org"),
    "newlondon" => array("http://newlondon.craigslist.org"),
    "hartford" => array("http://hartford.craigslist.org"),
    "newhaven" => array("http://newhaven.craigslist.org"),
    "nwct" => array("http://nwct.craigslist.org"),
    "newyork" => array("http://newyork.craigslist.org"),
    "District of Columbia" => array("http://washingtondc.craigslist.org"),
    "DELAWARE" => array("http://delaware.craigslist.org"),
    "FLORIDA" => array("http://florida.craigslist.org"),
    "daytona" => array("http://daytona.craigslist.org"),
    "keys" => array("http://keys.craigslist.org"),
    "fortmyers" => array("http://fortmyers.craigslist.org"),
    "gainesville" => array("http://gainesville.craigslist.org"),
    "cfl" => array("http://cfl.craigslist.org"),
    "jacksonville" => array("http://jacksonville.craigslist.org"),
    "lakeland" => array("http://lakeland.craigslist.org"),
    "lakecity" => array("http://lakecity.craigslist.org"),
    "ocala" => array("http://ocala.craigslist.org"),
    "okaloosa" => array("http://okaloosa.craigslist.org"),
    "orlando" => array("http://orlando.craigslist.org"),
    "panamacity" => array("http://panamacity.craigslist.org"),
    "pensacola" => array("http://pensacola.craigslist.org"),
    "sarasota" => array("http://sarasota.craigslist.org"),
    "miami" => array("http://miami.craigslist.org"),
    "spacecoast" => array("http://spacecoast.craigslist.org"),
    "staugustine" => array("http://staugustine.craigslist.org"),
    "tallahassee" => array("http://tallahassee.craigslist.org"),
    "tampa" => array("http://tampa.craigslist.org"),
    "treasure" => array("http://treasure.craigslist.org"),
    "GEORGIA" => array("http://georgia.craigslist.org"),
    "albanyga" => array("http://albanyga.craigslist.org"),
    "atlanta" => array("http://atlanta.craigslist.org"),
    "augusta" => array("http://augusta.craigslist.org"),
    "brunswick" => array("http://brunswick.craigslist.org"),
    "albanyga" => array("http://albanyga.craigslist.org"),
    "columbusga" => array("http://columbusga.craigslist.org"),
    "macon" => array("http://macon.craigslist.org"),
    "nwga" => array("http://nwga.craigslist.org"),
    "savannah" => array("http://savannah.craigslist.org"),
    "statesboro" => array("http://statesboro.craigslist.org"),
    "valdosta" => array("http://valdosta.craigslist.org"),
    "HAWAII" => array("http://honolulu.craigslist.org"),
    "IDAHO" => array("http://idaho.craigslist.org"),
    "boise" => array("http://boise.craigslist.org"),
    "eastidaho" => array("http://eastidaho.craigslist.org"),
    "lewiston" => array("http://lewiston.craigslist.org"),
    "pullman" => array("http://pullman.craigslist.org"),
    "spokane" => array("http://spokane.craigslist.org"),
    "twinfalls" => array("http://twinfalls.craigslist.org"),
    "ILLINOIS" => array("http://bn.craigslist.org", "http://chambana.craigslist.org", "http://chicago.craigslist.org" ,
                        "http://decatur.craigslist.org" , "http://lasalle.craigslist.org", "http://mattoon.craigslist.org",
                        "http://peoria.craigslist.org", "http://quadcities.craigslist.org", "http://rockford.craigslist.org",
                        "http://carbondale.craigslist.org" ),
    "bn" => array("http://bn.craigslist.org"),
    "chambana" => array("http://chambana.craigslist.org"),
    "chicago" => array("http://chicago.craigslist.org"),
    "decatur" => array("http://decatur.craigslist.org"),
    "lasalle" => array("http://lasalle.craigslist.org"),
    "mattoon" => array("http://mattoon.craigslist.org"),
    "peoria" => array("http://peoria.craigslist.org"),
    "quadcities" => array("http://quadcities.craigslist.org"),
    "rockford" => array("http://rockford.craigslist.org"),
    "carbondale" => array("http://carbondale.craigslist.org"),
    "springfieldil" => array("http://springfieldil.craigslist.org"),
    "stlouis" => array("http://stlouis.craigslist.org"),
    "quincy" => array("http://quincy.craigslist.org"),
    "INDIANA" => array("http://bn.craigslist.org", "http://bloomington.craigslist.org", "http://evansville.craigslist.org" ,
                       "http://fortwayne.craigslist.org" ,"http://indianapolis.craigslist.org", "http://kokomo.craigslist.org",
                       "http://tippycanoe.craigslist.org", "http://muncie.craigslist.org", "http://richmondin.craigslist.org",
                       "http://southbend.craigslist.org", "http://terrahaute.craigslist.org" ),
    "bloomington" => array("http://bloomington.craigslist.org"),
    "evansville" => array("http://evansville.craigslist.org"),
    "bloomington" => array("http://bloomington.craigslist.org"),
    "fortwayne" => array("http://fortwayne.craigslist.org"),
    "indianapolis" => array("http://indianapolis.craigslist.org"),
    "kokomo" => array("http://kokomo.craigslist.org"),
    "tippycanoe" => array("http://tippycanoe.craigslist.org"),
    "muncie" => array("http://muncie.craigslist.org"),
    "richmondin" => array("http://richmondin.craigslist.org"),
    "southbend" => array("http://southbend.craigslist.org"),
    "terrahaute" => array("http://terrahaute.craigslist.org"),
    "IOWA" => array("http://ames.craigslist.org", "http://bloomington.craigslist.org", "http://cedarrapids.craigslist.org" ,
                    "http://desmoines.craigslist.org" ,"http://dubuque.craigslist.org", "http://fortdodge.craigslist.org",
                    "http://iowacity.craigslist.org", "http://masoncity.craigslist.org", "http://omaha.craigslist.org",
                    "http://quadcities.craigslist.org", "http://siouxcity.craigslist.org",
                    "http://ottumwa.craigslist.org", "http://waterloo.craigslist.org"),
    "ames" => array("http://ames.craigslist.org"),
    "cedarrapids" => array("http://cedarrapids.craigslist.org"),
    "desmoines" => array("http://desmoines.craigslist.org"),
    "dubuque" => array("http://dubuque.craigslist.org"),
    "fortdodge" => array("http://fortdodge.craigslist.org"),
    "iowacity" => array("http://iowacity.craigslist.org"),
    "masoncity" => array("http://masoncity.craigslist.org"),
    "omaha" => array("http://omaha.craigslist.org"),
    "quadcities" => array("http://quadcities.craigslist.org"),
    "siouxcity" => array("http://siouxcity.craigslist.org"),
    "ottumwa" => array("http://ottumwa.craigslist.org"),
    "waterloo" => array("http://waterloo.craigslist.org"),
    "KANSAS" => array("http://kansascity.craigslist.org","http://lawrence.craigslist.org","http://ksu.craigslist.org",
                      "http://nwks.craigslist.org","http://salina.craigslist.org","http://seks.craigslist.org",
                      "http://swks.craigslist.org", "http://topeka.craigslist.org","http://wichita.craigslist.org"),
    "kansascity" => array("http://kansascity.craigslist.org"),
    "lawrence" => array("http://lawrence.craigslist.org"),
    "ksu" => array("http://ksu.craigslist.org"),
    "nwks" => array("http://nwks.craigslist.org"),
    "salina" => array("http://salina.craigslist.org"),
    "seks" => array("http://seks.craigslist.org"),
    "swks" => array("http://swks.craigslist.org"),
    "topeka" => array("http://topeka.craigslist.org"),
    "wichita" => array("http://wichita.craigslist.org"),
    "KENTUCKY" => array("http://bgky.craigslist.org","http://cincinnati.craigslist.org","http://wichita.craigslist.org",
                        "http://eastky.craigslist.org","http://huntington.craigslist.org","http://lexington.craigslist.org",
                        "http://louisville.craigslist.org","http://owensboro.craigslist.org","http://westky.craigslist.org" ),
    "bgky" => array("http://bgky.craigslist.org"),
    "cincinnati" => array("http://cincinnati.craigslist.org"),
    "eastky" => array("http://eastky.craigslist.org"),
    "huntington" => array("http://huntington.craigslist.org"),
    "lexington" => array("http://lexington.craigslist.org"),
    "louisville" => array("http://louisville.craigslist.org"),
    "owensboro" => array("http://owensboro.craigslist.org"),
    "westky" => array("http://westky.craigslist.org")
);

?>

 

 

Now your an accomplice, but thanks for the chuckle ;D

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.