Re: [PHP] Re: ZendOptimizer + APC

2008-10-23 Thread steve
Run APC on the main site. Create a separate instance of apache running on another port and have it use the ZendOptimizer, and have the admin stuff there. Also, have you tried changing the options for the zend thing to not actually optimize? It only has positive effects if you are also using their

Re: [PHP] PHP/mySQL question using ORDER BY with logic

2008-10-23 Thread Robert Cummings
On Fri, 2008-10-24 at 00:18 -0400, Rob Gould wrote: > Question about mySQL and PHP, when using the mySQL ORDER BY method... > > > Basically I've got data coming from the database where a "wine > producer-name" is a word like: > > Château Bahans Haut-Brion > > or > > L

[PHP] PHP/mySQL question using ORDER BY with logic

2008-10-23 Thread Rob Gould
Question about mySQL and PHP, when using the mySQL ORDER BY method... Basically I've got data coming from the database where a "wine producer-name" is a word like: Château Bahans Haut-Brion or La Chapelle de La Mission Haut-Brion or Le Clarence de

RE: [PHP] web shot script

2008-10-23 Thread Paul Scott
On Thu, 2008-10-23 at 22:20 -0400, Joey wrote: > Really I want to do this, not pay someone to do it via those services you > linked to. > So nobody has seen open source code for this? I run a free (freedom and beer) webservice to do this via the Chisimba framework (http://avoir.uwc.ac.za) The do

Re: [PHP] web shot script

2008-10-23 Thread Andrew Barnett
You might actually be onto something there Afan. As long as Ghostscript and Imagemagick are installed on the server, you will be able to convert a PDF to an image. So maybe that will help. Although, is it possible to have a continuous length PDF, or does it only fit to specific page sizes. Its p

Re: [PHP] web shot script

2008-10-23 Thread Afan Pasalic
Andrew Barnett wrote: Are you suggesting to create a PDF, and then convert from PDF to an image? I'm sorry. didn't get it has to be an image. Andrew 2008/10/24 Afan Pasalic <[EMAIL PROTECTED] > Andrew Barnett wrote: Hey Joey, I had a searc

Re: [PHP] Politics

2008-10-23 Thread Bastien Koert
On Thu, Oct 23, 2008 at 6:05 PM, Amy <[EMAIL PROTECTED]> wrote: > > mouso prefixes egging gestures loozr selected incomprehensibly assumed > sexism > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Time to remove her from the list. -

Re: [PHP] web shot script

2008-10-23 Thread Andrew Barnett
Are you suggesting to create a PDF, and then convert from PDF to an image? Andrew 2008/10/24 Afan Pasalic <[EMAIL PROTECTED]> > > Andrew Barnett wrote: > >> Hey Joey, >> I had a search, and from what I found, it would be very difficult unless >> you >> have root access to a server. Another way

Re: [PHP] Method of connecting image

2008-10-23 Thread Bastien Koert
On Thu, Oct 23, 2008 at 7:11 PM, Ashley Sheridan <[EMAIL PROTECTED]>wrote: > On Thu, 2008-10-23 at 23:44 +0900, [EMAIL PROTECTED] wrote: > > Hi > > > > Is there a method of connecting the jpg image with PHP? > > For instance, four images tie by two in two length in side. > > > > > > Napura > > ***

Re: [PHP] index search

2008-10-23 Thread Robert Cummings
On Thu, 2008-10-23 at 19:30 -0700, Ryan S wrote: > Hey all, > Was wondering how this is done, have a bunch of links like so: > 0-9 : a : b : c -> till Z > > these will be linked to the program (so far have done this) but when the user > clicks any of those links I want to query the DB for jus

Re: [PHP] web shot script

2008-10-23 Thread Afan Pasalic
Andrew Barnett wrote: Hey Joey, I had a search, and from what I found, it would be very difficult unless you have root access to a server. Another way would be to create a HTML/CSS renderer using PHP, and then using that to take a screenshot. or, maybe, as an idea, save the page as pdf?

Re: [PHP] web shot script

2008-10-23 Thread Andrew Barnett
Hey Joey, I had a search, and from what I found, it would be very difficult unless you have root access to a server. Another way would be to create a HTML/CSS renderer using PHP, and then using that to take a screenshot. A link from DigitalPoint < http://forums.digitalpoint.com/showthread.php?t=76

[PHP] index search

2008-10-23 Thread Ryan S
Hey all, Was wondering how this is done, have a bunch of links like so: 0-9 : a : b : c -> till Z these will be linked to the program (so far have done this) but when the user clicks any of those links I want to query the DB for just the first alphabet from the field "title", using LIKE is n

RE: [PHP] web shot script

2008-10-23 Thread Joey
Hi Guys, Really I want to do this, not pay someone to do it via those services you linked to. So nobody has seen open source code for this? > -Original Message- > From: Joey [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 18, 2008 4:59 AM > To: PHP > Subject: [PHP] web shot script >

[PHP] Re: Politics

2008-10-23 Thread Colin Guthrie
Daniel P. Brown wrote: Mandriva Linux Contributor [http://www.mandriva.com/] Hooray for Cooker! :D -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.

Re: [PHP] Method of connecting image

2008-10-23 Thread Ashley Sheridan
On Thu, 2008-10-23 at 23:44 +0900, [EMAIL PROTECTED] wrote: > Hi > > Is there a method of connecting the jpg image with PHP? > For instance, four images tie by two in two length in side. > > > Napura > > Linux Debian4 (Server) > PHP 5.2.2 > Apache 2.2.4 > My

Re: [PHP] export data to a ms excel file using php

2008-10-23 Thread Ashley Sheridan
On Thu, 2008-10-23 at 13:05 +0530, gopi krishnan wrote: > Hi, > > Could any one explain better. I need just the grid lines for the excel > sheet. I already tried that but it shows the linings only > to the valued cells. But i need to show the grid as in MS Excel. I tried > TEXT/XML > but i get th

[PHP] Politics

2008-10-23 Thread Amy
mouso prefixes egging gestures loozr selected incomprehensibly assumed sexism -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] export data to a ms excel file using php

2008-10-23 Thread Jim Lucas
gopi krishnan wrote: > Dear all, > > I found the solution for my problem. > try this core... > > --- > > #Setting MIME Type in header > /*header("Content-Type: application/vnd.ms

Re: [PHP] what's the difference in the following code?

2008-10-23 Thread Thomas Wicht
On Oct 17, 2008, at 1:58 PM, Lamp Lists wrote: I'm reading "Essential PHP Security" by Chris Shiflett. on the very beginning, page 5 & 6, if I got it correct, he said this is not good: $search = isset($_GET['search']) ? $_GET['search'] : ''; and this is good: $search = ''; if (isset($_GET

Re: [PHP] what's the difference in the following code?

2008-10-23 Thread Jochem Maas
Chris Shiflett schreef: > On Oct 17, 2008, at 1:58 PM, Lamp Lists wrote: > >> I'm reading "Essential PHP Security" by Chris Shiflett. >> >> on the very beginning, page 5 & 6, if I got it correct, he said this >> is not good: >> >> $search = isset($_GET['search']) ? $_GET['search'] : ''; >> >> and

Re: [PHP] what's the difference in the following code?

2008-10-23 Thread tedd
At 11:00 AM -0400 10/23/08, Chris Shiflett wrote: On Oct 17, 2008, at 1:58 PM, Lamp Lists wrote: I'm reading "Essential PHP Security" by Chris Shiflett. on the very beginning, page 5 & 6, if I got it correct, he said this is not good: $search = isset($_GET['search']) ? $_GET['search'] : '';

Re: [PHP] Re: Politics

2008-10-23 Thread Daniel P. Brown
On Thu, Oct 23, 2008 at 1:12 PM, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > Ohh dear, doesn't sound like fun :s Hope you're on the mend now. Yessir, and thanks. When I was incommunicado for a bit back in August, that's the reason. You and many others here and elsewhere on the web know me b

Re: [PHP] Difficulty navigating symlinks

2008-10-23 Thread Seth Foss
Jim Lucas wrote: Robert Cummings wrote: On Thu, 2008-10-23 at 09:46 -0400, Seth Foss wrote: Jim Lucas wrote: Seth Foss wrote: Jim Lucas wrote: Seth Foss wrote: Hi everyone, I am trying to run multiple sites on the same server

[PHP] Re: Politics

2008-10-23 Thread Colin Guthrie
Daniel P. Brown wrote: On Thu, Oct 23, 2008 at 11:40 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: On that note... has anyone seen Lars and the Real Girl? I thought it was going tobe a comedy after I laughed so hard at the introduction. Then it was all drama :/ And I missed it all while I

Re: [PHP] Difficulty navigating symlinks

2008-10-23 Thread Jim Lucas
Robert Cummings wrote: > On Thu, 2008-10-23 at 09:46 -0400, Seth Foss wrote: >> Jim Lucas wrote: >>> Seth Foss wrote: >>> Jim Lucas wrote: > Seth Foss wrote: > > >> Hi everyone, >> >> I am trying to run multiple sites on the same server, that have

Re: [PHP] CSV Files

2008-10-23 Thread Andrew Ballard
On Thu, Oct 23, 2008 at 2:54 AM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Thu, 2008-10-23 at 02:26 -0400, Andrew Ballard wrote: >> On Thu, Oct 23, 2008 at 2:22 AM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > On Wed, 2008-10-22 at 22:30 -0400, Andrew Ballard wrote: >> >> On Wed, Oct 22

Re: [PHP] mysqli, prepare and fetch_row

2008-10-23 Thread Marten Lehmann
Hi, Kyle Terry wrote: Why don't you want to bind the results? thats poor programming style and bad performance (dozends of bind calls). Since there is a method fetch_row(), then why shouldn't I use it? It is a bit strange that I cannot find any example for its use besides in conjunction wit

Re: [PHP] Politics

2008-10-23 Thread Daniel P. Brown
On Thu, Oct 23, 2008 at 11:40 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On that note... has anyone seen Lars and the Real Girl? I thought it was > going tobe a comedy after I laughed so hard at the introduction. Then it > was all drama :/ And I missed it all while I was in the hospita

Re: [PHP] what's the difference in the following code?

2008-10-23 Thread Robert Cummings
On Thu, 2008-10-23 at 11:00 -0400, Chris Shiflett wrote: > On Oct 17, 2008, at 1:58 PM, Lamp Lists wrote: > > > I'm reading "Essential PHP Security" by Chris Shiflett. > > > > on the very beginning, page 5 & 6, if I got it correct, he said this > > is not good: > > > > $search = isset($_GET['sea

Re: [PHP] Difficulty navigating symlinks

2008-10-23 Thread Robert Cummings
On Thu, 2008-10-23 at 09:46 -0400, Seth Foss wrote: > Jim Lucas wrote: > > Seth Foss wrote: > > > >> Jim Lucas wrote: > >> > >>> Seth Foss wrote: > >>> > >>> > Hi everyone, > > I am trying to run multiple sites on the same server, that have mostly > identical co

Re: [PHP] Politics

2008-10-23 Thread Robert Cummings
On Thu, 2008-10-23 at 13:59 +0200, Jochem Maas wrote: > Amy schreef: > > prints mosfet customercontrol universally lastinfirstout unixlike techie > > perversities agreement > > > > going by the last 4 words she must be talking about Cummings ... we all agree > his doll fetish is > rather perver

Re: [PHP] what's the difference in the following code?

2008-10-23 Thread Chris Shiflett
On Oct 17, 2008, at 1:58 PM, Lamp Lists wrote: I'm reading "Essential PHP Security" by Chris Shiflett. on the very beginning, page 5 & 6, if I got it correct, he said this is not good: $search = isset($_GET['search']) ? $_GET['search'] : ''; and this is good: $search = ''; if (isset($_GET

RE: [PHP] export data to a ms excel file using php

2008-10-23 Thread Boyd, Todd M.
> -Original Message- > From: Yeti [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 23, 2008 9:36 AM > To: gopi krishnan; PHP - General > Subject: Re: [PHP] export data to a ms excel file using php > > I'm not into MS Office, but isn't there some weird Office XML format > since Office 20

[PHP] Method of connecting image

2008-10-23 Thread napura
Hi Is there a method of connecting the jpg image with PHP? For instance, four images tie by two in two length in side. Napura Linux Debian4 (Server) PHP 5.2.2 Apache 2.2.4 MySQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Method of connecting image

2008-10-23 Thread Aschwin Wesselius
[EMAIL PROTECTED] wrote: > Hi > > Is there a method of connecting the jpg image with PHP? > For instance, four images tie by two in two length in side. > > > Napura > > Linux Debian4 (Server) > PHP 5.2.2 > Apache 2.2.4 > MySQL > > Hi, I guess you have to us

[PHP] Method of connecting image

2008-10-23 Thread napura
Hi Is there a method of connecting the jpg image with PHP? For instance, four images tie by two in two length in side. Napura Linux Debian4 (Server) PHP 5.2.2 Apache 2.2.4 MySQL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] export data to a ms excel file using php

2008-10-23 Thread Yeti
I'm not into MS Office, but isn't there some weird Office XML format since Office 2007? At MSDN I could find a nice description of the wannabe standard [1]. So if the new Excel can take XML it wouldn't be too difficult to export the data I guess. [1] http://msdn.microsoft.com/en-us/library/aa33820

Re: [PHP] export data to a ms excel file using php

2008-10-23 Thread gopi krishnan
Dear all, I found the solution for my problem. try this core... --- ';*/ # Then we fetch rows in a loop until we're done while ($result = oci_fetch_array($stmt)) { /*echo "gopi

Re: [PHP] class constructor overloading

2008-10-23 Thread Christoph Boget
>> is it possible to overload the class construct(or) ? >> if yes, how ? No, it's not. > class A > { >function __construct() >{ >echo "A"; >} > } > > class B extends A > { >function __construct() >{ >echo "B"; >

Re: [PHP] Difficulty navigating symlinks

2008-10-23 Thread Seth Foss
Jim Lucas wrote: Seth Foss wrote: Jim Lucas wrote: Seth Foss wrote: Hi everyone, I am trying to run multiple sites on the same server, that have mostly identical code - a pre-built application. Anyway, I would like to save disk space by specifying independent configuration

RE: [PHP]Keep the modification date of a file when archiving it.

2008-10-23 Thread Boyd, Todd M.
> -Original Message- > From: Bastien Helders [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 23, 2008 4:26 AM > To: php-general@lists.php.net > Subject: [PHP]Keep the modification date of a file when archiving it. > > > Hi, > > When I'm archiving files in a ZIP file, using the class

Re: [PHP] XCache, APC, Memcached... confused

2008-10-23 Thread ceo
> First of all you need to get it clear in your head what an opcode cache > is actually doing. It does not "cache the website", it caches the > compiled version of the PHP scripts such that PHP doesn't need to > recompile each file every time it's included which is the default way > PHP wo

Re: [PHP]Keep the modification date of a file when archiving it.

2008-10-23 Thread Kyle Terry
Before changing the file, use the filemtime() function to get the mod date, then use touch() to set the date after you change the file. On Thu, Oct 23, 2008 at 2:25 AM, Bastien Helders <[EMAIL PROTECTED]>wrote: > > Hi

Re: [PHP] Mysql search

2008-10-23 Thread tedd
At 11:16 PM -0700 10/21/08, Ryan S wrote: Am hoping someone out there can recommend a better script or maybe share some of your own code? Any help would be appreciated. Do it right... read up on MySQL's fulltext matching. Cheers, Rob. Did some searching based on your tip, got what i w

Re: [PHP] Half way

2008-10-23 Thread tedd
At 5:27 PM +0200 10/22/08, Jochem Maas wrote: personally I prefer the solution where there is no ad shown at all. I hear that -- I hate it when you develop a beautiful site for a client and then they want to hang ads off it -- and then complain about the site being too wide. Can't win Che

[PHP] Printing JPEG

2008-10-23 Thread Kyle Terry
I'm stuck... What is the best way to send a jpg to a printer with PHP? Looks like it is only working with png and bmp... -- Kyle Terry | www.kyleterry.com

Re: [PHP] Politics

2008-10-23 Thread Jochem Maas
Amy schreef: > prints mosfet customercontrol universally lastinfirstout unixlike techie > perversities agreement > going by the last 4 words she must be talking about Cummings ... we all agree his doll fetish is rather perverse and he's definitely unixlike -- PHP General Mailing List (http://

Re: [PHP] class constructor overloading

2008-10-23 Thread Jochem Maas
Alain Roger schreef: > thanks a lot, this is exactly what i needed. > if the construct of based class A accept arguments, i guess that construct > of class B must have the sames. > moreover, i guess that something like that must be written: I guess you find guessing preferable to RTFM and/or tryin

RE: [PHP] export data to a ms excel file using php

2008-10-23 Thread Jay Blanchard
[snip] Could any one explain better. I need just the grid lines for the excel sheet. I already tried that but it shows the linings only to the valued cells. But i need to show the grid as in MS Excel. I tried TEXT/XML but i get the following error [/snip] http://evolt.org/node/26896 Part of the

Re: [PHP] Re: ZendOptimizer + APC

2008-10-23 Thread Jochem Maas
Nathan Nobbe schreef: > On Wed, Oct 22, 2008 at 4:39 PM, Martin Zvarík <[EMAIL PROTECTED]> wrote: > >> Jochem Maas napsal(a): napsal(a) ... that's even weirder than my 'schreef' :-) >>> anyone know whether running ZendOptimizer + APC simultaneously still >>> causes allsorts >>> of problems ... I

Re: [PHP] Inheritance of class methods

2008-10-23 Thread Jochem Maas
Alain Roger schreef: > Hi, > > i have the following classes: > class A > { > public function EchoMe($txt) > { > echo $txt; > } > } > > class B extends A > { > ... > } > > in theory i can write something like that: > > $b = new B(); > $b->EchoMe("test"); > > and i should get echo "t

Re: [PHP] Inheritance of class methods

2008-10-23 Thread Yeti
Using extends means that a class IS-A substructure of its parent class(es). EXAMPLE: class plant { }; class tree extends plant { }; class apple_tree extends tree { }; apple_tree inherits all methods and attributes from plant and tree So if there was a methods plant->growth() you can also call it

[PHP] Re: Inheritance of class methods

2008-10-23 Thread Nathan Rixham
Alain Roger wrote: am i correct ? yup [unless you overwrite it in class B with another method of the same name that functions differently] -- nathan ( [EMAIL PROTECTED] ) { Senior Web Developer php + java + flex + xmpp + xml + ecmascript web development edinburgh | http://kraya.co.uk/

[PHP] Inheritance of class methods

2008-10-23 Thread Alain Roger
Hi, i have the following classes: class A { public function EchoMe($txt) { echo $txt; } } class B extends A { ... } in theory i can write something like that: $b = new B(); $b->EchoMe("test"); and i should get echo "test" on screen. am i correct ? -- Alain ---

Re: [PHP] class constructor overloading

2008-10-23 Thread David Otton
2008/10/23 Alain Roger <[EMAIL PROTECTED]>: > thanks a lot, this is exactly what i needed. > if the construct of based class A accept arguments, i guess that construct > of class B must have the sames. No, you can change the signature of a method when you overload it. Below, B::__construct() accep

Re: [PHP] class constructor overloading

2008-10-23 Thread Jim Lucas
Alain Roger wrote: thanks a lot, this is exactly what i needed. if the construct of based class A accept arguments, i guess that construct of class B must have the sames. moreover, i guess that something like that must be written: class A { function __construct($nameA) { ... } } class

Re: [PHP] Re: Problem changing file encoding

2008-10-23 Thread Thodoris
Thodoris wrote: Hi guys, I am developing a project and I wrote an interface to import contracts in it. The problem is that when the user uploads the file I don't know what is the encoding it has. So I decided that a good idea is to make the user tell me the encoding from a drop down before I

[PHP] Politics

2008-10-23 Thread Amy
prints mosfet customercontrol universally lastinfirstout unixlike techie perversities agreement -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class constructor overloading

2008-10-23 Thread Alain Roger
thanks a lot, this is exactly what i needed. if the construct of based class A accept arguments, i guess that construct of class B must have the sames. moreover, i guess that something like that must be written: class A { function __construct($nameA) { ... } } class B extends A { funct

[PHP]Keep the modification date of a file when archiving it.

2008-10-23 Thread Bastien Helders
Hi, When I'm archiving files in a ZIP file, using the class ZipArchive, the modification date is modified to when ZipArchive::close is called. I would like to keep the original modification date. Is that even possible? Best Regards, Bastien Helders

[PHP] Re: XCache, APC, Memcached... confused

2008-10-23 Thread Colin Guthrie
Stut wrote: On 23 Oct 2008, at 00:04, Martin Zvarík wrote: I am looking at the eAccelerator's website and I realize what got me confused: there is a function for OUTPUT CACHE, so it actually could cache the whole website and then run out of memory I guess... that means I would be able to st

Re: [PHP] class constructor overloading

2008-10-23 Thread David Otton
2008/10/23 Alain Roger <[EMAIL PROTECTED]>: > is it possible to overload the class construct(or) ? > if yes, how ? class A { function __construct() { echo "A"; } } class B extends A { function __construct() { echo "B";

Re: [PHP] export data to a ms excel file using php

2008-10-23 Thread gopi krishnan
Hi, Could any one explain better. I need just the grid lines for the excel sheet. I already tried that but it shows the linings only to the valued cells. But i need to show the grid as in MS Excel. I tried TEXT/XML but i get the following error --- The XML page cannot be

[PHP] class constructor overloading

2008-10-23 Thread Alain Roger
Hi, is it possible to overload the class construct(or) ? if yes, how ? thx. -- Alain Windows XP SP3 PostgreSQL 8.2.4 / MS SQL server 2005 Apache 2.2.4 PHP 5.2.4 C# 2005-2008