Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Jochem Maas
Maybe its time to kill this thread? I think Jason and Richard (others) have done a brilliant job of explaining how AND why, many thanks to them. Anyone not yet convinced should probably take a maths course ] (i.e. pay someone for the teachings ;-) rgds, Jochem Jason Barnett wrote: Bruce Douglas wro

[PHP] Working with Multi by Multi levels menu

2005-01-25 Thread Marek
Hello Creating a three dimensional menu system is pretty easy with arrays, but when you want to create a menu system that is 10 or 15 levels deep using arrays the conventional method is not so simple. I'm writing an application that shows a multi level (up to 30 levels) menu which is generated dy

[PHP] Multi by Multi level system

2005-01-25 Thread Marek
Hello Creating a three dimensional menu system is pretty easy with arrays, but when you want to create a menu system that is 10 or 15 levels deep using arrays the conventional method is not so simple. I'm writing an application that shows a multi level (up to 30 levels) menu which is generate

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
That was it Bret, thanks for pointing out my blindess... Joey -Original Message- From: Bret Hughes [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 12:34 AM To: php general list Subject: Re: [PHP] Help with file not writing On Tue, 2005-01-25 at 07:53, Joey wrote: > I'm no

Re: [PHP] Help with file not writing

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 07:53, Joey wrote: > I'm not too good with classes, in the below class I can get the hit counter > to write to the hit counter file, but I can't get it to write the log file, > I know security is done correctly on the file because it's the same as the > counter log file, but I

[PHP] Optimize code?

2005-01-25 Thread Wiberg
Hi! I wonder if I can optimize following code (or do something better) below? It works fine when about 3.000 rows exists in the textfile, but when it gets to 10.000 rows then it will get a session timeout. (or internal server error) ARTICLENR: $articleNumberManufacturer"; //echo "SALDO:

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

2005-01-25 Thread Curt Zirzow
* Thus wrote Jay Blanchard: > [snip] > JB> It used to be, but it seems that it hasn't been posted in a while. > So I > JB> retrieved it and posted it. I was thinking about setting up a cron > to > JB> post it every other day or so. > > I think once a week would be more than enough. You have to act

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Robert Cummings
On Tue, 2005-01-25 at 18:29, Bruce Douglas wrote: > so... > > you're saying that 7.9 (repeating) is equal to 8.0 I do believe that the limit as the number of repeating 9s aproaches infinity is indeed 8. Cheers, Rob. -- .. | Int

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

2005-01-25 Thread Jason Wong
On Wednesday 26 January 2005 09:46, Greg Donald wrote: > For example a newbie might be needing some help > debugging an array and may not have ran into the print_r() manual page > yet.. Meanwhile the same newbie probably wouldn't be asking why their > shiny new constructor doesn't automatically

Re: [PHP] Log-in script help

2005-01-25 Thread Devraj Mukherjee
Some quick answers for you are, no it does not have to be a database that holds the authentication information. For one of my projects its just a global array that holds the information. You also don't have to use sessions to do anything. Cookies are fine as you have been told before. Every sc

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
I Thought I sent a second email that mentioned I did try what you ask and that didn't make a difference. Also note the the write to the counter file works perfectly, but the log file write does not. Thanks, Joey PS No error messages. -Original Message- From: Richard Lynch [mailto:[EMA

Re: [PHP] Log-in script help

2005-01-25 Thread AceZero2790
These ideas are great and all, but I'm a real PHP newb so I have some questions. It was that I should "look for the user in the database that stores the access info" Could I just use an array for that? Or does it have to be MySQL or something. $_Session['user_id']= (who) - Does that just add t

Re: [PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numberswith X ???)]

2005-01-25 Thread Jordi Canals
On Tue, 25 Jan 2005 16:29:38 -, Chris Ramsay <[EMAIL PROTECTED]> wrote: > > > >Hey! > >I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? > > > > I have received this also with both my postings today...and probably will > again... > I've just sent ONE message to the list

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

2005-01-25 Thread Greg Donald
On Wed, 26 Jan 2005 07:46:20 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > IMO there are no difference between 'newbie' questions and 'non-newbie' > questions. Sure there is. For example a newbie might be needing some help debugging an array and may not have ran into the print_r() manual page ye

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
Joe Harman on Tuesday, January 25, 2005 4:23 PM said: > IN MY OPINION... forget the cookies... only use php sessions... but > like I said IMO you can never rely on the end user having them > cookies enabled... same with things like javascript... Well, I don't th

