Search found 6229 matches

by Benjamin
Thu Apr 22, 2021 6:46 pm
Forum: Databases
Topic: possible mysql 8 bug
Replies: 3
Views: 3953

Re: possible mysql 8 bug

What do you mean by TRIM?

Was the disk full or placed into read only mode? If it went into RO mode check DMESG, it's probably failing.
by Benjamin
Thu Apr 22, 2021 6:44 pm
Forum: PHP - Code
Topic: idea for wordpress
Replies: 3
Views: 1878

Re: idea for wordpress

It shows what search engines, e.g. Bing [Bot], Google [Bot]
by Benjamin
Wed Apr 07, 2021 7:08 pm
Forum: PHP - Code
Topic: What is the difference
Replies: 2
Views: 1969

Re: What is the difference

This sounds like a test question. Historically we don't answer questions like that. Sorry!
by Benjamin
Mon Mar 22, 2021 8:21 am
Forum: PHP - Code
Topic: CSS Switcher works local not online
Replies: 1
Views: 2461

Re: CSS Switcher works local not online

The error message is giving you the location of where the output is being sent. session_start(); must be executed before that specific location.

Also, session_start(); should be called before you start using the $_SESSION variables too.
by Benjamin
Tue Mar 16, 2021 2:06 pm
Forum: Databases
Topic: Improve performance of query using like
Replies: 1
Views: 2648

Re: Improve performance of query using like

There are a lot of different things you could do here. As is, unless your experiencing issues, they are most likely things you can circle back to. Are you having any specific issues you need to resolve?
by Benjamin
Thu Mar 04, 2021 9:03 pm
Forum: PHP - Code
Topic: mathml 3
Replies: 3
Views: 4919

Re: mathml 3

What is it blocking? Maybe add a custom shortcode or something.
by Benjamin
Tue Feb 16, 2021 5:56 pm
Forum: PHP - Code
Topic: fix a wordpress database
Replies: 8
Views: 3138

Re: fix a wordpress database

Sounds like a plan.
by Benjamin
Mon Feb 15, 2021 9:55 pm
Forum: PHP - Code
Topic: fix a wordpress database
Replies: 8
Views: 3138

Re: fix a wordpress database

Check the error_log file. Are you accessing the site from the host machine? If so the VM hosts file needs to have the external IP address not 127.0.0.1.
by Benjamin
Sun Feb 14, 2021 7:59 pm
Forum: PHP - Code
Topic: fix a wordpress database
Replies: 8
Views: 3138

Re: fix a wordpress database

What is the error message?
by Benjamin
Wed Feb 10, 2021 9:57 pm
Forum: PHP - Code
Topic: back at last
Replies: 6
Views: 3041

Re: back at last

I had to implement multiple spam countermeasures to help keep this forum clean. Once things were working again it immediately started getting around 100 spam posts per day. The bots are relentless, they just try to hit the site over and over.
by Benjamin
Wed Feb 10, 2021 3:43 pm
Forum: PHP - Code
Topic: back at last
Replies: 6
Views: 3041

Re: back at last

Yeah it's pretty bad. Even digging through the code to find the cause of a relatively simple error is a bit of a nightmare!
by Benjamin
Sun Feb 07, 2021 5:13 pm
Forum: PHP - Code
Topic: back at last
Replies: 6
Views: 3041

Re: back at last

Hey Vegan!

Yeah it was broken, and the updates were failing leaving it in even worse shape. Finally, with the most recent version of phpBB, I was able to get everything upgraded and working again. We've lost all our regulars, but we're starting to see some folks come back.
by Benjamin
Thu Jan 21, 2021 5:32 pm
Forum: PHP - Code
Topic: Error Message!
Replies: 14
Views: 17505

Re: Error Message!

This code works for me, please try it: <?php ini_set('display_errors', true); error_reporting(E_ALL); require 'database.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { //$conn = getDB(); $sql = "INSERT INTO article (title, content, published_at) VALUES ('" . mysqli_re...
by Benjamin
Wed Jan 20, 2021 8:47 pm
Forum: PHP - Code
Topic: Error Message!
Replies: 14
Views: 17505

Re: Error Message!

Ok, that brings us back to where we started.

I see you rewrote the code a bit. Can you please post all your code, both files, so I can run it locally and test it. Please don't included the password.
by Benjamin
Wed Jan 20, 2021 9:01 am
Forum: PHP - Code
Topic: Error Message!
Replies: 14
Views: 17505

Re: Error Message!

Create a file containing the following:

Code: Select all

<?php
phpinfo();
When you run this in a browser, it will tell you where your php.ini file is. Inside of that file, locate the directive for magic_quotes, and set it to 0 or false, then restart apache.