php-general Digest 29 Mar 2006 14:35:48 -0000 Issue 4041

2006-03-29 Thread php-general-digest-help
php-general Digest 29 Mar 2006 14:35:48 - Issue 4041 Topics (messages 232794 through 232821): Re: Not sure if this is a php problem or a mysql problem 232794 by: Chris Re: Script to sanitize variables 232795 by: Chris Re: private $foo 232796 by: Jasper

Re: [PHP] Div-element at same vert. position?

2006-03-29 Thread Jochem Maas
can someone nuke this guys addr form the list? pretty please? [EMAIL PROTECTED] wrote: Please use [EMAIL PROTECTED] instead of [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] require_once hell

2006-03-29 Thread Adrian Bruce
Hi this may be a stupid moment but i cant find an help on google so.i am including two classes in my code using the require_once(path to file) method. this works fine for the first class but when including the second it simply outputs the contents on to the page. I feel I must be

Re: [PHP] require_once hell

2006-03-29 Thread Thomas Munz
Forgot the ?php tag in the second class? on Wednesday 29 March 2006 12:48, Adrian Bruce wrote: Hi this may be a stupid moment but i cant find an help on google so.i am including two classes in my code using the require_once(path to file) method. this works fine for the first class but

Re: [PHP] Problem with IE and not displaying the correct images...

2006-03-29 Thread Jochem Maas
Gregory Machin wrote: Hi I have a site that changes the backround pic after login both have different names.. it work perfect in firefox and epiphany , but not IE , it loads the login page with the backround that's only suposed to be displayed after login .. If I download the 2 picks manual

Re: [PHP] require_once hell

2006-03-29 Thread gustav
Hi this may be a stupid moment but i cant find an help on google so.i am including two classes in my code using the require_once(path to file) method. this works fine for the first class but when including the second it simply outputs the contents on to the page. I feel I must be

Re: [PHP] private $foo

