Index
» Projects
» phpMyEdit
» Forum
» phpMyEdit on PHP 5.4 |
|
Atara.H
Joined: 23 Jul 2014
Posts: 11
Posted: 2014-07-23 09:49
Back to top
Reply with quote
|
Recently our host upgraded from PHP 5.2 to PHP 5.4
I did the following changes in the code, please let me know if I missed something:
1 - set_magic_quotes_runtime() - deprecated in PHP 5.4 - remove/comment this line.
2 - ereg_replace() - deprecated in PHP 5.4 - Can be changed to preg_replace():
$value = ereg_replace("[\r\n\t ]+",' ',$value);
=>
$value = preg_replace("/[\\r\\n\\t ]+/",' ',$value);
The proposed code might need more testing.
[based on http://stackoverflow.com/questions/2443895/ereg-replace-to-preg-replace]
3 - htmlspecialchars() - in PHP 5.4 the default encoding used by htmlspecialchars() was changed, so I added our encoding, 'ISO-8859-1'. [see also http://opensource.platon.org/forum/projects/viewtopic.php?t=10785766]
[based on http://php.net/manual/en/function.htmlspecialchars.php + Dave's comment there]
Thank you for this useful tool.
Atara
|
parkjonasa
Joined: 22 Nov 2019
Posts: 3
Posted: 2019-11-22 09:02
Back to top
Reply with quote
|
Thanks for sharing such important information which is very useful .I really appreciate your way of work.
webroot geek squad
garmin.com/express
|
tagyfo
Joined: 11 Aug 2020
Posts: 1
Posted: 2020-08-11 08:16
Back to top
Reply with quote
|
I recently posted an advertisement through the platen services in less rates. They provide the news content on their channel for
papersowl
and the edit general keeps take care of the process.
|
jognahartu
Joined: 06 Dec 2021
Posts: 2264
Posted: 2022-04-23 19:12
Back to top
Reply with quote
|
This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great.
internet providers Vancouver
|
stevenbauer
Joined: 05 Oct 2022
Posts: 1
Posted: 2022-10-05 05:45
Back to top
Reply with quote
|
I've undergone considerable transformation, changed into a whole different person, and
slope unblocked
,
mapquest driving directions
and I'm happy with who I've become as a result of the helpful sharing of people like you.
|
Post new topic
Reply to topic
|
|
|
|