Jump to content

$GET function specific help please


scbookz

Recommended Posts

i upload a csv excel sheet to my store and inside my sheet i will have a function get to grab a title from a web page

 

anyway i had ti working at one time but my server crashed so i am on the cloud now as my server but i forgot how i did it before

 

so... can some one please explain in easy terms how i can imbed a GEt in my .php page that will make a variable so my function get till get that variable in the get function

 

here is  my code and the problem is i have 10,,000000000 pages and each time a page is pulled this  variable needs to change( (see: variable that changes) with each new page called open)

 

 

$file = file_get_contents("http://www.xxxxxxxxxxxxxxxx.com/isbn=variablethatchanges");

$x = (get_doc_title($file));

 

 

echo preg_replace('/^bbbbbbb-/','(10 digit isbn above) -',$x);

 

 

// retrieve page title

function get_doc_title($file){

    $h1tags = preg_match_all('/<title>(.*)<\/title>/', $file, $matches, PREG_PATTERN_ORDER);

  return($matches[1][0]);}

 

?>

 

Link to comment
https://forums.phpfreaks.com/topic/198338-get-function-specific-help-please/
Share on other sites

yes i  have the get code right i just need help on GET part

 

all i am saying is how do i use the $_GET function to grab that variable from a local web sit eand then it grabs a title from the  distant web site

 

1)$GET  gets  the variable at the top of the page or inside another local server page

2)get() function uses 1) variable to get title from distant server  page

 

thanks in advance

 

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

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