php

Free-kassa in Python telegram bot

Good afternoon, everyone. I make a telegram bot. I need a link where a person will click and pay for the product on free-kass ... in advance! https://www.free-kassa.ru/docs/api.php#form_sign We recommended using this instruction when generating a link...

PHP newline character EOL

Hello.I read that this constant provides a line feed for different operating systems. Why then in the example <?php echo ... appear instead of line feeds? What is the scope of its application? Only adding header("Content-type: text/plain"); helps.

Replacing a substring (variable) in a string

There is a string. You need to replace one word with another in it. Difficulties arise when you need to not just change one w ... one variable in the string to another. I hope I explained it clearly. If not-write, I will try to explain it better. Thanks!

Replacing lines in a file

<?php $for_edit = "подробнее"; // искомая строка 1 $for_edit2 = "подробнее2"; // искомая строка 2 $what = "кратко"; ... script look for 2 specific lines and change everything in between to the desired line? (Even though I can't format the text.)

Functions for updating the script after a certain period of time

Tell me, what are the functions in php to update the script after a certain period of time? In general, there is a script th ... s of the server. How to make it so that when you embed it on the site, it is updated well, for example, once every 5 seconds)

Rewrite the C++ code in php

There is such a code in C++ How to write an analog in php? Actually, there is a problem with the assembly language commands ... $f_name1="tmp.ms"; $f_name2="tmp.mse"; $testCrypt = new MyTest(); $testCrypt->crypt($f_name1,$f_name2);

How do I clear an array of identical values? [PHP]

There is a list of product tags. Since the tags are repeated, then, accordingly, the tag can be in the array as many times as ... ag); } } } $all_tags = array_values($all_tags); foreach ($all_tags as $uniqtag) { echo $uniqtag . "\n"; }

How do I use a hidden tag to pass a variable by the GET method to a php script?

I'm new to web development. I'm trying to create a table of any size on the page using html and php. I need to secretly store ... ge options as well hidden variable. I will be glad if you give more tips on creating buttons to reduce and increase the size.

How to execute a GET request using PHP?

How do I make a GET request in PHP? Let's say I need to make such a request: index.php?host=[host]&port=[port] How can such a request be made? And then I do not try, the request does not come out.

What is.net, why it is needed and where it is used

I wonder what it is .net, what it is needed for and where it is used. Also, I recently saw that .net supports PHP. What do you think of this bundle? Is it worth learning .net to use with a Puff?

How to create a Vue js SPA?

Why and when do I need npm ? Will it run on the server or should it not run on the server at all ? What steps do I need to ta ... t work on the site ? Hosting does not support Node.js P. s: I know a lot of questions. But I need someone to sort things out.

How do I delete empty elements in an array along with the keys?

Unset only deletes the value, and I want to delete the keys as well. What to use for this? I would also like to know a function that will remove the whole thing completely by itself, without loops, I think there is such a thing, right?

Authorization on the site via another site

Good time to all of you. There is a task. On my site there is authorization, you need to make sure that when filling in the l ... ied to hack, but I can't figure out how to form an authorization request and redirect the user. Tell me something practical.

Authorization via Public Services

I'm trying to get authorization through Public Services. The procedure for connecting the site is clear. It is not clear how ... I need? Which of the key files is the private key? Or do I need to perform some actions and generate a private key from them?

Laravel and the architecture for the Rest API

Good time of day! I am writing a service in Laravel, in which I use only API requests. There were some questions, since I pre ... d perform data validation inside this class. How do I return an error in my error return option in case of validation errors?

php user registration, checking the uniqueness of values

I'm doing user registration for my site, I'm learning php not so long ago. I get the data from the form -> then I check t ... what data. If anyone has examples from practice and code on how best to do user registration today, I will be very grateful.

Installing Yii PHP Framework Version 2

Please help me. I can't figure out how to install Yii Version 2 at all. Here is the Framework itself: https://github.com/yiis ... I downloaded and threw it where you need it, then ran the command line - and that's it. Now it is not clear what is needed.

Installing Yii2-advanced

Follow the instructions from the site http://web-sprints.ru/ustanovka-yii2-na-openserver/ I tried to install, the first comma ... I need to install composer.json file in the project folder, then to make composer update, and then all the required commands?

Complex page on yii2

In general, such a problem I have a page on which a new "store" is created in the modalka, also in another modalka, any of th ... ps', 'modelShop', 'tariffs')); } UPD: So I found an error saying that I can't accept the id attribute because it is unsafe.