Jump to content

lost_toys

New Members
  • Posts

    5
  • Joined

  • Last visited

lost_toys's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okay, I have done so and now I am getting The image at image.php can not be displayed because it contains errors. I really appreciate your guys help, I never would have made it this far.
  2. Oh my god, its so close. I can taste it. Its working almost perfectly. The script is now trying to display the correct variable, but its telling me: The requested URL /site.com/public/www/prod/data/12_24_36_pic.png was not found on this server, so its still not displaying the image. PS: Never in a million years would I have thought to use mod_rewrite, brilliant.
  3. Okay, I can display the image if I tell the image,php the exact file to read, (/site.com/public/www/prod/data/12_24_36_pic.png) as opposed to $image_name, but that doesn't really help me... I need to be able to pull the image from the variable name. How can I pass the variable between these two scripts? I've tried to include the other php file, but that didn't work. And I removed the EOL, you are right. That was a stupid mistake.
  4. I have tried this by putting the script in a seperate php file, and then calling it by using img src=image.php, but it just tells me that the image has errors and can't be displayed.
  5. I have tried everything I can think of with passthru and imagecreatefrompng and whatnot. I cant copy the file to a web directory, so that is out. I just have to be able to display the image. So, my php script calls a program that creates an image based on user input: $file_name = "/site.com/public/www/prod/data/" . $var1 . "_" . $var2 . "_" . $var3 . PHP_EOL; $image_name = $file_name . "_pic.png"; So the program saves the image, say... /site.com/public/www/prod/data/12_24_36_pic.png And yeah, I can totally see the image there. It looks great. However, The site's web root directory is this: /site.com/public/www/prod/htdocs/ So the image is sitting in a directory above what the browser can see. How can I display that image to people?
×
×
  • 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.