User Profile

Collapse

Profile Sidebar

Collapse
aaronic
aaronic
Last Activity: Nov 16 '06, 06:32 PM
Joined: Nov 14 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • aaronic
    replied to PHP with XML
    in PHP
    I have looked at that but the link I provided doesn't really co-incide with the details i need to run my php script....
    See more | Go to post

    Leave a comment:


  • aaronic
    started a topic PHP with XML
    in PHP

    PHP with XML

    Need to use PHP to access XML Data. I want to list categories on my website and then display products once the category is selected.

    The only information I have is everything on this site:
    http://www.starline.co m/default.aspx?pg =webservices

    When I look up information on accessing XML through PHP I always need a .wsdl file. Can anyone help me or just lead me in the right direction?

    Thanks,
    ...
    See more | Go to post

  • aaronic
    replied to Image resizing problem
    in PHP
    RESOLVED!

    Changes to code posted below:

    [php]
    function createthumb($na me,$filename,$n ew_w,$new_h)
    {
    $system=explode (".",$name);
    if (preg_match("/jpg|jpeg/",$system[1])){$src_img=ima gecreatefromjpe g($name);}
    if (preg_match("/png/",$system[1])){$src_img=ima gecreatefrompng ($name);}
    $old_x=imageSX( $src_img);
    $old_y=imageSY( $src_img);
    ...
    See more | Go to post

    Leave a comment:


  • aaronic
    replied to Image resizing problem
    in PHP
    Ok please help :)

    I need to create two images, one that is max 120x100 and another 285x407.

    Now with this information I guess the function wouldn't have to work with ANY possible destination size.

    Does that help?
    See more | Go to post

    Leave a comment:


  • aaronic
    replied to Image resizing problem
    in PHP
    Thanks for the help, but the script should work no matter what the source image ratio is, or what the thumbnail ratio is. The function allows you to send it any width/height.

    I think I am going to just make like 10 different examples and come up with a formula that produces the right answer everytime.

    If you have any further help please post :D...
    See more | Go to post

    Leave a comment:


  • aaronic
    replied to Image resizing problem
    in PHP
    Cropping is not an option. I would simply reduce the image size in that situation. I'll use your example and hopefully you can help come up with some code:

    Code:
    Assume: image 400 x 200.
    Required sizes: 200 x 100  = no problem ratio unchanged
                    200 x 50 (final max size)   = final image 100 x 50: Keeping within our 50 height, our image would now be 100x 50
                    200 x 150 (final max size)
    ...
    See more | Go to post

    Leave a comment:


  • aaronic
    replied to Include and Values
    in PHP
    Sure... make the form auto submit when the select input it changed and then do a simple if statement on the top of the page to include a certain file based on their selection....
    See more | Go to post

    Leave a comment:


  • aaronic
    replied to Image resizing problem
    in PHP
    I think this has something to do with the fact that the script was made to think that the width x height ratio would be the same between the source and the end result. The script needs some modification which I am going to look into but I would appreciate if anyone here could figure it out.
    See more | Go to post

    Leave a comment:


  • aaronic
    started a topic Image resizing problem
    in PHP

    Image resizing problem

    This is in reference to my previos post but a completely different problem.

    Previous problem and code can be found here:
    http://www.thescripts.com/forum/thread563724.html

    When I run the function like this, it gives me weird images (ratio is way off)

    [php]
    $uploaddir = '/home/avonprom/www/product_images/';
    $thumbdir = '/home/avonprom/www/product_images/';
    $uploadfile...
    See more | Go to post

  • aaronic
    replied to {SOLVED} PHP script not working properly.
    in PHP
    Sorry just realized my mistake. I didn't make the statement an elseif i just did another if which forced the else to take over if the first if statement was used.

    Thanks for looking anyways :D
    See more | Go to post

    Leave a comment:


  • aaronic
    started a topic {SOLVED} PHP script not working properly.
    in PHP

    {SOLVED} PHP script not working properly.

    I took a script off another site for resizing an image using GD Tools. It works properly keeping the aspect ratio the same except for when the source image is a square, and the thumbnail you want to create is not a square. I have tried to modify the script myself but it did not work. I will paste the script below and mark what I added in. The problem is that the resulting image comes out not as a square but distorted. It should take the smaller...
    See more | Go to post
No activity results to display
Show More
Working...