2006-03-29 Thread Jochem Maas
Anthony, Tedd, you now grok the property overloading functionality of php5? also the bug mentioned by M.Sokolewicz should be fixed in the latest versions (can't remember exactly which one) -- Foo, Bar Qux are used all over the place in IT in the same way 'Person A' and 'Person B'

[Fwd: Re: Re: [PHP] Problem with IE and not displaying the correct images...]

2006-03-29 Thread Jochem Maas
if anyone feels like DDoS'ing ksa.zajil.com ... be my guest :-/ Original Message Return-Path: [EMAIL PROTECTED] Received: from localhost (localhost [127.0.0.1])by mx1.moulin.nl (Postfix) with ESMTP id 392B7172C08for Received: from mx1.moulin.nl ([127.0.0.1]) by

Re: [PHP] page expire error

2006-03-29 Thread Jochem Maas
you forgot to ask a question? (again) suresh kumar wrote: Hai, i am facing one problem in my project.I am using 2 pages for search operation. In Search page 1: i am having 3 fields say Company name,state,country. when user enters search key in their corresponding

Re: [Fwd: Re: Re: [PHP] Problem with IE and not displaying the correct images...]

2006-03-29 Thread gustav
if anyone feels like DDoS'ing ksa.zajil.com ... be my guest :-/ *LOL* Original Message Return-Path: [EMAIL PROTECTED] Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id 392B7172C08 for Received: from mx1.moulin.nl

Re: [PHP] Problem with IE and not displaying the correct images...

2006-03-29 Thread Gregory Machin
Problem found ... IE doesn't understand comments '//' in style sheets .. so the line I had commented out refering to the background image in the style sheet was over riding my code later in the page.. On 3/29/06, Jochem Maas [EMAIL PROTECTED] wrote: Gregory Machin wrote: Hi I have a site

Re: [PHP] Problem with IE and not displaying the correct images...

2006-03-29 Thread Barry
Gregory Machin wrote: Problem found ... IE doesn't understand comments '//' in style sheets .. so the line I had commented out refering to the background image in the style sheet was over riding my code later in the page.. Not quite right. Only // doesn't work But /* COMMENT */ does greets

[PHP] Date addition problem

2006-03-29 Thread Adrian Bruce
Hi I am having an unusual problem when trying to calculate dates in advance from a start date. the code below shows a loop where by on each run an increasing number of weeks is added to the start date, this works as expected up untill the 8th time where for some reason it produces 01-11-05

Re: [PHP] Date addition problem

2006-03-29 Thread Thomas Munz
Cause 9th month have 30 days but 10th month have 31 days. You don't check the amount of day there... :) on Wednesday 29 March 2006 14:51, Adrian Bruce wrote: Hi I am having an unusual problem when trying to calculate dates in advance from a start date. the code below shows a loop where by

Re: [PHP] Date addition problem

2006-03-29 Thread Adrian Bruce
That should not effect it, if i am adding $i * 7 days each time then i should get the date that comes 7 days later irrespective of how many days are in the month, shouldn't I ? 8 * 7 = 56, 56 days after the 07-09-05 is 02-11-2005. Thomas Munz wrote: Cause 9th month have 30 days but 10th

[PHP] Word to txt

2006-03-29 Thread Ministério Público
I'd like to know if any of you know if I can and if I can how do I do to transform a Word documento to txt with php. What I'd like to do is offer the user in my site to upload a word file and the script transforms the word to txt and saves to server, my site already can receive txt. Thanx to you

Re: [PHP] Date addition problem

2006-03-29 Thread Adrian Bruce
I have come up with an alternative myself but still cant explain why the first method did not work, still be interested to know why if anyone can offer some thoughts. Using strtotime for the calc seems to produce correct results my soluiton: [snip] ?php echoh1 date test 2/h1; $start =

Re: [PHP] php error reporting problem

2006-03-29 Thread ngwarai zed
I checked the apache error log and the error is written there just as I expected like below. [client 127.0.0.1] PHP Parse error: parse error, unexpected T_STRING, expecting ',' or ';' on line 90, referer: http://localhost/form.html The problem is I know what the error is. What I want is for

RE: [PHP] Date addition problem

2006-03-29 Thread Ford, Mike
-Original Message- From: Adrian Bruce [mailto:[EMAIL PROTECTED] Sent: 29 March 2006 13:52 I am having an unusual problem when trying to calculate dates in advance from a start date. the code below shows a loop where by on each run an increasing number of weeks is added to

Re: [PHP] private $foo

2006-03-29 Thread tedd
Jochem: Foo, Bar Qux are used all over the place in IT in the same way 'Person A' and 'Person B' might be used when talking about marketing demographics theory. they are shortcuts to avoid having to think up realworld examples, why would we want to do that? 1. real world examples are full of

Re: [Fwd: Re: Re: [PHP] Problem with IE and not displaying the correctimages...]

2006-03-29 Thread Jochem Maas
John Ellingsworth wrote: I must be missing something - why? j/w . . .x you should have recieved a nice email from Nayeem by now. as to the real reason why your missing something ... I don't know. maybe someone cut the something off? ;-) Jochem Maas wrote: if anyone feels like DDoS'ing

RE: [PHP] php error reporting problem

2006-03-29 Thread Ford, Mike
-Original Message- From: ngwarai zed [mailto:[EMAIL PROTECTED] Sent: 29 March 2006 14:39 To: Christopher Murtagh The problem is I know what the error is. What I want is for the error to be shown when I run the script not to be just written to the error log. I tried changing

Re: [PHP] private $foo

2006-03-29 Thread Philip Thompson
On Mar 28, 2006, at 4:29 PM, Jay Blanchard wrote: [snip] That's interesting -- not meaning any disrespect, and this is just an opinion -- but in the newly published PHP Phrasebook by Christian Wenz (an excellent book btw), he says: Another phrase I promise you will not find in this book is

Re: [PHP] private $foo

2006-03-29 Thread tedd
I have been programming since the mid 70's and foo was in the lexcon at that point. I guess I am old school. People have been programming since the 70's?!!?!! I didn't think it was possible until the early 90's! Wow I must be young! ;) ~Philip ~Philip: Read up on the history of computers

Fwd: [PHP] private $foo

2006-03-29 Thread Gerry Danen
On 3/29/06, Philip Thompson [EMAIL PROTECTED] wrote: People have been programming since the 70's?!!?!! I didn't think it was possible until the early 90's! Wow I must be young! ;) What do you mean '70's? LOL How about Grace Murray Hopper? http://www.jamesshuggins.com/h/tek1/grace_hopper.htm

Re: [PHP] private $foo

2006-03-29 Thread Philip Thompson
On Mar 29, 2006, at 8:25 AM, tedd wrote: I have been programming since the mid 70's and foo was in the lexcon at that point. I guess I am old school. People have been programming since the 70's?!!?!! I didn't think it was possible until the early 90's! Wow I must be young! ;) ~Philip

Re: [PHP] private $foo

2006-03-29 Thread Duncan Hill
On Wednesday 29 March 2006 15:43, Philip Thompson wrote: Of course, I remember programming with rocks and that was before we   had zero's. We only had one's and that was a programming nightmare.   You new guys at least have 1's and 0's to work with. tedd I laughed my head off about your

RE: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread Jay Blanchard
[snip] Read up on the history of computers -- the first programmer, as I recall, was one Lady Lovelace who programmed Babbage's first mechanical computer (if you don't count the abacus) in the early 1800's. Of course, I remember programming with rocks and that was before we had zero's. We

