Jump to content

Search the Community

Showing results for tags 'parsing an html file'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. Hello out there! Firstly thanks to help people coding. I'm trying to extract information(name and speciality) from this link: http://www.sante-dz.com/carteinfomed.php?spe=39&nom=&rig=Alger&pubspace=i&firsturl=L21lZGVjaW5zLnBocD90aXQ9bCZtYXhSb3dzX21lZGVjaW5zPTEwMCZzcGU9MzkmcmlnPUFsZ2Vy 1- when I try to reach the text written between <span> here <span>, I recuperate all the texts written in the same tag but only the desired information couldn't be reached, 2- I recuperate a link gathering information of every doctor,, but can't also extract just the linkw which is contained in a string here is my simple code: <!DOCTYPE html> <html lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Parser...</title> <link rel="stylesheet" type="text/css" href="../css/style.css" /> </head> <body> <div class="wrapper"> <h1>La base des medecins algeriens </h1> <?php require_once 'simple_html_dom.php'; //Create an object simple_html_dom() $html = new simple_html_dom(); //Create an object simple_html_dom() $htmll = new simple_html_dom(); // load the html file $html->load_file('http://www.sante-dz.com/medecins.php?tit=l&maxRows_medecins=100&spe=39&rig=Alger'); //All links of doctors information foreach($html->find( 'td[class=txtgray9all] div') as $info) echo $info->onclick. '<br>'; // the string recuperated should be parsed to extract the desired // $parsedlink= // echo $htmll->load_file('http://www.sante-dz.com/carteinfomed.php?'.$parsedlink); $htmll->load_file('http://www.sante-dz.com/carteinfomed.php?spe=39&nom=&rig=Alger&pubspace=i&firsturl=L21lZGVjaW5zLnBocD90aXQ9bCZtYXhSb3dzX21lZGVjaW5zPTEwMCZzcGU9MzkmcmlnPUFsZ2Vy'); foreach($htmll->find('span.txtblue92ball') as $e) echo $e->outertext . '<br>';// i don't get any result ?> </div> </body> </html>
×
×
  • 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.