werushka Posted March 19, 2009 Share Posted March 19, 2009 Hi, I want to get some feedback/suggestions about bot that can search a specific site and find a specific word like "TvScreens" and convert them to links and landing page can be set by me. I would appreciate some feedback. Quote Link to comment https://forums.phpfreaks.com/topic/150239-finding-words-in-a-given-site-and-replace-them-to-links/ Share on other sites More sharing options...
samshel Posted March 20, 2009 Share Posted March 20, 2009 so you want to read from an outside website (ex: http://www.google.com/search?hl=en&q=Tvscreens ) parse all specific words like Tvscreens, replace the words in HTML with hyperlink , landing page of which you can specify and put these replacements back on the website? OR do you want to take the HTML, replace words with links and write it to a local file, which you can use in your own website? Initial case is not possible as u cannot write to pages of a website that does not beling to you, later case is possible, if u need that then it is easy to do - read url using any file read command - ereg_replace words with links - write to a file. OR may be i completely misunderstood what u r looking for Quote Link to comment https://forums.phpfreaks.com/topic/150239-finding-words-in-a-given-site-and-replace-them-to-links/#findComment-789022 Share on other sites More sharing options...
werushka Posted March 20, 2009 Author Share Posted March 20, 2009 samshel actually you totally got it the onlyting is that the owner of the site will be putting a simple javascript to their .html so than I think I will solve "Initial case is not possible as u cannot write to pages of a website that does not beling to you" this problem. Quote Link to comment https://forums.phpfreaks.com/topic/150239-finding-words-in-a-given-site-and-replace-them-to-links/#findComment-789400 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.