Previous Thread
Next Thread
Print Thread
Hop To
#265026 08/22/2021 7:49 PM
Joined: Oct 2007
Posts: 361
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 361
Likes: 8
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 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
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: 361
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 361
Likes: 8
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 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 607 guests, and 159 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.0
(Preview build 20230217)