php-general Digest 15 Mar 2006 16:51:06 -0000 Issue 4017

2006-03-15 Thread php-general-digest-help
php-general Digest 15 Mar 2006 16:51:06 - Issue 4017 Topics (messages 231922 through 231952): display array problem 231922 by: Mark 231923 by: Chris dynamic form 231924 by: Mark 231927 by: Chris Re: umlaut problem in firefox 231925 by: Andy

Re: [PHP] Re: umlaut problem in firefox

2006-03-15 Thread Andy
My problem still remains open Help!!! I noticed that if the umlauts are received correctly but they are not submitted in the right way. For a ö I receive a POST as: ö From the DB I get the text correctly. meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 The DB

Re: [PHP] Re: umlaut problem in firefox

2006-03-15 Thread Barry
Andy wrote: My problem still remains open Help!!! I noticed that if the umlauts are received correctly but they are not submitted in the right way. For a ö I receive a POST as: ö From the DB I get the text correctly. meta http-equiv=Content-Type content=text/html; charset=iso-8859-1

Re: [PHP] dynamic form

2006-03-15 Thread chris smith
On 3/15/06, Mark [EMAIL PROTECTED] wrote: Can anyone help to make this form dynamic, at hte moment a user picks a round number from 1-22 but if that round is closed then sends them back to this page. Anyway of making the form show the current round (as in sports round fixtures) without adding

Re: [PHP] Re: umlaut problem in firefox

2006-03-15 Thread Andy
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 This is in the header. If I look at page info in firefox I get: text/html; charset=iso-8859-1. So the setted encoding is correct. The problem that I noticed is that the umlauts are displayed correctly but when I submit them in

[PHP] string to integer conversion

2006-03-15 Thread suresh kumar
i am facing one problem in type casting. $accno=2927; $accno=$accno+1; its o/p is 2928. but i want output to be 2928.i am waiting response from u. __ Yahoo! India Matrimony: Find your partner now. Go to

[PHP] Re: string to integer conversion

2006-03-15 Thread João Cândido de Souza Neto
Try this: $accno=2927; $accno=substr(,0,(8-strlen($accno+1))).($accno+1); I don't test, but i hope it'll work fine. suresh kumar wrote: i am facing one problem in type casting. $accno=2927; $accno=$accno+1; its o/p is 2928. but i want output to be 2928.i am waiting

Re: [PHP] string to integer conversion

2006-03-15 Thread Robin Vickery
On 15/03/06, suresh kumar [EMAIL PROTECTED] wrote: i am facing one problem in type casting. $accno=2927; $accno=$accno+1; its o/p is 2928. but i want output to be 2928.i am waiting response from u. $accno = sprintf('%08d', $accno+1); -robin

[PHP] PHP HOSTNAME environment variable poltergeist

2006-03-15 Thread Ruben Rubio Rey
Im having again a problem with hostname environment varible. Hostname is set OK and it is now shown in phpinfo(). But if I run php -i hostname is set! Any ideas? Php version: 5.1.2 Configure './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gettext' '--with-pgsql'

[PHP] please do my homework for me[was] Re: [PHP] string to integer conversion

2006-03-15 Thread Jochem Maas
suresh kumar wrote: i am facing one problem in type casting. $accno=2927; $accno=$accno+1; its o/p is 2928. but i want output to be 2928.i am my h/t is g/d but if d/l is w/h then I w/s but only if it's g/v waiting response from u. from what I gather your always waiting for a

[PHP] to check idle time of users

2006-03-15 Thread suresh kumar
in windows,if user idle for 1 minute,his desktop screen is changed to screen saver.i like to implement the same logic in my project if user is idle for 3 minutes its session will have to automatically destroy.i am waiting for or response.

RE: [PHP] to check idle time of users

2006-03-15 Thread Jay Blanchard
[snip] in windows,if user idle for 1 minute,his desktop screen is changed to screen saver.i like to implement the same logic in my project if user is idle for 3 minutes its session will have to automatically destroy.i am waiting for or response. [/snip] Wow dude, you really have never RTFM and

Re: [PHP] PHP/Oracle : bug with accent...