Re: [PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Rick Fletcher
Matt Babineau wrote: Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Image manipulation without GD library

2005-01-25 Thread Tim Burgan
Hello, Is there any way that I can do some image manipulation - resizing - without the GD libraries? Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-01-25 Thread Jason Barnett
Richard Lynch wrote: ... Now, perhaps, an INTERESTING project for some of us to work on would be that system: Spec: Robot subscriber to PHP-General. Reads all incoming messages. Discards anything that looks like a 'Reply:' including: Has 'Re: ' or 'Fwd: " in subject Has Message ID in-reply-to h

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Bruce Douglas
no.. he didn't. 8.0 = 8.0 7. (repeating) = 7. (repeating) 8.0 != 7. (repeating) now, if you want to get into conversations with regards to internal binary representations because of the limits of the register architecture in computers, then i might say the issue is the fact that

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Jason Barnett
Jochem Maas wrote: Bruce Douglas wrote: so... you're saying that 7.9 (repeating) is equal to 8.0 i say prove it.. as i recall the numbers might be for all practical purposes the same, they are in fact vastly different... so, prove your assertion... he did. you have to consider the two t

Re: [PHP] Magic quotes question

2005-01-25 Thread Chris
You should probably use get_magic_quotes_runtime() , as _gpc only applies to GET/POST/COOKIE, htmlspecialchars is needed so the HTML can be parsed properly: if the value in the text box was something like: "> Hello World! when you go to put in the value attribute it would end up: Hello World!"

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Richard Lynch
> > So knowing this... is the fractional math how the BC Math extension for > PHP works? I'm really curious now. It certainly makes things more > clear for me if this is the case. > Somewhat. I'd more describe it as: "You pick how many decimal points you want BC_MATH to use, and BC_MATH will

Re: [PHP] Search Engine with MySQL

2005-01-25 Thread Richard Lynch
Phillip S. Baker wrote: > Greetings all, > > I just serached the records and found this topic. > This nearly answers my question but not completely. > > I have a search field and a class that I found that will explode queries > into an array based on boolean values and such. > Which is great so I g

Re: [PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Rick Fletcher
Matt Babineau wrote: Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? I appear to have written that last snippet without really even looking at it. This one works. -- PHP General

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Jason Barnett
Richard Lynch wrote: Jochem Maas wrote: Bruce Douglas wrote: so... you're saying that 7.9 (repeating) is equal to 8.0 i say prove it.. as i recall the numbers might be for all practical purposes the same, they are in fact vastly different... so, prove your assertion... he did. you have to

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Richard Lynch
Jochem Maas wrote: > Bruce Douglas wrote: >> so... >> >> you're saying that 7.9 (repeating) is equal to 8.0 >> >> i say prove it.. as i recall the numbers might be for all practical >> purposes the same, they are in fact vastly different... >> >> so, prove your assertion... > > he did. > >

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Jason Barnett
Bruce Douglas wrote: no.. he didn't. Yes he did... he just used calculus to do it. I'm not going to give a full calculus lesson here (you can google for that), but basically the limit of 0.999 (repeating) as you go towards *infinity* decimal places is 1 8.0 = 8.0 7. (repeating) = 7.999

Re: [PHP] PHP Application server / Expression of Interest

2005-01-25 Thread Richard Lynch
Devraj Mukherjee wrote: > I recently passed around an email enquiring about the existance of an > application server solution for PHP. Thanks to some of the responses, > that lead my research further. > > We are still adament about what a couple of us want to do. An open > source PHP application se

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Richard Lynch
Bruce Douglas wrote: > so... > > you're saying that 7.9 (repeating) is equal to 8.0 > > i say prove it.. as i recall the numbers might be for all practical > purposes the same, they are in fact vastly different... > > so, prove your assertion... Claim: 7.... (repeating) is EXACTLY

[PHP] Re: Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Jason Barnett
Matt Babineau wrote: Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? $text = '[EMAIL PROTECTED]/.msg2g21vdbb 5g2g25g9 2 02025'; echo preg_replace('/[^0-9]/', '', $text); ?> Thanks,

Re: [PHP] Log-in script help

2005-01-25 Thread Joe Harman
Hey Andrew... IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... let me outline some steps for you... everyone else... feel free to state pros and cons to th

Re: [PHP] Zend Performance Suite 3.6 and PHP5

2005-01-25 Thread Lars B. Jensen
Thx Matthew, Meanwhile I got the software from Zend and tried to install it on my server. After manipulating some files to make the install script run, it segfaults later in the install. It seems, 3.6 isnt forward compatible and I've given up to install the product on the new server. Pricing fo

Re: [PHP] Log-in script help

2005-01-25 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > Hey, >I need a particular type log in script. I'm not sure how to do it > or > where I could find a tutorial that would help me, so I'll describe what I > need > and then maybe someone could tell me what kind of script I need (sessions > or > whatever) and where I

[PHP] Search Engine with MySQL

2005-01-25 Thread Phillip S. Baker
Greetings all, I just serached the records and found this topic. This nearly answers my question but not completely. I have a search field and a class that I found that will explode queries into an array based on boolean values and such. Which is great so I get all the words a person is searching

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Sorry I forgot to mention that I tried that anyway and no change in the result. fputs($log,$this->log_entry ); -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 1:30 PM To: Joey Cc: PHP Subject: RE: [PHP] Help with file not writing Joey

[PHP] Sigh....regex - need to search/replace string for anything but numbers

2005-01-25 Thread Matt Babineau
Ahh so the regex gods are pissed at me. This is simple (I think), but I need to figure out how to strip out everything in a string that is not a number. Any takers? Thanks, Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED]

Re: [PHP] PHP Application server / Expression of Interest

2005-01-25 Thread Jochem Maas
Chris W. Parker wrote: Devraj Mukherjee on Tuesday, January 25, 2005 3:34 PM said: I recently passed around an email enquiring about the existance of an application server solution for PHP. Thanks to some of the responses, that lead my research further. Pardon my ig

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Actually writing to the counter file works fine, I just can't get it to write to the log file. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 25, 2005 1:30 PM To: Joey Cc: PHP Subject: RE: [PHP] Help with file not writing Joey wrote: >

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

2005-01-25 Thread Chris W. Parker
Richard Lynch on Tuesday, January 25, 2005 3:35 PM said: >> or will all you advanced guys/girls spend countless hours repeatedly >> asking people to post code, use print_r()/var_dump() etc... without >> so much as halfbaked challenge in sight? > > Yes. :-) > > Perh

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

