Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Retrieving Information from a Website using PHP

Featured Replies

Is it possible to make a PHP script that enables the user to acquire information from a given website, like values inside a table and save it in a text file?

I can think of a possibility, but the problem is that HTML has gotten so varied that getting data out of HTML would take a lot of time and effort.

  • Author

Is it possible if you can point me to some tutorials or information that I can read on about this?

I don't know of any tutorials; I was just brainstorming a bit and kinda-sorta thought of a possibility. I haven't tried it, though, and haven't come up with any real code to back it.

  • 1 month later...

You could use fwrite - http://uk2.php.net/fwrite

It basically takes values (usually from a form) and saves them to a text file. Just remember to chmodd the file to 777!

just like WBHoenig said, it's possible..

u can get the content of the site with

<? $f=file('http://google.com/'); for ($i=0; $i<count($f); $i++) $content.=$f[$i]; ?>

then u just need some regular expressions and stuff like that to get the info from the tables.. i've done a similar thing for a torrent tracker system which gets each torrent's hash, uploader, size, name, category by having access to the html code only.. it's not impossible..

Edited by dAbReAkA

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.