Jump to content

Satanas

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Satanas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Nope. Where's what I'm trying to do... I've a database where users where I need to update the countrys. I've access to an internet page where is the country I want to get so... $user_id = 544; $texto = file_get_contents("http://www.mydomain.com/users.php?uid=$user_id"); preg_match('%</h3>(.+?)</td>%s', $texto, $matches); print_r($matches); The code you provided gives me the all page contents... not only the countrys. ??? Thanks once more.
  2. Yes! It's true... the country is allways between the h3 and td but I could get it working... Please help!!
  3. Hi there effigy! First of all... thanks for your help... Sorry for the small context provided, what you will need more to help me? Thanks,
  4. Hi guys! I'm trying to get some words between tabs but with no result... Here an example... I want to get the country name there... but because of tab spaces I'm having no result... I've tryed the \s ... and \t ... and \n <h3>00CA - Goldstone (GTS)</h3> United States </td> Any help? Thanks.
  5. Satanas

    RegEx Help

    Excelent! Thanks!
  6. Satanas

    RegEx Help

    Hello PHP Freaks! I need a little help... I have a page with Latitude and Longitude coordinates and they are separeted with a blank space. How can I read them with a RegEx ? I put in bold what I want to get... Here is the format of the line: LPPT 0 0 N38°46'27.00" W009°08'03.00" LISBOA Tks!
  7. OK... I've done it... Know I've another question... Wich one of the lines I've read has some latitude and longitude coordinates... How can I read them with a RegEx ? I put in bold what I want to get... Here is the format of the line: LPPT 0 0 N38°46'27.00" W009°08'03.00" LISBOA Tks!
  8. Hi there! I'm learning very much reading some lines in this forum... you're awsome! I've a little question that is making me crazy... I want to read some lines from a file until it founds the word "</pre>" for that.. I'm reading the first 6 characters of each line. I have this peace of code here: $var = file('my_file.txt'); $line_number = 0; foreach( $var as $line ) { $text = substr($var[$line_number], 0, 6); if ($line_number > 14) echo "<br>" . $var[$line_number]; $line_number++; } Any help please? Tks!
×
×
  • 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.