Need a second set of eyes to look at a code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Try my code again. I noticed that there was a concatenation issue that I fixed at about the same time as you grabbed it. Try it again and see.
User avatar
Assured99
Forum Commoner
Posts: 81
Joined: Wed Jul 12, 2006 11:48 am
Location: California

Post by Assured99 »

Everah wrote:Try my code again. I noticed that there was a concatenation issue that I fixed at about the same time as you grabbed it. Try it again and see.
What is a concatenation Issue ???

But i have to say you two have been all my help through this transition to the world of PHP hopefully after i finish my class fall semester i will be able to help th enoobs like myself with stupid questions.

Thanks again guys
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

These lines...

Code: Select all

require $abs . '/secure/config.php';
Were originally written as...

Code: Select all

require '$abs/secure/config.php';
Before I corrected them but after you copied them.
User avatar
Assured99
Forum Commoner
Posts: 81
Joined: Wed Jul 12, 2006 11:48 am
Location: California

Post by Assured99 »

so the . will seperate the Variable from the 'path'?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

the dot will seperate strings from other strings

concatenation
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Yes, a dot can be used as a concatenator, or joiner of things. As an example...

Code: Select all

<?php
$string1 = 'This is a string';
$string2 = 'This is another string';

echo $string1 . ' and ' . $string2;

// Outputs:
// This is a string and This is another string
?>
Post Reply