menu

arrow_back Recent activity by FanatPHP

1 answer
How to combine arrays with the same keys? I have two arrays of products that have the same articles, but a different quantity, and different cities. But there are products that do not repeat themselves. Array ...
commented Jun 16
1 answer
Why do I get an Internal Server Error when downloading a pdf to the site? Hi all, I have the following problem. When downloading some files with pdf extensions an error appears Internal Server Error. Some files load well and some do not. I wi ...
2 answers
How to remove MySQL query formatting? Hello hubr users, I have a question, can the fethcone() query be deselected? There is a request: import telebotimport pymysql ...us_id = message.from_u ...
2 answers
How can I secure the PHP-generated script? There is a PHP script that generates... A PHP script that substitutes data (string or number as a rule) from user input and outputs a .php file to the user. The question ...
answered Jun 16
1 answer
An event that is called every second. Is this normal? To delete sessions automatically, I created an event that is called every second. Is this normal in terms of resource consumption? Really need some experienced comment ...
2 answers
How to make an independent php script and interact with it? Suppose I have two scripts index.php <?phpecho getString();setString("stop");echo getString();?> script.php: <?php$string = "start";function getString() { ...
commented Jun 16
1 answer
How do I write my own error handler in php? In my script, the following function is responsible for error handling: function error_handler( $error_code, $error_message, $error_file_name, $error_line, ...
answered Jun 16
4 answers
How does a bash script determine if a file is a video and get its resolution? In the bash script you need to determine if a certain file is a video and get its resolution in 2 bash variables. The file codec and file extension can be of any kind. ...
3 answers
Is it safe/right to pass the username and password in the header over the HTTPS protocol? Example query: curl -H "username: user" -H " password:12345 " https://mysite.com Another worrying question is whether listening to the traffic can intercept these he ...
1 answer
Why is the random number incorrectly generated? You need to generate a random number of 4 digits. But with this code sometimes for some reason gives out 3 digits or even two: <?php$numSeed = "0123456789"; for( ...
commented Jun 9
1 answer
Why can't I get data from the database? I'm getting to know the symphonies and I can't understand one thing. I ran the symfony nginx php postgres project in the docker. Rolled into the database migration and ...
1 answer
image
How do I solve the "ERROR 2008: MySQL client ran out of memory" problem? Good day to all! I had a miracle at work today... On Friday everything worked, on the weekend, judging by the lack of complaints, too, but today it does not work. The ...
1 answer
How to fix the query to get only unique field values in the output? Hi all. There is a request: SELECT a, b, c, d FROM my_table; How to rework it so that in the output field b was unique, i.e. repeated 1 time? Values of other fields c ...
commented Jun 9
1 answer
How do I correctly replace create_function? Good morning, there is a piece of code public function template_calculator($str) { try { $this->write_log("calc string " . $str); $fn = create_function("", "ret ...
commented Jun 9
1 answer
How do I check a person's registration on another site? Hello everyone! It became necessary to check whether a person is registered on the site example.com. GooglePlus, VK, FB, have their own api - that's understandable. Bu ...
7 answers
A ready-made solution for the post office? Good afternoon. I know the topic has been covered more than a hundred times before, but I'm not really stumped. There is an office need to build them a mail server, pre ...
4 answers
How do I start a PHP / PDO cross-base SQL query? Good afternoon. On the Internet I found a hint of a cross-base query, ala SELECT t1., t2. FROM database1.table1 AS t1 database2.table1 AS t2 Is it a myth or is it pos ...
answered May 29
1 answer
How can I see where MariaDB 10 gets its data from (cache or disk)? Hello everyone! There is: MariaDB 10.0.31 under Centos 6 x64RAM: 16GbDatabase: 8GB (InnoDB)innodb_buffer_pool_size: 12Gbfile_per_table: TRUE The base has a table with ...
5 answers
The universal algorithm for making money from advertising on the sites, am I right? So, I'm a web developer and I want to make money from advertising. My actions: Catching the wave - that is, tracking trends and search queries (for example, on the word ...
1 answer
What's the best way to do the mailing list logging? There is a function of sending out some information Let's take, for example, material #1 and send it out to 10,000 users - that is, we create mailing list #1 We want t ...
commented May 29

251k questions

567k answers

0 comments

312k users