Re: [PHP] php5 --enable-soap compile error

2005-01-25 Thread Marten Lehmann
Hello, Try posting the error messages and your exact configure line to php-install for the maximum odds of a useful response. the configure line is as follows: CFLAGS=-I/usr/kerberos/include ./configure \ --prefix=/webserver/php-5.0.3 \ --enable-bcmath \ --enable-calendar

Re: [PHP] PHP editor suggestion?

2005-01-25 Thread Merlin
Robert Cummings schrieb: On Mon, 2005-01-24 at 12:26, Merlin wrote: Hi there, I am now using Homesite 4.5.x since a few years since I found it the most relieble editor arround. Now I would like to have a look around to see if there are better solutions nowadays. I am looking for a relieable,

Re: [PHP] Allowing Users to Edit HTML

2005-01-25 Thread trlists
On 24 Jan 2005 Richard Lynch wrote: Assuming you are authenticating them correctly so that a Bad Guy can't change the HTML out from under them, it seems reasonable to me -- Not much point to cross-site vandalism on one's own site, eh? Exactly, that was my thought as well ... -- Tom -- PHP

RE: Re: [PHP] String to Date and Date to String Functions?

2005-01-25 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 25 January 2005 00:25, Ben Edwards wrote: On Mon, 24 Jan 2005 20:15:15 -, Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed,

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

2005-01-25 Thread Jay Blanchard
= Please feel free to add more points and send to the list. = 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it

[PHP] php 5.1.0 release - when?

2005-01-25 Thread Sergio Gorelyshev
Hello all. Is anyone aware of php 5.1.0 release date? Thanks. -- RE5PECT Sergio Gorelyshev -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-01-25 Thread Jason Barnett
Great list Jay. The only other thing that I would add is this: The people on this list are not your paid support specialists that *have* to answer you on your slightest whim. Most of this netiquette is covered by http://www.catb.org/~esr/faqs/smart-questions.html, but basically if you make it

[PHP] Help with file not writing

2005-01-25 Thread Joey
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 can't figure out why the other file isn't being

[PHP] PHP Cache

2005-01-25 Thread Merlin
Hi there, I am trying to find a open source PHP Cache extension. After trying out ionCube PHP Accelerator (http://www.php-accelerator.co.uk) I had to remove it from the system since it brought down the server every few weeks due to some memory leak. There is also APC, but the latest build is

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

2005-01-25 Thread Chris Ramsay
I too agree - the list raises some really important points... Just a thought, but would it be worth someone posting the list once a week to catch new users as they sign up? Might be worth it in the interest of keeping the list tidy? Chris Ramsay

[PHP] ldap functionality

2005-01-25 Thread Bruce Douglas
hi... i'm in need of an app that has/should have directory/user/member functionality. i want to setup a process to allow an adim to create different fields and categories for a user to enter. think of a company employee database, where you have the employe name, and then the various

Re: [PHP] PHP Cache

2005-01-25 Thread Tom
Squid any good to you? You can configure it to cache based on page name, GET and POST params (personally don't like to use POST params for static or semi static content, but that's a personal preference, not a hard and fast rule), farside domains You set it up above your php servers so it

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

2005-01-25 Thread Richard Davey
Hello Chris, Tuesday, January 25, 2005, 2:03:09 PM, you wrote: CR Just a thought, but would it be worth someone posting the list CR once a week to catch new users as they sign up? Isn't it posted once a month as it is? Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP

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

2005-01-25 Thread Jay Blanchard
[snip] CR Just a thought, but would it be worth someone posting the list CR once a week to catch new users as they sign up? Isn't it posted once a month as it is? [/snip] It used to be, but it seems that it hasn't been posted in a while. So I retrieved it and posted it. I was thinking about

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

2005-01-25 Thread Chris Ramsay
Richard TheList... Isn't it posted once a month as it is? Hot damn! That'll be why I have never seen it then! :/ Apologies to all!!! Chris Ramsay - Web Developer - The Danwood Group Ltd. T: +44 (0) 1522 834482 F: +44 (0) 1522

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

2005-01-25 Thread Richard Davey
Hello Jay, Tuesday, January 25, 2005, 2:33:32 PM, you wrote: 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

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

2005-01-25 Thread 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 actually hope the newbies even read it, most of

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

2005-01-25 Thread Jason Barnett
Jay Blanchard wrote: [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 actually hope the newbies

Re: [PHP] debugging modules

2005-01-25 Thread Arshavir Grigorian
Rasmus Lerdorf wrote: Arshavir Grigorian wrote: Hi, I am having trouble debugging a PECL module (APC) because while I am able to --enable-debug when configuring the PHP course, I cannot do the same for APC (no such configure option). Does anyone know how to do that? PHP Warning: Unknown():

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

2005-01-25 Thread Joe Harman
Great List... although.. .just having a sense humor here... i think every topic has been covered a number of times... which means no one should be posting questions at the php list... cause they are all in the archive :0) cheers! Joe On Tue, 25 Jan 2005 09:48:53 -0500, Jason Barnett [EMAIL

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

2005-01-25 Thread Jay Blanchard
[snip] although.. .just having a sense humor here... i think every topic has been covered a number of times... which means no one should be posting questions at the php list... cause they are all in the archive :0) [/snip] Maybe...except for PHP5 :) ! -- PHP General Mailing List

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

