Re: [PHP] Re: require() causing strange characters ?

2009-02-10 Thread Nisse Engström
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?php require(echoUTF8sub.php); ? echoUTF8sub.php ?php echo test; ? and keep getting strange characters. Would you be so kind to run these 2 scripts

[PHP] Re: PHP OOP

2009-02-10 Thread Ondrej Kulaty
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

Re: [PHP] PHP OOP

2009-02-10 Thread Marcus Gnaß
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

Re: [PHP] paging

2009-02-10 Thread tedd
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

RES: [PHP] paging

2009-02-10 Thread Jônatas Zechim
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

Re: [PHP] PHP OOP

2009-02-10 Thread Carlos Medina
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

Re: [PHP] paging

2009-02-10 Thread Richard Heyes
... 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

Re: [PHP] PHP OOP

2009-02-10 Thread Byron
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 i...@simply-networks.dewrote: Marcus Gnaß schrieb: Paul M Foster wrote: On

[PHP] Looking for some PHP OO programming guides

2009-02-10 Thread 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 : ?php class People { private $person = not set; function

Re: [PHP] PHP OOP

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina i...@simply-networks.de 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.

Re: [PHP] Looking for some PHP OO programming guides

2009-02-10 Thread Stuart
2009/2/10 Michael Kubler mdk...@gmail.com: 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 : ?php class People

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Dan Shirah
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 ?php function Hello() { $new_com = new COM(DMStoTIFF.conv);

RE: RES: [PHP] paging

2009-02-10 Thread Jim Douglas
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] Enviada em:

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 11:59 AM, Dan Shirah mrsqua...@gmail.com 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

RE: [PHP] paging

2009-02-10 Thread Jim Douglas
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

[PHP] Re: Looking for some PHP OO programming guides

2009-02-10 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org Michael Kubler mdk...@gmail.com wrote in message news:49918ebf.4070...@gmail.com... Hi, I'm just getting into programming in an Object Oriented fashion,

[PHP] Re: paging

2009-02-10 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/pagination.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org Jim Douglas jd...@hotmail.com wrote in message news:col119-w57b0a24af94fce04673622bb...@phx.gbl... Does anyone have a link to any examples of paging? I have

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Shawn McKenzie
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 ?php function Hello() {

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Dan Shirah
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 Shawn I tried what you

Re: [PHP] Re: paging

2009-02-10 Thread Richard Heyes
... 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

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Shawn McKenzie
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 http://www.spidean.com Shawn I

Re: [PHP] Using DLL with PHP

2009-02-10 Thread Dan Shirah
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 the

[PHP] Creating A Unique List With Table Query

2009-02-10 Thread revDAVE
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.

Re: [PHP] Creating A Unique List With Table Query

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 2:41 PM, revDAVE c...@hosting4days.com 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 =

Re: [PHP] Creating A Unique List With Table Query

2009-02-10 Thread Per Jessen
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 But this

Re: [PHP] Re: require() causing strange characters ?

2009-02-10 Thread Ashley Sheridan
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?php require(echoUTF8sub.php); ? echoUTF8sub.php ?php echo test; ? and keep getting

[PHP] Re: [Bulk] [PHP] Creating A Unique List With Table Query

2009-02-10 Thread Stephen
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 :

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-10 Thread Kyle Terry
On Tue, Feb 10, 2009 at 9:46 AM, Tony Marston t...@marston-home.demon.co.uk 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 mdk...@gmail.com wrote in message

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-10 Thread Kyle Terry
On Tue, Feb 10, 2009 at 12:07 PM, Kyle Terry k...@kyleterry.com wrote: On Tue, Feb 10, 2009 at 9:46 AM, Tony Marston t...@marston-home.demon.co.uk wrote: Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html -- Tony Marston http://www.tonymarston.net

Re: [PHP] Creating A Unique List With Table Query

2009-02-10 Thread revDAVE
On 2/10/2009 11:45 AM, Andrew Ballard aball...@gmail.com wrote: SELECT DISTINCT Category FROM contacts Thanks folks - that was perfect! On 2/10/2009 11:46 AM, Stephen stephe...@rogers.com wrote: Also, do you have a Category table? No Stephen I don't. -- Thanks - RevDave Cool @

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-10 Thread Andrew Ballard
On Tue, Feb 10, 2009 at 3:09 PM, Kyle Terry k...@kyleterry.com wrote: On Tue, Feb 10, 2009 at 12:07 PM, Kyle Terry k...@kyleterry.com wrote: On Tue, Feb 10, 2009 at 9:46 AM, Tony Marston t...@marston-home.demon.co.uk wrote: Take a look at

Re: [PHP] PHP OOP

2009-02-10 Thread tedd
At 9:36 AM -0500 2/10/09, Andrew Ballard wrote: On Tue, Feb 10, 2009 at 8:40 AM, Carlos Medina i...@simply-networks.de 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.

[PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
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

[PHP] Module Structure ideas

2009-02-10 Thread Sancar Saran
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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 4:10 PM, Jamie Krasnoo jkras...@gmail.com 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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
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 quickshif...@gmail.com wrote: On Tue, Feb

Re: [PHP] PHP OOP

2009-02-10 Thread German Geek
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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:03 PM, Jamie Krasnoo jkras...@gmail.com 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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:19 PM, Jamie Krasnoo jkras...@gmail.com 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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
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]

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo jkras...@gmail.com 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

Re: [PHP] Re: paging

2009-02-10 Thread Tony Marston
Richard Heyes rich...@php.net 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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
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 quickshif...@gmail.com wrote: On Tue, Feb 10, 2009 at 5:34 PM, Jamie Krasnoo

Re: [PHP] APC problem with PHP

2009-02-10 Thread Jamie Krasnoo
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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Shawn McKenzie
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

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
On Tue, Feb 10, 2009 at 5:53 PM, Jamie Krasnoo jkras...@gmail.com 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

[PHP] (Perl) Regular Expressions - oposite match or get the non-matches of a substring

2009-02-10 Thread German Geek
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 (good)

Re: [PHP] Re: Looking for some PHP OO programming guides

2009-02-10 Thread German Geek
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