FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Can PHP do this?





kk_loke86
I have an idea in mind about redirecting a text in someone else`s webpage and take it so that I can store the text into my database and then modify the text and get it parse in my own webpage. How to do this? I want it to be done automatically once my webpage visitor clicks on some buttons. Can it be done by just using PHP? If can, how to do it?
rvec
kk_loke86 wrote:
I have an idea in mind about redirecting a text in someone else`s webpage and take it so that I can store the text into my database and then modify the text and get it parse in my own webpage. How to do this? I want it to be done automatically once my webpage visitor clicks on some buttons. Can it be done by just using PHP? If can, how to do it?

redirecting a text in someone else's webpage -> I don't get this part
if you mean get a text from some other website - > php can do this
store text in a database -> php can do that, what kind of database do you want? (mysql, text file, other)
on click -> can be done with php (button is a link to a php file which can show the results or redirect to another page/back)
ashok
And I do remember that there are a couple of posts having php code on how to do this... Try searching the forum..
coreymanshack
yea i did this once with an online radio status output.....
AOP Web Development
very simple usage.. try to use file_get_contents() function in php and put the path file you want to parse..
kk_loke86
Actually what I mean is I want to extract the text on a running html for example the pages in this forum... I want PHP to read the current forum html and extract some text that I want to get in store in my database. Later, I can modify the text and get it to be shown on my own webpage. This is what I actually plan for. Could the function file_get_contents() work on this?
Star Wars Fanatic
Yes, or you can use various other php functions to do that.
However, you can't use any of the file functions on FriHost servers, as Bondings disabled them for security.
You can use cURL, though.
Related topics
http://tuvanonline.com/library/index.php
PHP-Nuke platium?
PHP Write to line
Anyone good with PHP-NUKE?
PHP safety?
req: PHP to list files in directory, and link to them
php admin and mysql admin console
Mysql And PHP HELP PLZ
Great php editor
Script php about gallery
File upload with PHP, Build an upload database for your site
[php scripts ] phpweather&email
Including With PHP
help me upgrade php to 5.
php includes
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.