66 year old newbi question on php

I’m trying to store an image file with the following code:
[php]$image->save(’…/thumb_images/. $name …jpg’);[/php]
of course the stored file name is: .$name…jpg
Is there any way to insert a variable, in this case $name; into this statement?
Thanks for your help.

I think you meant to do this

[php]$image->save(’…/thumb_images/’ . $name . ‘.jpg’);[/php]

Thank you so much for the help. I’ve been fighting with this for forever it seems.
Thanks

Sponsor our Newsletter | Privacy Policy | Terms of Service