Need a second set of eyes to look at a code
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
What is a concatenation Issue ???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.
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
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
These lines...
Were originally written as...
Before I corrected them but after you copied them.
Code: Select all
require $abs . '/secure/config.php';Code: Select all
require '$abs/secure/config.php';- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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
?>