Jump to content

PHPThumb & Variable help please!


TheHaloEffect

Recommended Posts

Hey guys,

 

First off, thanks for looking at my post :)

 

The problem I'm having is this:

I've set phpthumb to do the following:-

<img src="phpthumb/phpThumb.php?src=/screens/upload.php?show=<?php $random = rand(11,14); echo $random; ?>" alt="">

Now, on the site itself, it comes up with an error saying

/home/halo/public_html/screens/upload.php?show=12 does not exist

Whereas if you visit: http://www.xodiac.net/screens/upload.php?show=12 - the picture does very well indeed exist.

 

Any ideas what's going on?

 

Thanks again! <3

Link to comment
https://forums.phpfreaks.com/topic/134759-phpthumb-variable-help-please/
Share on other sites

Look at the error:

/home/halo/public_html/screens/phpthumb/screens/upload.php?show=12 does not exist

 

phpthumb is looking in the wrong directory. Try this:

 

<img src="phpthumb/phpThumb.php?src=../upload.php?show=<?php $random = rand(11,14); echo $random; ?>" alt="">

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.