2005-01-25 Thread Jason Barnett
Jay Blanchard wrote: [snip] although.. .just having a sense humor here... i think every topic has been covered a number of times... which means no one should be posting questions at the php list... cause they are all in the archive :0) [/snip] Maybe...except for PHP5 :) ! That and XML / SOAP.

[PHP] Re: PHP Cache

2005-01-25 Thread Matthew Weier O'Phinney
* Merlin [EMAIL PROTECTED]: I am trying to find a open source PHP Cache extension. After trying out ionCube PHP Accelerator (http://www.php-accelerator.co.uk) I had to remove it from the system since it brought down the server every few weeks due to some memory leak. There is also APC, but

Re: [PHP] PHP5: DOM-removeChild Problem

2005-01-25 Thread Christian Stocker
On Fri, 21 Jan 2005 12:02:51 +0100, Mike Blank [EMAIL PROTECTED] wrote: Hi Guys! I've got a problem with Dom and php 5.0.2. I'm trying to access an xml node with $item = $objDom-documentElement-childNodes-item(0);. That seems to work, because on the next line I can output the node Value with

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

2005-01-25 Thread Jay Blanchard
[snip] ...stuff... [/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()); And the test mail did not

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

2005-01-25 Thread John Nichel
Jay Blanchard wrote: [snip] CR Just a thought, but would it be worth someone posting the list CR once a week to catch new users as they sign up? Isn't it posted once a month as it is? [/snip] It used to be, but it seems that it hasn't been posted in a while. So I retrieved it and posted it. I was

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

2005-01-25 Thread Jason Barnett
Jay Blanchard wrote: [snip] stuff... [/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()); And the

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

2005-01-25 Thread Jochem Maas
Jay Blanchard wrote: [snip] ...stuff... [/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()); And the

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

2005-01-25 Thread Jochem Maas
John Nichel wrote: Jay Blanchard wrote: [snip] CR Just a thought, but would it be worth someone posting the list CR once a week to catch new users as they sign up? Isn't it posted once a month as it is? [/snip] It used to be, but it seems that it hasn't been posted in a while. So I retrieved it

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

2005-01-25 Thread Jay Blanchard
[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()); And the test mail did not appear on the

[PHP] Replace credit card numbers with X ???

2005-01-25 Thread Joe Harman
Hello, I need to replace all the numbers of a credit card except for the last 4 with an 'X' ... can't seem to locate the string function for this... can someone point me in the right direction here to what php item i should be using. Thanks! Joe -- PHP General Mailing List

RE: [PHP] Replace credit card numbers with X ???

2005-01-25 Thread Jay Blanchard
[snip] I need to replace all the numbers of a credit card except for the last 4 with an 'X' ... can't seem to locate the string function for this... can someone point me in the right direction here to what php item i should be using. [/snip] ROFLMMFAO! It's all been discussed before Joe!

Re: [PHP] Replace credit card numbers with X ???

2005-01-25 Thread Afan Pasalic
this is my way. $cc_stars = ''; $cc_no_lenght = strlen($cc_number); $cc_info_first4 = substr($cc_number, 0, 4); $cc_info_last4 = substr($cc_number, (strlen($cc_number) - 4), 4); for($i=0; $i($cc_no_lenght-8); $i++) $cc_stars .= '*'; $cc_number =

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

2005-01-25 Thread Afan Pasalic
Hey! I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? What's going on? -afan Original Message Subject: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numbers with X ???) Date: Tue, 25 Jan 2005 19:13:27 +0300 From: RIPN NCC [EMAIL PROTECTED] To:

Re: [PHP] Replace credit card numbers with X ???

2005-01-25 Thread Jochem Maas
Joe Harman wrote: Hello, I need to replace all the numbers of a credit card except for the last 4 with an 'X' ... can't seem to locate the string function for this... can someone point me in the right direction here to what php item i should be using. that'll be: string

Re: [PHP] Replace credit card numbers with X ???

2005-01-25 Thread tg-php
In addition to what was mentioned already, using ereg_replace, if you're pulling the CC# string out of a database of off of some POST data or something, just use a substr() function to pull the last 4 digits and prepend a bunch of X's. $ccnum = 342342522342342; # fake CC #, prob not even

Re: [PHP] Maxing out sessions?

2005-01-25 Thread Matt
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 yesterday..

Re: [PHP] Replace credit card numbers with X ???

2005-01-25 Thread Jochem Maas
Jay Blanchard wrote: [snip] I need to replace all the numbers of a credit card except for the last 4 with an 'X' ... can't seem to locate the string function for this... can someone point me in the right direction here to what php item i should be using. [/snip] ROFLMMFAO! It's all been discussed

[PHP] PATH_INFO empty, ORIG_PATH_INFO correct

2005-01-25 Thread Marten Lehmann
Hello, I'm using PHP as CGI (not through Apache-action, but she-bang line containing the path to php). When I'm calling http://test.com/phpinfo.php/a/variable/url PATH_INFO should contain /a/variable/url. I checked this with a perl-script, which printed out all environment variables and so I

RE: [PHP] Help with file not writing

2005-01-25 Thread Joey
Hi Marek, 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 a more specific answer. THanks Code looks liks this: % class counter { var $log_file = 'counters/google_log.txt';

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

2005-01-25 Thread Richard Davey
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 -- http://www.launchcode.co.uk - PHP Development Services I am

Re: [PHP] Avoiding NOTICEs with list()

2005-01-25 Thread trlists
On 24 Jan 2005 James Kaufman wrote: I just tried it with php 4.3.8 and it did not throw a NOTICE with @list. I suppose you could try @explode as well as @list. Thanks. I was sure I had tried it with that but I will go back and check. -- Tom -- PHP General Mailing List

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

2005-01-25 Thread Jay Blanchard
[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 pretty high

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

2005-01-25 Thread Jay Blanchard
[snip] I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? What's going on? [/snip] I have been getting it with every send too...off to /dev/null -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2005-01-25 Thread Mike Johnson
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 My

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

2005-01-25 Thread Afan Pasalic
Not at all... Actually, I enjoy :-D I just wonder what's going on and is it problem on my side or... Now I breath easier... ;-) -afan Richard Davey wrote: 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 ?!?!?!?!?

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

2005-01-25 Thread Chris Ramsay
snip Join the club.. everyone who posts gets one. Annoying, no? /snip Maybe that's another thing to add to the [NEWBIE GUIDE] - I would have found it useful! ;) Chris Ramsay - Web Developer - The Danwood Group Ltd. T: +44 (0) 1522

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

2005-01-25 Thread Rory Browne
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 be sent to all newbies, as part of the subscription process. To ensure that it is

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

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 be

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] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numberswith X ???)]

2005-01-25 Thread Chris Ramsay
snip Hey! I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? /snip 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] [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] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Chris W. Parker
Greg Donald mailto:[EMAIL PROTECTED] 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] 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 getting it

[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

[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

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

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 not

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_entry ); cuz

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

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. PLZ HLP!

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()); And the test mail

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 that.

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...

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

[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): ?php $a = (0.1 + 0.7) * 10; $b = intval($a); echo 'a - '. $a .' - '. gettype($a); // Prints: a - 8 - double echo 'br';

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

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 is to do this:

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] 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 it

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] 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 up

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

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

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] 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

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

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

2005-01-25 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] 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 everyone's sense

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] 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

[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,

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 ?

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 Jay),

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] 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, $replacement,

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); } } And

[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

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

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 not

[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

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; return

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

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__ . '::' .

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.

[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

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....

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[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? Cookies,

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 it

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]

  1   2   >