PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old October 1st, 2002, 08:24 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Help With This Code

I have this code:
<table border=0 cellpadding=6 cellspacing=0 bgcolor=eeeeee width=100%><tr><td>

& This URL: http://sports.espn.go.com/mlb/players/profile?statsId=3918

Can someone please set that up for me??

Reply With Quote
  #2  
Old October 1st, 2002, 08:25 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Help With This Code

Sorry, Make this this code:
$url = "http:// URL TO GRAB"; // Trailing slash when not using filename
$unique_start = "Unique html code to start grabbing";
$unique_end = "Unique html code to end grabbing";



################################################## ####
## No editing below here
## Editing below this line voids warranty :-)
################################################## ####

ini_set('max_execution_time', '0');
flush ();
$fd= fread(fopen("$url", "r"), 100000);

if ($fd)
{
$start= strpos($fd, "$unique_start");
$finish= strpos($fd, "$unique_end");
$length= $finish-$start;
$code=Substr($fd, $start, $length);
}

################################################## ####
## No editing above here
## Editing above this line voids warranty :-)
################################################## ####

// $code = preg_replace("new code", "old code", $code);
// uncomment the above line to edit the output

echo $code;
flush ();
?>



Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Help With This Code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway