RE: [PHP] Re: PHP Application Structre

2010-05-11 Thread Arno Kuhl
-Original Message- From: richard gray [mailto:r...@richgray.com] Sent: 10 May 2010 07:05 PM Subject: Re: [PHP] Re: PHP Application Structre On 10/05/2010 18:17, Ashley Sheridan wrote: > It makes sense sometimes to have different files for different > sections of a website. For example, b

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread Nathan Nobbe
On Mon, May 10, 2010 at 9:19 PM, David McGlone wrote: > On Monday 10 May 2010 22:15:44 Paul M Foster wrote: > > On Mon, May 10, 2010 at 06:09:00PM -0400, David McGlone wrote: > > > On Monday 10 May 2010 13:04:36 richard gray wrote: > > > > On 10/05/2010 18:17, Ashley Sheridan wrote: > > > > > It

RE: [PHP] regexp questions

2010-05-11 Thread Ford, Mike
> -Original Message- > From: Spud. Ivan. [mailto:spudm...@hotmail.com] > Sent: 11 May 2010 01:25 > To: php-general@lists.php.net > Subject: RE: [PHP] regexp questions > > > Is there any place where to read the changelog or something? Um, you mean, like, http://php.net/changelog ?? ;)

[PHP] Forward to a Different PHP Script?

2010-05-11 Thread Alice Wei
Hi, I am not sure if this makes sense, but here is a snippet of what I have: $q=$_GET["q"]; //find out which feed was selected if($q=="Herald Times") { $xml=("http://www.heraldtimesonline.com/rss/news.xml";); } else{ //execute a whole different php program, like http://localhos

RE: [PHP] Forward to a Different PHP Script?

2010-05-11 Thread Arno Kuhl
-Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: 11 May 2010 10:55 AM Subject: [PHP] Forward to a Different PHP Script? Hi, I am not sure if this makes sense, but here is a snippet of what I have: $q=$_GET["q"]; //find out which feed was selected if($q=="Herald Ti

[PHP] Re: -----json and php----help

2010-05-11 Thread Nathan Rixham
shahrzad khorrami wrote: hi dears, I have a json file. I want to access some fileds of this json file only and can add some fields to it also... I couldn't find any thing in www, json api ! is there any function to get specific data from json file or add function that can add something in somewh

[PHP] Re: -----json and php----help

2010-05-11 Thread shahrzad khorrami
thanks Nathan, I think this is a good way

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread Nathan Rixham
Nathan Nobbe wrote: On Mon, May 10, 2010 at 9:19 PM, David McGlone wrote: On Monday 10 May 2010 22:15:44 Paul M Foster wrote: On Mon, May 10, 2010 at 06:09:00PM -0400, David McGlone wrote: On Monday 10 May 2010 13:04:36 richard gray wrote: On 10/05/2010 18:17, Ashley Sheridan wrote: It mak

RE: [PHP] Forward to a Different PHP Script?

2010-05-11 Thread David Robley
Arno Kuhl wrote: > -Original Message- > From: Alice Wei [mailto:aj...@alumni.iu.edu] > Sent: 11 May 2010 10:55 AM > Subject: [PHP] Forward to a Different PHP Script? > > Hi, > > I am not sure if this makes sense, but here is a snippet of what I have: > > $q=$_GET["q"]; > > //find out w

Re: [PHP] PHP Application Structre

2010-05-11 Thread Ashley Sheridan
On Tue, 2010-05-11 at 08:48 +0530, chetan rane wrote: > Hi all, > > mod rewrite was actually inrduced to have search engne frendly urls. > hnce if you want a seo site then you have to use options 1 & 2. using > smarty or any templating engine for readibility is not total true. > one of the major

RE: [PHP] Forward to a Different PHP Script?

