Re: [PHP-DB] strange link problem to a database item

2002-01-20 Thread chip

On Saturday 19 January 2002 01:52 am, Jason Wong banged out on the keys:
> Interesting problem. It seems that your thumbnails are in an invalid
> format. Using Opera right-clicking on picture and selecting "Image
> Properties" reveals that the purported image dimensions are 0 x 0 pixels
> and Bits per pixel is also 0.
>
> Saving the thumbnail and loading into IrfanView gives an invalid header
> error.
>
> I think you'll have to look at re-doing your thumbnails.
>
> hth

That's it. I just found out on the imagemagick list that the thumbnails 
created by xv are in a format which is loosely derived from pbmplus image 
formats.
So, I have found an app in the ports called jpgtn, it creates thumbnails from 
a directory of jpg files, works quite well. I will use that to create the 
thumbs, and all is well.

-- 
Chip
<+><+><+><+><+><+><+><+>
Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit patch
to an 8 bit operating system originally coded for a 4 bit microprocessor,
written by a 2 bit company that can't stand 1 bit of competition.
<+><+><+><+><+><+><+><+>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] strange link problem to a database item

2002-01-19 Thread Steven Cayford

On 2002.01.18 23:00:16 -0600 chip wrote:
> On Friday 18 January 2002 08:09 pm, Steven Cayford banged out on the
> keys:
> > Hello again.
> >
> > On 2002.01.18 18:48:36 -0600 chip wrote:
> > > In my code I have the following line:
> > >
> > > printf("
> > > \n", $row["name"], $row["name"]);
> >
> > Ok. So the "name" field in your table holds the filename of the image
> and
> > you have a thumbnail image by the same name in the .xvpics folder? What
> > does the html source look like in your browser? If you type the url for
> > the image into the browser address bar directly do you get the image?
> >
> > -Steve
> 
> In Konqueror it works, but when I enter the path into netscape and opera
> as
> suggested it does not work. I even made a differant directory, called
> thumbs,
> and copied the thumb-nail images into it and got the same results. I
> don't
> understand why Konqueror will display them but the other browsers will
> not.
> I was using the .xvpics folder because it was already made by XV, so why
> make
> another? Just seemed simpler. Doesn't PHP have a way of making thumbs
> from
> the larger images dynamically? Seems like I'd seen something about this
> somewhere...
> --
> chip

Strange. It sounds like the images themselves are in a format that only 
konquerer understands. Are they jpegs, gifs, pngs? Do they have the right 
file extensions? I don't know what else to recommend.

PHP does have image manipulation functions if it was compiled with gd 
support. See the manual at http://www.php.net/manual/en/ref.image.php. 
Alternatively you can call the ImageMagick programs from your script.

-Steve

> 
> 
> > > When I view this web page I get I get, in-
> > > konqueror - all thumb images are fine
> > > netscape 6 - no thumb images, just a narrow verticle bar
> > > opera 6 - a rectangle with the word image in it
> > > I tried from work on an nt machine and got broken image icons.
> > >
> > > I have verified all browsers are set to show all images. When I
> > > right-click
> > > and hit show image, so I would view the thumb itself, I don't get the
> > > image,
> > > instead I get the text url to the image.
> > > I've included the full code below.
> > > Any ideas what the cause might be?
> > >
> > > --
> > > Chip W
> > > <+><+><+><+><+><+><+><+>
> > > Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit
> > > patch
> > > to an 8 bit operating system originally coded for a 4 bit
> microprocessor,
> > > written by a 2 bit company that can't stand 1 bit of competition.
> > > <+><+><+><+><+><+><+><+>
> > >
> > > =
> > >
> > > 
> > > 
> > >   Chips Pics
> > > 
> > > 
> > >  > > cellspacing="5">
> > > 
> > >> >$pic = (int) $pic;
> > > if(! isset($pic))
> > > { $pic = 0; }
> > > $new_pic=$pic+24;
> > > $conn=mysql_connect("localhost", "chip","carvin") or die ("Could
> not
> > > get
> > > the databse");
> > >   mysql_select_db("images", $conn) or die ("Could not select the
> > > database");
> > >   $num = mysql_query("select count(*) from misc") or
> > > die(mysql_error());
> > >  $sql="select * from misc limit $pic,24";
> > >  $result=mysql_query($sql) or die ("The query didn't work,
> oops");
> > >  if (mysql_num_rows($result) == 0)
> > > {
> > > echo "\n align=\"center\">\n > > size=\"+2\">Oops, you've reached the end of the line.\n\n > > href=\"../index.html\">Home";
> > > }
> > >  else
> > > {
> > > while ($row=mysql_fetch_array($result))
> > > {
> > > printf(" > > src=\"thumbs/%s\">\n", $row["name"], $row["name"]);
> > > $i++;
> > > if($i %6==0)
> > > {
> > > echo "\n";
> > > }
> > > }
> > > echo "\n\n > > href=\"../index.html\">Home \n > > href=\"index.php?pic=$new_pic\">Next\n\n\n";
> > > echo "\n\nThere are "
> > > .mysql_result($num,0,0). " pics in the database\n\n";
> > > }
> > >   ?>
> > > 
> > > 
> > > 
> > >
> > > --
> > > PHP Database Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 
> --
> <+><+><+><+><+><+><+><+>
> Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit
> patch
> to an 8 bit operating system originally coded for a 4 bit microprocessor,
> written by a 2 bit company that can't stand 1 bit of competition.
> <+><+><+><+><+><+><+><+>
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] strange link problem to a database item

2002-01-19 Thread Jason Wong

On Saturday 19 January 2002 16:06, chip wrote:
> On Friday 18 January 2002 09:39 pm, Chris Lott banged out on the keys:
> > > In my code I have the following line:
> > >
> > > printf("
> > > \n", $row["name"], $row["name"]);
> > >
> > > When I view this web page I get I get, in-
> > > konqueror - all thumb images are fine
> > > netscape 6 - no thumb images, just a narrow verticle bar
> >
> > Can you make this available somewhere to look at?
>
> Okay, try this:
> http://66.114.152.128/p/public_html/";>
> The following files are available for you to look at -
> index.html.txt
> index.tk.txt
> index.pickups.txt
> Just enter those file names after the above url to view the source code.
> (of course you all already know that).

Interesting problem. It seems that your thumbnails are in an invalid format. 
Using Opera right-clicking on picture and selecting "Image Properties" 
reveals that the purported image dimensions are 0 x 0 pixels and Bits per 
pixel is also 0.

Saving the thumbnail and loading into IrfanView gives an invalid header error.

I think you'll have to look at re-doing your thumbnails.

hth
-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
"I'd love to go out with you, but the man on television told me to say tuned."
*/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] strange link problem to a database item

2002-01-19 Thread chip

On Friday 18 January 2002 09:39 pm, Chris Lott banged out on the keys:
> > In my code I have the following line:
> >
> > printf("
> > \n", $row["name"], $row["name"]);
> >
> > When I view this web page I get I get, in-
> > konqueror - all thumb images are fine
> > netscape 6 - no thumb images, just a narrow verticle bar
>
> Can you make this available somewhere to look at?

Okay, try this:
http://66.114.152.128/p/public_html/";>
The following files are available for you to look at -
index.html.txt
index.tk.txt
index.pickups.txt
Just enter those file names after the above url to view the source code.
(of course you all already know that).
-- 
Chip
<+><+><+><+><+><+><+><+>
Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit patch
to an 8 bit operating system originally coded for a 4 bit microprocessor,
written by a 2 bit company that can't stand 1 bit of competition.
<+><+><+><+><+><+><+><+>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] strange link problem to a database item

2002-01-18 Thread Chris Lott

 
> In my code I have the following line:
> 
> printf("
> \n", $row["name"], $row["name"]);
> 
> When I view this web page I get I get, in-
> konqueror - all thumb images are fine
> netscape 6 - no thumb images, just a narrow verticle bar

Can you make this available somewhere to look at?

c
--
Chris Lott
http://www.chrislott.org/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] strange link problem to a database item

2002-01-18 Thread chip

On Friday 18 January 2002 08:09 pm, Steven Cayford banged out on the keys:
> Hello again.
>
> On 2002.01.18 18:48:36 -0600 chip wrote:
> > In my code I have the following line:
> >
> > printf("
> > \n", $row["name"], $row["name"]);
>
> Ok. So the "name" field in your table holds the filename of the image and
> you have a thumbnail image by the same name in the .xvpics folder? What
> does the html source look like in your browser? If you type the url for
> the image into the browser address bar directly do you get the image?
>
> -Steve

In Konqueror it works, but when I enter the path into netscape and opera as 
suggested it does not work. I even made a differant directory, called thumbs, 
and copied the thumb-nail images into it and got the same results. I don't 
understand why Konqueror will display them but the other browsers will not.
I was using the .xvpics folder because it was already made by XV, so why make 
another? Just seemed simpler. Doesn't PHP have a way of making thumbs from 
the larger images dynamically? Seems like I'd seen something about this 
somewhere...
--
chip


> > When I view this web page I get I get, in-
> > konqueror - all thumb images are fine
> > netscape 6 - no thumb images, just a narrow verticle bar
> > opera 6 - a rectangle with the word image in it
> > I tried from work on an nt machine and got broken image icons.
> >
> > I have verified all browsers are set to show all images. When I
> > right-click
> > and hit show image, so I would view the thumb itself, I don't get the
> > image,
> > instead I get the text url to the image.
> > I've included the full code below.
> > Any ideas what the cause might be?
> >
> > --
> > Chip W
> > <+><+><+><+><+><+><+><+>
> > Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit
> > patch
> > to an 8 bit operating system originally coded for a 4 bit microprocessor,
> > written by a 2 bit company that can't stand 1 bit of competition.
> > <+><+><+><+><+><+><+><+>
> >
> > =
> >
> > 
> > 
> >   Chips Pics
> > 
> > 
> >  > cellspacing="5">
> > 
> >>$pic = (int) $pic;
> > if(! isset($pic))
> > { $pic = 0; }
> > $new_pic=$pic+24;
> > $conn=mysql_connect("localhost", "chip","carvin") or die ("Could not
> > get
> > the databse");
> >   mysql_select_db("images", $conn) or die ("Could not select the
> > database");
> >   $num = mysql_query("select count(*) from misc") or
> > die(mysql_error());
> >  $sql="select * from misc limit $pic,24";
> >  $result=mysql_query($sql) or die ("The query didn't work, oops");
> >  if (mysql_num_rows($result) == 0)
> > {
> > echo "\n\n > size=\"+2\">Oops, you've reached the end of the line.\n\n > href=\"../index.html\">Home";
> > }
> >  else
> > {
> > while ($row=mysql_fetch_array($result))
> > {
> > printf(" > src=\"thumbs/%s\">\n", $row["name"], $row["name"]);
> > $i++;
> > if($i %6==0)
> > {
> > echo "\n";
> > }
> > }
> > echo "\n\n > href=\"../index.html\">Home \n > href=\"index.php?pic=$new_pic\">Next\n\n\n";
> > echo "\n\nThere are "
> > .mysql_result($num,0,0). " pics in the database\n\n";
> > }
> >   ?>
> > 
> > 
> > 
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
<+><+><+><+><+><+><+><+>
Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit patch
to an 8 bit operating system originally coded for a 4 bit microprocessor,
written by a 2 bit company that can't stand 1 bit of competition.
<+><+><+><+><+><+><+><+>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] strange link problem to a database item

2002-01-18 Thread Steven Cayford

Hello again. 
On 2002.01.18 18:48:36 -0600 chip wrote:
> In my code I have the following line:
> 
> printf("
> \n", $row["name"], $row["name"]);

Ok. So the "name" field in your table holds the filename of the image and 
you have a thumbnail image by the same name in the .xvpics folder? What 
does the html source look like in your browser? If you type the url for 
the image into the browser address bar directly do you get the image?

-Steve

> 
> When I view this web page I get I get, in-
> konqueror - all thumb images are fine
> netscape 6 - no thumb images, just a narrow verticle bar
> opera 6 - a rectangle with the word image in it
> I tried from work on an nt machine and got broken image icons.
> 
> I have verified all browsers are set to show all images. When I
> right-click
> and hit show image, so I would view the thumb itself, I don't get the
> image,
> instead I get the text url to the image.
> I've included the full code below.
> Any ideas what the cause might be?
> 
> --
> Chip W
> <+><+><+><+><+><+><+><+>
> Windows 95/NT - 32 bit extensions and a graphical shell for a 16 bit
> patch
> to an 8 bit operating system originally coded for a 4 bit microprocessor,
> written by a 2 bit company that can't stand 1 bit of competition.
> <+><+><+><+><+><+><+><+>
> 
> =
> 
> 
> 
>   Chips Pics
> 
> 
>  cellspacing="5">
> 
>   $pic = (int) $pic;
> if(! isset($pic))
> { $pic = 0; }
> $new_pic=$pic+24;
> $conn=mysql_connect("localhost", "chip","carvin") or die ("Could not
> get
> the databse");
>   mysql_select_db("images", $conn) or die ("Could not select the
> database");
>   $num = mysql_query("select count(*) from misc") or
> die(mysql_error());
>  $sql="select * from misc limit $pic,24";
>  $result=mysql_query($sql) or die ("The query didn't work, oops");
>  if (mysql_num_rows($result) == 0)
> {
> echo "\n\n size=\"+2\">Oops, you've reached the end of the line.\n\n href=\"../index.html\">Home";
> }
>  else
> {
> while ($row=mysql_fetch_array($result))
> {
> printf(" src=\"thumbs/%s\">\n", $row["name"], $row["name"]);
> $i++;
> if($i %6==0)
> {
> echo "\n";
> }
> }
> echo "\n\n href=\"../index.html\">Home \n href=\"index.php?pic=$new_pic\">Next\n\n\n";
> echo "\n\nThere are "
> .mysql_result($num,0,0). " pics in the database\n\n";
> }
>   ?>
> 
> 
> 
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]