Creating a bulletin board in PHP. We collect an up-to-date list of message boards in Ukraine or any other country! Selected message deleted

Basic information on placing ads on the portal site


  • This section is intended for posting free ads and searching for goods and services, where ads from individuals and legal entities are published.
  • Both registered and unregistered users of the portal site can submit ads to the site
  • All ads must comply with the legislation of the Russian Federation and these rules.
  • After the publication of ads, ads are checked by a moderator.
  • Carefully and correctly fill in all fields in the announcement form.
  • Fields in the announcement form must be filled in according to their purpose.
  • One ad can contain information about only one object of sale, service, exchange or demand.
  • It is forbidden to submit several ads related to the same object of sale, service, exchange or demand.

It is forbidden to post:


  • announcements that contradict the current legislation of the Russian Federation;
  • commercial advertisements containing advertisements of commercial firms, shops, services, etc.
  • ads containing obscene, abusive language;
  • ads that directly or indirectly advertise sites;
  • advertisements deliberately misleading users with or without commercial benefit ...
  • ads with attached photos that are not related to the ad, as well as contrary to the current legislation of the Russian Federation and moral norms.

Ad placement rules


  • The authors are responsible for the accuracy of the information contained in the announcements.
  • Not accepted for publication announcements about the purchase and sale of: foreign currency, all types of weapons and active protective equipment, medicines, including biologically active additives, poisons, narcotic and toxic substances, exotic wild animals and plants.
  • Not allowed to publish announcements with a request for prepayment, postage by cash on delivery or in an envelope of money, as well as other attachments.
  • Not allowed to publish ads, the content of which violates the law (contain propaganda of violence, racial hatred, pornography, etc.).
  • Not allowed to publish ads, the content of which violates generally accepted standards of morality and ethics.

Ads can also be removed from the site for the following reasons:


  • The same ad was posted to the site within one day;
  • The main fields of the announcement are not filled;
  • The information contained in the ad is contrary to site policy;
  • The information contained in the ad is incorrect;
  • The ad title does not contain information about the offered / demanded product / service.
  • The ad title text is in upper case, except for the first letters of the capital words and proper names. Only abbreviations can be written entirely in uppercase.
  • The ad title contains repeated exclamation marks, question marks, ellipses.
  • The text or title of the ad contains multiple spelling and punctuation errors, there are no separating spaces.

Allowed to attach photos with extensions: .jpg, .jpeg or .JPG, .JPEG and no more than 10 MB in size.
It is forbidden to upload photos that are not related to the ad, as well as those that contradict the current legislation of the Russian Federation and moral standards.

The administration of the project reserves the right not to enter into correspondence with the authors of the ads.
The administration reserves the right to remove ads without prior notice and explanation.
Ads that do not meet the above conditions will be removed.

The posted ad will be available for public promotion ONLY after verification and approval by a moderator.

In order for you to sell and buy the necessary goods, lack of hassle, auto service, you can add a blank space to our website. Everyday this side of the street is looking at thousands of koristuvachіv, as it should be known, buy or sell. Mustache, what you need is simple give your nudity and check the reactions of mischievous people.

Do you want to give special respect to your food proposition - to put it in such a way that you have seen a lot of similar things and won the respect for yourself. Otzhe, if you have violated the razmistiti bezkoshtovne razdoshennya, chat about those who are very literate and addicted.

We do not ask you to provide false information, because it was too much or too much for you. Radshe Navpaki, we are napolyagamo on the absolute authenticity of the presentation in the publicized information. Do not go to school, vaguely describe the power of the product that you are selling. You have more than a few hundred symbols to give you without a hat. Don’t bend it.

Would you like to be completely naked?

Perche, uvagu at scho, is the headline. If you want to dodati bezoshennya bezkoshtovno, zoseredite yourself on the heading. It is necessary to make it so that it is intriguing and vivid and laconic as much as possible. It is essential to see the result of your nakedness in the beginning of the audit.

Yaksho vi virishili development of nudity about car sales, be specific. The title of such a stripped-down in the edge bazano indicate all important parameters, tsіkavі for the buyer. As well as, for example, the subject is odyagu chi іnter "йтеru, try to intriguvati, but also to drive the buyer to your horny pigs, and not to a dozen similar ones.

Bezkoshtovno dodati denuzhdeniya in our hour is not a problem, so such a great rizik will be deprived of it. If you need a quick result, be careful not to be naked and, importantly, short. At such a time, we will have all the chances and we will read it until the end.