2010-05-11 Thread Alice Wei
> From: ak...@telkomsa.net > To: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: RE: [PHP] Forward to a Different PHP Script? > Date: Tue, 11 May 2010 11:01:30 +0200 > > -Original Message- > From: Alice Wei [mailto:aj...@alumni.iu.edu] > Sent: 11 May 2010 10:55 AM > Subject: [P

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread Robert Cummings
Nathan Nobbe wrote: i did gander at robs template system in interjinn once, but never got my head wrapped round it; honestly i only gave it a day or so. i prefer to go the typical route as per above, and omit the bloat that systems like smarty, savant etc bring to the table. nothing personal da

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread tedd
At 1:34 AM -0600 5/11/10, Nathan Nobbe wrote: -snip- if theres one thing i tend to stay away from, or start deleting the second i inherit a new codebase, its smarty. ive never seen anything more bloated & ridiculous. hey, lets all learn *another* set of conventions & syntax on top of what we've

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread tedd
At 10:00 AM -0400 5/11/10, Robert Cummings wrote: Nathan Nobbe wrote: i did gander at robs template system in interjinn once, but never got my head wrapped round it; honestly i only gave it a day or so. i prefer to go the typical route as per above, and omit the bloat that systems like smarty,

Re: [PHP] Re: PHP Application Structre

2010-05-11 Thread Robert Cummings
tedd wrote: Rob: If I could understand what the Hell you are talking about, I'd be a better programmer. You're a bit like Einstein talking to a bunch of High School Physics Teachers. We nod our collective heads thinking "huh?" while hoping there isn't going to be a test. If you want me to

RE: [PHP] regexp questions

2010-05-11 Thread Spud. Ivan.
hehe, but I can't find anything related to regexp. I've found something at http://php.net/preg_match Changelog Version Description 5.2.2 Named subpatterns now accept the syntax (?) and (?'na

Re: [PHP] regexp questions

2010-05-11 Thread Shawn McKenzie
On 05/11/2010 09:56 AM, Spud. Ivan. wrote: > > But it doesn't explain why my regexps work fine within php 5.1 but 5.3 > > Ivan. > Post a regex and what you think it should match but doesn't. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Array group and sum values.

2010-05-11 Thread Paul Halliday
I have this: while ($row = mysql_fetch_array($theData[0])) { $col1[] = $row[0]; $col2[] = lookup($row[1]); // this goes off and gets the country name. I then loop through col1 and col2 to produce something like this: 52 ARMENIA 215 CANADA 57 CANADA 261 COLOMBIA 53

[PHP] Re: regexp questions

2010-05-11 Thread Al
Get a copy of http://www.weitz.de/regex-coach/ and contribute. Use the pattern on your string, one section at a time. On 5/10/2010 7:53 PM, Spud. Ivan. wrote: Hi, I've recently changed from php 5.1 to 5.3.2 and I'm havong problems with preg_match, because the same regular expressions used i

Re: [PHP] Re: regexp questions

2010-05-11 Thread shiplu
I think the error is related to changed described here. http://www.pcre.org/changelog.txt Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

Re: [PHP] Re: regexp questions

2010-05-11 Thread Ashley Sheridan
On Tue, 2010-05-11 at 23:29 +0700, shiplu wrote: > I think the error is related to changed described here. > http://www.pcre.org/changelog.txt > > Shiplu Mokadd.im > My talks, http://talk.cmyweb.net > Follow me, http://twitter.com/shiplu > SUST Programmers, http://groups.google.com/group/p2psust

Re: [PHP] php path and relink

2010-05-11 Thread Piero Steinger
Am 11.05.2010 02:23, schrieb Augusto Flavio: > Hi, > > > I have a shell account with limited access. The php cli version installated > is 4.4.6. But the server have also the php 5.2.6. I checked the php version > and i got this: > > > $ php -v > PHP 4.4.9 (cli) (built: Sep 17 2008 11:04:03) > .

Re: [PHP] Re: regexp questions

2010-05-11 Thread shiplu
oops! Please see the change log for version 8.00 on http://www.pcre.org/changelog.txt Shiplu Mokadd.im My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

Re: [PHP] Array group and sum values.

2010-05-11 Thread Jim Lucas
Paul Halliday wrote: > I have this: > > while ($row = mysql_fetch_array($theData[0])) { > > $col1[] = $row[0]; > $col2[] = lookup($row[1]); // this goes off and gets the country name. > > I then loop through col1 and col2 to produce something like this: > > 52ARMENIA > 215 CANADA

Re: [PHP] Array group and sum values.

2010-05-11 Thread Paul Halliday
On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: > Paul Halliday wrote: >> I have this: >> >> while ($row = mysql_fetch_array($theData[0])) { >> >>     $col1[] = $row[0]; >>     $col2[] = lookup($row[1]); // this goes off and gets the country name. >> >> I then loop through col1 and col2 to produ

Re: [PHP] Array group and sum values.

2010-05-11 Thread Jim Lucas
Paul Halliday wrote: > On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: >> Paul Halliday wrote: >>> I have this: >>> >>> while ($row = mysql_fetch_array($theData[0])) { >>> >>> $col1[] = $row[0]; >>> $col2[] = lookup($row[1]); // this goes off and gets the country name. >>> >>> I then loo

Re: [PHP] Array group and sum values.

2010-05-11 Thread Paul Halliday
On Tue, May 11, 2010 at 4:03 PM, Jim Lucas wrote: > Paul Halliday wrote: >> On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: >>> Paul Halliday wrote: I have this: while ($row = mysql_fetch_array($theData[0])) {     $col1[] = $row[0];     $col2[] = lookup($row[1]); /

RE: [PHP] regexp questions

2010-05-11 Thread Spud. Ivan.
I think we've not so much only with the regex, but maybe you can tell me somethin helpful ;) /Word1:<\/a><\/h4>\(fir.*?st word.*?(.*)Word2:<\/a><\/h4>(.*)Second word:<\/a><\/h4>(.*)Word3:<\/a><\/h4>(.*)rd word/is Thanks. I.Lopez. >> On 05/11/2010 09:56 AM, Spud. Ivan. wrote: > > But it

RE: [PHP] regexp questions

2010-05-11 Thread Ashley Sheridan
On Tue, 2010-05-11 at 22:45 +0200, Spud. Ivan. wrote: > > I think we've not so much only with the regex, but maybe you can tell me > somethin helpful ;) > > /Word1:<\/a><\/h4>\( href=\"http:\/\/www.thiswebsite.com\/some-script.php\">fir.*?st > word.*?(.*)Word2:<\/a><\/h4>(.*)Second > word:<\/

Re: [PHP] Array group and sum values.

2010-05-11 Thread Shawn McKenzie
On 05/11/2010 02:17 PM, Paul Halliday wrote: > On Tue, May 11, 2010 at 4:03 PM, Jim Lucas wrote: >> Paul Halliday wrote: >>> On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: Paul Halliday wrote: > I have this: > > while ($row = mysql_fetch_array($theData[0])) { > > $

Re: [PHP] Array group and sum values.

2010-05-11 Thread Shawn McKenzie
On 05/11/2010 04:09 PM, Shawn McKenzie wrote: > On 05/11/2010 02:17 PM, Paul Halliday wrote: >> On Tue, May 11, 2010 at 4:03 PM, Jim Lucas wrote: >>> Paul Halliday wrote: On Tue, May 11, 2010 at 2:25 PM, Jim Lucas wrote: > Paul Halliday wrote: >> I have this: >> >> while ($ro

RE: [PHP] regexp questions

2010-05-11 Thread Spud. Ivan.
> From: a...@ashleysheridan.co.uk > To: spudm...@hotmail.com > CC: php-general@lists.php.net > Date: Tue, 11 May 2010 21:43:54 +0100 > Subject: RE: [PHP] regexp questions > > On Tue, 2010-05-11 at 22:45 +0200, Spud. Ivan. wrote: > > > > > I think we've not so much only with the regex, but m

RE: [PHP] regexp questions

2010-05-11 Thread Ashley Sheridan
On Tue, 2010-05-11 at 23:48 +0200, Spud. Ivan. wrote: > > > > > From: a...@ashleysheridan.co.uk > > To: spudm...@hotmail.com > > CC: php-general@lists.php.net > > Date: Tue, 11 May 2010 21:43:54 +0100 > > Subject: RE: [PHP] regexp questions > > > > On Tue, 2010-05-11 at 22:45 +0200, Spud. Iva

Re: [PHP] regexp questions

2010-05-11 Thread Jim Lucas
Spud. Ivan. wrote: > > I think we've not so much only with the regex, but maybe you can tell me > somethin helpful ;) > > /Word1:<\/a><\/h4>\( href=\"http:\/\/www.thiswebsite.com\/some-script.php\">fir.*?st > word.*?(.*)Word2:<\/a><\/h4>(.*)Second > word:<\/a><\/h4>(.*)Word3:<\/a><\/h4>(.*)rd

[PHP] 2D barcodes

2010-05-11 Thread Brian Dunning
I have a project where I need to add some 2D barcodes onto some PDF files. I plan to use fpdi, since I've used it before and am familiar with it, but I need a source to generate the 2D barcodes, preferably as a png or jpg. Anyone have a suggestion - either a local classfile or a reliable web ser

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread Brian Dunning
Hi Shiplu - I also have a product with similar requirements. I searched a LOT and was never able to find a free solution that I was satisfied with. Even a lot of the commercial solutions required some server-side runtime EXE or something be installed, and my customers are not tech savvy enough

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread Ashley Sheridan
On Tue, 2010-05-11 at 16:50 -0700, Brian Dunning wrote: > Hi Shiplu - > > I also have a product with similar requirements. I searched a LOT and was > never able to find a free solution that I was satisfied with. Even a lot of > the commercial solutions required some server-side runtime EXE or s

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread Brian Dunning
Totally agree. But just in case it wasn't clear, you only need a Windows computer once to run the obfuscator; once done the code runs on any PHP server. On May 11, 2010, at 5:06 PM, Ashley Sheridan wrote: > Does slightly limit you to the Windows platform though, which I always think > is a

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread shiplu
I dont own a windows computer. I found phpcoder.sf.net. it uses eaccelerator to encode. This is good. But the problem is latest version of e-accelerator discontinued the encoder. So may be, an older version will do it. Didn't configured it yet. Shiplu Mokadd.im My talks, http://talk.cmyweb.net Fo

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread Phpster
On May 11, 2010, at 8:36 PM, shiplu wrote: I dont own a windows computer. I found phpcoder.sf.net. it uses eaccelerator to encode. This is good. But the problem is latest version of e-accelerator discontinued the encoder. So may be, an older version will do it. Didn't configured it yet. Shi

Re: [PHP] PHP Application Structre

2010-05-11 Thread Kevin Kinsey
Ashley Sheridan wrote: On Tue, 2010-05-11 at 08:48 +0530, chetan rane wrote: Hi all, mod rewrite was actually inrduced to have search engne frendly urls. hnce if you want a seo site then you have to use options 1 & 2. using smarty or any templating engine for readibility is not total true. on