2006-03-15 Thread Burhan
David BERCOT wrote: Hi, I have a big problem with my Debian server (Apache 2, PHP 5, Oracle Instant Client). I've modified the environment variable NLS_LANG and, with SQL*Plus, everything is ok ! But, in a PHP page, I can't insert a value with accent (ex: Irène). I can read data with accent,

Re: [PHP] Creating a unique index ID

2006-03-15 Thread Burhan
tedd wrote: Hey all, I've got a project where I'm taking form information from the user and writing records to several tables in a MySQL database. The problem I'm having is I need to write a unique number for the ID column of the records. Auto increment won't work because I could have

Re: [PHP] Re: Printing library in PHP ?

2006-03-15 Thread Burhan
robert mena wrote: Hi Manuel, I am trying to print from the client side. The client will be windows. Use ActiveX if you can get them to stick with IE (shouldn't be a problem). Google for 'ScriptX.cab' -- a free printing control that lets to fine tune printing. -- PHP General Mailing List

Re: [PHP] setcookie security concerns

2006-03-15 Thread David Tulloh
If this is the value directly from the cookie, it's an example of a cross-site scripting (XSS) vulnerability. header(Location: $HTTP_REFERER); This is an HTTP response splitting vulnerability, because the Referer header (like the Cookie header) is provided by the client. Future versions

[PHP] Re: to check idle time of users

2006-03-15 Thread Barry
suresh kumar wrote: in windows,if user idle for 1 minute,his desktop screen is changed to screen saver.i like to implement the same logic in my project if user is idle for 3 minutes its session will have to automatically destroy.i am waiting for or response.

Re: [PHP] to check idle time of users

2006-03-15 Thread Miles Thompson
At 09:32 AM 3/15/2006, suresh kumar wrote: in windows,if user idle for 1 minute,his desktop screen is changed to screen saver.i like to implement the same logic in my project if user is idle for 3 minutes its session will have to automatically destroy.i am waiting for or response.

Re: [PHP] Hostname Filtering

2006-03-15 Thread Dan
The hostname lookup does not impact performance at all. I am only doing a look-up on the remote ip of the user not on my full blacklist. I am using this on a site to log hits to a banner ad and on listings on a ebay style marketplace. I log the IP and the hostname on a look- up. Dan T

[PHP] Last array element not found

2006-03-15 Thread Roman Rumisek
Hi, this code fragment give following result in my error log: foreach($reg_array as $region_item) $tmp_reg_array[] = $region_item[0]; $sel_region = explode(',', $_POST[CLIENT_REGION]); foreach($sel_region as $sel_region_item) if(!in_array($sel_region_item, $tmp_reg_array)) {

Re: [PHP] setcookie security concerns

2006-03-15 Thread tedd
An interesting question in this case is how to do an injection using cookies, injection attacks are generally performed using post get data as they can be inserted to a link on another page. Getting a working exploit would probably come down to how the browser implemented the cookie security;

RE: [PHP] to check idle time of users

2006-03-15 Thread Peter Lauri
Miles, Please do not scare away people from the list. There can be many reasons why he asks this question without looking at the documentation first. 1: He/She is maybe new to this subject, and do not have a lot of experience with reading docs. 2: He/She maybe don't have English as mother

Re: [PHP] Re: umlaut problem in firefox

2006-03-15 Thread tedd
My problem still remains open Help!!! I noticed that if the umlauts are received correctly but they are not submitted in the right way. For a ö I receive a POST as: ö From the DB I get the text correctly. meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 The DB

[PHP] [NEWBIE GUIDE] For the benefit of new users

2006-03-15 Thread Jay Blanchard
= Please feel free to add more points and updates. 20050322jb - Note the new location of PHP Editors list. = Topics: === - Where to Find More Information - Diagnosing the problem.

[PHP] REG-EXPR: Allowing limited number of special chars in usernames

2006-03-15 Thread Holger Sunke
Hello, I dont know that much aboput regular expressions and just want to know how to find out the number of special (non alphanumeric) characters in a string or how to match a string that contains less than 3 special chars. urrently im using a function function valid_username($string) {

[PHP] Re: REG-EXPR: Allowing limited number of special chars in usernames

2006-03-15 Thread Barry
Holger Sunke wrote: Hello, I dont know that much aboput regular expressions and just want to know how to find out the number of special (non alphanumeric) characters in a string or how to match a string that contains less than 3 special chars. urrently im using a function function

Re: [PHP] [NEWBIE GUIDE] For the benefit of new users

2006-03-15 Thread John Nichel
Jay Blanchard wrote: snip And of course everyone that ever posted to php-general. /snip Even the people who top post? *ducks* -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] [NEWBIE GUIDE] For the benefit of new users

2006-03-15 Thread Jay Blanchard
[snip] Even the people who top post? *ducks* [/snip] ...you cannot be hit by someone who top posts. If you duck... You know what struck me as funny about this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Last array element not found

2006-03-15 Thread Roman Rumisek
Sorry, this is my bug. Roman Rumisek wrote: Hi, this code fragment give following result in my error log: foreach($reg_array as $region_item) $tmp_reg_array[] = $region_item[0]; $sel_region = explode(',', $_POST[CLIENT_REGION]); foreach($sel_region as $sel_region_item)

Re: [PHP] Last array element not found

2006-03-15 Thread Robin Vickery
On 15/03/06, Roman Rumisek [EMAIL PROTECTED] wrote: Hi, this code fragment give following result in my error log: foreach($reg_array as $region_item) $tmp_reg_array[] = $region_item[0]; $sel_region = explode(',', $_POST[CLIENT_REGION]); foreach($sel_region as $sel_region_item)

[PHP] how do i select this list

2006-03-15 Thread Mark
The query below gives me a list of usernames with the highest point score at the top. There is also a secondary points list which i need to use to rank players if there POINTS are the same. ie: username points margin paul2624 mark 23

[PHP] Re: how do i select this list

2006-03-15 Thread João Cândido de Souza Neto
$query = mysql_query(SELECT * FROM leaderboard WHERE comp_id = $comp_id ORDER by points DESC, margin ASC ); Mark wrote: The query below gives me a list of usernames with the highest point score at the top. There is also a secondary points list which i need to use to rank players if there

[PHP] Updating form

2006-03-15 Thread Sugrue, Sean
Does anyone know how to update an option list queried from a database table after an insert/delete action on that table? Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Updating form

2006-03-15 Thread Jay Blanchard
[snip] Does anyone know how to update an option list queried from a database table after an insert/delete action on that table? [/snip] We all do. :) Refresh the page. Although I suspect that you want the select list to update without refreshing the page. If that is the case you should explore

[PHP] imap_mail_compose not working

2006-03-15 Thread Karel Kozlik
Hi All, function imap_mail_compose() not working on my server. This script: ? $envelope[From]=[EMAIL PROTECTED]; $envelope[To]=[EMAIL PROTECTED]; $part1[type]=TYPEMULTIPART; $part1[subtype]=mixed; $part2[type]=TYPETEXT; $part2[subtype]=plain;

[PHP] Re: how do i select this list

2006-03-15 Thread Mark
THANKS THAT WORKED GREAT João Cândido de Souza Neto [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $query = mysql_query(SELECT * FROM leaderboard WHERE comp_id = $comp_id ORDER by points DESC, margin ASC ); Mark wrote: The query below gives me a list of usernames with the

[PHP] date from YYYY-MM-DD to current date

2006-03-15 Thread Dan McCullough
I need to loop from a date in the past to current date getting all dates in between. Anyone have an idea on how to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] date from YYYY-MM-DD to current date

2006-03-15 Thread Shaunak Kashyap
// $pastDateStr = string representation of past date $pastDateTS = strtotime($pastDateStr); For ($currentDateTS = $pastDateTS; $currentDateTS = strtotime(now); $currentDateTS += (60 * 60 * 24)) { // use date() and $currentDateTS to format the dates in between } HTH,

[PHP] RE: [SOLVED] [PHP] date from YYYY-MM-DD to current date

2006-03-15 Thread Shaunak Kashyap
In the future, please reply to the list. Also, I assume this question has been answered and am, therefore, marking it with [SOLVED]. Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 323.330.9870 Main: 323.330.9900

[PHP] Re: [SOLVED] [PHP] date from YYYY-MM-DD to current date

2006-03-15 Thread Dan McCullough
Sorry Gmail doesnt always put all the email address on the TO line in a reply. On 3/15/06, Shaunak Kashyap [EMAIL PROTECTED] wrote: In the future, please reply to the list. Also, I assume this question has been answered and am, therefore, marking it with [SOLVED]. Shaunak Kashyap Senior Web

[PHP] GD2 gif resizing problem

2006-03-15 Thread Al
I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as large.

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Philip Hallstrom
I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as large.

Re: [PHP] Execute a shell command using thttpd-php

2006-03-15 Thread James E Hicks III
Nelson Carreira wrote: James E Hicks III wrote: Nelson Carreira wrote: Yes, I've tried using both absolute and relative paths. The system output is 0 when I execute, for example, nvram show from the php. From what I know this output means success. Although there's no output on php.

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double,

[PHP] regular expressions and Phone validation

2006-03-15 Thread Paul Goepfert
Hi all, I have one small problem I don't understand the preg_replace() method. I understand the gist of what it does but I still don't fully know what it does. I have read the entry in the php manual about this and I am still confused about it. I've never been any good with regular expressions.

Re: [PHP] PHP/Oracle : bug with accent...

2006-03-15 Thread David BERCOT
I have a big problem with my Debian server (Apache 2, PHP 5, Oracle Instant Client). I've modified the environment variable NLS_LANG and, with SQL*Plus, everything is ok ! But, in a PHP page, I can't insert a value with accent (ex: Irène). I can read data with accent, but not inserting

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread John Nichel
Al wrote: Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to

RE: [PHP] regular expressions and Phone validation

2006-03-15 Thread Jay Blanchard
[snip] I have one small problem I don't understand the preg_replace() method. I understand the gist of what it does but I still don't fully know what it does. I have read the entry in the php manual about this and I am still confused about it. I've never been any good with regular expressions.

[PHP] Class Variable Scope Question

2006-03-15 Thread Mike Dunlop
Hi Guys, I am wondering how to be able to call a class variable from within an outside function using the :: syntax: See an example of the logic I am using below: class myClass { var $variable = 1; function showVar() { return

RE: [PHP] Class Variable Scope Question

2006-03-15 Thread Jay Blanchard
[snip] I am wondering how to be able to call a class variable from within an outside function using the :: syntax: See an example of the logic I am using below: class myClass { var $variable = 1; function showVar() { return $this-variable;

[PHP] Re: Creating forms dynamically

2006-03-15 Thread Manuel Lemos
Hello, on 03/14/2006 05:21 PM Paul Goepfert said the following: I have been working on a page where I have a form. I currently have the form in an else block with no access to it if I need to redisplay the form incase of errors. To be more specific I want to redisplay the page with the

Re: [PHP] to check idle time of users

2006-03-15 Thread Jochem Maas
Peter Lauri wrote: Miles, Please do not scare away people from the list. There can be many reasons why he asks this question without looking at the documentation first. I don't think the idea was to scare him away so much as scare him _to_ the docs... everyone who has been there knows

Re: [PHP] Class Variable Scope Question

2006-03-15 Thread Jochem Maas
Mike Dunlop wrote: Hi Guys, I am wondering how to be able to call a class variable from within an outside function using the :: syntax: See an example of the logic I am using below: class myClass { var $variable = 1; // this works in php4. ?php class myClass { function

Re: [PHP] Class Variable Scope Question

2006-03-15 Thread Mike Dunlop
the fact that you think that it might even be possible that doing myClass::showVar() would cause $this in showVar() to refer to $obj suggests that you don't understand [to some degree] either classes, objects and/or scope (or at least how its implemented/applied in php). No Jochem, I may have

Re: [PHP] Class Variable Scope Question

2006-03-15 Thread Mike Dunlop
Nevermind - i found the documentation that answers my question - thanks for the help Jeremy and Jochas. - MD ... Mike Dunlop Director of Technology Development [ e ] [EMAIL PROTECTED] [ p ] 323.644.7808 On Mar 15, 2006, at

Re: [PHP] Creating forms dynamically

2006-03-15 Thread Mark Kelly
On Tuesday 14 March 2006 20:21, Paul Goepfert wrote: If anyone has any ideas on how to create the form when the error messages are displayed without having to code it a second time please let me know. I use an assoc. array that matches the form inputs, for example: $FormDisplayData = array(

Re: RE: [PHP] checking multiple URL parameters

2006-03-15 Thread asevan
Hi, How can I get multiple values from a variable (from URL) and parse them into an array? For example: example.php?graphArray=20,35,84,21,23,22,24,95 parse_str is for multiple variables, not multiple values of one variable. PLEASE HELP!!! Thank you Aret -- This message was sent on

Re: [PHP] checking multiple URL parameters

2006-03-15 Thread Chris
[EMAIL PROTECTED] wrote: Hi, How can I get multiple values from a variable (from URL) and parse them into an array? For example: example.php?graphArray=20,35,84,21,23,22,24,95 parse_str is for multiple variables, not multiple values of one variable. $x_array = explode(',',

[PHP] Can I specify alternative php.ini in httpd.conf

2006-03-15 Thread Khai
Hi All, I am using php as an apache module. In my httpd.conf, is there a way to specify which php.ini to use? Thanks Khai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] CLI versus apache module

2006-03-15 Thread Khai
I have a.php includes b.php . b.php is used by other pages that are served through apache. a.php used to be started through apache, but now need to be started from command line. How do I know if a php file is running as apache module or as CLI ? Thanks Khai -- PHP General Mailing List

Re: [PHP] CLI versus apache module

2006-03-15 Thread Philip Hallstrom
I have a.php includes b.php . b.php is used by other pages that are served through apache. a.php used to be started through apache, but now need to be started from command line. How do I know if a php file is running as apache module or as CLI ?

[PHP] Message board integration with existing site

2006-03-15 Thread 2wsxdr5
I have a site with existing users and would like to add a message board such as phpbb or one of the others. The main requirement I have is I need to be able to use the existing user logins to access the forums. I also need a help desk ticket system that is also linked to the same users. I

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
John Nichel wrote: Al wrote: Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect

Re: [PHP] Message board integration with existing site

2006-03-15 Thread Chris
2wsxdr5 wrote: I have a site with existing users and would like to add a message board such as phpbb or one of the others. The main requirement I have is I need to be able to use the existing user logins to access the forums. I also need a help desk ticket system that is also linked to the

Re: [PHP] imap_mail_compose not working

2006-03-15 Thread Chris
Karel Kozlik wrote: Hi All, function imap_mail_compose() not working on my server. This script: ? $envelope[From]=[EMAIL PROTECTED]; $envelope[To]=[EMAIL PROTECTED]; $part1[type]=TYPEMULTIPART; $part1[subtype]=mixed; $part2[type]=TYPETEXT; $part2[subtype]=plain;

[PHP] php 5 installation problem

2006-03-15 Thread tedd
Hi gang: I asked my host to install the current versions of php 5 and the following was his answer: Sorry but php has some issues with cpanel. Anyone heard of any problems or a work-around? Thanks. tedd --

[PHP] HIgh score not up to scratch

2006-03-15 Thread Mark
Any help Here: At the moment this shows a USERNAME-COMPETITION and POINTS for a user with the highest points out of many competitions. The USERS also have a second points field (acc_margin) where lower score is better. So my problem is that i need to show the highest scoring user (by points)

Re: [PHP] HIgh score not up to scratch

2006-03-15 Thread Chris
Mark wrote: Any help Here: At the moment this shows a USERNAME-COMPETITION and POINTS for a user with the highest points out of many competitions. The USERS also have a second points field (acc_margin) where lower score is better. So my problem is that i need to show the highest scoring

[PHP] dumping array to file

2006-03-15 Thread blackwater dev
I am doing a select from a mssql db and will then pump it into a mysql db. What is the easiest way to take the result array from the mssql db and dump it to a file that I can just pull into MySQL short of writing out to the file row by row. Thanks.

[PHP] heredoc syntax vs Double-Quotes

2006-03-15 Thread Chris Kennon
Hi, Not looking to start some pugilistic fray, but when is using heredoc advisable over Double-Quotes? Return True, Christopher Kennon Principal/Designer/Programmer -Bushidodeep http://bushidodeep.com/ __ Knowing is not enough, you must apply; willing

Re: [PHP] dumping array to file

2006-03-15 Thread Chris
blackwater dev wrote: I am doing a select from a mssql db and will then pump it into a mysql db. What is the easiest way to take the result array from the mssql db and dump it to a file that I can just pull into MySQL short of writing out to the file row by row. Didn't you ask this yesterday ?

Re: [PHP] heredoc syntax vs Double-Quotes

2006-03-15 Thread Chris
Chris Kennon wrote: Hi, Not looking to start some pugilistic fray, but when is using heredoc advisable over Double-Quotes? Probably with really long strings or pages of data so you don't have to worry about quotes etc. Pretty much comes down to personal preference I think. -- Postgresql

Re: [PHP] heredoc syntax vs Double-Quotes

2006-03-15 Thread Paul Novitski
At 07:06 PM 3/15/2006, Chris Kennon wrote: when is using heredoc advisable over Double-Quotes? I love using heredoc primarily because it helps me separate logic from markup when generating HTML. The text in a heredoc expression is vanilla, no escape sequences needed, so there's less worry

[PHP] Need shopping cart for online updating

2006-03-15 Thread Lisa A
I currently use Pay Pal shopping cart, but I need to find a good, cheap shopping cart that my clients can update themselves. Does anyone know of something I can install so they can work on it easily. They need to do this online. thanks, Lisa A -- PHP General Mailing List

Re: [PHP] Is this password protection script secure?

2006-03-15 Thread Rafael
Oscar Gosdinski wrote: Instead of using a hash if the password string, i prefer to save the following in the password field of my user's table: md5($user . $password) This is a good idea, IMHO of course. There are some md5 databases around that can be used to get the cleartext

[PHP] Re: setcookie security concerns

2006-03-15 Thread Rafael
As far as I see... I can't see any risk. Cookies are saved in the client machine (i.e. the one visiting your site), so any code he might send will be used with him only, and it will not affect other users nor the scripts in the (remote) server. Now, you're not using the input value in

[PHP] Re: REG-EXPR: Allowing limited number of special chars in usernames

2006-03-15 Thread Rafael
Holger Sunke wrote: I dont know that much aboput regular expressions and just want to know how to find out the number of special (non alphanumeric) characters in a string or how to match a string that contains less than 3 special chars. I don't really understand what you need, but... -

[PHP] Problems with SSI, Apache PHP!

2006-03-15 Thread Alberto Ferrer
i get segmentation fault with apache 1.3.34 , like this bug: http://bugs.php.net/bug.php?id=35029 , only change the apache version. The error is: [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice] child pid 2120 exit signal

[PHP] Re: regular expressions and Phone validation

2006-03-15 Thread Rafael
Paul Goepfert wrote: I have one small problem I don't understand the preg_replace() method. I understand the gist of what it does but I still don't fully know what it does. I have read the entry in the php manual about this and I am still confused about it. I've never been any good with

Re: [PHP] Problems with SSI, Apache PHP!

2006-03-15 Thread Chris
Alberto Ferrer wrote: i get segmentation fault with apache 1.3.34 , like this bug: http://bugs.php.net/bug.php?id=35029 , only change the apache version. The error is: [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal Segmentation fault (11) [Thu Mar 16 03:33:08 2006] [notice]

[PHP] Re: Need shopping cart for online updating

2006-03-15 Thread Nadim Attari
Lisa A wrote: I currently use Pay Pal shopping cart, but I need to find a good, cheap shopping cart that my clients can update themselves. Does anyone know of something I can install so they can work on it easily. They need to do this online. thanks, Lisa A Hello, I don't know what