1

This is what the function calls for:

create_thumbnail($path, $save, $width, $height);

I need to pass a dynamically created $path that contains two variables, $i and $p

This is my code

create_thumbnail('images/'.$i.'/coverphoto/'.$p, false, 1160, 574);

I know my concatenation of the first parameter is wrong, but I can't seem to get it to work using various different methods of concatenation.

Any ideas?

2
  • Can you include any error messages you recieve when running this script? As from your example code everything looks in order... Commented Jun 4, 2013 at 20:39
  • That's the thing that is bugging me, there are no errors anywhere. It just simply does not work. Commented Jun 4, 2013 at 21:25

1 Answer 1

2

I am on my phone so I dont want to type out a bunch of code but ill try help.

$ var = 'images/' . $i . '/coverphoto/' . $p;

Then pass that to your method.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.