Re: [PHP] another question on setting include paths for a project

2010-03-24 Thread Richard Quadling
On 23 March 2010 16:39, Robert P. J. Day wrote: > On Tue, 23 Mar 2010, Richard Quadling wrote: > >> However you want to identify the location, the autoloading techniques >> will allow you to only need to identify the location once. As compared >> to every file meticulously maintaining relative lin

Re: [PHP] another question on setting include paths for a project

2010-03-23 Thread Robert P. J. Day
On Tue, 23 Mar 2010, Richard Quadling wrote: > However you want to identify the location, the autoloading techniques > will allow you to only need to identify the location once. As compared > to every file meticulously maintaining relative links to files. > > So, for testing, would this not work?

Re: [PHP] another question on setting include paths for a project

2010-03-23 Thread Richard Quadling
On 23 March 2010 13:11, Robert P. J. Day wrote: > On Mon, 22 Mar 2010, Nilesh Govindarajan wrote: > >> What I do is, set the include path in the top-level bootstrapper. >> >> /bootstrap.php: >> >> set_include_path(dirname(__FILE__) . '/lib' . PATH_SEPARATOR . >> get_include_path()); >> >> Then I l

Re: [PHP] another question on setting include paths for a project

2010-03-23 Thread Robert P. J. Day
On Mon, 22 Mar 2010, Nilesh Govindarajan wrote: > What I do is, set the include path in the top-level bootstrapper. > > /bootstrap.php: > > set_include_path(dirname(__FILE__) . '/lib' . PATH_SEPARATOR . > get_include_path()); > > Then I load the autoloader from /lib/autoload.php at the time of boo

Fwd: Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Jochem Maas
oops, mailed the OP direct rather than the list. sorry. Originele bericht Onderwerp: Re: [PHP] another question on setting include paths for a project Datum: Mon, 22 Mar 2010 15:58:28 + Van: Jochem Maas Aan: Robert P. J. Day Op 3/22/10 2:18 PM, Robert P. J. Day schreef

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Richard Quadling
On 22 March 2010 14:51, Robert P. J. Day wrote: > On Mon, 22 Mar 2010, Richard Quadling wrote: > >> Depending upon what is being included, an autoloader could help >> here. >> >> The main payoffs for autoloading are reduced memory footprint (class >> are loaded JIT) and no need for each class to k

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Richard Quadling
On 22 March 2010 15:28, la...@garfieldtech.com wrote: > On 3/22/10 10:25 AM, Paul M Foster wrote: > >> That's the key. You can do anything you want inside __autoload(). If you >> must consult something in the environment, there are a couple of ways to >> do it. First, set a variable in the $_SESSI

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread la...@garfieldtech.com
On 3/22/10 10:25 AM, Paul M Foster wrote: That's the key. You can do anything you want inside __autoload(). If you must consult something in the environment, there are a couple of ways to do it. First, set a variable in the $_SESSION array, and consult it in __autoload(). Second, use a configura

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Paul M Foster
On Mon, Mar 22, 2010 at 10:51:38AM -0400, Robert P. J. Day wrote: > On Mon, 22 Mar 2010, Richard Quadling wrote: > > > Depending upon what is being included, an autoloader could help > > here. > > > > The main payoffs for autoloading are reduced memory footprint (class > > are loaded JIT) and no

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Nilesh Govindarajan
On 03/22/2010 07:48 PM, Robert P. J. Day wrote: to recap regarding an earlier question i asked regarding extending include paths, i have an existing project (call it "proj" currently all under a top-level directory also named "proj") which can be SVN checked out anywhere under a user's home d

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Robert P. J. Day
On Mon, 22 Mar 2010, Richard Quadling wrote: > Depending upon what is being included, an autoloader could help > here. > > The main payoffs for autoloading are reduced memory footprint (class > are loaded JIT) and no need for each class to know exactly where the > other classes are. > > So, your m

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Richard Quadling
On 22 March 2010 14:18, Robert P. J. Day wrote: > >  to recap regarding an earlier question i asked regarding extending > include paths, i have an existing project (call it "proj" currently > all under a top-level directory also named "proj") which can be SVN > checked out anywhere under a user's

[PHP] another question on setting include paths for a project

2010-03-22 Thread Robert P. J. Day
to recap regarding an earlier question i asked regarding extending include paths, i have an existing project (call it "proj" currently all under a top-level directory also named "proj") which can be SVN checked out anywhere under a user's home directory. so in my case, i might have my svn worki

