Re: [PHP] Parse ini file problem

2009-05-21 Thread Jim Lucas
Thodoris wrote: I am trying to parse an ini conf file using parse_ini_file but fails without returning something. I found this which is probably the reason: http://bugs.php.net/bug.php?id=44544 (the $ in the values) The problem is that this file has more than 7500 lines so it's kind of diffi

Re: [PHP] CSS & tables

2009-05-21 Thread Al
There appears to be a bug in the FF3x cell line generating code. border-collapse is a mess, it doubles up some cell lines and drops others when drawing and redrawing tables. I had to make a nice lines between cells by assigning tds with bottom and right sides only. Al... Jessi Berkelham

Re: [PHP] Re: PHP class question

2009-05-21 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Peter van der Does wrote: On Thu, 21 May 2009 14:08:11 -0500 Shawn McKenzie wrote: This doesn't make sense. You say "class A needs to be extended with another class", however what you show below is "class A extending framework_class". I worded

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Michael A. Peters
Eddie Drapkin wrote: Suhosin is completely not-related to SQL, though, I don't know why you'd bring it up... I brought it up because suhosin catches many exploits that otherwise get through, including exploits that allow inclusion of remote files that can then be used to run arbitrary command

Re: [PHP] Re: PHP class question

2009-05-21 Thread Shawn McKenzie
Shawn McKenzie wrote: > Peter van der Does wrote: >> On Thu, 21 May 2009 14:08:11 -0500 >> Shawn McKenzie wrote: >> >> >>> This doesn't make sense. You say "class A needs to be extended with >>> another class", however what you show below is "class A extending >>> framework_class". >>> >> I worde

Re: [PHP] Re: PHP class question

2009-05-21 Thread Shawn McKenzie
Peter van der Does wrote: > On Thu, 21 May 2009 14:08:11 -0500 > Shawn McKenzie wrote: > > >> This doesn't make sense. You say "class A needs to be extended with >> another class", however what you show below is "class A extending >> framework_class". >> > > I worded it wrong, I apologize. > C

Re: [PHP] CSS & tables

2009-05-21 Thread Ashley Sheridan
On Thu, 2009-05-21 at 13:05 -0700, Jessi Berkelhammer wrote: > Hi, > This post is another one that might be better asked on a CSS-list, but > it is relevant to this thread. > > The calendar at http://php1.net/my-php-calendar/ seems to have a similar > issue to a problem I am havingcell borde

Re: [PHP] CSS & tables

2009-05-21 Thread Jessi Berkelhammer
Hi, This post is another one that might be better asked on a CSS-list, but it is relevant to this thread. The calendar at http://php1.net/my-php-calendar/ seems to have a similar issue to a problem I am havingcell borders (sometimes) disappear in Firefox when you zoom out. In both this ca

Re: [PHP] Re: PHP class question

