Previous Thread
Next Thread
Print Thread
Hop To
#265026 08/22/2021 7:49 PM
Joined: Oct 2007
Posts: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
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,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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: 354
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 354
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
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Forum Privacy Policy
by ECNet - 02/26/2024 11:58 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 322 guests, and 160 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)