RE: [PHP] Another question about Google maps

2008-11-17 Thread tedd
At 8:37 AM -0600 11/17/08, Boyd, Todd M. wrote: tedd, I think it might be displaying your extra divs (if there are any.. just skimmed the source momentarily) for a split second before they are hidden with Javascript. Maybe try setting the CSS for your 3 map divs (mapsearch, idlediv, searchdiv or

RE: [PHP] Another question about Google maps

2008-11-17 Thread Boyd, Todd M.
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 15, 2008 2:11 PM > To: php-general@lists.php.net > Subject: [PHP] Another question about Google maps > > Hi gang: > > I posted this question on the Google Map Discussion gr

Re: [PHP] Another question about Google maps

2008-11-16 Thread tedd
At 1:29 AM +1030 11/17/08, Michael Kubler wrote: Well, it shows up for FFox v2 and v3 on Windows XP as well. I managed to replicate it by shift+refreshing the page. I also managed to stop it mid load by setting Firefox to 'Work Offline' just as it displayed the flash of both boxes. Using the

Re: [PHP] Another question about Google maps

2008-11-16 Thread Michael Kubler
Well, it shows up for FFox v2 and v3 on Windows XP as well. I managed to replicate it by shift+refreshing the page. I also managed to stop it mid load by setting Firefox to 'Work Offline' just as it displayed the flash of both boxes. Using the Web Developer plugin for FFox I can tell you that

[PHP] Another question about Google maps

2008-11-15 Thread tedd
Hi gang: I posted this question on the Google Map Discussion group/list thingie, but got zip in replies. Maybe someone here might have an idea. Here's the url: http://masoncollision.com/contact.php In both Safari and FireFox for the Mac (I have not tested it with other browsers) as the pag

Re: [PHP] Another question about functions...

2008-01-31 Thread Jason Pruim
On Jan 31, 2008, at 8:19 AM, Zoltán Németh wrote: I can try :) when I downloaded in clicking on the link, and tried to open it OS X popped on a message saying that I had downloaded an applicaiton and it was the first time I had tried to open it, was I sure that I wanted to, and I could view th

Re: [PHP] Another question about functions...

2008-01-31 Thread Zoltán Németh
2008. 01. 31, csütörtök keltezéssel 08.12-kor Jason Pruim ezt írta: > On Jan 30, 2008, at 7:53 PM, Richard Lynch wrote: > > > On Tue, January 29, 2008 1:39 pm, Jason Pruim wrote: > >> Okay, so I checked everything I can think of, and it's still > >> downloading it as an application which means it'

Re: [PHP] Another question about functions...

2008-01-31 Thread Jason Pruim
On Jan 30, 2008, at 7:53 PM, Richard Lynch wrote: On Tue, January 29, 2008 1:39 pm, Jason Pruim wrote: Okay, so I checked everything I can think of, and it's still downloading it as an application which means it's downloading the entire website instead of just the data from the database... Any

Re: [PHP] Another question about functions...

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 1:39 pm, Jason Pruim wrote: > Okay, so I checked everything I can think of, and it's still > downloading it as an application which means it's downloading the > entire website instead of just the data from the database... Anyone > have any idea what to check? Can you expla

Re: [PHP] Another question about functions...

2008-01-30 Thread Jason Pruim
On Jan 29, 2008, at 4:29 PM, Nathan Nobbe wrote: On Jan 29, 2008 3:53 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: I did as you suggested, and I think I found the reason... I included info for the doctype, and some files that are on all my pages... Once I comment out those lines it works just

Re: [PHP] Another question about functions...

2008-01-29 Thread Chris
What's happening is, I have the code set and it downloads the file into excel, but it doesn't have the database fields in it, rather a copy of the entire webpage which it trys to put into excel. Below is the code that I am using in my function to export the records: echo $select . "\n";

Re: [PHP] Another question about functions...

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:53 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > I did as you suggested, and I think I found the reason... I included info > for the doctype, and some files that are on all my pages... Once I comment > out those lines it works just fine... > I'm assuming that that is expected beha