2005-01-25 Thread Jason Wong
On Wednesday 26 January 2005 07:27, Greg Donald wrote: > On Wed, 26 Jan 2005 06:54:32 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > > Anyway who decides what is a newbie question? I don't think a newbie > > would be in a position to ascertain whether their question is considered > > newbie. > > M

RE: [PHP] PHP Application server / Expression of Interest

2005-01-25 Thread Chris W. Parker
Devraj Mukherjee on Tuesday, January 25, 2005 3:34 PM said: > I recently passed around an email enquiring about the existance of an > application server solution for PHP. Thanks to some of the responses, > that lead my research further. Pardon my ignorance but, what

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Jochem Maas
Bruce Douglas wrote: so... you're saying that 7.9 (repeating) is equal to 8.0 i say prove it.. as i recall the numbers might be for all practical purposes the same, they are in fact vastly different... so, prove your assertion... he did. you have to consider the two the same, given that t

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 17:29, Bruce Douglas wrote: > so... > > you're saying that 7.9 (repeating) is equal to 8.0 > > i say prove it.. as i recall the numbers might be for all practical purposes > the same, they are in fact vastly different... > > so, prove your assertion... > > -bruce

Re: [PHP] Log-in script help

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 16:45, [EMAIL PROTECTED] wrote: > Hey, >I need a particular type log in script. I'm not sure how to do it or > where I could find a tutorial that would help me, so I'll describe what I > need > and then maybe someone could tell me what kind of script I need (session

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

2005-01-25 Thread Richard Lynch
> or will all you advanced guys/girls spend countless hours repeatedly > asking people to post code, use print_r()/var_dump() etc... without so > much as > halfbaked challenge in sight? Yes. :-) Perhaps I should explain why. Once upon a time, a long time ago, I was new to PHP. And I was a good

[PHP] PHP Application server / Expression of Interest

2005-01-25 Thread Devraj Mukherjee
I recently passed around an email enquiring about the existance of an application server solution for PHP. Thanks to some of the responses, that lead my research further. We are still adament about what a couple of us want to do. An open source PHP application server that will aim to streamline

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

