PDA

View Full Version : print html



paulsully
January 11th, 2005, 05:43 PM
Hi,

i am a newbie and i have a problem,

i have a script that resizes an image then displays it , at the end of the script it uses this to show the image:

print("<img src=\"$final_filename\">");

i need to print the images in ghuploads/final_filename

how do i change the print script to point to the ghuploads dir?

i have tried the obvious but i cant get it to work

Gazler
January 11th, 2005, 06:22 PM
errr, have you tried putting.

print("<img src=\"ghuploads/$final_filename\">");

or was this the obvious option you tried?

And I think

$final_filename = "ghuploads/".$final_filename;

just before the print command you have at the moment will work.

jw06
January 12th, 2005, 12:23 PM
print "<img src=\"ghuploads/$final_filename\";

Or try that..

paulsully
January 12th, 2005, 06:11 PM
print "<img src=\"ghuploads/$final_filename\";

Or try that..
thanks, that seems to work

thanks

jw06
January 12th, 2005, 11:07 PM
:D no prob