menu

Recent questions tagged php

1 vote
1 answer
Why doesn't the regular season and PHP?Hello! Help to understand what go wrong? $_POST'new_name' = "Новый прgоеdfggкт";if (preg_match('@^a-zA-Zа-яА-Я {1,50}$@i', $_POST'new_name')) { print 'ok'; } else { ...
by targetologru
asked Mar 3, 2020
1 vote
1 answer
Why the function does not output the text?Hello! There is a simple function to output text: function text($id) { global $data; echo nl2br($data'text'$id);}Вызываю на этой же странице text(1) Все ок. Подключил ...
by rinaz22
asked Mar 3, 2020
1 vote
2 answers
Why $_POST is impossible to check for in_array()?if (in_array($_POST, 'sell', 'buy')) {/ не работает /} ...
by deepin
asked Mar 3, 2020
1 vote
1 answer
You can implement script for sending SMS?If you can implement a script at the touch of a button, you were sent an SMS with a secret about the phone, then what? And if not, how then to implement without the scrip ...
by AKR4log
asked Mar 3, 2020
1 vote
2 answers
How to make a website separately for mobile devices?How to make the site to add the prefix m ( m.site.com )? Or is it adaptive? ...
by AKR4log
asked Mar 3, 2020
1 vote
1 answer
If the bot can Telegram to send a message to the group?Good evening! If the bot can Telegram to send a message to the group? Ie I have a bot, he can shoot, but can he my messages send to a group? I bot write "AU", and the bot ...
by Dmaw
asked Mar 3, 2020
1 vote
2 answers
How to display products and categories?The point is that on the home page you should see all downloaded products like this: Категориятовары в 4 колонкиКатегориятовары в 4 колонкиНа ум приходит, как мне казалос ...
by qviktor
asked Mar 3, 2020
1 vote
1 answer
How to keep filling out form fields on error, send (if the field does not pass validation)?Prompt it is necessary to specify in the form below when failed to send a person again not filled in all fields? I saw somewhere a video tutorial as people pointed out so ...
by anton_reut
asked Mar 3, 2020
1 vote
1 answer
How do I complete the multiplication table?Hello, going through a video course where I write a code like this: $i = 1;echo '<table border="1">' . "\n";while ($i <= 10) { echo "\t <tr> \n"; $n = 1; ...
by Apostrophe4
asked Mar 3, 2020
1 vote
1 answer
How to choose the greatest photo in the array vk api photos.get?The crux of the matter. Get the pictures cycle from the VK album method photos.get There are photos of different sizes (photo_75, photo_130) how to get the big picture? { ...
by romandkoz
asked Mar 3, 2020
1 vote
2 answers
What prevents me to upload the image?Good evening. Once again I suffer and can't understand that I was wrong configured or made in the form or PHP code... I bratchik changed several times, constantly gave me ...
by RoffDaniel
asked Mar 3, 2020
1 vote
1 answer
How to highlight text regular from the beginning to the entering the unique tag?How to select text with the regular season since the beginning (not the beginning of the string, and the beginning of the text) to a unique tag. For example a tag <h2 ...
by WebSeoLab
asked Mar 3, 2020
1 vote
5 answers
What is the error in Bitrix?Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /home/bitrix/www/bitrix/modules/iblock/classes/general/iblockelement.php ...
by nikita1sm
asked Mar 3, 2020
1 vote
2 answers
As infinitely repeated n-iteration loop?for ($i=0; $i < ; $i++) { # code... if ($z > $x) { # бесконечно повторяем итерацию.. }}Допустим пока внутри цикла for активно условие z > x, нужно постоянно по ...
by pandaa
asked Mar 3, 2020
1 vote
4 answers
How to get data via the api?Hello! Wrote API for retrieving data with external services in json format. To obtain them was written $data = json_decode(file_get_contents("php://input"),true); the pro ...
by teodolit
asked Mar 3, 2020
1 vote
1 answer
How to create a query to Amazon via an API (PHP)?Got the keys on sellercentral.amazon, then I need to make at least the first request to it to do the rest, they have an example POST /Products/2011-10-01 HTTP/1.1Content- ...
by Zimaell
asked Mar 3, 2020
1 vote
3 answers
How to protect php code from a direct launch?Hello. Suppose I have a file registration.php which is located in the src folder. How to make if prescribed straight path to him site.com/src/registration.php he was not ...
by IwanQ
asked Mar 3, 2020
1 vote
1 answer
How to make a chance to execute a command?Hello , I have a bot in the VC , I want to make it a new function , but don't know how ! The essence of the function :Need a Bot with some sort of chance executed the spe ...
by korshunov2110
asked Mar 3, 2020
1 vote
1 answer
image
How to combine the elements of the array by ID?You want to combine duplicate elements of a multidimensional array by ID. Need it to convert an array in PHP.То есть в итоге нужно добавить все arrGorodVievs в одну зап ...
by SergPro
asked Mar 3, 2020
1 vote
1 answer
How to solve a problem Catchable fatal error: Argument 2 passed?Catchable fatal error: Argument 2 passed to Elementor\TemplateLibrary\Source_Local::on_save_post() must be an instance of WP_Post, null given in /home/d/abc/public_html/w ...
by asiknyazeva
asked Mar 3, 2020