Re: [PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
On Jan 29, 2008, at 2:46 PM, Nathan Nobbe wrote: On Jan 29, 2008 2:39 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: Okay, so I checked everything I can think of, and it's still downloading it as an application which means it's downloading the entire website instead of just the data from the databa

Re: [PHP] Another question about functions...

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 2:39 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Okay, so I checked everything I can think of, and it's still > downloading it as an application which means it's downloading the > entire website instead of just the data from the database... Anyone > have any idea what to check?

Re: [PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
On Jan 29, 2008, at 11:58 AM, Jason Pruim wrote: On Jan 29, 2008, at 11:48 AM, Nathan Nobbe wrote: On Jan 29, 2008 11:07 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: What's happening is, I have the code set and it downloads the file into excel, but it doesn't have the database fields in it, ra

Re: [PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
On Jan 29, 2008, at 11:48 AM, Nathan Nobbe wrote: On Jan 29, 2008 11:07 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: What's happening is, I have the code set and it downloads the file into excel, but it doesn't have the database fields in it, rather a copy of the entire webpage which it trys to p

Re: [PHP] Another question about functions...

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 11:07 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > What's happening is, I have the code set and it downloads the file > into excel, but it doesn't have the database fields in it, rather a > copy of the entire webpage which it trys to put into excel. this sounds to me like you may

[PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
HI everyone, I think I'm getting closer to understanding functions, but I'm blanking on how to fix a problem that I have... I am attempting to export a database to excel, which was working before converting the code into a function. What's happening is, I have the code set and it download

[PHP] Another question

2002-10-29 Thread Trasca Ion-Catalin
If I have a page with frames, how can I get the title of the frameset to be the title of the main frame? I want this title to change every time the visitor change the page. Any help? -- Trasca Ion-Catalin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] Another question - not exactly what i was looking for

2002-01-15 Thread Christopher William Wesley
$where_conditions = array(); if( !empty( $lastname ) ){ $where_conditions[] = "lastname like '%${lastname}%'"; } if( !empty( $firstname ) ){ $where_conditions[] = "firstname like '%${firstname}%'"; } if( !empty( $age ) ){ $where_conditions[] = "age = ${age}"; } if( !empty(

Re: [PHP] Another question - not exactly what i was looking for

2002-01-15 Thread R'twick Niceorgaw
;t add the "AND ". Hope that helps. - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 15, 2002 3:53 PM Subject: [PHP] Another question - not ex

Re: [PHP] Another question - not exactly what i was looking for

2002-01-15 Thread mike cullerton
how 'bout something like $query = 'select * from table_name where '; $and = ''; if ($lastname != '') { $query .= "lastname = $lastname"; $and = ' and '; } if ($firstname != '') { $query .= $comma."firstname = $firstname; $and = ' and '; } and so on on 1/15/02 1:53 PM, Phil Schwarzmann at [E

[PHP] Another question - not exactly what i was looking for

2002-01-15 Thread Phil Schwarzmann
Yo, thanks for all your help. But it isn't exactly what im looking for. Let's say you had a database with the following four columns... -LastName -FirstName -Age -Weight ...and you wanted a page that would allow a user to search for one or more of these fields within the database. It would be

[PHP] Another question

2001-08-24 Thread Dan McCullough
Okay I have stripped all header and bogus crap out of this file. Now I am left with formatting and breaking the data up. How can I do that? Here is the script that gets me a clean file and print out. These a piece thats missing up that is a command line script that parses the file for this infor

Re: [PHP] another question

2001-07-27 Thread Daniel Rezny
Hello Eduardo, Friday, July 27, 2001, 1:48:01 PM, you wrote: EK> Does anybody knows how to redirect a page to new window with all the vars from the old one? Can I leave a message in the old window? EK> Thanks in advance. Use a javascript window.open() function with link with all values. --

[PHP] another question

2001-07-27 Thread Eduardo Kokubo
Does anybody knows how to redirect a page to new window with all the vars from the old one? Can I leave a message in the old window? Thanks in advance.

Re: [PHP] Another question about using shmop!

2001-02-28 Thread Christian Reiniger
On Wednesday 28 February 2001 00:15, you wrote: > > Does it provide a faster performance, if I use these rather than > > store things in mysql DB, I know this might be stupid, but I have to > > make sure this. > > I belive shared memory is *much* faster than MySQL. Well, I'd say it depends. For o

Re: [PHP] Another question about using shmop!

2001-02-27 Thread Richard Lynch
> I read about the php manual, I find that, shmop function can let me use > to store information directly on a shared segment memory. > > However, I have some question about these! > > Does it provide a faster performance, if I use these rather than store > things in mysql DB, I know this might be

[PHP] Another question about using shmop!

2001-02-26 Thread Zenith
I read about the php manual, I find that, shmop function can let me use to store information directly on a shared segment memory. However, I have some question about these! Does it provide a faster performance, if I use these rather than store things in mysql DB, I know this might be stupid, but