Previous Thread
Next Thread
Print Thread
Hop To
#265026 08/22/2021 6:49 PM
Joined: Oct 2007
Posts: 464
Likes: 11
Addict
Addict
Joined: Oct 2007
Posts: 464
Likes: 11
I ran into an error when trying to save some changes to a portal island. The odd thing was, the error wasn't pointing to the file I was editing. After tracking it down and fixing the problem, another error popped up. I fixed that. Finally, the portal island I edited saved without errors.

I decided to review all of the portal islands, because I don't normally edit them. The owners do.

I found that some used the new convention.
PHP Code
body= <<<EOF

EOF; 
but some of them still used the old convention.
PHP Code
body = '

?> 
Despite the fact that there was a mixture of files, the software handled all the portals without throwing any errors other than actual problems. I know enough about programming to know that it took some skill and forethought to write the code to make it so robust.

So, kudos to the UBB programmers. They've proven they know what they're doing.


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 8.0.0
Release 20240826
Server OS Linux
Server Load 0.11
Web Server Apache/2.4.37
PHP Version 8.3.11
MYSQL Version 8.0.39
Database Size 1.82 GB
Joined: Dec 2003
Posts: 6,630
Likes: 85
Joined: Dec 2003
Posts: 6,630
Likes: 85
HUH???

The format has always been
Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF

EOF;
I know somewhere in the 7X series it got a little hosed in the default 10 custom islands.
But we were always advised to use the format listed above.
Then with the current version they decided to add the above format as a example note in case something happens again.

I am not aware that they circumvented using the Heredoc(EOF) method.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Oct 2007
Posts: 464
Likes: 11
Addict
Addict
Joined: Oct 2007
Posts: 464
Likes: 11
I don't generally work in the content area of the site, unless the owners ask me to fix something, but my recollection is that we have used the format
PHP Code
body - '

'
?> 
for quite some time. I've never noticed the notes on EOF until the other day. Of course, I immediately fixed the many portals that were not using EOF. But that's beside the point. That the software could gracefully handle the misconfigured portal boxes was my point, and it speaks to the skill of the programmers that the system still worked.


The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 8.0.0
Release 20240826
Server OS Linux
Server Load 0.11
Web Server Apache/2.4.37
PHP Version 8.3.11
MYSQL Version 8.0.39
Database Size 1.82 GB

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Profile avatar storage settings
by SenecaFlyer - 12/05/2024 1:24 PM
Not allowing attachment over 2m
by ehill - 12/03/2024 3:16 PM
New Admin Here
by SenecaFlyer - 12/02/2024 4:14 PM
Who's Online Now
2 members (Ruben, Gizmo), 1,072 guests, and 112 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)