2005-01-25 Thread Greg Donald
On Wed, 26 Jan 2005 06:54:32 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > Anyway who decides what is a newbie question? I don't think a newbie would be > in a position to ascertain whether their question is considered newbie. My definition of a PHP newbie would be a person who is just starting t

Re: [PHP] Magic quotes question

2005-01-25 Thread Ben Edwards
PS. How does htmlspecialchars fit into this. The unprep function is to prepare date coming from the database to be used in http://www.gurtlush.org.uk/profiles.php?uid=4 (email address this email is sent from may be defunct) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Bruce Douglas
so... you're saying that 7.9 (repeating) is equal to 8.0 i say prove it.. as i recall the numbers might be for all practical purposes the same, they are in fact vastly different... so, prove your assertion... -bruce -Original Message- From: Richard Lynch <[EMAIL PROTECTED]>

Re: [PHP] Log-in script help

2005-01-25 Thread Jason Wong
On Wednesday 26 January 2005 06:58, Chris W. Parker wrote: > The basic idea for restricting access goes like this: > > A value is set in a cookie on the clients machine if the user > successfully authenticates. The website will not allow access to the > page(s) unless this value is found. No what

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, January 25, 2005 2:46 PM said: > I need a pretty basic log in script. Something that people log in > to, and the page and all linked/related pages cannot be accessed > unless the person has logged in. So what do I need for this? > Cookie

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Richard Lynch
> my guess this is a round error issue - never noticed this problem > before... > this is a problem right? anybody? You can say it is a round error issue. You can not say it is a problem. You simply have to be aware that the float number which you think of as 8.... in

[PHP] Re: Log-in script help

2005-01-25 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hey, I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or whatever) and where I could get th

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

2005-01-25 Thread Jason Wong
On Wednesday 26 January 2005 02:41, Greg Donald wrote: > If one of us newbies gets no answer after a few days, we would realize > no one knows the answer and would probably repost the question to > another list. The clever newbie will cover all bases and cross-post to as many lists as possible.

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

2005-01-25 Thread Jason Barnett
Richard Lynch wrote: Oh and by the way, whenever I'm creating the skeleton of a new class I will usually insert the following code snippet into the functions to let me know I have to come back and actually implement it later. if ($class = __CLASS__) { trigger_error(__CLASS__ . '::' . __FUNCTION__

RE: [PHP] Log-in script help

2005-01-25 Thread Jay Blanchard
[snip] I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or whatever) and where I could get the script/learn how to ma

Re: [PHP] Magic quotes question

