473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

PHP Thumb library is not working in my code

245 100+
Hi experts,
I have integrated PHPThumb library but it is not working or showing image after resizing though the image exist on the remote location.

Here is the actual location of the image where the image physically exist location

This is my dynamic generated code of html document

Expand|Select|Wrap|Line Numbers
  1. <img src="show-image.php?file=http://img.youtube.com/vi/ipO-LFQudAM/2.jpg&amp;width=75&amp;height=62" alt="" />
This is my resizing PHPThumb script means show-image.php
Expand|Select|Wrap|Line Numbers
  1. error_reporting(E_ALL);
  2.     require_once 'lib/ThumbLib.inc.php';
  3.     $fileName = (isset($_GET['file'])) ? urldecode($_GET['file']) : null;
  4.     $thumb = PhpThumbFactory::create($fileName);
  5.     $width = (isset($_GET['width'])) ? $_GET['width'] : 90;
  6.     $height = (isset($_GET['height'])) ? $_GET['height'] : 90;
  7.     $thumb->adaptiveResize($width,$height);
  8.     $thumb->show();
Here is the live URL of the website where i have integrated PHPThumb script in the Newest Video section on the right side of the Html document.


Kindly sort out my problem i will be very grateful to you guys.

Thanks in Advance,
Mohsin Rafique
Mar 9 '11 #1
0 1090

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Prashanth Badabagni | last post by:
Hi , can any one please help me to get the source code of the c library ( stdio.h , stdlib.h ....) .... Thanks in advance Prashanth ( Man who saw the end of war )
7
by: marek | last post by:
Dear colleagues, for one project, I need to link Turbo (or Borland) Pascal with (Turbo) C code. I would strongly like to avoid rewriting (my) C routines to Pascal (other part of project is under...
19
by: felixnielsen | last post by:
Some might remember that i, not so long ago, started a treath or two about a weird 3d labyrinth. I now have a working code, that i want to share, hear comments, advice, ect., but first let me...
11
by: Tomás | last post by:
Is there anywhere on the internet where you can download actual source code of an implementation of the C++ library? Stuff like: namespace std { class string { // actual code in here } }
9
by: ruoqingmm | last post by:
Hi, I want to download the source code for C library source code. Any body can help to give me a fast link? Thanks
5
by: dBNovice | last post by:
Hi all, I am reusing code that was used in a previous copy of the DB. I am trying to extract data from other tables, queries and a form and put it in a table. The code was used previously and...
3
by: sarathy | last post by:
Hi all, I am currently working on sockets/pthreads in C ( gcc compiler on Rh9 ). Where can i find the source code for these libraries? I find only the headers and object files in my system. ...
4
by: goodepic | last post by:
I'm newish to python and just got my first mac, so sorry if this is stupid. I have a little app developed by someone else in wxGlade that implements a complex stats package and language package,...
1
by: rajalingam | last post by:
Server Error in '/library' Application. -------------------------------------------------------------------------------- Server cannot access application directory 'F:\Library Latest Code\'. The...
5
by: puneetsardana88 | last post by:
Hi I tried to make a library using code blocks. For which I went file->new->project->static library and name it as mylib and then i created a file mylib1.c and mylib1.h (with some sample functions...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.