Previous Thread
Next Thread
Print Thread
Hop To
#265026 08/22/2021 7:49 PM
Joined: Oct 2007
Posts: 286
Likes: 2
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 286
Likes: 2
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

UBBThreads 7.7.4
Web Server Apache/2.4.48
PHP Version 7.4.22
MySQL Version 5.6.49
Database Size 2.26 GB
Joined: Dec 2003
Posts: 6,409
Likes: 55
Offline
Joined: Dec 2003
Posts: 6,409
Likes: 55
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: 286
Likes: 2
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 286
Likes: 2
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

UBBThreads 7.7.4
Web Server Apache/2.4.48
PHP Version 7.4.22
MySQL Version 5.6.49
Database Size 2.26 GB

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Incorrect integer value
by DaveZ - 09/26/2021 4:09 PM
"Hide" a member rather than delete?
by jgeoff - 09/24/2021 4:38 PM
Send Email to "All Members in Search"
by JetStar - 09/20/2021 1:29 AM
Cancel subscription membership
by Morgan - 09/10/2021 4:16 AM
Who's Online Now
0 members (), 49 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
gallery test
gallery test
by Mors, September 23
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 7.7.5