Jump to content

An image path problem


russia5

Recommended Posts

I upload my images to a folder, then I resize and transfer the images to another folder, via an file called transfer.php  transfer.php has an <include> for an image_resize.php file.

[code]

<? php

$command = $imagemagik_path.'convert -resize ';

  // resize for thumbnail 1 size
  $current_command = $command.$thumb_size1.' "'.$old.'" '.$thumb1;
  exec($current_command, $retarray, $retval);
  // echo $current_command;
  if ($retval != 0) // error
  {[/code]

Both, transfer.php and image_resize.php are directly under /public_html  and work fine.

When I take transfer.php and move it to a level below where it presently is ie)  /public_html/level1/transfer.php (leaving image_resize.php where it is at ie) public_html/resize.php)  The files do not work.  (I have a delivery button that transfers the images to the frontend and it is located on transfer.php)

All the paths in transfer.php are okay and working.

I have troubleshot the problem to the above code.  I am certain I have a path problem with the imagemagik resizing.  (I have error code that tells me this as well as other evidence)

Can someone tell me if the path above needs something so when transfer.php is moved to a level below where it is at, the above code imagemagik code will resize the image?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.