Today I decided to take some time and upload my backed up website to the new server, as per your instructions.
All was not fine, cause your tutorials and guides are just not compatible with the actual process (need to delete your account between 2 steps, but it doesnāt say that at all. Took me 15 frustrating minutes to figure out what was going on thereā¦ great job!) But then I managed to get through, managed to get through that horrible step-by-step instruction thing as well, it just kept hanging on steps cause of buttons that are not really obviousā¦
Then I finally got my website back running (www.broos.tk), only to notice that my PHP is not being recognized by the serverā¦ I tried setting the PHP version to 5.2 and 5.4 but for some reason, the webserver is just not processingā¦
I even tried uploading a simple <? echo 'test'; ?>
and that didnāt even workā¦ Whatās up with the new server guys? Did I migrate to a broken system?
Migrating like this should not be this difficult, or frustrating, in fact, it shouldnāt have to happen at all (you couldāve just updated our control panels without us having to move our data around)ā¦
Thanks for your reply, but I already figured out that issueā¦
Trying to solve why my sql queries are not recognized now, probably also because Iām using the method that was standard for 15 years and now has been disabledā¦
Also, this basically means that your PHP version thingie doesnāt work - since the mysql_query() function should still be working pre-php 7.00
If youāre using āmysqlā function(not āmysqliā)ā¦then you need to downgrade to php version 5.4 or even less.
To downgrade phpversion āsettingsā ā āgeneralā --āphp versionā
Not going to share the entire code, but hereās the line that Iām still having trouble with (when using single quotes in msgBody)
$_POST[title]=htmlspecialchars($_POST[title]);
$_POST[msgBody]=htmlspecialchars($_POST[msgBody]);
mysqli_query($link,"UPDATE `blogs` SET `title`='$_POST[title]', `blog`='$_POST[msgBody]', `tag`='$tagID' WHERE `ID`=$blog[ID]") or die(mysqli_error($link));
This line used to work perfect, but as soon as I enter single quotes in the text, it gives an SQL-statement parse-errorā¦
Fixed that by adding mysqli_real_escape_string() to the code, never used to be necessary, because htmlspecialchars() already does thatā¦
Well, considering Iāve been using <? ?> for over 20 years on a wide range of servers, both locally hosted and hosted by national and international companies, both Windows and *nix, both embedded and full system, I respectfully disagree with them ānot being a standardā.
They are still enabled by default by most hosting companies and servers where I have my little projects, yet you decided not to enable them by defaultā¦ Thatās fine, but a headsup wouldāve been niceā¦
PHP also allows for short open tag <? (which is discouraged since it is only available if enabled using the short_open_tag php.ini configuration file directive, or if PHP was configured with the --enable-short-tags option).
When official documentation states that it is discouraged i do not consider this as a standard
Okayā¦ I read about that also before but here again, Iām just wondering why it worked before and doesnāt work anymore with the new panelā¦
Anyways I got it all fixed nowā¦ Hope it was worth the effort