Jump to content

[SOLVED] Putting a variable in URL of $upload_path


alconebay

Recommended Posts

How would I put a variable in the URL of $upload_path?

 

I want this:

 

$myvariable = thumbnail

$upload_path = "../pics/$myvariable-image/"

 

To send the image being uploaded to:

 

../pics/thumbnail-image/

 

But its not working with the variable (it works if I put "thumbnail" in place of the variable, so the script is fine). Should I format the variable differently? I tried quotation marks around it, parenthesis.... No go.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.