2009-05-21 Thread Peter van der Does
On Thu, 21 May 2009 14:08:11 -0500 Shawn McKenzie wrote: > > This doesn't make sense. You say "class A needs to be extended with > another class", however what you show below is "class A extending > framework_class". > I worded it wrong, I apologize. Class A needs to be an extension of the f

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Shawn McKenzie
Eddie Drapkin wrote: > Suhosin is completely not-related to SQL, though, I don't know why you'd > bring it up... Well, because the post that I was replying to brought it up and I happen to agree that it's a good idea even though it has nothing to do with SQL :-) >>> Michael A. Peters wrote:

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Eddie Drapkin
Suhosin is completely not-related to SQL, though, I don't know why you'd bring it up... > > > > On Thu, May 21, 2009 at 3:42 PM, Shawn McKenzie wrote: > >> Michael A. Peters wrote: >> > Sumit Sharma wrote: >> >> Hi, >> >> >> >> I am designing a php website for my client which interact with >> datab

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Shawn McKenzie
Michael A. Peters wrote: > Sumit Sharma wrote: >> Hi, >> >> I am designing a php website for my client which interact with database. >> This is my first project for any client (I hope he is not reading this >> mail >> ;-) ). I am a bit more concerned with database security. Can somebody >> shed >>

Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread Weston C
On Thu, May 21, 2009 at 12:10 PM, tedd wrote: > Could you be certain that your algorithm would figure out which way it needs > to present the text to a blind person? My own experience browsing the web with Lynx (which for the most part, tends to ignore table layout, giving you the content of tabl

[PHP] Re: Forms validation and creation- easier solution?

2009-05-21 Thread Daniele Grillenzoni
On 20/05/2009 9.03, Angelo Zanetti wrote: Hi all. We have done quite a few projects and we are looking to find better ways to implementing forms. Forms seem to be quite time consuming and repetitive. Generally are there any classes or libraries that will assist with: 1. Easy crea

Re: [PHP] Problems working with HTML using PHP's XML tools (placing mixed text/html into xpath-specified nodes...)

2009-05-21 Thread Michael A. Peters
Weston C wrote: Is there a straightforward way (or, heck, any way) of placing mixed html/text content into xpath-specified nodes using any of PHP's XML tools? So far, I've tried SimpleXML and the DOM and things aren't coming out well. Not sure if it is of any use to you, I don't use XPath at a

[PHP] Re: PHP class question

2009-05-21 Thread Shawn McKenzie
Peter van der Does wrote: > I have the following situation. > > I wrote some software and split it up into functionality: > > class core { > function go{ > } > } > > class A extends core { > // PHP4 constructor > function A { > $this->go(); > } > > } > > class B extends core { >

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Michael A. Peters
Sumit Sharma wrote: Hi, I am designing a php website for my client which interact with database. This is my first project for any client (I hope he is not reading this mail ;-) ). I am a bit more concerned with database security. Can somebody shed some light on the security measurements, precau

[PHP] Problems working with HTML using PHP's XML tools (placing mixed text/html into xpath-specified nodes...)

2009-05-21 Thread Weston C
Is there a straightforward way (or, heck, any way) of placing mixed html/text content into xpath-specified nodes using any of PHP's XML tools? So far, I've tried SimpleXML and the DOM and things aren't coming out well. SimpleXML: /* $filename contains path to valid XML file, $xpathxpr conta

Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread Benjamin Hawkes-Lewis
On 21/5/09 18:48, Weston C wrote: I almost just wish we'd accepted the horse was out of the barn and tried to figure out an easy way to signal distinctions between layout tables and semantic tabular data, rather than trying to get the entire internet to completely retool. One year after HTML 4.

[PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread tedd
At 11:48 AM -0600 5/21/09, Weston C wrote: On Thu, 2009-05-21 at 09:54 -0400, tedd wrote: My thoughts are -- my understanding the reason why tables have received such bad-press is that designers have abused tables in holding designs together with nested tables AND in doing so made it difficu

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Tom Worster
this reminds me of the classic line in "Real Programmers Don't Use Pascal": "Besides, the determined Real Programmer can write Fortran programs in any language." On 5/21/09 4:02 AM, "Jim Lucas" wrote: > Since this has been a topic of dicussion, I figured I would add my thoughts. > > I have be

[PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread Weston C
On Thu, 2009-05-21 at 09:54 -0400, tedd wrote: > My thoughts are -- my understanding the reason why tables have > received such bad-press is that designers have abused tables in > holding designs together with nested tables AND in doing so made it > difficult for the visually disabled to pull conte

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Nathan Rixham
Benjamin Hawkes-Lewis wrote: On 21/5/09 09:02, Jim Lucas wrote: I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... [snip] But, not knowing how the various types of accessibility applications work, I am guessing that the layout to an applicatio

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Benjamin Hawkes-Lewis
On 21/5/09 09:02, Jim Lucas wrote: I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... [snip] But, not knowing how the various types of accessibility applications work, I am guessing that the layout to an application trying to read it should wor

[PHP] Re: PHP class question

2009-05-21 Thread Nathan Rixham
Peter van der Does wrote: I have the following situation. I wrote some software and split it up into functionality: class core { function go{ } } class A extends core { // PHP4 constructor function A { $this->go(); } } class B extends core { } In core I define functions and va

Re: [PHP] Check out system for Shopping Cart

2009-05-21 Thread Lex Braun
Vernon, CC messages to php-general to keep responses on-list. See my comments inline. On Thu, May 21, 2009 at 12:06 PM, Vernon St.Croix wrote: > > I have amended as you advised and the mysqli errors are now gone. Thanks > for that. > > I however have another one I can't get rid of: > > > *Warnin

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Lists
Jim Lucas wrote: Jim Lucas wrote: Since this has been a topic of dicussion, I figured I would add my thoughts. I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... Recent threads have finally made me do it. Let me know what you think. Hi Ji

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Ashley Sheridan
On Thu, 2009-05-21 at 12:14 -0400, Eddie Drapkin wrote: > I'd be more fond of unrolling some of those loops and feeding the data into > a proper template than tweaking what looks like really half-arsed code. > > On Thu, May 21, 2009 at 11:57 AM, Ashley Sheridan > wrote: > > > On Thu, 2009-05-21 a

[PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread Daniele Grillenzoni
On 21/05/2009 10.02, Jim Lucas wrote: Since this has been a topic of dicussion, I figured I would add my thoughts. I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... Recent threads have finally made me do it. Let me know what you think. http://w

[PHP] PHP class question

2009-05-21 Thread Peter van der Does
I have the following situation. I wrote some software and split it up into functionality: class core { function go{ } } class A extends core { // PHP4 constructor function A { $this->go(); } } class B extends core { } In core I define functions and variables that are to be used

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Eddie Drapkin
I'd be more fond of unrolling some of those loops and feeding the data into a proper template than tweaking what looks like really half-arsed code. On Thu, May 21, 2009 at 11:57 AM, Ashley Sheridan wrote: > On Thu, 2009-05-21 at 10:44 -0500, Shawn McKenzie wrote: > > Ashley Sheridan wrote: > > >

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Shawn McKenzie
Ashley Sheridan wrote: > On Thu, 2009-05-21 at 10:44 -0500, Shawn McKenzie wrote: >> Ashley Sheridan wrote: >> > Tedd, I've got a fairly simple calendar script in PHP here >>> http://www.ashleysheridan.co.uk/coding.php?group=php&article=coding_php_calendar.php >>> which could be adapted fairly ea

[PHP] Re: Azure SDK for PHP

2009-05-21 Thread Nathan Rixham
haliphax wrote: Microsoft's Azure cloud computing framework has now been exposed to PHP. I haven't tested any of the features myself, but it seems like a pretty interesting (and leverage-able) concept to work with... figured I'd pass the word along. http://phpazure.codeplex.com/ cheers for th

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Eddie Drapkin
Yeah, it doesn't work here, either. On Thu, May 21, 2009 at 11:44 AM, Shawn McKenzie wrote: > Ashley Sheridan wrote: > > Tedd, I've got a fairly simple calendar script in PHP here > > > http://www.ashleysheridan.co.uk/coding.php?group=php&article=coding_php_calendar.phpwhich > could be adapted

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Ashley Sheridan
On Thu, 2009-05-21 at 10:44 -0500, Shawn McKenzie wrote: > Ashley Sheridan wrote: > > Tedd, I've got a fairly simple calendar script in PHP here > > http://www.ashleysheridan.co.uk/coding.php?group=php&article=coding_php_calendar.php > > which could be adapted fairly easily with the right tweaks.

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Shawn McKenzie
Ashley Sheridan wrote: > Tedd, I've got a fairly simple calendar script in PHP here > http://www.ashleysheridan.co.uk/coding.php?group=php&article=coding_php_calendar.php > which could be adapted fairly easily with the right tweaks. > > > Ash > www.ashleysheridan.co.uk > I cant get the calend

[PHP] Azure SDK for PHP

2009-05-21 Thread haliphax
Microsoft's Azure cloud computing framework has now been exposed to PHP. I haven't tested any of the features myself, but it seems like a pretty interesting (and leverage-able) concept to work with... figured I'd pass the word along. http://phpazure.codeplex.com/ -- // Todd -- PHP General Mai

[PHP] Re: PHP5 based Web-Chat?

2009-05-21 Thread Nathan Rixham
Michelle Konzack wrote: Hello Nathan, Am 2009-05-21 13:44:38, schrieb Nathan Rixham: Nothing :D - anything php based would involve polling which will kill any server when trying to create a realtime chat environment (1 request per second per chatter + 1 for each message send + normal hi

Re: [PHP] Shared memory - linx and PHP newbie

2009-05-21 Thread Daniel Brown
On Thu, May 21, 2009 at 10:15, Richard W wrote: > > Any help will be greatly appreciated, especially answering 2) as to why I > can't read the data. Are you certain that the problem lies within the shmop reading? Check to see if the file is actually being accessed properly, the key is good fr

Re: [PHP] Re: MYSQL 5 auto increment not working

2009-05-21 Thread Bastien Koert
On Thu, May 21, 2009 at 9:34 AM, Nathan Rixham wrote: > Leidago !Noabeb wrote: > >> Hi All >> >> >> I know this is not strictly a PHP question, but i have a problem whenever >> i >> insert a record using PHP. Basically the auto increment field does not >> work >> at all. Here's the structure of t

[PHP] Shared memory - linx and PHP newbie

2009-05-21 Thread Richard W
Hi I have a query regarding shared memory created under Linux and then accessing it by PHP script. For my application, I have created a shared memory block in Debian Linux using the shm_open(..), ftruncate(...) and mmap(...) function calls. The shared memory block is of size 6304 bytes long. It

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Ashley Sheridan
On Thu, 2009-05-21 at 09:54 -0400, tedd wrote: > At 1:02 AM -0700 5/21/09, Jim Lucas wrote: > >Since this has been a topic of dicussion, I figured I would add my thoughts. > > > >I have been toying with the idea of doing a -less layouts > >involving tabular data, calendars, etc... > > > >Recent th

RE: Fwd: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA INDATABASE

2009-05-21 Thread bruce
if you really want to get to the real low level details of an app... unless you're dealing with an app that's seriously crunching, and extremely sensitive to returning data to the user's browser in a timely manner, you should write all replies back to a db/tbl... this would allow you as the develo

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread tedd
At 1:02 AM -0700 5/21/09, Jim Lucas wrote: Since this has been a topic of dicussion, I figured I would add my thoughts. I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... Recent threads have finally made me do it. Let me know what you think.

Re: Fwd: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Ashley Sheridan
On Thu, 2009-05-21 at 19:17 +0530, Sumit Sharma wrote: > One more thing, should I use @ for security purpose or not so that the use > can reply me with the errors so that I can troubleshoot the problem more > effectively. > > > Sumit > > -- Forwarded message -- > From: Ashley She

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Paul M Foster
On Thu, May 21, 2009 at 01:02:07AM -0700, Jim Lucas wrote: > Since this has been a topic of dicussion, I figured I would add my > thoughts. > > I have been toying with the idea of doing a -less layouts involving > tabular data, calendars, > etc... > > Recent threads have finally made me do it. L

Fwd: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Sumit Sharma
One more thing, should I use @ for security purpose or not so that the use can reply me with the errors so that I can troubleshoot the problem more effectively. Sumit -- Forwarded message -- From: Ashley Sheridan Date: Thu, May 21, 2009 at 6:36 PM Subject: Re: [PHP] SECURITY PRE

[PHP] Re: PHP5 based Web-Chat?

2009-05-21 Thread Michelle Konzack
Hello Nathan, Am 2009-05-21 13:44:38, schrieb Nathan Rixham: > Nothing :D > - anything php based would involve polling which will kill > any server when trying to create a realtime chat environment > (1 request per second per chatter + 1 for each message send + normal > hits) - so say 30 ch

Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread Tom Worster
On 5/21/09 5:06 AM, "O. Lavell" wrote: > Jim Lucas wrote: > >> Since this has been a topic of dicussion, I figured I would add my >> thoughts. >> >> I have been toying with the idea of doing a -less layouts >> involving tabular data, calendars, etc... > > Why? it's a zen practice. -- PHP

Re: [PHP] product listing columns

2009-05-21 Thread Tom Worster
On 5/21/09 3:05 AM, "Ashley Sheridan" wrote: > I'm advocating tables on this one, as it is pretty much tabular data. i too would put a table of product data in an html table. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MYSQL 5 auto increment not working

2009-05-21 Thread Nathan Rixham
Leidago !Noabeb wrote: Hi All I know this is not strictly a PHP question, but i have a problem whenever i insert a record using PHP. Basically the auto increment field does not work at all. Here's the structure of the table that i'm using: CREATE TABLE `children` ( `cid` int(4) NOT NULL auto

Re: [PHP] MYSQL 5 auto increment not working

2009-05-21 Thread Per Jessen
Leidago !Noabeb wrote: > Hi All > > I know this is not strictly a PHP question, but i have a problem > whenever i insert a record using PHP. Basically the auto increment > field does not work at all. Here's the structure of the table that i'm > using: > > CREATE TABLE `children` ( > `cid` int(

Re: [PHP] Check out system for Shopping Cart

2009-05-21 Thread Lex Braun
On Thu, May 21, 2009 at 7:32 AM, Vernon St.Croix wrote: > *Warning*: mysqli_query() expects parameter 1 to be mysqli, object given > in *C:\wamp\www\draft\checkout.php* on line *26* > > ***for the script > > > include("mysql.class.php"); > > include ("header.php"); > > > > //include (

Re: [PHP] MYSQL 5 auto increment not working

2009-05-21 Thread Bruno Fajardo
2009/5/21 Leidago !Noabeb > Hi All > > > I know this is not strictly a PHP question, but i have a problem whenever i > insert a record using PHP. Basically the auto increment field does not work > at all. Here's the structure of the table that i'm using: > > CREATE TABLE `children` ( > `cid` int

[PHP] MYSQL 5 auto increment not working

2009-05-21 Thread Leidago !Noabeb
Hi All I know this is not strictly a PHP question, but i have a problem whenever i insert a record using PHP. Basically the auto increment field does not work at all. Here's the structure of the table that i'm using: CREATE TABLE `children` ( `cid` int(4) NOT NULL auto_increment, `cname` cha

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Ashley Sheridan
On Thu, 2009-05-21 at 18:22 +0530, Sumit Sharma wrote: > Hi, > > I am designing a php website for my client which interact with database. > This is my first project for any client (I hope he is not reading this mail > ;-) ). I am a bit more concerned with database security. Can somebody shed > so

[PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Sumit Sharma
Hi, I am designing a php website for my client which interact with database. This is my first project for any client (I hope he is not reading this mail ;-) ). I am a bit more concerned with database security. Can somebody shed some light on the security measurements, precautions, and functions r

[PHP] Re: PHP5 based Web-Chat?

2009-05-21 Thread Nathan Rixham
Michelle Konzack wrote: Hello, I like to install a forum for my customers and additional a PHP5 based Web-Chat system with publich and private chatrooms. What can you recommend? Nothing :D - anything php based would involve polling which will kill any server when trying to create a realti

[PHP] PHP5 based Web-Chat?

2009-05-21 Thread Michelle Konzack
Hello, I like to install a forum for my customers and additional a PHP5 based Web-Chat system with publich and private chatrooms. What can you recommend? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant

[PHP] Check out system for Shopping Cart

2009-05-21 Thread Vernon St . Croix
Can you please help with my checkout script. I have been getting errors as shown below: Warning: mysqli_query() expects parameter 1 to be mysqli, object given in C:\wamp\www\draft\checkout.php on line 26 Warning: mysqli_affected_rows() expects parameter 1 to be mysqli, object given in C:

[PHP] Re: Really basic PHP questions -- newbie here!

2009-05-21 Thread O. Lavell
Ellen Heitman wrote: > Hello! I would really appreciate some answers to a few basic questions. > I have done some research online, but it would greatly help me to get > direct answers. > 1. If my site needs to be available to many browsers, including those > that may not be entirely up-to-date, is

[PHP] Re: -less layouts; Ideas welcome

2009-05-21 Thread O. Lavell
Jim Lucas wrote: > Since this has been a topic of dicussion, I figured I would add my > thoughts. > > I have been toying with the idea of doing a -less layouts > involving tabular data, calendars, etc... Why? > Recent threads have finally made me do it. Let me know what you think. > > http://

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Luke
2009/5/21 Jim Lucas > Jim Lucas wrote: > >> Since this has been a topic of dicussion, I figured I would add my >> thoughts. >> >> I have been toying with the idea of doing a -less layouts involving >> tabular data, calendars, etc... >> >> Recent threads have finally made me do it. Let me know wh

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Jim Lucas
Jim Lucas wrote: Since this has been a topic of dicussion, I figured I would add my thoughts. I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... Recent threads have finally made me do it. Let me know what you think. http://www.cmsws.com/exam

[PHP] -less layouts; Ideas welcome

2009-05-21 Thread Jim Lucas
Since this has been a topic of dicussion, I figured I would add my thoughts. I have been toying with the idea of doing a -less layouts involving tabular data, calendars, etc... Recent threads have finally made me do it. Let me know what you think. http://www.cmsws.com/examples/templates/div_