Do not forget: there are more information, then there are more chances for success. Be honest and informative. Importantly tribute nudity, in which there will be such principles of moment, such as the price, power of the product, of its shortcomings, and also the date of release of the term of accessibility, such as є.

Another important (and only one major) factor is the cost of photography. Having given potential buyers (sellers) the possibility of visual knowledge about the "text", you can take +1 to the rating of your nudity. zir is one of the most sensitive organs, and one of the most sensitive organs, and one of the most vivid organs, spiraling on the yogi tribute.

Nareshti, think about contacts. Try to make everything possible, so that we will call you to the criminals, they will call you by hand. Vip drops, if Lyudin is ignorant of being naked only because of the fact that the author wants to use the phone number of mobile devices. skype, id in social fancy - smut, so you could contact us and get a quick message on your own power.

Now you know that when you publish it, it’s not koshtovno so, you’ve remembered it and read it. Warehouse and publish them on our documents, and we accept the success of your operations.

One of the useful functions provided by the PHP language is the ability to file input / output, which allows you to save and display the data entered by visitors on the site later on the site, which cannot be done with standard HTML tools. This allows PHP to be used to create dynamic structures such as message boards and WEB forums. In addition to supporting standard I / O operations in a text file, PHP also supports SQL queries, for this purpose the MySQL DBMS (http://www.mysql.com) is usually used, but the description of the interaction between PHP and SQL is beyond the scope of this article.

To illustrate the power of PHP, let's create a simple message board for the site. The following files will support the work of our message board:

  • File for displaying messages in the bulletin board and a form for entering a new announcement. (board.php)
  • Form input processing file ( submit.php)
  • A text file containing the entered messages. ( data.txt)
  • File for administering our message board ( admin.php)
  • Protection against unauthorized access to conference data

Users will be given the opportunity to enter data into the form, which will subsequently be displayed on the HTML page. Forms are a standard HTML element and are defined using the following directive:

act - defines the script that will be processed.

method - defines the method of transferring data to this script. There are only two methods: post - all form data is passed in the request body, and get - data is passed at the end of the URL. We will be using the post method.

Inside the form tag are its elements - text fields, text areas, buttons for confirming or resetting data, etc. Text fields and buttons are defined using the INPUT tag, for a text field it has the following format:

name - defines the name of the variable to which the entered data is saved

size - the length of the text field in the browser

maxlength - the maximum number of characters entered in the field

value - the value displayed in the text box by default.

For buttons to confirm and cancel data entry, the Input tag has the following format:

button type - submit for the button to submit the form input and reset - for the button to reset the form data Example buttons:

To enter multi-line text, a text area is used, which is defined using the Textarea tag:

name - defines the name of the variable to which the entered data is saved.

rows - the number of lines in the text area.

cols - the number of columns in the text area.

Example text area

To enter data into our bulletin board, we will use three text fields: the name and e-mail of the person who wants to post a message, as well as the subject of the message, one text area (message text) and two buttons: confirm data entry and reset. Below is the original text of the form:

Your name:

Your e-mail:

Suggestion:\u003e br\u003e
Description:


>

So, the user entered the data and clicked on the confirm button. Form processing control passed to file submit.php... Let's consider it in more detail. First of all, we need to make sure that the user has entered the correct data into the form, namely, filled in all the required fields and the "@" symbol is included in the "e-mail" column:

// Check for empty fields if ($ FIO \u003d\u003d ""): print "

The field "Your name" is not filled

"; else: if ($ tema \u003d\u003d" "): print"

"Subject" field is not filled

"; else: // Check for the" @ "character in e-mail $ eml \u003d stristr ($ email," @ "); if ($ eml \u003d\u003d false): print"

Incorrect e-mail address entered

"; else:

If the data was entered in compliance with the rules established by us, we will write them down to a text file, observing the following conditions:

  1. each message occupies one line in a text file and is separated by a newline character "/ n",
  2. message sections are separated using the "|" character,
  3. the data entered by the user should not contain the characters "", "%", which should protect our message board from hacking and spam.
// open the file for addition $ fd \u003d fopen ("data.txt", "a"); // Check if the user has entered forbidden characters "|", "", "%" and "\\ n" inside the // message and delete them. $ FIO \u003d str_replace ("|", "", $ FIO); $ FIO \u003d str_replace ("", "", $ FIO); $ FIO \u003d str_replace ("%", "", $ FIO); $ email \u003d str_replace ("|", "", $ email); $ email \u003d str_replace ("", "", $ email); $ email \u003d str_replace ("%", "", $ email); $ tema \u003d str_replace ("|", "", $ tema); $ tema \u003d str_replace ("", "", $ tema); $ tema \u003d str_replace ("%", "", $ tema); $ zakaz \u003d str_replace ("|", "", $ zakaz); $ zakaz \u003d str_replace ("", "", $ zakaz); $ zakaz \u003d str_replace ("%", "", $ zakaz); $ zakaz \u003d str_replace ("\\ n", "", $ zakaz); // forming a line to write to the file $ user_row \u003d $ FIO. "|". $ email. "|". $ tema. "|". $ zakaz. "\\ n"; // write a line to a file fwrite ($ fd, $ user_row); // close the file fclose ($ fd);

After processing the data entered by the user, either the processed data is displayed in the form in which it will be displayed in the bulletin board, or the reason why the data is not entered into it.

// display correctly entered data

">

"\u003e Close

end_input1 ($ write_file1); endif; endif; endif;

In file board.php before the form, we will introduce the operation of extracting data from the data.txt file and displaying them in a readable form:

// read all messages from a file into an array, where each element of the array is one // line $ work_file \u003d file ("data.txt"); // start processing data if the file is not empty. if ($ work_file! \u003d ""): // calculating the number of lines $ numbers \u003d count ($ work_file); if ($ numbers! \u003d "0"): // sequentially process all lines and display them on the screen for ($ numbers; $ numbers\u003e 0; $ numbers - \u003d 1): $ work_str \u003d array_shift ($ work_file); $ FIO \u003d strtok ($ work_str, "|"); $ email \u003d strtok ("|"); $ tema \u003d strtok ("|"); $ zakaz \u003d strtok ("|");

">


endfor; endif; endif;

The pictures below show the view of the pages board.php and submit.php after entering data.

Visitors of course can enter any messages in the message board, but this of course does not mean that all of them will suit us. Of course, we can just delete unwanted lines from the file. data.txt directly by going to the server via FTP, but this is naturally not convenient. Better to do this with a dedicated admin HTML page. Let's see how to do this in more detail.

First, let's define that the admin password is stored in a separate file named password.txt. Let's extract the password from this file:

$ pass_file \u003d file ("password.txt"); $ password \u003d array_shift ($ pass_file); The figure shows a form for entering a password:

In the administration file, we will use a sequential call of several forms; to ensure this, we will apply the processing of the form by one script, i.e. assign the password form to the string variable:

$ form \u003d "

Enter your admin password


"; The list of messages is displayed only if the password is entered correctly: if ($ password \u003d\u003d $ entpass): // Read the file with messages $ work_file \u003d file (" data.txt "); // If the file is not empty, then display messages if ($ work_file! \u003d ""): $ numbers \u003d count ($ work_file); if ($ numbers! \u003d 0): for ($ numbers; $ numbers\u003e 0; $ numbers - \u003d 1): $ work_str \u003d array_shift ($ work_file); $ FIO \u003d strtok ($ work_str, "|"); $ email \u003d strtok ("|"); $ tema \u003d strtok ("|"); $ zakaz \u003d strtok ("|");? \u003e

\">

The output of messages is similar to that used in board.php with one difference - after each message a form with a Submit button is displayed. Clicking on this button entails storing in the del_msg variable the page number that we want to delete.


Back to"; endif; endif; else: // Here is a link to the conference start page, which will allow // exit the mode of deleting records without performing deletion. print"

Back to

"; endif;

Deleting a record is as follows - we completely read all lines from the file into an array, where each element of the array is one line, then open the file for rewriting, and write it completely without the line marked for deletion.

$ work_file \u003d file ("data.txt"); $ numbers \u003d count ($ work_file); $ fd \u003d fopen ("data.txt", "w"); for ($ numbers; $ numbers\u003e 0; $ numbers - \u003d 1): $ work_str \u003d array_shift ($ work_file); if ($ del_msg! \u003d $ numbers): fwrite ($ fd, $ work_str); else: print "

The selected message has been deleted!

"; endif; endfor; fclose ($ fd);

After clicking on the "Delete" button, a message is displayed about the successful deletion of the message and a link is offered to return to the start page of the message board.

The presence of a password file in the bulletin board directory forces us to organize protection from viewing it by visitors directly through http. To do this, place a file in the bulletin board directory containing directives for Apache that would prohibit direct viewing of files with the .txt extension. The file will be named .htacces and will contain the following directives:

order allow, deny deny from all

The bulletin board described in the article is the simplest example of such structures; among the possible directions of its complication, one can note the introduction of a form for entering a password, breaking messages into topics by which users can group their messages, indicating the date and time of posting, etc.

In contact with

Hello everyone, today I want to tell you about one quick way by which you can learn how to collect high-quality message boards in your country or region.

A day ago, I received an offer to sell the goods that remained with the owners after the business was closed, of course, creating a website and draining traffic through the context is out of the question, and message boards are very suitable for this business and give quick results.

And if there are few ads views, you can use / Yandex.Direct or paid services of message boards (raise to the top, highlight, etc.), since you can pay for them in any convenient way WebMoney, Privat24 or.

By the way, since I started talking about paid services, I want to share with you my experience of placement paid ads on the website + offline newspaper in the desired region:

Can you imagine? And so 3 times in a row, I created ads, filled in a cloud of fields, and after moderation, I can't edit the ad, as they fucking delete them. However, the situation with boards in Ukraine is very sad, there is only one decent and user-friendly OLX.ua, everything is thought out to the smallest detail ...

But, since we need a large coverage of the target audience, we will not do with one board. And it makes no sense to post to everyone, because many are spammed to the very end, or do not have traffic at all. This is what I want to talk to you about today and show you how to quickly and efficiently cut off such illiquid shit for any region or even country.

I think every person when searching for boards sucks in the query "list of bulletin boards + region / country" and finds some shit directories with dead sites with zero exhaust. But, we will be smarter and put together the list ourselves, just in case, I will publish the list for Ukraine at the bottom of the post, though not the fact that it will be relevant in a couple of months. And so let's get started:

How to build a list of traffic ad boards?

Yes, no how!

I'm kidding of course)

1. The first thing to do is to collect a list of existing boards in the desired region, for this I used the FastTrust software, which has already grown into an online version, using it you need to check the quality of links, but we will use it to parse boards and sort them by quality.

2. Go to FastTrust and open the tool "Search results" and select first for example Google:

- We indicate the region or domain zone google.ru/google.com.ua, etc.
- Select the required number of results in the SERP
- We write a request "Notice board"

We get a list of sites!

3. We repeat step 2 for the Yandex search engine, according to the same principle.

4. In steps 2 and 3, we change the queries, for example "publish an ad for free", "bulletin board + region", "auto bulletin board", etc. For whatever your imagination is enough, if you don't have it, use the selection of Wordstat queries http://wordstat.yandex.ru/.

As a result, you should get a solid list of boards:


5.
Naturally, there are duplicates here, and we must clean them up using the magic button in FastTrust:


381 sites, you won't find so many in more than one list. If you need this list, you can download it:

6. Now you need to remove important parameters for the next site analysis to exclude low-traffic sites. Although you can not do this, but place ads on all sites.

If we rely on the Pareto law (80/20 principle) wiki, then 20% of the sites on the list will give 80% of traffic / views, and the remaining 80% of sites will give only 20%. Now we will try to find this gold 20%.

To do this, select the following parameters in the program:

- Attendance on LiveInternet.ru

In my case, the Li.ru statistics are very few where, in the ua segment they use statues from BigMir, I.ua, Mail, or the stat is simply closed completely. In Runet, LiveInternet is more popular, but still we will not exclude it, because, even if not everywhere, it is worth it, which means that we can draw conclusions about site traffic.

7. Clean up the list with the Alexa Global Rank "-1":

Sorting the column " Day attendance"and mark in it more than 10K traffic per day, then sort by" Alexa"(the less the better), I chose a value up to 100,000, I removed everything over 100,000 from the list (except for those with more than 10K traffic):


8. Now you need to clean the database of non-thematic and narrow-profile sites:

In my case, these are auto boards, job sites and other junk that I don't need now.

In total, I got 17 high-quality and visited message boards out of 381, I am sharing the list with you, as I promised at the beginning of the post:

Main mirrortCIDaily traffic by LI.ru
http://profile.all.biz/board/add3200 79794 2140
http://prom.ua20 -1 4238
http://aukro.ua/NewItem/900 9 4400
http://www.ria.com/objavlenie/2200 44069 4856
http://olx.ua1400 28743 5232
http://doska.io/login?return_path\u003d/add20 -1 19081
http://board.join.ua/add/10 -1 19757
Did you like the article? To share with friends: