I try to avoid nesting loops altogether if possible. Usually dont go beyond
3 levels of nesting...
How can you require 8 levels of nesting? surely there must be something
wrong or a more efficient algorithm...
Tim-Hinnerk Heuer
http://www.ihostnz.com
Garry Shandling - "I'm dating a woman now who
Hi all,
I consider myself quite good with Regular Expression, but i could never find
out how to match something like:
"match this but not this and that"
so i would like to match the first "match this" (or "another this") but not
"not this".
Seems pretty straight forward but i haven't found a (g
On Tue, Feb 10, 2009 at 5:53 PM, Jamie Krasnoo wrote:
> Hmm, I'll try taking down the optimizer and seeing if it segfaults or
> not. If that's what it is it's a crying shame that apc and
> zend_optimizer can't get along.
maybe give eaccelerator a shot, i believe theyve got an optimizer in there
Jamie Krasnoo wrote:
> Ok, so I removed zend_optimizer and activated apc. Guess what ... no
> cores produced. So it is zend_optimizer. I searched around the
> archives and there seems to be a consensus that it really doesn't do
> much or maybe even not anything at all. So it's gone. I would have
>
Ok, so I removed zend_optimizer and activated apc. Guess what ... no
cores produced. So it is zend_optimizer. I searched around the
archives and there seems to be a consensus that it really doesn't do
much or maybe even not anything at all. So it's gone. I would have
started seeing core files all o
Hmm, I'll try taking down the optimizer and seeing if it segfaults or
not. If that's what it is it's a crying shame that apc and
zend_optimizer can't get along.
On Tue, Feb 10, 2009 at 4:46 PM, Nathan Nobbe wrote:
> On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo wrote:
>>
>> Here's the modules I
"Richard Heyes" wrote in message
news:af8726440902101100r4d479ddds189b617f06b88...@mail.gmail.com...
>> ...
>
> Are you the same Tony Marston who was on the Demon Internet webmaster
> type mailing list? (I don't remember the actual name).
I doubt it. I don't subscribe to any list with either "d
On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo wrote:
> Here's the modules I do have running:
>
> extension="suhosin.so"
> extension="ffmpeg.so"
> extension="imagick.so"
> extension="magickwand.so"
> extension="memcache.so"
> extension="pdo.so"
> extension="pdo_sqlite.so"
> extension="sqlite.so"
Here's the modules I do have running:
extension="suhosin.so"
extension="ffmpeg.so"
extension="imagick.so"
extension="magickwand.so"
extension="memcache.so"
extension="pdo.so"
extension="pdo_sqlite.so"
extension="sqlite.so"
extension="pdo_mysql.so"
[Zend]
zend_extension_manager.optimizer=/usr/loca
On Tue, Feb 10, 2009 at 5:19 PM, Jamie Krasnoo wrote:
> I did compile Apache with mpm_prefork though.
hmm, i doubt thats the problem then. maybe another module not playing nice
w/ apc, xdebug perhaps (just guessing now)?
have you tried other caching solutions like eaccelerator to see if you
e
I did compile Apache with mpm_prefork though. cPanel does have the
option to compile with all three mpm choices. What else would there be
in Apache that could be using threads? Oh, I failed to mention that
the PHP scripts that are segfaulting are scripts that exist and
haven't been changed for some
On Tue, Feb 10, 2009 at 5:03 PM, Jamie Krasnoo wrote:
> Yes, I'm using Apache 2.2.11 and I do believe that threading could be
> enabled. Apache was compiled through cPanel with Easy::Apache. I
> didn't see any options to disable threading unless I missed it.
a lot of php extensions are not thre
A loosely typed language like PHP might not be the best choice for teaching
OOP, because even though PHP makes it easier with loose types, you should
know about them and how they are stored etc.
PHP is a great language but maybe not strict enough for students to
understand all the errors that can
Yes, I'm using Apache 2.2.11 and I do believe that threading could be
enabled. Apache was compiled through cPanel with Easy::Apache. I
didn't see any options to disable threading unless I missed it.
Jamie
On Tue, Feb 10, 2009 at 3:51 PM, Nathan Nobbe wrote:
> On Tue, Feb 10, 2009 at 4:10 PM, Jam
On Tue, Feb 10, 2009 at 4:10 PM, Jamie Krasnoo wrote:
> Hey all,
>
> I'm new to the list. I came here because I couldn't find the answer to
> my question and I'm hoping I can find it here. I compiled the APC
> plugin as a shared library and activated it through the php.ini. I ran
> 'make test' an
Hello List,
Last year I began to sepearte my module files to many files for their
purposes.
Last time use use lots of dirs for their types
someting like
controllers
a.cont.php
b.cont.php
definition
a.def.php
b.def.php
models
a.model.php
b.model.php
views
a.view.php
b.view.php
Hey all,
I'm new to the list. I came here because I couldn't find the answer to
my question and I'm hoping I can find it here. I compiled the APC
plugin as a shared library and activated it through the php.ini. I ran
'make test' and it seemed to pass all but one (it skipped a test). I
thought all
At 9:36 AM -0500 2/10/09, Andrew Ballard wrote:
On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina
wrote:
> Marcus Gnaß schrieb:
> Hi @ all,
but this is a php list...
Regards
Carlos
Yes, it is, but the original question was about OOP and not
specifically about PHP. It seems fair enough
On Tue, Feb 10, 2009 at 3:09 PM, Kyle Terry wrote:
> On Tue, Feb 10, 2009 at 12:07 PM, Kyle Terry wrote:
>> On Tue, Feb 10, 2009 at 9:46 AM, Tony Marston
>> wrote:
>>> Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html
>>>
>>> --
>>> Tony Marston
>>> http://www.tonymarston.
On 2/10/2009 11:45 AM, "Andrew Ballard" wrote:
> SELECT DISTINCT Category FROM contacts
Thanks folks - that was perfect!
On 2/10/2009 11:46 AM, "Stephen" wrote:
> Also, do you have a "Category" table?
>
No Stephen I don't.
--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]
-
On Tue, Feb 10, 2009 at 12:07 PM, Kyle Terry wrote:
> On Tue, Feb 10, 2009 at 9:46 AM, Tony Marston
> wrote:
>> Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html
>>
>> --
>> Tony Marston
>> http://www.tonymarston.net
>> http://www.radicore.org
>>
>> "Michael Kubler" wrote
On Tue, Feb 10, 2009 at 9:46 AM, Tony Marston
wrote:
> Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html
>
> --
> Tony Marston
> http://www.tonymarston.net
> http://www.radicore.org
>
> "Michael Kubler" wrote in message
> news:49918ebf.4070...@gmail.com...
>> Hi,
>> I'm jus
revDAVE wrote:
I would like to be able to query a table, and return only the unique values
from a particular field. For example: to get all contents from the category
field from the contacts table:
Query =
SELECT Category FROM contacts
But this will produce many duplicates.
Question : Ho
On Tue, 2009-02-10 at 12:36 +0100, Nisse Engström wrote:
> On Mon, 9 Feb 2009 15:46:35 +0100, cr.vege...@gmail.com wrote:
>
> > I've tested it again, from scratch with Notepad editor:
> >
> > echoUTF8.php
> > echoUTF8sub.php
> > and keep getting strange characters.
> >
> > Would you b
revDAVE wrote:
> Newbie question
>
> Hi Folks,
>
> I would like to be able to query a table, and return only the unique
> values from a particular field. For example: to get all contents from
> the category field from the contacts table:
>
> Query =
>
> SELECT Category FROM contacts
>
>
On Tue, Feb 10, 2009 at 2:41 PM, revDAVE wrote:
> Newbie question
>
> Hi Folks,
>
> I would like to be able to query a table, and return only the unique values
> from a particular field. For example: to get all contents from the category
> field from the contacts table:
>
> Query =
>
> SELECT
Newbie question
Hi Folks,
I would like to be able to query a table, and return only the unique values
from a particular field. For example: to get all contents from the category
field from the contacts table:
Query =
SELECT Category FROM contacts
But this will produce many duplicates.
Qu
>
> Just guessing as I haven't used the PHP COM stuff, but what do you get
> if you change ByVal to ByRef?
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
Ooops! My fault! I created a new dll so I could keep the currently working
one and forgot to register it..
Registered and it allowed
Dan Shirah wrote:
>> It doesn't appear that your function accepts a parameter. What does
>> this do:
>>
>> //VB
>> Public Function hello(ByVal name As String) As String
>>hello = "Hello " & name & "!"
>> End Function
>>
>> //PHP
>> echo $new_com->hello("Dan");
>>
>> --
>> Thanks!
>> -Shawn
>>
> ...
Are you the same Tony Marston who was on the Demon Internet webmaster
type mailing list? (I don't remember the actual name).
--
Richard Heyes
HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 31st)
--
PHP General Mailing List (http://www
>
> It doesn't appear that your function accepts a parameter. What does
> this do:
>
> //VB
> Public Function hello(ByVal name As String) As String
>hello = "Hello " & name & "!"
> End Function
>
> //PHP
> echo $new_com->hello("Dan");
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>
Shaw
Dan Shirah wrote:
> Alrighty, so I went a different route...
>
> I created my own ActiveX DLL...one that I know I can register.
>
> Starting out really simple:
>
> //My VB code
> Public Function hello() As String
>
> hello = "Hello World!"
> End Function
>
> //My PHP code
> function Hell
Take a look at http://www.tonymarston.net/php-mysql/pagination.html
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
"Jim Douglas" wrote in message
news:col119-w57b0a24af94fce04673622bb...@phx.gbl...
Does anyone have a link to any examples of paging?
I have this example up
Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html
--
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
"Michael Kubler" wrote in message
news:49918ebf.4070...@gmail.com...
> Hi,
> I'm just getting into programming in an Object Oriented fashion, and am
> loo
I saw your site originally. I have paging working and I also have this example
working,
http://www.w3schools.com/php/php_ajax_database.asp
My problem is not getting paging to work, it's getting paging to work
outputting the results of clicking on the page number to the "content" pane. I
have
On Tue, Feb 10, 2009 at 11:59 AM, Dan Shirah wrote:
> Alrighty, so I went a different route...
>
> I created my own ActiveX DLL...one that I know I can register.
>
> Starting out really simple:
>
> //My VB code
> Public Function hello() As String
>
> hello = "Hello World!"
> End Function
>
> /
MySQL
> From: zechim@gmail.com
> To: tedd.sperl...@gmail.com; jd...@hotmail.com; php-general@lists.php.net
> Subject: RES: [PHP] paging
> Date: Tue, 10 Feb 2009 11:33:42 -0200
>
> MySql or MsSql or other dB?
>
> -Mensagem original-
> De: tedd [mailto:tedd.sperl...@gmail.com]
> Envi
Alrighty, so I went a different route...
I created my own ActiveX DLL...one that I know I can register.
Starting out really simple:
//My VB code
Public Function hello() As String
hello = "Hello World!"
End Function
//My PHP code
hello();
echo $output;}
Hello();
?>
So, after I register th
2009/2/10 Michael Kubler :
> Hi,
> I'm just getting into programming in an Object Oriented fashion, and am
> looking for some guides, tutorials, hints, tips, etc...
>
> I only just found out that you remove the $ from variables when calling them
> from $this->
>
> e.g :
> class People
> {
> privat
On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina wrote:
> Marcus Gnaß schrieb:
>>
>> Paul M Foster wrote:
>>>
>>> On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote:
>>> As a side note, I think students should learn a language like C before
>>> learning something like Perl, Python or PHP. Having
Hi,
I'm just getting into programming in an Object Oriented fashion, and am
looking for some guides, tutorials, hints, tips, etc...
I only just found out that you remove the $ from variables when calling
them from $this->
e.g :
*$person* = "A person"; //This doesn't work (well it creates
Where I study, Intro to OOP is taught in C# using Visual Studio 2003 and
further OOP concepts are taught in Java, with the academic computer science
of OOP alongside.
On Wed, Feb 11, 2009 at 2:40 AM, Carlos Medina wrote:
> Marcus Gnaß schrieb:
>
>> Paul M Foster wrote:
>>
>>> On Mon, Feb 09, 2009
> ...
Hi,
Too lazy to actually read the email (tsk), but there's rather a nice
paging library in PEAR that may help. Imaginitively called "Pager".
--
Richard Heyes
HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 31st)
--
PHP General Mailing
Marcus Gnaß schrieb:
Paul M Foster wrote:
On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote:
As a side note, I think students should learn a language like C before
learning something like Perl, Python or PHP. Having to deal with
defining/declaring variables and their storage methods before
MySql or MsSql or other dB?
-Mensagem original-
De: tedd [mailto:tedd.sperl...@gmail.com]
Enviada em: terça-feira, 10 de fevereiro de 2009 11:26
Para: Jim Douglas; php-general@lists.php.net
Assunto: Re: [PHP] paging
At 3:26 AM + 2/10/09, Jim Douglas wrote:
>Does anyone have a link to
At 3:26 AM + 2/10/09, Jim Douglas wrote:
Does anyone have a link to any examples of paging?
Jim:
Sure.
http://webbytedd.com/bbb/paging/ <-- the code is there
different examples here:
http://webbytedd.com/ccc/pagination
Cheers,
tedd
--
---
http://sperling.com http://ancientsto
Paul M Foster wrote:
On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote:
As a side note, I think students should learn a language like C before
learning something like Perl, Python or PHP. Having to deal with
defining/declaring variables and their storage methods before use I
think makes fo
I don't think that PHP is good language for teaching OOP as many folks above
said. I have never programmed in OOP style but i plan to learn it. I started
in PHP but i was little confused and i am used to program in procedural way
in PHP, so i've decided to learn some pure OOP language. I am read
On Mon, 9 Feb 2009 15:46:35 +0100, cr.vege...@gmail.com wrote:
> I've tested it again, from scratch with Notepad editor:
>
> echoUTF8.php
> echoUTF8sub.php
> and keep getting strange characters.
>
> Would you be so kind to run these 2 scripts on your pc ?
Works fine for me, probably
49 matches
Mail list logo