Jump to content

khalidmushtaq65

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

khalidmushtaq65's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I have facing a problem while rewriting url.. Here's my rewrite rule... RewriteRule ^customer/trash/?$ customer_blocked.php [L] The problem is when i use more than one string, i.e. in the above rule 'customer' and 'trash', url rewriting happens ok for the first time I click on a link, afterwards it adds 'customer' to all the links...For third time it will add 'customer/customer' and so on... When I use one string in rule ie. RewriteRule ^trash/?$ customer_blocked.php [L] it always works fine... Can you help me in fixing this? Thanks...
  2. CSS Problem is fixed now... Now another problem has occured... When I click on a link i.e. http://localhost/ecommerce/smartadmin/dashboard/pages/6 and then hover a mouse on another link it will add 'pages/' to that link... something like that. http://localhost/ecommerce/smartadmin/dashboard/pages/customer/list Can you help me in fixing this? Thanks......
  3. Hi, I am facing a problem in url rewriting, that is my case..... When I rewrite http://www.something.com/users to http://www.something.com/users.php It works fine.... It's that when I use one string after my server / domain name, it works fine..... But when rewriting something http://www.somethig.com/users/pakistan or http://www.something.com/users/pakistan/lahore to http://www.something/users.php?country=pakistan or http://www.something/users.php?country=pakistan&city=lahore respectively, the css of the respective page doesn't apply on that page.... In short, one string is working, more than one disable the css of the page.... I hope you will help me... Thanks.
  4. The way I did this... $data = $your_result_resource["image_field_from_table"]; $size = 50 $img = imagecreatefromstring($data); $width = imagesx($img); $height = imagesy($img); $aspect_ratio = $height/$width; if ($width <= $size) { $new_w = $width; $new_h = $height; } else { $new_w = $size; $new_h = abs($new_w * $aspect_ratio); } $new = imagecreatetruecolor($new_w,$new_h); imagecopyresampled($new,$img,0,0,0,0,$new_w,$new_h,$width,$height); header('Content-type: image/jpeg'); imagejpeg($new); imagedestroy($new); I hope it will work for you too....
×
×
  • 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.