RE: [PHP] private $foo

2006-03-29 Thread Dan Parry
I can see a pattern emerging here... Chaos? You had chaos? All we had was this sodding great explosion... :-) Dan - Dan Parry Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Duncan Hill

[PHP] Download problems

2006-03-29 Thread bsnottum
-- Opprinnelig melding --- Emne: Download problems Fra: [EMAIL PROTECTED] Dato: ons 29. mars 2006 9:53 Til: php-general-digest@lists.php.net -- Hallo! I am running

Re: [PHP] php error reporting problem

2006-03-29 Thread ngwarai zed
Thanks Christopher for your help. I followed you numbered advicestep by step. 1) I verified that there weren't any typo's that were causing fatal problems in my php.ini 2) looked at the output of phpinfo() and verified the location of the php.ini script. /etc/php.ini .This is the file I am

[PHP] Re: Word to txt

2006-03-29 Thread Rafael
Pray to St. Google with something like doc2txt Ministério Público wrote: I'd like to know if any of you know if I can and if I can how do I do to transform a Word documento to txt with php. What I'd like to do is offer the user in my site to upload a word file and the script transforms

RE: [PHP] page expire error

2006-03-29 Thread Remon
Hi, You could do it with post, if you set the right headers in your script. http://nl2.php.net/manual/en/function.header.php Text from php.net PHP scripts often generate dynamic content that must not be cached by the client browser or any proxy caches between the server and the client browser.

Re: [PHP] Not sure if this is a php problem or a mysql problem

2006-03-29 Thread Angelo Zanetti
Chris wrote: Paul Goepfert wrote: Hi all, I have developed a php functilon that is to return the date +1 from a Mysql database. My sql statement is as follows SELECT dayNum FROM Days Where dayNum = day(curdate())+1; The function works great on the intended webserver but when placed on a

Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread Anthony Ettinger
On 3/29/06, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Read up on the history of computers -- the first programmer, as I recall, was one Lady Lovelace who programmed Babbage's first mechanical computer (if you don't count the abacus) in the early 1800's. Of course, I remember

[PHP] Array Question

