|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
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?? |
|
#2
|
|||
|
|||
|
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 (); ?> |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Help With This Code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|