php-general Digest 12 Feb 2009 12:47:45 -0000 Issue 5954

2009-02-12 Thread php-general-digest-help
php-general Digest 12 Feb 2009 12:47:45 - Issue 5954 Topics (messages 288134 through 288154): Re: Best way to post XML via curl? 288134 by: Brian Dunning 288135 by: Stuart 288136 by: Brian Dunning 288137 by: Stuart 288138 by: Brian Dunning

[PHP] Simple open source CMS as a starting point

2009-02-12 Thread dzenan . causevic
I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in developing my own CMS. The code should be simple to understand so that I can easily get on and start building on it. It would be of great help if it already had features like statistics,

[PHP] DOMDocument help

2009-02-12 Thread Michael A. Peters
I'm using php 5.2.5 with the php-xml module. I need to split a string of html into elements. IE - this bis/b a string bthat/b has some bold bwords/b in it. I need to be able to take that string and split it up into textNodes for the parts that are not in bold text, and bold nodes containing

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Lester Caine
dzenan.cause...@wise-t.com wrote: I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in developing my own CMS. The code should be simple to understand so that I can easily get on and start building on it. It would be of great help if it

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Jean Pimentel
Wordpress Att, Jean Pimentel Museu da Infância - www.museudainfancia.com On Thu, Feb 12, 2009 at 7:01 AM, Lester Caine les...@lsces.co.uk wrote: dzenan.cause...@wise-t.com wrote: I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in

[PHP] How can an elephant count for nothing?

