This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. General Coding and Design => Calculator Programming
Author Message
Rezek
Better Than You


Calc Guru


Joined: 24 Apr 2005
Posts: 1229

Posted: 08 Aug 2006 09:06:50 pm    Post subject:

I'm pretty sure there is a function to do this already but Google was absolutely no help what-so-ever. I just need something that will return a string containing the contents of a webpage (the HTML basically). How would I go about doing this, or does anyone know how what the built-in function is (if there is one)?
Back to top
elfprince13
Retired


Super Elite (Last Title)


Joined: 11 Apr 2005
Posts: 3500

Posted: 08 Aug 2006 09:13:06 pm    Post subject:

you open a socket, and read in the data.
Back to top
Rezek
Better Than You


Calc Guru


Joined: 24 Apr 2005
Posts: 1229

Posted: 08 Aug 2006 09:18:30 pm    Post subject:

That helps alot.

...

Wow, I need to wait a bit before I go begging for help. After much searching through the PHP documentation I found the function's name is 'file_get_contents(string url)', in case anyone else is wondering.
Back to top
Demon


Advanced Member


Joined: 17 Jun 2006
Posts: 369

Posted: 08 Aug 2006 09:57:49 pm    Post subject:

You can also use fopen(filepath/url, mode)
http://us3.php.net/function.fopen
Back to top
Rezek
Better Than You


Calc Guru


Joined: 24 Apr 2005
Posts: 1229

Posted: 09 Aug 2006 04:25:02 pm    Post subject:

Thanks :)

For my purposes, file_get_contents does exactly what I need. Smile
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement