php7
Getting value from form in php
I have a question about php:
how do I get the value values from input from form, if form has not been sent yet, how do I do t ... the value of input is sent? And also, if possible, how do I get the data in the same file without sending it to another one?
PHP - how to make a merge by key + value?
Array:
array(2) {
[0]=> array(2) {
["2020-03-27"]=> int(8)
["tags"]=> string(17 ... gt; array(2) {
["2020-03-27"]=> int(3)
["tags"]=> string(17) "STS; PTP; сервис; тест" }
}
Vk API PHP:How do I get a photo from a user?
Well, that is, I need, if the user sends a photo, then the bot will download it, and save it, how to implement this?
How to pass the get method to a link
How to pass the get method to the link and so that certain information appears when clicked.
<form method="get">
<a href="index.php?mainLink">main link</a>
</form>
<?php
echo "information";
?>
Output words from a php sentence
Why when outputting words:
preg_match_all('/([a-zA-Zа-яА-Я]+)/',$request->words, $word);
for ($i=0; $i < count($word[ ... owing:
иван
РїпїЅ
козел
иван, пц, козел
If I just output $request->words, then everything is fine.
Converting text to bits
You need to translate the text into bits. I use this script. But not outside the loop, the variable is not output correctly. ... ++) {
$strBin = decbin(ord($inputStrBin[$i])) . "\n";
echo $strBin."\n";
}
echo "</br>".$strBin."</br>";
PHP: How to trim a number so that 1000 looks like 1
Well, the question is in the title. For example umenya number
10000, I want to get 10
Or
1000, I want to get 1
Or
255,000 I w ... arning, now there is such a task, I don't know how, so I decided to ask you.
I hope there is a solution to my problem tasks.
SteamID Converter
Please tell me if someone has a steamID64 to SteamID converter. All the solutions that are on the Internet are very old and d ... /u1087147/data/www/u-reborn.site/SteamIDConverter.php on line 58
Outputs this:
STEAM_0:0:-38280598980132864
What should I do?
php application of if elseif else in a function. Error when comparing data
There is a function:
function findSimple($a, $b)
{
$myArray = array();
if($b > $a)
for ($i = $a; $i < ... => 9 [8] => 10 )
Array ( )
Question: Why is the array empty with the argument a > b (the third function call)?
html + php Calculator
While studying php, I decided to write a simple calculator in php.
There are two inputs for two values, select for selecting ... <input type="text" name="second-value">
<input type="submit" name="submit" value="Посчитать!">
</form>
How to replace mysql result in PHP 7.3
$connect=mysqli_connect("$host", "$user", "$pass", $db) or die("Ошибка подключения");
mysqli_query($connect, "SET NAMES utf8 ... i < 10; $i++)
{
$razdel = mysql_result($result,$i,'razdel'); //Чем заменить?
echo '$razdel';
echo '<br/>';
}
import a country map to postresql using nominatim
**Help download the OpenStreetMap Data Extracts map. countries in Postgresql
root@cc2:/app/nominatim/build# lsb_release -a
... hp on line 36
Nominatim version 3.6.0
postgresql-11 11.5-1. pgdg16. 0
postgis 3.1.0+dfsg-1.pg
php7. 0-pgsql 7.0.33-0ubuntu0
How to work with the API key
There is a task: a registered user gets access to the data of already registered users via the API, for access, the generated ... ing and only then get a response from my API.
Tell me, please, what algorithm of actions should I take to solve this problem?
Creating an API in PHP
There is a task to create registration + authorization in pure PHP and MySQL. After registration, the user receives informati ... At least +- similar to my task. You don't need to write anything for me, just throw in links to sources, thank you in advance
Email mailing list from MySQL to PHP7 with Redbeanphp
You need to implement a newsletter to registered users of the site.
I ran into such a problem that neither on the forums nor ... ll work on PHP7 - where all emails-array are in the variable $usermail (That is, without a connection to the database, etc.)
Find a match of numbers separated by commas in another string of numbers separated by commas
Please tell me how you can check the match of the numbers:
691,695,696,697
In a given string of numbers:
691,695,696,697, ... l to the value 691,695,696,697
The variable $ids_class is equal to the value 691,695,696,697,698,699,692,700,701,702,703,704
How do I tell it to print the value of all the indexes that were filled in?
It gives an error on the 9th line, outputs just Array, how do I tell it to output the entire value of the filled indexes?
$arr = array();
for ($i=0; $i < 10; $i++) {
$arr[$i] = rand(1, 100);
//echo $mass.'<br>';
}
echo $arr;
Help Notice: Trying to get property of non-object
It is necessary to display a list of all users in the system, I don't understand how to do this with the RedBeanPHP framework ... gt; $id) {
# code...
echo 'id '.$user->id.' login '.$user->login.'<br>';
}
}
How to fix or remove errors like "Declaration of ... should be compatible with" that appeared with the transition to PHP 7
With the transition to PHP 7, the error log for many old projects was filled to the brim with messages of this type:
PHP War ... ch to PHP 7 anyway. Go back to PHP 5-don't option.
Given the above, how can the server logs be freed only from these errors?
Symfony 4 ORM: An exception occurred in driver: could not find driver
I decided to get acquainted with the Database and the ORM doctrines in symfony 4.When I reached the creation of the database ... r, I set the required require from the instructions.
The server is configured:
Wamp64: CLI = 7.2.7 - WEB = 5.6.35
.env :