On Apr 5, 8:57 pm, Jill Elaine <[EMAIL PROTECTED]> wrote: > I want to provide a link to download a file. There are two values that > The values display just fine one at a time: > echo $file->getFilepath(); > prints /this/correct/path/ > > echo $file->getFilename(); > prints thisfile.pdf > > That all looks good! But when I try to make one long URL out of > them... > $full_path_to_file = > 'http://mysite.com'.$file->getFilepath().$file->getFilename(); > > echo $full_path_to_file > prints /this/correct/path/http://mysite.comthisfile.pdf > BUT it should behttp://mysite.com/this/correct/path/thisfile.pdf
Did you try putting parentheses around the function calls? Or assign the value of each "get" to a temporary variable before using those in the concatenation expression? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---