php

Session issue: Cannot send session cache limiter - headers already sent

Initially, when designing the site, I worked with sessions only on one page, where I declared session_start(); Then it was ne ... ent (output started at S:\home\localhost\www\web_shop\faqs.php:1) in S:\home\localhost\www\web_shop\config.php on line 2

HTML & PHP Button

I need to create a form in which there will be a Submit button and two text fields in which you can enter 2 numbers, and when ... um"> <button type="submit" >Send information</button> </form> </body> </html>

How do I make a redirect after executing a php script?

It is necessary for the registration system. That is, the user clicks the "Login" button, a script is executed, located in a ... the end of the script, I encounter the problem described in my previous question Maybe there are special solutions for this?

how to pass a value from the foreach list in javascript by click

The list of events is unloaded from the database and it is output via foreach. The list is sorted by date, but the event IDs ... nt).onclick = function() { document.location.href = "/timetable-mk?record_mk=" + id_event; } </script>

CNC.htaccess (PHP)

Guys, hi, everyone. Tell me how to remove the display .php in the address bar via .htaccess. For example there is a page test ... e same time, so that all this is displayed normally. Tell me who faced it. I would be very grateful for an article or advice!

require and include

Hello comrades! I understand that the question is repeated, but it is still relevant! The official PHP resource does not say ... s('_tools_configurations')) ? 'ok': 'no'; require('./system/tools/_/_tools_configurations/_tools_configurations.php'); ?>

Error Notice: Use of undefined constant

In the loop, the following function is executed twice in a row: function CodeToURLImg($code) { $sql_catalog = 'SELECT Im ... etcat/full.php(127) : eval()'d code on line 121 Both times, the same value was passed to the function. How do I fix this?

Sending html emails

Please explain why the html message does not arrive in the proper format. mail( '[email protected]', 'Письмо из скрипт ... ю php! И скоро научусь отправлять письма с помощью php с вложениями! Это будет круто!</font></body></html>

The parser.json in PHP

You need to parse this link link I did this: <?php $url = file_get_contents("http://api.dotaprj.me/jd/matches/v130/api ... ; margin:10px auto;">'; foreach($subarray as $item){ echo $item; } echo '</table>'; } ?>

How do I check if a string consists only of empty or invisible characters?

How do I check if a string consists only of empty or invisible characters? That is, any characters are allowed, but the string cannot be, for example, like this: " ".

Get a list of files in a directory and subdirectories

Hello. You need to get a list of files with the extension .html in the directory and subdirectories. Moreover, so that the fi ... foreach (glob("*.html") as $filename) { echo "http://site.ru/{$filename}<br/>"; } ?> Thanks. P.S. OC - Windows.

Assign a VK conversation administrator via the API

How to assign and demote administrators in VK conversations via the API? In Kate Mobile, this is implemented only it is not clear how, I can not find a method

Processing messages in a VK conversation via the API

Created a test community. In the API settings, I created a key with all the rights. In the event settings, the Callback API h ... else { Logger::Log($request->rawcontent()); } $response->end("ok"); } }

The cart update button in Woocommerce doesn't work

I inserted a button to update this basket in my cart layout when the number of products changes, for example. I didn't touch ... my own classes. When you click on the button, the page is updated, but nothing changes. Tell me, what could be the problem?

php> MySQL registration form (size of the first letter)

The site has a simple registration form. We enter some data in our case (login password) and they get to us in the database. ... > <p><br/><input name="submit" type="submit" value="Отправить"/><br/></p> </form>

Displaying subcategories on a separate page-Wordpress

Please tell me how to implement the output of child custom taxonomies in WordPress? For example, there are several categori ... no posts. Only child subheadings should be displayed in them. And in the most recent one there will already be records here.

How to shuffle words in a php string

Help me solve the problem. There is a string, let's say: "Nikolai Petrovich Bondarenko". We need an array in which the words ... an consist of not only of three words (maybe two words, or maybe five). I.e., you need all the options for alternating words.

Organization of a multilingual application (php, yii2 framework)

Faced with the problem of organizing a multilingual application in php, mysql, yii2. In the course of "Googling", analyzing ... of MYSQL longtext, as well as crutches with fetching, searching, and writing data. I'm sorry to push you to the right idea)

Cross query sql php

Can you please tell me how to display on the page in the table not the id, which is in the database, but the value itself, wh ... ators` WHERE data_id_station = '".$_GET['id']."' Can you tell me how to correctly output the data, and not the id? Base:

CURL, need help with a request using a proxy

There is a site that is loaded only using VPN: https://www.yad2.co.il/ My task is to parse some data. I can and can do this, ... or.com)']); And many other different combinations, but nothing comes out. Please tell me how to get the content of the site