php

Problem with Google maps API (for development purposes only)

The site has a map with the marks of the city's restaurants. Implemented using google maps. You need to add new marks, but yo ... added? Maybe there are some other options? The site is written in yii1 Link to the page itself: http://www.zm-coffee.ru/shop

Error: Cannot redeclare class

I get the "Cannot redeclare class system"error. This means that something is wrong with the system class, but what? Added fro ... ass . "</b>. Он необходим для работы скрипта."); } else { require $class_dir; } } $index = new system;

Yii2, a complex table. Merge cells, sum values, and export a table

There is data that needs to be output to a table on the page, and then add a button to export this table to excel. It is assu ... ]; Output to the page: <?= GridView::widget([ 'dataProvider' => $provider, 'columns' => $columns, ]); ?>

Is the remainder for the negative argument wrong?

Many programming languages (C, C++, C#, Java, various Pascal dialects, PHP, Javascript) have a remainder calculation operator ... = 0 0 = 0 * 3 + 0 -1 / 3 == -1 -1 % 3 == 2 -1 = -1 * 3 + 2 -2 / 3 == -1 -2 % 3 == 1 -2 = -1 * 3 + 1 , etc.

Using the OpenCV library in php

Good day to all, tell me how to use the opencv library in php? At least on the example of this code? #include <cv.h> #i ... o look in this case? P. p. s. In general, I have a script written in c++, maybe you can also come up with something with it?

Error The mbstring extension is missing?

I have a LEMP server on the machine. When trying to put phpmyadmin on it, it returns the error The mbstring extension is ... tation, I came to the conclusion that a lot of unnecessary extensions were installed. I reinstalled php and everything worked

PHP & regexp: line feed to array

Good day, gentlemen experts! I have a block-div, with the class b-cat-marker js-schedule. It has an attribute data-ch that co ... ribute into an array, for example $data["position"]=49; $data["id"]=49; $data["title"]="....."; PS: no experience in regexp.

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?

Vukomers withdrawal of products from a certain category

It was necessary to display products from a certain category in a table with an additional field. Zakolhozil like this add_sh ... t displays all the products in general. in particular, this problem was not visible at all until the second table was needed.

Implementation of Mysql queries in a loop.

Good afternoon. The following task has developed: the script is passed about 60 variables, they need to be sorted from the ta ... sts then from the already selected fields that the first one returned the query is sorted by the second variable, and so on.

How to leave only numbers, without letters?

There is a line: test-test-example-demo-1a-3321-0-3555-0 I need to delete everything except the digits, but so that 1a is ... And you need to get: 3321-0-3555-0 The number of words in a line is always different. I will be grateful for your help.

Working with htaccess. how to remove a file extension

Actually, the question is this. How to use Htaccess to remove the file extension I tried like this RewriteEngine ON Rewrit ... In general the question is how to remove the extension while the server sees the index files for example Index.php, login.php

Working with Word in php (doc, docx, rtf)

Is it possible to implement on php script that will apply a macro written in vba to a word file? What is needed for this, in which direction to google?

Email forwarding using PHP

My site receives an email to the address "[email protected]", and I wish to forward this message to the user's real email addres ... to as $addr) { $mail->addAddress($addr); $mail->send(); $mail->ClearAllRecipients( ); }

PHP class method call

Let's say there is a class: class Foo { public $W; function __construct(){$this->W = "true";} fu ... f the $t = new Foo(); class, but call the GetW method in this way: Foo::GetW(); Will the constructor be called in this case?

Output images using the ACF Photo Gallery Field plugin (WordPress)

Each entry should be able to add a gallery of images. I found an option for the ACF Photo Gallery Field plugin, I output it t ... h; ?> <?php endif; ?> <?php } /* конец while */?> <?php } /* конец if */?> </div>

How can I enter priority and frequency in the links of the sitemap map built with Yoast SEO?

There is a website on Wordpress with the SEO plugin Yoast SEO installed. I am interested in the sitemap map. At the moment, t ... freq>">http://wp-credit7-ua.test/<changefreq>weekly</changefreq></a> How can this issue be resolved?

How to determine the time zone in PHP by the user's IP address?

Is it possible in PHP to somehow determine the time zone by the IP address of the visitor(for example, to determine +3 for th ... addresses of Moscow). I understand that it is possible to determine in JavaScript, but is it possible directly to PHP by IP?

Is it possible to record all incoming and outgoing Vkontakte messages in the log?

I have access to the girl's page, she knows about it and therefore constantly deletes messages, misleading me. Like, I know her password... Can I use a php script or a jabber client to log all messages and how? At least direct it.

In the keyboard of the vk chatbot written in PHP, it is not possible to embed the link button

Gentlemen, good evening. The question is next. Has anyone ever encountered the development of vk bots with a keyboard in PHP ... ode () function) or otherwise build the logic of the button? I didn't find such a case in the documentation, can you tell me?