Page 1 of 1

Combining a string and a variable

Posted: Mon Jul 12, 2004 3:07 pm
by jonas
How do I do this, without getting errors: (This is in a DB while)

$faq_url = roc[6];
$faqshref = 'faqs/';

Now I want to combine these 2 for a filesize check.

I've tried a lot of combinations but nothing is working. Basically $faq_url holds a filename and I want to combine it with this url, so the filesize check will work properly.

so $faqshref = 'faqs/' + $faq_url

Is what I want to know how to do

Posted: Mon Jul 12, 2004 3:09 pm
by feyd

Code: Select all

$faqshred = 'faqs/' . $faq_url;

Posted: Mon Jul 12, 2004 3:22 pm
by jonas
thanks!