php-general Digest 24 Jul 2006 06:26:36 -0000 Issue 4255

2006-07-24 Thread php-general-digest-help
php-general Digest 24 Jul 2006 06:26:36 - Issue 4255 Topics (messages 239710 through 239718): parse text file 239710 by: Benjamin Adams 239711 by: Joe Wollard 239712 by: Sameer N Ingole 239713 by: Stut 239715 by: Benjamin Adams Re: Step by step code

Re: [PHP] PHP on IIS and MS SQL 2000

2006-07-24 Thread Igor Kryltsov
Hi Frank, Thanks a lot for your reply. Just to clarify (Unix style of win commands :) ): cp php_mssql.dll php_mssql.dll.bak cp php_dblib.dll php_mssql.dll What about freetds.conf? Just touch it or it has to have something inside? Can you give an example in this case? And probably most

[PHP] select option and php

2006-07-24 Thread weetat
Hi all , I have a code below : function goToPageSelect($selectname,$totalItems){ $_logger = new Log4jLogger(); $_logger-logdebug(starting ..goToPageSelect()); $_logger-logdebug(starting ..goToPageSelect(), $totalItems); $selecthtml = Go to Page:select name=\$selectname\

[PHP] Re: Step by step code running

2006-07-24 Thread weetat
Hi Ryan, I use Log4jPhp to log any debug value. I think it is better than using echo or print method. Thanks - weetat Ryan A wrote: Hi, I need to explain a script to a pal of mine but either i cant explain it properly or he just cant get the concept being new to php's slightly advanced

[PHP] Checking $_POST var and stripping

2006-07-24 Thread Chris Grigor
Hi Can anyone help with this ? its checking the $_POST and seeing if any of the items begin with answer_, if the do it should remove it from the beginning and place it into $value_new.. does not seem to work though... foreach($_POST as $qid = $value) { $findme = 'answer_';

RE: [PHP] Checking $_POST var and stripping

2006-07-24 Thread Jay Blanchard
[snip] Can anyone help with this ? its checking the $_POST and seeing if any of the items begin with answer_, if the do it should remove it from the beginning and place it into $value_new.. does not seem to work though... foreach($_POST as $qid = $value) { $findme = 'answer_';

RE: [PHP] select option and php

2006-07-24 Thread Jay Blanchard
[snip] It will produce the html tag as shown below: script language=JavaScript function gotoPage(){ var urlpath = ../listflag.php?start=pageID=+3; document.forms['listfrm'].method = 'post'; document.forms['listfrm'].action = urlpath; document.forms['listfrm'].submit; } /script form

Re: [PHP] Help with dynamic radio buttons

2006-07-24 Thread Dimiter Ivanov
On 7/22/06, Chris Grigor [EMAIL PROTECTED] wrote: Afternoon all I need some help here with a problem on dynamic radio buttons. I have a script that calls a database for a list of questions. The questions are returned and each question needs to have 5 radio buttons assigned to it. The radio

Re: [PHP] Step by step code running

2006-07-24 Thread Jochem Maas
Ryan A wrote: Hi, I need to explain a script to a pal of mine but either i cant explain it properly or he just cant get the concept being new to php's slightly advanced stuff (OO and classes, mind you...i ain't no expert myself in this, more like Jochem's(from this list) field of

Re: [PHP] Re: Stumped! 4.x to 5.1 problem!!

2006-07-24 Thread markw
[snip] seems the perceived problem is being caused by something else? Sorry, I have to respectfully disagree. I was converting all indexes to string indexes, and simply using zend_hash_update to re-constitute the objects and they simply did not work. When I scanned indexes strings to test for

Re: [PHP] Re: Stumped! 4.x to 5.1 problem!!

2006-07-24 Thread Jochem Maas
Mark wrote: Mark wrote: I have an extension that seems to create PHP variables correctly, and var_dump() doesn't seem to have a problem. but upon moving to 5.1.x it fails. Anyone have a suggestion? Well, it is fixed. Evidently, PHP 5.1 sees a difference between $var[0] and $var[0]. It

Re: [PHP] Re: Step by step code running

2006-07-24 Thread Mariano Guadagnini
Personally, i think the best one is Zend debugger. It's integrated on the Zend IDE, and let you debug remotely, from a server. The problem aside, is that is paid and closed source, neverthless is the best IMHO. You may give it a try: www.zend.com/products/zend_studio HTH, Mariano. weetat

Re: [PHP] Step by step code running

2006-07-24 Thread Ryan A
Hey, I need to explain a script to a pal of mine but either i cant explain it properly or he just cant get the concept being new to php's slightly advanced stuff (OO and classes, mind you...i ain't no expert myself in this, more like Jochem's(from this list) field of expertise)

Re: [PHP] Step by step code running

2006-07-24 Thread Ryan A
Thanks Rob, will check it out! You're looking for a debugger. There's a whole thread on the go right now for PHP Debugger Recommendations. Personally I prefer the echo/print_r method that you're probably already using... but as you say you're trying to demonstrate so that's a bit

[PHP] Comparing Strings

2006-07-24 Thread Nils Holland
Hi folks, well, I have a really dumb question: I have the following script at http://www.tisys.org/misc/test.php: ?php echo $_GET['license']; ? Now I call it like this: http://www.tisys.org/misc/test.php? license=0701770160811371731660412452242420381052542100071831272071031621

[PHP] database connections

2006-07-24 Thread Ryan A
Hi, This is not really a problem, more like a slightly OT question. Recently I have been testing some CMS/carts/BB boards and other related software, sometimes at the end of the page the software outputs the time it took to generate the page and the number of database calls. I have seen some

Re: [PHP] database connections

2006-07-24 Thread Robert Cummings
On Mon, 2006-07-24 at 11:46, Ryan A wrote: Hi, This is not really a problem, more like a slightly OT question. Recently I have been testing some CMS/carts/BB boards and other related software, sometimes at the end of the page the software outputs the time it took to generate the page

[PHP] Re: Comparing Strings

2006-07-24 Thread Adam Zey
Nils Holland wrote: Hi folks, well, I have a really dumb question: I have the following script at http://www.tisys.org/misc/test.php: ?php echo $_GET['license']; ? Now I call it like this:

Re: [PHP] database connections

2006-07-24 Thread Ryan A
Hey Rob, Thanks for replying. It's usually a sign of poor programming and/or purist OOP programming. When I say purist OOP programming... I saw one really retarded implementation of this kind of system where an excess of 2 queries were issued to the database -- on a homepage

[PHP] PHP Developer Needed in San Jose, CA w/ Occasional Travel to Palo Alto

2006-07-24 Thread Franco Pawlisz
Hello Everyone, Let me introduce myself, My name is Franco Pawlisz with ObjectWave Corporation a Software Engineering Company Headquartered in Chicago, IL. ObjectWave Corporation specializes in the use of object-oriented (OO) technologies to design, develop and deploy software.

RE: [PHP] database connections

2006-07-24 Thread Kilbride, James P.
While that kind of query structure can be a huge issue the biggest problem, and performance penalty, occurs if the programmer is opening and closing actual real connections. A good structure would use a singleton connection that is opened only the first time it is called and the rest of the time

RE: [PHP] database connections

2006-07-24 Thread Robert Cummings
On Mon, 2006-07-24 at 15:15, Kilbride, James P. wrote: While that kind of query structure can be a huge issue the biggest problem, and performance penalty, occurs if the programmer is opening and closing actual real connections. A good structure would use a singleton connection that is opened

RE: [PHP] database connections

2006-07-24 Thread Ryan A
--- Kilbride, James P. [EMAIL PROTECTED] wrote: While that kind of query structure can be a huge issue the biggest problem, and performance penalty, occurs if the programmer is opening and closing actual real connections. A good structure would use a singleton connection that is opened

[PHP] Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
Dear All, I'm having a problem replacing these bad characters from a feed. Example: descriptionThe United Kingdom92s National Arena Association has elected Geoff Huckstep, the current CEO of the National Ice Centre and Nottingham Arena, as chairman./description The 92is actually a single

[PHP] Re: Stripping weird characters again...

2006-07-24 Thread Adam Zey
Paul Nowosielski wrote: Dear All, I'm having a problem replacing these bad characters from a feed. Example: descriptionThe United Kingdom92s National Arena Association has elected Geoff Huckstep, the current CEO of the National Ice Centre and Nottingham Arena, as chairman./description The

Re: [PHP] Re: Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
I understand I need to do a string replace. Should I do it like so? $search = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151)); $replace = array(',','','','-','-'); Is this what you mean? Thank you, -- Paul Nowosielski Webmaster On Monday 24 July 2006 16:12, Adam Zey

Re: [PHP] Re: Stripping weird characters again...

2006-07-24 Thread Paul Nowosielski
It works, thank you! On Monday 24 July 2006 16:21, Paul Nowosielski wrote: I understand I need to do a string replace. Should I do it like so? $search = array(chr(145),chr(146),chr(147),chr(148),chr(150),chr(151)); $replace = array(',','','','-','-'); Is this what you mean? Thank you,

[PHP] SQL Result Set - HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
Anyone have a PHP fragment that just prints a very simple html table from the contents of a db result set? I don't want phpmyadmin or anything remotely that complex. I want something that simply extracts the header info and prints a basic HTML table. It should be about 10 lines of code I suspect.

[PHP] Re: SQL Result Set - HTML Table Fragment (but Simple)

2006-07-24 Thread Adam Zey
Michael B Allen wrote: Anyone have a PHP fragment that just prints a very simple html table from the contents of a db result set? I don't want phpmyadmin or anything remotely that complex. I want something that simply extracts the header info and prints a basic HTML table. It should be about 10

[PHP] Re: SQL Result Set - HTML Table Fragment (but Simple)

2006-07-24 Thread Adam Zey
Adam Zey wrote: Michael B Allen wrote: Anyone have a PHP fragment that just prints a very simple html table from the contents of a db result set? I don't want phpmyadmin or anything remotely that complex. I want something that simply extracts the header info and prints a basic HTML table. It

Re: [PHP] Re: SQL Result Set - HTML Table Fragment (but Simple)

2006-07-24 Thread Larry Garfield
On Monday 24 July 2006 18:50, Adam Zey wrote: Writing code in a mail window, so forgive any errors or ugly code. This will print a table with the first row as headers of the field names, and each row after that is a database row. I hope. $firstrow = true; echo table; while ( $row =

[PHP] xml v php question

2006-07-24 Thread tedd
Hi gang: Why does starting my php script with -- ?xml version=1.0 encoding=utf-8? -- stop it from running? I would like to use php in a page, but the page has to begin with a xml declaration to generate a quirksmode for IE6 and under while permitting IE7 to be left in standards mode.

Re: [PHP] select option and php

2006-07-24 Thread weetat
Hi Jay , I am not in the javascript group. Btw , i have added document.forms['listfrm'].pageid.value in the page , but the form is not submitted ? var pageid = document.forms['listfrm'].pageid.value; var urlpath = ../listflag.php?start=pageID=+pageid;

Re: [PHP] xml v php question

2006-07-24 Thread Larry Garfield
Disable short tags. If short tags are enabled, the PHP parser sees the ? and switches into PHP mode. It then starts parsing the xml and sees that it's not proper PHP, and freaks out. You can: a) Use PHP to print out the XML declaration as a string: ?php print '?xml version=1.0

Re: [PHP] SQL Result Set - HTML Table Fragment (but Simple)

2006-07-24 Thread Michael B Allen
Ok, I've been tinkering a little. This isn't simple but it's not a lot of code either. Basically the user supplies an array of cell renderers associated with column names. Each renderer is a function name that will be called to modify an array() representing an HTML TD element. The result is

Re: [PHP] PHP Developer Needed in San Jose, CA w/ Occasional Travel to Palo Alto

2006-07-24 Thread Paul Scott
On Mon, 2006-07-24 at 14:17 -0500, Franco Pawlisz wrote: My Client is specifically looking for a developer with strong front end PHP experience knowledge of Java and or Ruby is a major plus. What the heck is front end PHP, or am I misinterpreting the bad punctuation (or lack thereof)?