Questions tagged [PHP] (40486)

1
answer

How to save text to a document using PHPWord from ckeditor?

how to save text written in ckeditor in a document using PHPWord library, c formatting?
Joshuah.Mueller asked April 19th 20 at 12:49
2
answers

Why website cacheroot?

Why cacheroot website to the level of whole html pages? Well, I imagine, the attendance of 100 people per minute, even though I hardly imagine that the majority of sites. So, even one page, in rukozhopyh coders doing well, for example, 20-30 queries to the database. Is the resource consumption of real-time, outweigh the cos...
ida11 asked April 19th 20 at 12:49
2
answers

Sufficiently safe this method of uploading files?

Good day! Enough of this safe way to upload images to the server? upload.php <?php $AllowFileExtension = array( 'jpg', 'png', 'jpeg' ); $FileExtension = pathinfo(strtolower($_FILES['file']['name'][0]), PATHINFO_EXTENSION); if (!in_array($FileExtension, $AllowFileExtension)) { die('Allowed file formats: jpg, jpeg, png.')...
mellie_Mayer25 asked April 19th 20 at 12:48
0
answer

How to insert Google AdSense after every other header in the article and make a sticky block in laidbare?

How to insert Google AdSense after every other header in the article and make a sticky block in laidbare? Sample article:https://leelo.ru/blog/biznes-i-finansi/kak-otkrit-pekarnyu-s-nulya-poshagovaya-instruktsiya-76
Zola.Spencer asked April 19th 20 at 12:48
1
answer

Why when I try to put the page crashes facebook message about upgrading the browser?

header('Content-type: text/html; charset-utf-8'); $url = 'https://www.facebook.com/groups/1139901032734300'; $file = file_get_contents($url); print_r($file); How to solve this problem?
alex asked April 19th 20 at 12:48
2
answers

Why swear?

Recently started to understand the PLO and was immediately faced with the problem Fatal error: Uncaught Error: Call to undefined function add_in_db() in E:\OSPanel\domains\tutorial\index.php:7 Stack trace: #0 {main} thrown in E:\OSPanel\domains\tutorial\index.php on line 7 Here is the code index.php <?php spl_autoload_r...
Timothy_Towne19 asked April 19th 20 at 12:48
2
answers

A solution of the problem associated with functions and arrays?

Good day, please help to solve the problem in php: You must create a function with any name, with one parameter - the array of items in the basket. The function should count and return how many in the basket of goods (in one position of the basket can contain multiple items - field quantity). The function will pass an array...
henry_Wilkinson asked April 19th 20 at 12:47
1
answer

How to iterate array_diff?

Hello. The hike is very stupid question, but I'm frozen. I have two arrays and I compare them. The arrays are of my view: [0 => "информация1", 1 => "informationit is possible for 2"...] And if I have array_diff to find the differences, it returns a conditional: [12 => "информация12", 25 => "информация25"] How...
mallory.Jenkins87 asked April 19th 20 at 12:47
1
answer

How to know the name of the array with foreach?

Iterate this array How can I in the foreach to know the names of these iterate through arrays? blink and TP
Theresa.Kilback asked April 19th 20 at 12:46
3
answers

Send messages Telegram bot without human intervention. How?

Good day! Rummaged half of Internet in search example, but did not understand. Describe bots everywhere who need something to write. However, I have to, I could get from the bot messages at any event. I have written a php script which invokes in his call to the API to third-party service. API gives 10 products. If there i...
alvis_Stark asked April 19th 20 at 12:46