Combining a string and a variable

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

Post Reply
jonas
Forum Commoner
Posts: 96
Joined: Sun May 23, 2004 9:25 pm

Combining a string and a variable

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

$faqshred = 'faqs/' . $faq_url;
jonas
Forum Commoner
Posts: 96
Joined: Sun May 23, 2004 9:25 pm

Post by jonas »

thanks!
Post Reply