Jump to content

gather info from html doc


only one

Recommended Posts

hi i want to make a page that gathers how many posts ive posted on forums, i was trying to use a code

 

i was planning to first of all open the document, read it, then strip the tags and preg_replace all the other content (i reallised it wouldnt work)

 

i got this far, but it didnt seem to work at all:

<?php
$filename = "http://www.phpfreaks.com/forums/index.php?action=profile;u=45841";
$handle = fopen($filename, "r");
$contents = fread($handle);
$strip = strip_tags($contents);
echo "$strip";
?>

 

anyone got any ideas?

 

thanks, Only

Link to comment
https://forums.phpfreaks.com/topic/50395-gather-info-from-html-doc/
Share on other sites

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.