Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to know if there's a way to chose a random link from a news website, get the page and remove all but text to be stored in a database with php cli. I have no limitations on what can be installed as far as php extensions. If there is no easy way to do this, is there a news service that supplies plain text news?
thanks.
Nope - not from a 'website'... html will vary from site to site and too complex to filter from one source - add multiple sources and the mission is impossible.
That's the bad news. The good news is that there is a way:
Most "news" site provide their content, or a portion of the content, in RSS feeds. Do some research on RSS2 and ATOM protocols and your answer is in there...
Start here: http://www.whatisrss.com
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I've hit a bit of a road block I'm not sure how to add font styling i.e. bold font and also links.
I'm trying to get something like what brian over at backlinko has, which can be seen in this image below
I've only managed to achieve this:
Any ideas or suggestion to be able to achieve adding links and font styling to WordPress manual excerpt would be brilliant.
I was totally overthinking this and thought it was more complex than it actually was.
All I had to do was write the HTML inline in the manual excerpt box like this:
People that succeed with launching a new blog do one thing very well:
They build an email list! But in most cases, they do this before even launching their blog.
But you're probably wondering:
"How do I build an email list before I've even launched my blog?"
I'll break it down into three simple actionable steps that you implement yourself.
[alert-note]<strong>Free Checklist:</strong>Download a free checklist that shows you exactly how to use the strategy from this post (step-by-step).[/alert-note]
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am creating a football transfer site and i want to know how to extract particular pieces of data from a site and insert it into mine. For example, this site : http://www.footballtransferleague.co.uk/football_rumours.aspx , shows you transfer rumours and I want to insert them into my site however they update every 24 hours so I want the new data to appear on my site aswell.
Im not asking for any code, just some tips or videos that can be used to learn about this.
Before anyone says this is illegal, football rumours are considered as 'facts' hence available to reuse.
thanks in advance !
Try with this tool. It downloads the pages with the code that is only translated like html, js and sometimes php. i don't know if it works with .asp .aspx.
htttrack
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to include an external page into my website. How SEO friendly is this? And which will be the right code to use? I came a accross a few different codes and I'm not sure which to use...
Your question as is does not target a specific problem and no code is provided.
You can fetch anything you want and integrate into your website, using output buffers, file_get_contents(), SOAP, REST or cURL.
Search engines do not recognize the fetched content as external, but your page load time might increase if you do not buffer the content which decreases SEO value.
The better question is, does the site you want to fetch from allow using of their content, what licence does it have?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a very simple website, and would like to create a 'Comments' section to it. Currently I have a HTML document and a CSS document running the site.
I have a little knowledge of PHP, and would like to keep this as simple as possible - i.e: saving comments to a text file perhaps? But not sure.
Can someone please suggest the simplest way of adding the comments options in.
Thanks for any help.
You can use Facebook Connect to add comments to an existing page: http://developers.facebook.com/blog/post/472 (Updated Link)
I found that post by searching google for "add facebook comments to your site"
It requires a MySQL database (which, if you're developing with PHP, is something that's better to get a cursory knowledge of sooner rather than later), but Commentator is a pretty nice, simple comment script. See: http://ratherodd.com/commentator/
You actually can do this very easily using file_get_contents() and file_put_contents(). Using only a flat text file and no database.
I set up an example page at:
http://staticchaos.freeoda.com/php/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am facing a problem while creating a dynamic website. I am building it for some pharma company, which have many products. The problem is, every product have different sections of description, and have to be formatted differently. I wanted to store all the product descriptions in the database, but at the same time preserve the formatting of each description. I also plan to provide an admin interface, where they could edit the product information themselves.
I could use Joomla or any other CMS for that purpose, but i wanted to know if i want to build such a system of my own, where i could format the text in an editor and them save that thing into database and when i retrieve it, i get the same formatting. How could i do this?
Also i wanted to do this in PHP.
Thanks
-- Mohit
Just use a WYSIWYG editor like ckEditor or TinyMce. That will handle the text formatting.. then you jsut store in your database.