2009-02-12 Thread Clancy
While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work. For instance $string = 'elephant'; If($string == 0) returns true; If($string != 0) returns false; If($string ===

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Per Jessen
Clancy wrote: While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work. For instance $string = 'elephant'; If($string == 0) returns true; If($string != 0) returns

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Jochem Maas
Clancy schreef: While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work. For instance $string = 'elephant'; If($string == 0) returns true; If($string != 0)

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Yeti
Can anyone explain clearly why comparing a string with zero gives this apparently anomalous result? ?php $string = 'oleyphoont'; var_dump((int)$string, $string == 0, $string == 1); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Dotan Cohen
Have you tried with a mouse? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я

[PHP] spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Nick Cooper
I am having a problem with spl_object_hash() creating non unique hashes. I understand with MD5 it is possible to have the same hash for different strings but this doesn't seem like that problem. I have created a simple test below, should I report this as a bug or am I doing something wrong. PHP

Re: [PHP] spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Jochem Maas
Nick Cooper schreef: I am having a problem with spl_object_hash() creating non unique hashes. I understand with MD5 it is possible to have the same hash for different strings but this doesn't seem like that problem. I have created a simple test below, should I report this as a bug or am I

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread German Geek
Drupal is probably not the easiest at first, but has a good API and buckets full of modules, themes and all that stuff. If a framework would be what you are looking for, i would recommend Symfony. Also heard good things about eZ Publish, Textpattern, Typo3, Website Baker and WordPress. You can

[PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Colin Guthrie
'Twas brillig, and Nick Cooper at 12/02/09 11:38 did gyre and gimble: Outputs: a1: 09d264fcececf51c822c9382b40e3edf a2: 45701af64172cbc2a33069dfed73fd07 a3: 09d264fcececf51c822c9382b40e3edf a4: 09d264fcececf51c822c9382b40e3edf Thanks let me know how I should proceed with this. Confirmed

Re: [PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Jochem Maas
Colin Guthrie schreef: 'Twas brillig, and Nick Cooper at 12/02/09 11:38 did gyre and gimble: Outputs: a1: 09d264fcececf51c822c9382b40e3edf a2: 45701af64172cbc2a33069dfed73fd07 a3: 09d264fcececf51c822c9382b40e3edf a4: 09d264fcececf51c822c9382b40e3edf Thanks let me know how I should proceed

[PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Colin Guthrie
'Twas brillig, and Jochem Maas at 12/02/09 12:47 did gyre and gimble: Colin Guthrie schreef: 'Twas brillig, and Nick Cooper at 12/02/09 11:38 did gyre and gimble: Outputs: a1: 09d264fcececf51c822c9382b40e3edf a2: 45701af64172cbc2a33069dfed73fd07 a3: 09d264fcececf51c822c9382b40e3edf a4:

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Michael A. Peters
dzenan.cause...@wise-t.com wrote: I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in developing my own CMS. The code should be simple to understand so that I can easily get on and start building on it. It would be of great help if it

[PHP] error on using jar:http://localhost/clients/js/signedJar.jar!/editGrid.js

2009-02-12 Thread Manupriya
Hi, We are using PHP 5.0, Java Script and Apace HTTP Server. For Mozilla security reason, we have created a signed jar of all the js files being used in our application. We have put this jar in the js folder itself. We have successfully installed the certificate. Now from one of the php page,

Re: [PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Jochem Maas
Colin Guthrie schreef: 'Twas brillig, and Jochem Maas at 12/02/09 12:47 did gyre and gimble: Colin Guthrie schreef: 'Twas brillig, and Nick Cooper at 12/02/09 11:38 did gyre and gimble: Outputs: a1: 09d264fcececf51c822c9382b40e3edf a2: 45701af64172cbc2a33069dfed73fd07 a3:

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread dzenan . causevic
Thanks for your advice, Dzenan dzenan.cause...@wise-t.com wrote: I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in developing my own CMS. The code should be simple to understand so that I can easily get on and start building on

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread dzenan . causevic
I will take a look at the ones you mentioned below. Drupal is too complex, just like Joomla, I have seen it. I am looking pretty much for something very basic that I could build on Dzenan Drupal is probably not the easiest at first, but has a good API and buckets full of modules, themes and

Re: [PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Nick Cooper
Thank you, I am now understanding this much better. Could you explain this though, if my understanding is correct the same hash is used if the object no longer exists in memory. In that case the following should all have the same hash, but they don't see output. class a1 {} $obi = new a1();

Re: [PHP] php.ini not loaded?

2009-02-12 Thread Jan G.B.
2009/2/11 brian bri...@vt.edu: hi nathan thanks for the response... looks like the rx is where it should be. That doesn't sound like you're cocksure - check it again: ls -ld /apps /apps/local /apps/local/php5 /apps/local/php5/lib /apps/local/php5/lib/php.ini Everything readable (r-x) *for

Re: [PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Jochem Maas
Nick Cooper schreef: Thank you, I am now understanding this much better. Could you explain this though, if my understanding is correct the same hash is used if the object no longer exists in memory. In that case the following should all have the same hash, but they don't see output. not

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread 惠新宸
Jochem Maas wrote: Clancy schreef: While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work. For instance $string = 'elephant'; If($string == 0) returns

Re: [PHP] PHP OOP

2009-02-12 Thread Kyle Terry
On Mon, Feb 9, 2009 at 11:12 AM, Yannick Mortier mvmort...@googlemail.comwrote: 2009/2/9 tedd t...@sperling.com: snip Yes C++ is not bad for this, but it has also got some flaws. What language doesn't have flaws, dude? Out of all the OOP C++ and java are probably the most solid. And I

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Shawn McKenzie
惠新宸 wrote: Jochem Maas wrote: Clancy schreef: While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work. For instance $string = 'elephant'; If($string == 0)

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Shawn McKenzie
Michael A. Peters wrote: Another thing the common CMS tools frequently do - they want a configuration file that the web server has write permission to that is parsed as php by almost every page the app displays. Big mistake - if you want a web interface to change settings, store the settings

Re: [PHP] error on usingjar:http://localhost/clients/js/signedJar.jar!/editGrid.js

2009-02-12 Thread Shawn McKenzie
Manupriya wrote: Hi, We are using PHP 5.0, Java Script and Apace HTTP Server. For Mozilla security reason, we have created a signed jar of all the js files being used in our application. We have put this jar in the js folder itself. We have successfully installed the certificate. Now

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Michael A. Peters
Shawn McKenzie wrote: Michael A. Peters wrote: Another thing the common CMS tools frequently do - they want a configuration file that the web server has write permission to that is parsed as php by almost every page the app displays. Big mistake - if you want a web interface to change settings,

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread ragsagar
On Thu, Feb 12, 2009 at 4:38 PM, dzenan.cause...@wise-t.com wrote: I need simple CMS sistem that I could use as a staring point (to save some time in setting up the structure) in developing my own CMS. The code should be simple to understand so that I can easily get on and start building on

[PHP] Re: DOMDocument help

2009-02-12 Thread RottenEye
?php $string = 'this bis/b a string bthat/b has some bold bwords/b'; $doc = new DOMDocument; $doc-loadHTML($string); $items = $doc-getElementsByTagName('b'); for( $i = 0; $i $items-length; $i++ ){ echo $items-item($i)-nodeValue . br /\n; } ? Michael A. Peters

Re: [PHP] error on usingjar:http://localhost/clients/js/signedJar.jar!/editGrid.js

2009-02-12 Thread Manupriya
Actually there is no PHP error as such. But we get an error that java script method is not defined. So we think that we have either not correctly specified the url or we are not putting the jar file at the correct location. Our question is how to call a js in jar from php file? Thanks, Manu

Re: [PHP] error onusingjar:http://localhost/clients/js/signedJar.jar!/editGrid.js

2009-02-12 Thread Shawn McKenzie
Manupriya wrote: Actually there is no PHP error as such. But we get an error that java script method is not defined. So we think that we have either not correctly specified the url or we are not putting the jar file at the correct location. Our question is how to call a js in jar from php

Re: [PHP] Module Structure ideas

2009-02-12 Thread Sancar Saran
On Wednesday 11 February 2009 21:42:24 Ashley Sheridan wrote: On Wed, 2009-02-11 at 21:20 +0800, Virgilio Quilario wrote: 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

[PHP] Opinions needed

2009-02-12 Thread Al
I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry will only contain 50 to 100 names. Each registry is only in existence for

[PHP] Extract result from a https remote server response

2009-02-12 Thread m a r k u s
Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.comcust_id=123546password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php variable and process it . An idea ? PS: The server is secured. The php

Re: [PHP] Opinions needed

2009-02-12 Thread Robert Cummings
On Thu, 2009-02-12 at 15:26 -0500, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry will only contain 50 to

Re: [PHP] Opinions needed

2009-02-12 Thread tedd
At 3:26 PM -0500 2/12/09, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry will only contain 50 to 100 names.

Re: [PHP] Opinions needed

2009-02-12 Thread Al
Robert Cummings wrote: On Thu, 2009-02-12 at 15:26 -0500, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry

Re: [PHP] Opinions needed

2009-02-12 Thread Robert Cummings
On Thu, 2009-02-12 at 15:45 -0500, Al wrote: Robert Cummings wrote: On Thu, 2009-02-12 at 15:26 -0500, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of

Re: [PHP] Opinions needed

2009-02-12 Thread Dotan Cohen
True, but, the website is on a shared host which means someone must setup and maintain the DB and my code has to create and remove tables, as needed. Plus, someone must keep the login parms in sync between the DB and my code. Al Sound more like a hosting problem than a database problem.

[PHP] Re: Extract result from a https remote server response

2009-02-12 Thread Shawn McKenzie
m a r k u s wrote: Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.comcust_id=123546password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php variable and process it . An idea ? PS: The server

[PHP] Re: Extract result from a https remote server response

2009-02-12 Thread Shawn McKenzie
Shawn McKenzie wrote: m a r k u s wrote: Hi all, Example : https://www.moneybookers.com/app/email_check.pl?email=t...@toto.comcust_id=123546password=123 The MB server response displayed is : Illegal operation. We would like to put the result below in a php variable and process it . An

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Ashley Sheridan
On Thu, 2009-02-12 at 13:12 +0200, Dotan Cohen wrote: Have you tried with a mouse? Non-strings equate to a boolean value of 1 when they are converted to a boolean value automatically (in the case of comparison queries) when they contain a value. Strings of 0 length are converted to a 0. In

[PHP] Need to hire some PHP help...

2009-02-12 Thread Brian Dunning
I need probably no more than an hour of two of help from someone better than me at PHP, but have money sitting here ready to pay you. My project is way behind schedule and I'm burning too much time and making no progress trying to solve two problems. (1) Submitting some XML to a web

Re: [PHP] Opinions needed

2009-02-12 Thread tedd
At 3:45 PM -0500 2/12/09, Al wrote: Robert Cummings wrote: By writing this email you've already spent about as much time as it would take to set up an SQL database and just start coding. Cheers, Rob. True, but, the website is on a shared host which means someone must setup and maintain the

Re: [PHP] Simple open source CMS as a starting point

2009-02-12 Thread Chris
Michael A. Peters wrote: Shawn McKenzie wrote: Michael A. Peters wrote: Another thing the common CMS tools frequently do - they want a configuration file that the web server has write permission to that is parsed as php by almost every page the app displays. Big mistake - if you want a web

[PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Richard Whitney
Anyone care to try this out? Feedback welcome. http://dftpcs.com Thanks -- Richard Whitney phpmy...@gmail.com http://phpmydev.com 602-288-5340 310-943-6498 You come up with ideas, I come up with solutions.

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Dotan Cohen
Anyone care to try this out? Feedback welcome. http://dftpcs.com No. What is it? -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Richard Whitney
It's what I use for tracking my time and payments. Should've been more specific about it. Sorry! On Thu, Feb 12, 2009 at 4:05 PM, Dotan Cohen dotanco...@gmail.com wrote: Anyone care to try this out? Feedback welcome. http://dftpcs.com No. What is it? -- Dotan Cohen

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Richard Whitney
it's written in PHP and uses AJAX. Sorry for my fragmented thoughts! On Thu, Feb 12, 2009 at 4:06 PM, Richard Whitney phpmy...@gmail.com wrote: It's what I use for tracking my time and payments. Should've been more specific about it. Sorry! On Thu, Feb 12, 2009 at 4:05 PM, Dotan Cohen

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Dotan Cohen
Sorry for my fragmented thoughts! In light of this [1] you are forgiven! I think that you will find most list members a bit too jaded to go to a new domain name, suggested by a new poster who's name does not turn up anything php related on Google. I'm not doubting you, just letting you know

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Richard Whitney
On Thu, Feb 12, 2009 at 4:24 PM, Dotan Cohen dotanco...@gmail.com wrote: Sorry for my fragmented thoughts! In light of this [1] you are forgiven! I think that you will find most list members a bit too jaded to go to a new domain name, suggested by a new poster who's name does not turn

Re: [PHP] Opinions needed

2009-02-12 Thread Al
Robert Cummings wrote: On Thu, 2009-02-12 at 15:45 -0500, Al wrote: Robert Cummings wrote: On Thu, 2009-02-12 at 15:26 -0500, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Daevid Vincent
On Thu, 2009-02-12 at 15:58 -0700, Richard Whitney wrote: Anyone care to try this out? Feedback welcome. http://dftpcs.com Thanks Also, given that this was formatted and sounded as vague as a spam email, I simply dismissed it and moved on. Even the URL is very cryptic (although I

[PHP] fork/spawnzombie question

2009-02-12 Thread bruce
Hi Nathan/Torok... Hey guys... got a bit of a question. I'm playing around with the php/for/pcntl_exec functions and I've got a process that spawns off a bunch of child processes. Unfortunately, I'm getting to where I have 100's of zombie child processes that I can see from the

Re: [PHP] Opinions needed

2009-02-12 Thread Al
tedd wrote: At 3:26 PM -0500 2/12/09, Al wrote: I'm scripting a light-weight, low volume signup registry for a running club. Folks sign up to volunteer for events and the like. There will generally be a handful of signup registries at any one time. A typical registry will only contain 50 to

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Richard Whitney
On Thu, Feb 12, 2009 at 5:05 PM, Daevid Vincent dae...@daevid.com wrote: On Thu, 2009-02-12 at 15:58 -0700, Richard Whitney wrote: Anyone care to try this out? Feedback welcome. http://dftpcs.com Thanks Also, given that this was formatted and sounded as vague as a spam email, I simply

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread Kyle Terry
On Thu, Feb 12, 2009 at 5:03 PM, Richard Whitney phpmy...@gmail.com wrote: On Thu, Feb 12, 2009 at 5:05 PM, Daevid Vincent dae...@daevid.com wrote: On Thu, 2009-02-12 at 15:58 -0700, Richard Whitney wrote: Anyone care to try this out? Feedback welcome. http://dftpcs.com Thanks

Re: [PHP] Don't Forget to Punch the Clock, Shorty!

2009-02-12 Thread George Langley
On 12-Feb-09, at 8:55 PM, Kyle Terry wrote: On Thu, 2009-02-12 at 15:58 -0700, Richard Whitney wrote: Anyone care to try this out? Feedback welcome. http://dftpcs.com Thanks -- Hi there! The right panel is not always refreshing correctly in my Mac Safari 3.2.1 Sometimes is

Re: [PHP] PHP OOP

2009-02-12 Thread Virgilio Quilario
Java is really awesome at OOP and it is great for teaching OOP or, shall we say illustrating OOP. OOP is a programming technique in general without any bias towards any programming language. Good background on OOP concepts is essential in learning language specific OOP implementation. So don't

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Clancy
On Thu, 12 Feb 2009 23:47:31 +0800, huixinc...@baidu.com (???) wrote: Jochem Maas wrote: Clancy schreef: While PHP has a lot of nice features, it also has some traps which I am forever falling into. One which I find particularly hard to understand is how mixed mode comparisons work.