2005-01-25 Thread Richard Lynch
Ben Edwards wrote: > OK. This is really confusing me. > > I am using the following function to handle this: > > function prep( &$text ) { > echo get_magic_quotes_gpc()." "; > if (get_magic_quotes_gpc()) { > echo "mq on for $text"; > return $text; > } else { > echo "mq off"; > ret

[PHP] Log-in script help

2005-01-25 Thread AceZero2790
Hey, I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or whatever) and where I could get the script/learn how to mak

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

2005-01-25 Thread Richard Lynch
> Oh and by the way, whenever I'm creating the skeleton of a new class I > will usually insert the following code snippet into the functions to let > me know I have to come back and actually implement it later. > > if ($class = __CLASS__) { >trigger_error(__CLASS__ . '::' . __FUNCTION__ . ' is

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

2005-01-25 Thread Jason Barnett
Jay Blanchard wrote: [snip] Is it only me, or are the number of posts about posts now out-numbering the number of 'real' posts?... :-^ [/snip] I cannot be sure, so we must need a poll. And is a post about posts not really real or does it have some sort of existential non-sameness? We could always d

[PHP] Need help with ldap_search function

2005-01-25 Thread Merritt, David
I'm not familiar with LDAP so the problem may be more LDAP related and my lack of LDAP knowledge than a PHP problem but I'm not so sure. Trying to do ldap_search against the LDAP server. I can get the information I need against the CN records in the top DC but am unable to get any record informati

Re: [PHP] Magic quotes question

2005-01-25 Thread Ben Edwards
OK. This is really confusing me. I am using the following function to handle this: function prep( &$text ) { echo get_magic_quotes_gpc()." "; if (get_magic_quotes_gpc()) { echo "mq on for $text"; return $text; } else { echo "mq off"; return addslashes($text); }

RE: [PHP] replacement

2005-01-25 Thread Jay Blanchard
[snip] I'm trying to replace a substr of the string that start from "Rated blahblah;" azt the end semicolon. Example: safsagfasdfsdfdsfRated by 4 people;fafafaafafaf -> return safsagfasdfsdfdsffafafaafafaf $replacement =""; $pattern = "/Rated.+;/"; $found_str = preg_replace($pattern, $replaceme

Re: [PHP] Magic quotes question

2005-01-25 Thread Chris
I'm not quite sure I understand you... The theory behind that function looks sound, but are you meaning to return the value or pass it by reference and modify it? Chris Ben Edwards wrote: OK. This is really confusing me. I am using the following function to handle this: function prep( &$text ) {

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

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 11:15, Rory Browne wrote: > > P.S. An addition to the above, a reminder that you have to CC to > php-general@lists.php.net, for responses to be sent to the list might > be a good idea. I've lost count of how many times I've forgotten to do > this, including this time(sorry J

Re: [PHP] control REMOTE_ADDR header

2005-01-25 Thread Alawi Albaity
this site is blocked in my country , is it php class ? is there php On Fri, 21 Jan 2005 22:55:53 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > On Sat, 22 Jan 2005 06:52:37 +0300, Alawi Albaity <[EMAIL PROTECTED]> wrote: > > I Want to control some privacy is there class to help me do that ? > >

[PHP] replacement

2005-01-25 Thread Jerry Swanson
I'm trying to replace a substr of the string that start from "Rated blahblah;" azt the end semicolon. Example: safsagfasdfsdfdsfRated by 4 people;fafafaafafaf -> return safsagfasdfsdfdsffafafaafafaf $replacement =""; $pattern = "/Rated.+;/"; $found_str = preg_replace($pattern, $replacement, $fo

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Jochem Maas
Richard Lynch wrote: Jordi Canals wrote: I'm trying to understand how the intval() function works, but I'm unable to understand how exactly it works. Deep deep inside the guts of the computer, $a is represented as something not unlike: ... thanks Richard for that explaination! lots of light bulbs

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Jochem Maas
Jordi Canals wrote: Hi, I'm trying to understand how the intval() function works, but I'm you'd think offhand that that would be easy unable to understand how exactly it works. hmm. very odd. I took a look at your code and did a few more tests on PHP 5.0.2 (cli) (built: Oct 21 2004 13:52:27):

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

2005-01-25 Thread Chris W. Parker
Jochem Maas on Tuesday, January 25, 2005 11:23 AM said: > Greg Donald wrote: >> On Tue, 25 Jan 2005 10:19:12 -0800, Chris W. Parker >> <[EMAIL PROTECTED]> wrote: >> > > ... Ok so maybe it wasn't as funny in the email as it was in my head but gosh where did everyo

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

2005-01-25 Thread Jay Blanchard
[snip] Is it only me, or are the number of posts about posts now out-numbering the number of 'real' posts?... :-^ [/snip] I cannot be sure, so we must need a poll. And is a post about posts not really real or does it have some sort of existential non-sameness? We could always demand that posts ab

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Richard Lynch
Jordi Canals wrote: > I'm trying to understand how the intval() function works, but I'm > unable to understand how exactly it works. Deep deep inside the guts of the computer, $a is represented as something not unlike: 80e0 In other words, 8.0 x 10 to the 0th power. Now, when the comput

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

2005-01-25 Thread Jochem Maas
Greg Donald wrote: On Tue, 25 Jan 2005 17:15:37 +, Rory Browne <[EMAIL PROTECTED]> wrote: I think sending it to the list every so often, via cron isn't the best way to handle it. I've read it once, I don't see the point in getting it again. Perhaps, is the list admins were willing, it could be

Re: [PHP] Zend Performance Suite 3.6 and PHP5

2005-01-25 Thread Matthew Runo
I'm almost certain that PHP 5 was supported starting with Zend Performance Suite 4.0. You can log into your company's Zend account to download the software that you have access to. --Matthew Runo Founder, Quabbo Internet Services PHP Hosting Solutions, featuring the Zend Performance Suite http:/

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

2005-01-25 Thread Richard Lynch
> I for one would subscribe and remain a member of a php-newbie list. > Never too smart to learn something new. In years past, when this topic has re-re-re-re-re-re-surfaced, the general consensus always seems to be that most of us would just end up subscribed to two lists, the newbies would proba

Re: [PHP] Magic quotes question

2005-01-25 Thread Richard Lynch
Ben Edwards wrote: > In the php manual it states > > ' Keep in mind that the setting magic_quotes_gpc will not work at > runtime.' > > What douse this actualy mean? Translation: If you try to use ini_set to change magic_quotes_gps in your .php script, here's what happens: Step 1: Apache/PHP set

Re: [PHP] grabbing the range

2005-01-25 Thread Richard Lynch
blackwater dev wrote: > Let's say I have 100 rows in the database, I need to loop throw them > ten at a time and for each set grab the max and min ages...I then need You really want the min/max of just the 10 on screen?... Okay. [shrug] At that point you need to use a sub-query -- which is only

Re: [PHP] PHP refuses to look in the areas I tell it to for its php.ini file, why?

2005-01-25 Thread Richard Lynch
v0id null wrote: > The issue? Neither PHP's seem to be able to find php.ini and for some > really stupid reason, neither of the PHPs seem to really care. I don't > even know how PHP is running without its php.ini file, especially If PHP can't find a php.ini file, it uses the defaults set up when i

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

2005-01-25 Thread Jochem Maas
Greg Donald wrote: On Tue, 25 Jan 2005 10:19:12 -0800, Chris W. Parker <[EMAIL PROTECTED]> wrote: ... I for one would subscribe and remain a member of a php-newbie list. Never too smart to learn something new. I think that that comment makes Greg a good candidate for 'Chief Archiver'. straight up

Re: [PHP] Get full url

2005-01-25 Thread Richard Lynch
Dmitry wrote: > Dont tell me about simple solutions such as > $_SERVER["HTTPS"] . > $_SERVER["REMOTE_ADDR"] . > $_SERVER["SERVER_PORT"] . > $_SERVER["PHP_SELF"] . > $_SERVER["QUERY_STRING"] > > I want get really good solution. Bad News: You've rule out the only solution there *IS* Your best bet i

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

2005-01-25 Thread Jochem Maas
Rory Browne wrote: I think sending it to the list every so often, via cron isn't the best way to handle it. I've read it once, I don't see the point in getting indeed not the best way but... it again. Perhaps, is the list admins were willing, it could be set up considering the ammount of 'admining'

[PHP] Understanding intval() and types conversion

2005-01-25 Thread Jordi Canals
Hi, I'm trying to understand how the intval() function works, but I'm unable to understand how exactly it works. Take a look at this piece of code (Tested on PHP 5.0.3): '. $a .' -> '. gettype($a); // Prints: a -> 8 -> double echo ''; echo 'b -> '. $b .' -> '. gettype($b); // Prints: b -> 7 -

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

2005-01-25 Thread Jochem Maas
Jay Blanchard wrote: [snip] I think that Justin Patrin started up a wiki for PHP, but he hasn't been on the list in a while and I can't remember what the url for his wiki was. But he had a fair amount of useful code in there that would be a great start for this project. AND ... Yeah the list is

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Matt
It's *possible*, however I think slightly unlikely... as when a problem occurres it occurres across all php applications on the server.. in that... there is a network status page, a small customer login area, and a weather section and they all die... I guess I'm not looking for a magic answer... j

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

2005-01-25 Thread Richard Lynch
> I think once a week would be more than enough. You have to actually > hope the newbies even read it, most of them don't even think they are > "newbies" :) Perhaps the most appropriate subject would be "Posting Guide - Read before sending" Regardless of one's experience, one would expect to read

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

2005-01-25 Thread Richard Lynch
Jay Blanchard wrote: > [snip] >> This is interesting, I set up the mail line for the CRON to read >> >> mail("php-general@lists.php.net", "[NEWBIE GUIDE] - For benefit of new >> list members", $msg, "From: [EMAIL PROTECTED]" . > "Reply-To: >> [EMAIL PROTECTED]" . "X-Mailer: PHP/" . phpversion()); >

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

2005-01-25 Thread Greg Donald
On Tue, 25 Jan 2005 10:19:12 -0800, Chris W. Parker <[EMAIL PROTECTED]> wrote: > All the "smart" people will go to the "advanced" (or "normal") list and > leave all the n00bs by themselves to answer questions like, "I tried to > download the internets with PHP to my compy 386 but it didn't work. PL

Re: [PHP] Magic quotes question

2005-01-25 Thread Chris
It means that you can't set that setting inside a script with ini_set. Since the earliest opportunity to set it in a script would be after it would have already done it's job, it won't work. You must set it before the script runs. Chris Ben Edwards wrote: In the php manual it states ' Keep in m

RE: [PHP] Help with file not writing

2005-01-25 Thread Richard Lynch
Joey wrote: > $this->$hits .= fgets($hiti,128); Do global search and replace for '->$' and change it to '->' > $this->$hits=1+$this->$hits; > echo $this->$hits; > fputs($hito,$this->$hits); > fputs($log,$this->$log_entr

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Richard Lynch
Matt wrote: > Ok, > Right now if I look at a session I see the following... this is on a > mail server.. so this is all mail variables and such... There are > currently 319 session files and 1.5MB... you know I'm also wondering > now if I didn't read things wrong.. .I wonder if it said 2.0MB n

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Marek Kilimajer
Matt wrote: Ok, Right now if I look at a session I see the following... this is on a mail server.. so this is all mail variables and such... There are currently 319 session files and 1.5MB... you know I'm also wondering now if I didn't read things wrong.. .I wonder if it said 2.0MB not GB yest

[PHP] Magic quotes question

2005-01-25 Thread Ben Edwards
In the php manual it states ' Keep in mind that the setting magic_quotes_gpc will not work at runtime.' What douse this actualy mean? Ben -- Ben Edwards - Poole, UK, England WARNING:This email contained partisan views - dont ever accuse me of using the veneer of objectivity If you have a prob

[PHP] PHP refuses to look in the areas I tell it to for its php.ini file, why?

2005-01-25 Thread v0id null
Here is my setup Windows 2000 with latest service packs One apache 1.3 install, but two services running off it with two different configuration files. One file is for PHP4 and one is for PHP5, and that works like a charm. Oh, both PHP's are running as SAPI modules for Apache, not as CGI. I'm usin

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

2005-01-25 Thread Rory Browne
On Tue, 25 Jan 2005 11:36:17 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > On Tue, 25 Jan 2005 17:15:37 +, Rory Browne <[EMAIL PROTECTED]> wrote: > > I think sending it to the list every so often, via cron isn't the best > > way to handle it. I've read it once, I don't see the point in gettin

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

2005-01-25 Thread Chris W. Parker
Greg Donald on Tuesday, January 25, 2005 9:36 AM said: > The Perl solution many years ago was to make a newbie list. My local > Linux user group solution last year was to make a newbie list. This idea has been presented too. All the "smart" people will go to the "

Re: [PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numbers with X ???)]

2005-01-25 Thread John Nichel
Mike Johnson wrote: From: Richard Davey [mailto:[EMAIL PROTECTED] Hello Afan, Tuesday, January 25, 2005, 4:12:43 PM, you wrote: AP> Hey! AP> I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? Join the club.. everyone who posts gets one. Annoying, no? Best regards, Richard Davey

RE: [PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numberswith X ???)]

2005-01-25 Thread Chris Ramsay
>Hey! >I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? I have received this also with both my postings today...and probably will again... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with file not writing

2005-01-25 Thread Marek Kilimajer
Joey wrote: Hi Marek, Me? I did not send you anything :) Member variables in classes are NOT used this way: $this->$hits But this way: $this->hits I don't see anything in the docs located http://us3.php.net/fopen to help. I changed it to w only but that made no difference. Can you please provide

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

2005-01-25 Thread Greg Donald
On Tue, 25 Jan 2005 17:15:37 +, Rory Browne <[EMAIL PROTECTED]> wrote: > I think sending it to the list every so often, via cron isn't the best > way to handle it. I've read it once, I don't see the point in getting > it again. Perhaps, is the list admins were willing, it could be set up > to b

Re: [PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numberswith X ???)]

2005-01-25 Thread Richard Davey
Hello Chris, Tuesday, January 25, 2005, 5:07:37 PM, you wrote: CR> Maybe that's another thing to add to the [NEWBIE GUIDE] - I would have found CR> it useful! ;) Ahh... so you're the Russian mail server? :) I guess we could add "don't be a twat with your auto-responders" to the newbie faq, but

  1   2   >