Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-01-2010, 04:17 AM   PM User | #1
merrygoround
New to the CF scene

 
Join Date: Feb 2010
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
merrygoround is an unknown quantity at this point
What does this code mean?

What does this code mean?

$body.="<tr><td align=center>".rawurldecode($HeaderBox)."</td></tr>";

I have a php template I'm trying to customize and I'm trying to figure out where the header image is coming from, and I assume it's from this code. But, I don't understand what it means, or why it chooses the image it does.

yes, obviously I'm a newbie, and learning new stuff is soooo frustrating.
thanks for reading!
merrygoround is offline   Reply With Quote
Old 03-01-2010, 05:28 AM   PM User | #2
rangana
Senior Coder

 
rangana's Avatar
 
Join Date: Feb 2008
Location: Cebu City, Philippines
Posts: 1,752
Thanks: 65
Thanked 372 Times in 365 Posts
rangana will become famous soon enoughrangana will become famous soon enough
Hi merrygoround,

Good day!

"." sign is one of the "string" operators of PHP. The "dot" operator - "appends" a string from the other.

With that said, "body" ($body), variable was first set somewhere in your page, and thus, was reused again to concatenate the previous value to the one that you've pointed out. This means, that you need to find probably a file that was sorted earlier before the file to where you found this code.

Please check header.php or "index.php" of your file-structure, where the "header" is probably set.

For more info, you might find these links useful:
http://php.net/manual/en/language.operators.string.php
http://www.raymondangana.com/php/php...on-03-01-2010/

Hope that helps.
__________________
Learn how to javascript at 02geek

The more you learn, the more you'll realize there's much more to learn
Ray.ph
rangana is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:53 PM.


Advertisement
Log in to turn off these ads.