2006-03-29 Thread cybermalandro cybermalandro
So, I have an array that looks like this rray(3) { [0]= array(8) { [line]= string(1) 1 [ponbr]= string(5) 34474 [emt]= string(3) yes [qty]= string(1) 5 [price]= string(2) 19 [shipdate]= string(8) 11/06/07 [tracking]= string(17)

[PHP] Re: Array Question

2006-03-29 Thread M. Sokolewicz
cybermalandro cybermalandro wrote: So, I have an array that looks like this rray(3) { [0]= array(8) { [line]= string(1) 1 [ponbr]= string(5) 34474 [emt]= string(3) yes [qty]= string(1) 5 [price]= string(2) 19 [shipdate]= string(8) 11/06/07

[PHP] validating ereg patterns

2006-03-29 Thread Jared Nedzel
How do I detect the difference between a bad ereg pattern and no matches? I've got a UI that allows the user to enter an ereg expression. Clearly, the user may enter an invalid expression (for example, the expression may not have matching [] brackets). ereg returns false if there are no

[PHP] Re: Array Question

2006-03-29 Thread cybermalandro cybermalandro
Well I don't want have to specify $val['ponbr'] == 'TEST1' I want to say if ($val['ponbr'] == repeated value) then $resultArray[$key] = $val; In other words I want to go through the array matched the values of ponbr that repeat or are the same so if they match then I put the results in another

Re: [PHP] validating ereg patterns

2006-03-29 Thread Philip Hallstrom
How do I detect the difference between a bad ereg pattern and no matches? I've got a UI that allows the user to enter an ereg expression. Clearly, the user may enter an invalid expression (for example, the expression may not have matching [] brackets). ereg returns false if there are no

Re: [PHP] Date addition problem

2006-03-29 Thread tedd
Hi: The problem is that you have transposed your date elements. See this: http://xn--ovg.com/a3.php Try this code: ?php echoh1 date test (d/m/y)/h1; $start = 05-09-07; $start = explode('-',$start); $startmk = mktime(0,0,0,$start[1],$start[0],$start[2]); $startdate = date('d-m-y',$startmk);

Re: [PHP] private $foo

2006-03-29 Thread tedd
At 8:43 AM -0600 3/29/06, Philip Thompson wrote: On Mar 29, 2006, at 8:25 AM, tedd wrote: I have been programming since the mid 70's and foo was in the lexcon at that point. I guess I am old school. People have been programming since the 70's?!!?!! I didn't think it was possible until the

RE: [PHP] private $foo [GONE WILD]

2006-03-29 Thread Jay Blanchard
[snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said Life is far too important to be taken seriously. [/snip] He also said that life was to short to dance with ugly women,

RE: [PHP] private $foo

2006-03-29 Thread tedd
At 3:56 PM +0100 3/29/06, Dan Parry wrote: I can see a pattern emerging here... Chaos? You had chaos? All we had was this sodding great explosion... :-) Dan Great explosion!? You had a Great explosion!? All we had was xml and everyone knows you can't do anything with that. :-) tedd --

Re: [PHP] private $foo [GONE WILD]

2006-03-29 Thread Philip Thompson
On Mar 29, 2006, at 10:39 AM, Jay Blanchard wrote: [snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said Life is far too important to be taken seriously. [/snip] He also

RE: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread tedd
At 8:50 AM -0600 3/29/06, Jay Blanchard wrote: [snip] Read up on the history of computers -- the first programmer, as I recall, was one Lady Lovelace who programmed Babbage's first mechanical computer (if you don't count the abacus) in the early 1800's. Of course, I remember programming with

Re: [PHP] private $foo [GONE WILD]

2006-03-29 Thread John Nichel
Jay Blanchard wrote: [snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said Life is far too important to be taken seriously. [/snip] He also said that life was to short to

[PHP] White label with PHP?

2006-03-29 Thread Merlin
Hello there, I am searching for ways to create a white label solution out of my php webapp. Now I am pretty new to that topic. Is there an easy solution within php? My first try would be to create XML output via PHP and then on the other server install an xml parser which creates the html

RE: [PHP] private $foo [GONE WILD]

2006-03-29 Thread tedd
At 10:39 AM -0600 3/29/06, Jay Blanchard wrote: [snip] You're welcome. As this list gets to know me, I think you'll find I have a slightly different, and often humorous, perspective on everything. As Oscar Wilde once said Life is far too important to be taken seriously. [/snip] He also said

Re: [PHP] private $foo

2006-03-29 Thread Austin Denyer
tedd wrote: At 3:56 PM +0100 3/29/06, Dan Parry wrote: I can see a pattern emerging here... Chaos? You had chaos? All we had was this sodding great explosion... :-) Dan Great explosion!? You had a Great explosion!? All we had was xml and everyone knows you can't do anything with

Re: [PHP] Problem with IE and not displaying the correct images...

2006-03-29 Thread tedd
At 12:58 PM +0200 3/29/06, Jochem Maas wrote: Gregory Machin wrote: Hi I have a site that changes the backround pic after login both have different names.. it work perfect in firefox and epiphany , but not IE , it loads the login page with the backround that's only suposed to be displayed

Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread John Nichel
tedd wrote: At 8:50 AM -0600 3/29/06, Jay Blanchard wrote: [snip] Read up on the history of computers -- the first programmer, as I recall, was one Lady Lovelace who programmed Babbage's first mechanical computer (if you don't count the abacus) in the early 1800's. Of course, I remember

Re: [PHP] White label with PHP?

2006-03-29 Thread Richard Lynch
On Wed, March 29, 2006 10:52 am, Merlin wrote: I am searching for ways to create a white label solution out of my php webapp. Now I am pretty new to that topic. Is there an easy solution within php? My first try would be to create XML output via PHP and then on the other server install an

[PHP] Can't get XSLT on PHP

2006-03-29 Thread MARG
Hi, I'm trying to get XSLT support on PHP, but i'm not able :( I've compiled Sablotron 1.0.2 successfully and compiled PHP 5.1.2 with --enable-xslt \ --with-xslt-sablot I get no errors and PHP works fine, but i get no XSLT support (confirmed via phpinfo()). Any ideas ? Any help would be

RE: [PHP] White label with PHP?

2006-03-29 Thread Jay Blanchard
[snip] I am searching for ways to create a white label solution out of my php webapp. Now I am pretty new to that topic. Is there an easy solution within php? My first try would be to create XML output via PHP and then on the other server install an xml parser which creates the html code. I

[PHP] ojbect substitute for array map?

2006-03-29 Thread Mark Steudel
Is there a substitute function for arraymap that one can use on ojbects? Mark

Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread tedd
Hard drives. You wusses. Between punch cards, data cassettes, 5-1/4 and 8 floppies, it was years before I saw a hard drive. -- John C. Nichel IV I didn't say that HD's were my first storage medium. I remember typing in 200+ line Star Trek program three times trying to get my GE tape

Re: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]

2006-03-29 Thread John Nichel
tedd wrote: Hard drives. You wusses. Between punch cards, data cassettes, 5-1/4 and 8 floppies, it was years before I saw a hard drive. -- John C. Nichel IV I didn't say that HD's were my first storage medium. I remember typing in 200+ line Star Trek program three times trying to get my

Re: [PHP] White label with PHP?

2006-03-29 Thread Merlin
Richard Lynch schrieb: On Wed, March 29, 2006 10:52 am, Merlin wrote: I am searching for ways to create a white label solution out of my php webapp. Now I am pretty new to that topic. Is there an easy solution within php? My first try would be to create XML output via PHP and then on the other

[PHP] one-liner with strtolower and array_walk()?

2006-03-29 Thread Marten Lehmann
Hello, is it possible to write a one-liner like this: $uppercase = array(ONE, TWO); array_walk($uppercase, strtolower); print_r($uppercase); I don't want to do a foreach-loop on each element, putting the lowercase in a new array and returning this. Is there a nicer way? Regards Marten --

RE: [PHP] one-liner with strtolower and array_walk()?

2006-03-29 Thread Shaunak Kashyap
Yes, it is possible. You just need a slight modification to your code. Try this: [code] $uppercase = array(ONE, TWO); $uppercase = array_map(strtolower, $uppercase); print_r($uppercase); [/code] Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los

Re: [PHP] Can't get XSLT on PHP

2006-03-29 Thread Anthony Ettinger
obvious one, but did you restart apache? On 3/29/06, MARG [EMAIL PROTECTED] wrote: Hi, I'm trying to get XSLT support on PHP, but i'm not able :( I've compiled Sablotron 1.0.2 successfully and compiled PHP 5.1.2 with --enable-xslt \ --with-xslt-sablot I get no errors and PHP works fine,

RE: [PHP] Word to txt

2006-03-29 Thread Weber Sites LTD
Try this : Class to convert any document, that can be read by MS Word, to another format supported by Word. http://www.weberdev.com/get_example-3211.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. SEO Data Monitor http://seo.weberdev.com

[PHP] CURL_OPTION in foreach statement

2006-03-29 Thread Jose Lopez
It seems something is not working so well here: $extra_curl_params = array ('CURLOPT_POST'=TRUE); foreach ($extra_curl_params as $curl_opt_name=$curl_opt_value) { curl_setopt ($curl_handle, $curl_opt_name, $curl_opt_value); } I use this foreach method to set up curl options and actually

RE: [PHP] Not sure if this is a php problem or a mysql problem

2006-03-29 Thread Weber Sites LTD
If you want to do it in PHP you can always do : $Tomorrow = date( Y-m-d, strtotime (1 day ) ) ; Or more general : http://www.weberdev.com/get_example-292.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. SEO Data Monitor http://seo.weberdev.com

RE: [PHP] Date addition problem

2006-03-29 Thread Weber Sites LTD
Date of today +1 .. +x days http://www.weberdev.com/get_example-292.html Sincerely berber Visit the Weber Sites Today, To see where PHP might take you tomorrow. SEO Data Monitor http://seo.weberdev.com -Original Message- From: Adrian Bruce [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] php error reporting problem

2006-03-29 Thread Christopher Murtagh
On Wed, 2006-03-29 at 18:25 +0300, ngwarai zed wrote: But still the problem is not solved. Just to recap on the problem: I just want the deliberate php errors Imake to shown as errors on the php page when the script runs. Yes, that should be the normal behaviour. Check your error_reporting

Re: [PHP] php error reporting problem

2006-03-29 Thread Christopher Murtagh
On Wed, 2006-03-29 at 16:38 +0300, ngwarai zed wrote: I tried changing display_errors = On and error_reporting = On in php.ini , restarted httpd but when I check with phpinfo() I still see display_errors set to Off and error_reporting set to 2047. My php script still does not show any errors.

Re: [PHP] Can't get XSLT on PHP

2006-03-29 Thread MARG
Anthony Ettinger wrote: obvious one, but did you restart apache? Sure :) -- AM On 3/29/06, MARG [EMAIL PROTECTED] wrote: Hi, I'm trying to get XSLT support on PHP, but i'm not able :( I've compiled Sablotron 1.0.2 successfully and compiled PHP 5.1.2 with --enable-xslt \

Re: [PHP] ojbect substitute for array map?

2006-03-29 Thread Jochem Maas
Mark Steudel wrote: Is there a substitute function for arraymap that one can use on ojbects? no. what are you wanting to do exactly? Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IP Address Filtering

2006-03-29 Thread Rahul S. Johari
Ave, I¹ve run into a slight problem. We maintain a Guestbook for our company¹s website. Lately we have been getting a lot of ³Spam² entries into the Guestbook. I added a snippet into the PHP Script a field in the mySQL database to record the IP Address of posters. However, for the SPAM posts,

RE: [PHP] IP Address Filtering

2006-03-29 Thread Jim Moseby
I¹ve run into a slight problem. We maintain a Guestbook for our company¹s website. Lately we have been getting a lot of ³Spam² entries into the Guestbook. I added a snippet into the PHP Script a field in the mySQL database to record the IP Address of posters. However, for the SPAM

[PHP] Array Question again

2006-03-29 Thread cybermalandro cybermalandro
Let me try this again. I want to take an array that may look like this array(2) { [0]= array(8) { [line]= string(1) 1 [ponbr]= string(5) TEST1 [emt]= string(3) yes [qty]= string(1) 5 [price]= string(2) 19 [shipdate]= string(8) 12/04/06

Re: [PHP] IP Address Filtering

2006-03-29 Thread Joe Harman
if you really want to mess with them.. only show the user with the NULL IP address all the spam posts.. .make them think that they've been successful On 3/29/06, Rahul S. Johari [EMAIL PROTECTED] wrote: Ave, I¹ve run into a slight problem. We maintain a Guestbook for our company¹s website.

Re: [PHP] Word to txt

2006-03-29 Thread Chris
Weber Sites LTD wrote: Try this : Class to convert any document, that can be read by MS Word, to another format supported by Word. http://www.weberdev.com/get_example-3211.html Note that this particular example only works on windows servers since it uses the COM object. -Original

Re: [PHP] IP Address Filtering

2006-03-29 Thread Kevin Kinsey
Joe Harman wrote: if you really want to mess with them.. only show the user with the NULL IP address all the spam posts.. .make them think that they've been successful Freaking hilarious idea!! Remind me not to let my kids play with yours. :-D Of course, there's probably not any Real

Re: [PHP] IP Address Filtering

2006-03-29 Thread Joe Harman
Good thing I don't have kids! On 3/29/06, Kevin Kinsey [EMAIL PROTECTED] wrote: Joe Harman wrote: if you really want to mess with them.. only show the user with the NULL IP address all the spam posts.. .make them think that they've been successful Freaking hilarious idea!! Remind me

Re: [PHP] Object oriented design

2006-03-29 Thread Jochem Maas
please consider that my comments could start some kind of OO holywar, you have been warned ;-) Richard U wrote: from a design perspective... which class over here should have the sql to search, update, add and remove groups? source... http://www.codedemons.net/pb/?show=4920 none of them -

[PHP] addslashes()

2006-03-29 Thread Chris Boget
Can someone explain something to me: script language=php $string = Bob's carwash's door; echo 'addslashes(): ' . addslashes( $string ) . 'br'; echo 'mysql_escape_string(): ' . mysql_escape_string( $string ) . 'br'; /script Outputs: addslashes(): Bob''s carwash''s door mysql_escape_string():

Re: [PHP] addslashes()

2006-03-29 Thread Jasper Bryant-Greene
From http://php.net/addslashes : Having the PHP directive magic_quotes_sybase set to on will mean ' is instead escaped with another '. Jasper Chris Boget wrote: Can someone explain something to me: script language=php $string = Bob's carwash's door; echo 'addslashes(): ' . addslashes(

[PHP] FastCGI and --enable-force-cgi-redirect

2006-03-29 Thread Jimmy Scott
Hi all, While testing with PHP 5.0.4 (old, but should be good enough for testing purposes), I noticed that --enable-force-cgi-redirect did not do his job, and several people responded to the documentation that it is not supported anymore, however, if I look at the archives it is still very well

Re: [PHP] addslashes()

2006-03-29 Thread Chris Boget
I totally blew past that part with the sybase because we aren't using sybase. I guess I should have paid more attention. I'm curious why that directive affects general PHP code and not just the sybase functions. Oh, well. Thanks for the heads up. thnx, Chris - Original Message -

[PHP] A Problem!

2006-03-29 Thread Tom Wong \(Yakang Accessories\)
Title: cids 信纸 DearAll: - 例子A(使用HTML TAG) Form Enctype="multipart/form-data" Action="" Method="POST" Input Type="hidden"

Re: [PHP] Word to txt

2006-03-29 Thread Nobody Special
http://wvware.sourceforge.net/ You can also automate openoffice.org to do this, but that requires much work. I used the wvware on a project way back in 1999 to do convert word to html and it works fine for that. On 3/29/06, Ministério Público [EMAIL PROTECTED] wrote: I'd like to know if any of

[PHP] Re: Date addition problem

2006-03-29 Thread David Robley
Adrian Bruce wrote: Hi I am having an unusual problem when trying to calculate dates in advance from a start date. the code below shows a loop where by on each run an increasing number of weeks is added to the start date, this works as expected up untill the 8th time where for some reason

Re: [PHP] addslashes()

2006-03-29 Thread tedd
Hi: I just posted a solution I used recently. Here it is: One way to turn off magic quotes is to place a .htaccess file in your root folder. It's simply a text file that contains: php_value magic_quotes_gpc 0 php_value magic_quotes_sybase 0 php_value magic_quotes_runtime 0 It works for me.

[PHP] PHP MVC

2006-03-29 Thread SLaVKa
Hey all, I am desiging my own MVC framework, now i know you can pass views in the string like index.php?view=displayAdmin , but what if the admin model has a choice of displaying a few views as well, like editing user, or editing product etc, how do i pass subviews, in other words is there

Re: [PHP] PHP MVC

2006-03-29 Thread Paul Scott
On Thu, 2006-03-30 at 15:29 +1000, SLaVKa wrote: Hey all, I am desiging my own MVC framework, now i know you can pass views in the string like index.php?view=displayAdmin , but what if the admin model has a choice of displaying a few views as well, like editing user, or editing product etc,

Re: [PHP] PHP MVC

2006-03-29 Thread SLaVKa
Paul Scott wrote: On Thu, 2006-03-30 at 15:29 +1000, SLaVKa wrote: Hey all, I am desiging my own MVC framework, now i know you can pass views in the string like index.php?view=displayAdmin , but what if the admin model has a choice of displaying a few views as well, like editing user, or

Re: [PHP] PHP MVC

2006-03-29 Thread Paul Scott
On Thu, 2006-03-30 at 15:58 +1000, SLaVKa wrote: So you only have one level of actions/views , what happens in a situation where the page you are loading has various sections which want either displayed or hidden? We use a finely grained permissions system. ACL and groups will determine

Re: [PHP] A Problem!

2006-03-29 Thread Curt Zirzow
On Thu, Mar 30, 2006 at 08:46:46AM +0800, Tom Wong (Yakang Accessories) wrote: Dear All: Looks good so far. -

Re: [PHP] addslashes()

2006-03-29 Thread Curt Zirzow
On Wed, Mar 29, 2006 at 05:32:25PM -0600, Chris Boget wrote: I totally blew past that part with the sybase because we aren't using sybase. I guess I should have paid more attention. I'm curious why that directive affects general PHP code and not just the sybase functions. This is why

Re: [PHP] IP Address Filtering

2006-03-29 Thread Curt Zirzow
On Wed, Mar 29, 2006 at 02:52:39PM -0500, Rahul S. Johari wrote: Ave, I�ve run into a slight problem. We maintain a Guestbook for our company�s website. Lately we have been getting a lot of �Spam� entries into the Guestbook. Is this a common guestbook, like a 3rd party tool you got and

Re: [PHP] Download problems

2006-03-29 Thread Curt Zirzow
On Wed, Mar 29, 2006 at 05:16:54PM +0200, [EMAIL PROTECTED] wrote: -- Opprinnelig melding --- Emne: Download problems Fra: [EMAIL PROTECTED] Dato: ons 29. mars 2006 9:53 Til: php-general-digest@lists.php.net

[PHP] Re: Array Question again

2006-03-29 Thread Barry
cybermalandro cybermalandro wrote: Let me try this again. I want to take an array that may look like this Opening new Threads over and over don't do any good. Please stick to your opened thread about that issue please. Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me!

[PHP] Re: A Problem!

2006-03-29 Thread Barry
Tom Wong (Yakang Accessories) wrote: Dear All: - 例子A(使用HTML TAG) Form Enctype=multipart/form-data Action=_URL_

Re: [PHP] Re: A Problem!

2006-03-29 Thread Curt Zirzow
On Thu, Mar 30, 2006 at 09:20:28AM +0200, Barry wrote: Tom Wong (Yakang Accessories) wrote: Dear All: -

[PHP] parent constructor

2006-03-29 Thread SLaVKa
Hey guys just a general question... if you have a parent::__constructor() call in your constructor function, should that call ideally be placed before or after the code inside the current constructor? or it doesnt really matter -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] parent constructor

2006-03-29 Thread Jasper Bryant-Greene
SLaVKa wrote: Hey guys just a general question... if you have a parent::__constructor() call in your constructor function, should that call ideally be placed before or after the code inside the current constructor? or it doesnt really matter That depends on which code you want to run first.

Re: [PHP] parent constructor

2006-03-29 Thread Jochem Maas
Jasper Bryant-Greene wrote: SLaVKa wrote: Hey guys just a general question... if you have a parent::__constructor() call in your constructor function, should that call ideally be placed before or after the code inside the current constructor? or it doesnt really matter That depends on

  1   2   >