close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I am using Security Assist to ensure users Agree to the Terms & Conditions of a web site before proceeding. The code utilises MySQL and the page now has the error message "Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be re

Thread began 3/23/2018 3:55 am by warpsys | Last modified 3/28/2018 11:22 am by Ray Borduin | 1692 views | 7 replies |

warpsys

I am using Security Assist to ensure users Agree to the Terms & Conditions of a web site before proceeding. The code utilises MySQL and the page now has the error message "Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed

I can send you the link to the web page but would prefer to do that privately

Sign in to reply to this post

Ray BorduinWebAssist

You can update your php.ini file to change debugging settings to not display deprecated messages. That is just a warning and won't effect the functionality of the page, so the best option is to just turn it off.

Sign in to reply to this post
Did this help? Tips are appreciated...

anonymous

Hi Ray

I added the following to the PHP.ini

error_reporting(0);

However, I am still getting the same error message

This is part of the code in my php file and perhaps the part at the end overwrites the php.ini file?

Sign in to reply to this post

Ray BorduinWebAssist

The correct syntax for the php.ini file is:

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

Find the existing error_reporting line and change it there, don't just add a line.

Sign in to reply to this post
Did this help? Tips are appreciated...

warpsys

The hosting is with go daddy. I spoke with tem and there isn't an existing PHP file, they said. So I created one with the appropriate line in. I am guessing that's wrong?

Sign in to reply to this post

Ray BorduinWebAssist

It is going to ignore the file if you just add one at a random place.

Just contact godaddy support and ask them how to turn off deprecated error messages. They should have a solution.

Sign in to reply to this post
Did this help? Tips are appreciated...

warpsys

Is there a way of changing the connection so that it resolves it permanently. I imagine that at some stage soon they will turn off support for mysql connections and the site will no longer work, regardless of the deprecated message being turned off.

If there is a link to how to update the connection string, that would be great

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

They will not "turn off" mysql. It won't be supported in php 7, which they won't force you to upgrade to.

You would have to redevelop the pages to use MySQLi. It is not a simple update of just the connection. All of the code on the pages that interact with the database would have to be updated as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...