php

How do I decode a base64 string?

Here is the code: $str = 'DQogICAgT1BFTCBBc2NvbmEsIDEuNtC7INC60LDRgNCxLiwg0YbQsi4g0YHQtdGA0YvQuSwg0LvRjtC6LCDRgtC40YLQsNC90L7 ... MDMyMQ=='; echo base64_decode($str); It seems everything is correct, but there is nothing at the output(( How is it treated?

Storing avatars in base64 in files

Hello everyone How about converting photos to base64 when uploading files, and saving the code to the same file, and then loa ... tars is not more than 50-70 kb, the dimensions are 200x200. There will also be 50-100 avatars per page. Does this make sense?

Sublime Text 3 html and php highlighting

I want to have all html and php tags highlighted in sublime text 3. I don't have <!doctype html> and <?php > high ... e looks in Sublime Text 3, and in Visual Studio Code, all these tags are highlighted How do I set up Sublime Text like this?

CSS PHP Line Wrap

Gentlemen! There was such a situation. There is a block with text, the text is output custom. Now, if there are spaces in the ... parts and eventually go beyond its aisles. How can I make such a transfer to fix both cases? Thank you very much in advance!

Sublime Text 3-highlighting php code

Problem: When inserting php code into an html document, php is not highlighted. I attach a screen. If this is a file only wit ... quotation marks gray and dark, so that they are not visible at all, etc. Can I somehow fix this too? Thank you in advance.

PHP: How to get the Unicode character code

Например: И => u0418 А => u0410 Какой функцией можно такое сделать?

How to enable the CNC in the bitrix news.list component

The site has an inform folder with 2 files in it index.php and detail.php In the file index.php the news.list component is ca ... gt; <?/*if($arParams["DISPLAY_BOTTOM_PAGER"]):?> <?=$arResult["NAV_STRING"]?> <?endif;*/?> </ul>

Changing the settings in the php. ini file does not change the php settings

I use apache2 + several versions of php (5.6, 7.0, 7.3). There are two virtual hosts on the server. I change the php version ... ere /etc/php/7.3/apache2/php.ini In this case, all the settings from this file take effect. Tell me what I'm doing wrong?

viber. Error: "The action could not be performed."

When you click on the link via Viber, the application itself opens and displays an error: I wrote a link for viber in the ... le or mobile? All such social networks are opened without problems. An example of links was taken from this site and this .

Remove some elements of the Simple HTML DOM parser page

Greetings to all. There is a page structure like this: You need to remove all the "tr" elements that go after the zero. ... imple HTML DOM parser? Sketches: foreach($html->find('tr') as $value) { $value->outertext = ''; }

How to get data from MySQL using PHP?

There is a table news with 5 fields id, text, title, author, date. You need to display this data on the page. I can't do it i ... soc($news, MYSQL_ASSOC)) { foreach ($row as $col_value) { print "\t\t<td>$col_value</td>\n"; } }

Processing input radio

There is an input field, which, depending on the selected settings, performs either the function of adding to the database, o ... tion(response){ $("#resSearch").html(response); } }); return false; }); });

Embedding PHP code in an HTML page

I do almost for the first time a website and, it just so happens that all the pages are php and only one with the html extens ... is it possible to embed php code in a page with an html extension? I'm not very good at this yet, so don't judge me harshly.

Chat in PHP

I need to write a chat in php, please help me! I was given the task to write a chat in php, I have never encountered this tas ... ite, as I imagine-I will do it on html forms... Thank you in advance to everyone who responds to help with advice or hints!

Deleting all files from ftp php curl

I rolled up the code to delete all files from ftp. But it runs 4 times slower than FileZilla. What's wrong? What are the shor ... '<br />'; // echo 'Curl error: ' . curl_error($ch); //} curl_close($ch); return $content; } ?>

How to properly organize the localization of the site by keys. Where to store the translation?

Now on all pages instead of the text is written echo $tr->get('localization_key'); The question is how and where to sto ... the code on each page, and there may be several thousand of them. Tell me how to store the translation correctly. Thank you

phpmyadmin doesn't want to log in

Hello. There was a problem with phpmyadmin the other day. And she came unexpectedly and unexpectedly. When logging in an erro ... wnload config.inc.php with exfile.ru I tried to replace the $dbuser variable with 'root'. But as it is, there are no results.

When you click on the link, Skype opens

Hello, there is a page on the Internet on the page there is a Skype icon (the link is empty), how to make it so that when you ... is on the computer, it would open Skype, if not, then nothing would happen. Please tell me if there is such a possibility?

Transferring data from js to php

I'm writing a deposit calculator. The amount is set by the slider and displayed in the field c id= "summa2". You need to clic ... } <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $summa = $_POST['summa2']; echo $summa; } ?>

Get the date and time in unix time

There is a date and time, for example 08.06.2013 15:40. How can I get the unix time of this date using PHP?