PHP

Welcome to the portal about PHP.

New Topics

PhpSpreadsheet: Has anyone used or know how to use the linest function?

I need to get the 10 element linest statistics array. I only see the first element, slope. And last element, residual ss. If I use...

Open Question | 0 Answers

PHP Mail: Diacritics and Special Characters in Name and Subject are not displayed

I'm just trying to send an e-mail with PHP's mail function. Everything works so well. However, only as long as in the header of the mail there are no...

Question | 1 Answer

PHP: exit in include() should not cancel calling script

I have structured my website in a way that I insert the page content in my index.php depending on the url. I am using the function include() for...

Question | 2 Answers

PHP: Date Format for MySQL INSERT

I want to write a date into a DATETIME or TIMESTAMP column of a MySQL table in my database. Which format should I use for PHP's date() function for...

Question | 1 Answer

PHP: Check if session already exists - Prevent error "A session had already been started"

I am working with sessions in one of my PHP scripts. Unfortunately, from time to time, it happens, that apparently already a PHP session exists,...

Question | 3 Answers

HTML Form: Redirection depending on Radiobutton or Checkbox State

Today I want to show you how you can implement an automatic forwarding with PHP after submitting an HTML form. It should be redirected to a page that...

Tutorial | 0 Comments

New Answers and Comments

Mottentier: My little tip: If you want to combine several files as a single compressed file, you can specify this as a parameter for file_put_contents. In the...

Tip | PHP: GZip compress files with PHP

Guest: You are correct. It works fine. I've been using it successfully with an ajax search form, and dynamic codes sent over to the receiving php...

Question | PHP: Form: Submit data via POST and GET at the same time

Guest: if (session_id() == '' || !isset($_SESSION)) { ...

Question | PHP: Check if session already exists - Prevent error "A session had already been started"

NetLabel: This returns an empty string and is not a solution for the...

Question | PHP: Cut first and last Character from String

Guest: How About This echo substr($s, 0, 0); //...

Question | PHP: Cut first and last Character from String

Guest: Thanks, mate! It works good. This solved my problem!...

Question | PHP: Cut first and last Character from String

Popular Topics

Show more

Open Questions

Participate

Everyone can participate in Askingbox. Open your topic directly in this category:

 
If you should have any questions: That’s how it’s done.