Php update rss file




















If it is not included, all the RSS feed items will be included. This gives you two ways to access the script. First, you can setup a link on your webpage to access the script and resulting webpage. With a text editor open up the rss2html. Look for the line near the beginning that looks like this:. Replace sample. Save the file with a new name what you want to call it on your website , but make sure to keep the.

This and other input files that determine the Web feed are in a simple text format where each field occupies one line of the text file. This can make for some long lines, but long-line support is available in most modern text editors.

The first line is the URL, or "link", of your main Web site. The second line should be the title of the Web site. The third line is the description. The next two lines determine how often the feed changes, or when users should make sure they check to see if there are updates to the feed and consequently your Web site.

Possible values for the first of these lines updatePeriod include "weekly", "monthly", "daily". The values for the last line updateFrequency can be any positive integer for how many times in the specified period to check. In the example above, the RSS feed suggests updates happen once per week. Here is an example text file for a feed item , named in our example event The fourth line is the author of this item, but more likely is the author of the material at the URL link. Numerous files of format similar to event The order of items is determined by the ordering of the file names as specified by the operating system.

Of course, this date format demands there be only one item per day you probably wouldn't be using this system if that was a burden , but it will neatly keep your items in the order you expect. Most items in a feed don't need to be deleted, most RSS aggregators that "consume" feeds hide old feed items from the user. So I've skipped these codes explanation. Row no 38 — if condition returns the true and false result of image file selection. Row no 40 — if condition, Scan image must include jpg, jpeg, png, and gif extension.

Row no 44 — if condition check file size must be 5 MB. Ultimately, the execute function executes the update query statement, displays the file update message successfully and the header function keeps this message at 3 seconds and sends it to index. Before we delete an image under code which gets the image ID from the GET request, this will decide which image we will delete.

When you click Delete link unink function will permanently remove image or file from the server and the PDO delete query will remove image information from the database. Tags PHP. Hamid Shaikh 29 November at Hamid Shaikh 7 May at Harveyhase68 4 November at Hamid Shaikh 7 November at Dicka Kumara Syahlan 2 December at Hamid Shaikh 2 December at Unknown 13 December at Ismadi's Daughter 15 April at Hamid Shaikh 17 April at Unknown 31 December at Unknown 22 April at Hamid Shaikh 23 April at Unknown 7 May at Amira 24 May at Hamid Shaikh 13 June at Hamid Shaikh 18 June at Ali Bahadar Shah 14 July at Hamid Shaikh 19 August at Hamid Shaikh 30 August at



0コメント

  • 1000 / 1000