[PHP] COM Bug in PHP 4.3.10

2004-12-30 Thread Tohar Trabinovitch
Hi, I need to know when will be the next PHP 4.3.x release with the fix for the COM bug which was in 4.3.10. This is CRITICAL for us, because we run our application over windows using COM object and we use earlier version of PHP which has security bugs. COM Bug URL:

[PHP] Re: wrong value from define

2004-12-30 Thread Arthur
Arthur wrote: Hi, in the following code, i want to get a constant value from config.php. I don't receive the value, that is defined, but the name of the constant. I tested the defines in config.php by echoing all defines, and it was allright, so i'm quite confused why it doesn't work

Re: [PHP] PEAR DB vs ADODB

2004-12-30 Thread Lester Caine
Matthew Weier O'Phinney wrote: There's not much benefit or point in PEAR developers developing for a non-PEAR library -- the idea is to create a set of high quality libraries following a common set of coding standards and practices; compatibility with outside libraries doesn't make sense if those

[PHP] Question: arrays and form elements

2004-12-30 Thread Stuart Felenstein
Generally, when I set up a form where, for example, I'll be taking multiple selections from a list I would set the variable / element name as myvar[]. So I have the brackets [] after the variable name to make it an array. What I want to know is there a way to get around the use of this syntax

[PHP] Re: COM Bug in PHP 4.3.10

2004-12-30 Thread M. Sokolewicz
as stated in news://news.php.net:119/[EMAIL PROTECTED] (internals) the status of this is still unknown. The PHP Development Team is working on it however, and my guess is that it will be fixed for 4.3.11 (due for beta in January) - Tul Tohar Trabinovitch wrote: Hi, I need to know when will

[PHP] authentication problem...

2004-12-30 Thread Ali
Hi there this is a tutorial am trying to do...chk out the code.. if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) { header( 'WWW-Authenticate: Basic realm=Private' ); header( 'HTTP/1.0 401 Unauthorized'

Re: [PHP] authentication problem...

2004-12-30 Thread Christophe Chisogne
Ali a écrit : if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) ) { Better use $_SERVER['PHP_AUTH_USER'] instead of $PHP_AUTH_USER and $_SERVER['PHP_AUTH_PW'] instead of $PHP_AUTH_PW. Chapter 33. HTTP authentication with

RE: [PHP] Question: arrays and form elements

2004-12-30 Thread Jay Blanchard
[snip] Generally, when I set up a form where, for example, I'll be taking multiple selections from a list I would set the variable / element name as myvar[]. So I have the brackets [] after the variable name to make it an array. What I want to know is there a way to get around the use of this

Re: [PHP] Re: COM Bug in PHP 4.3.10

2004-12-30 Thread Rasmus Lerdorf
M. Sokolewicz wrote: as stated in news://news.php.net:119/[EMAIL PROTECTED] (internals) the status of this is still unknown. The PHP Development Team is working on it however, and my guess is that it will be fixed for 4.3.11 (due for beta in January) - Tul Tohar Trabinovitch wrote: Hi, I

Re: [PHP] 4.3.10 mySQL

2004-12-30 Thread John Nichel
Please reply to the list. GH wrote: how do i do that on windows? On Wed, 29 Dec 2004 16:58:53 -0500, John Nichel [EMAIL PROTECTED] wrote: GH wrote: Hi all I just installed PHP MySql on my laptop together with IIS (go ahead and boo)... I just ran a ?PHP phpinfo(); ? script to test that the server

Re: [PHP] Align pic

2004-12-30 Thread John Nichel
Labunski wrote: Sorry for posting this here, but this is only newsgroup I'm using, and I can't solve simple HTML problem. yeah, it's funny, but still.. ;) So join a HTML or CSS newsgroup. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] distributed architecture....

2004-12-30 Thread Bruce Douglas
hi... i'm contemplating a project where a number of websites would communicate with each other via some network of round robin/distributed servers. Each 'client' website/app would be considered to be a 'node' of the overall network, and be able to upload/download information to the network.

[PHP] Re: distributed architecture....

2004-12-30 Thread Greg Beaver
Bruce Douglas wrote: hi... i'm contemplating a project where a number of websites would communicate with each other via some network of round robin/distributed servers. Each 'client' website/app would be considered to be a 'node' of the overall network, and be able to upload/download information

[PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
**First let me say that I am a linux newbie** I have installed Fedora 3 on a development box. I then downloaded the php5 source and followed the php documentation: # ./configure --with-mysql # make # make install Everything went fine, I then went to add the loadmodule line and did a locate on

RE: [PHP] distributed architecture....

2004-12-30 Thread Jones, Douglas 1
I would also suggest that you look into SOAP for this project. My office hosts a search program that uses SOAP to go out and search the databases of remote sites, most of which run architectures completely different than ours. It would probably be pretty easy to use SOAP to get the data off of

[PHP] Understanding flock()

2004-12-30 Thread Gerard Samuel
Im trying to simulate conditions, to see how flock works. Can anyone verify with the example code below, that data, never gets written to the file. //1 //2 are supposed to be processes??? For me, the var_dump() reports - int(7) bool(false) Thanks $fp = fopen('foo.txt', 'w'); //1 flock($fp,

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
blackwater dev wrote: **First let me say that I am a linux newbie** I have installed Fedora 3 on a development box. I then downloaded the php5 source and followed the php documentation: # ./configure --with-mysql # make # make install What did you build it against? You have no webserver type in

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Jason Wong
On Thursday 30 December 2004 22:56, blackwater dev wrote: **First let me say that I am a linux newbie** I have installed Fedora 3 on a development box. I then downloaded the php5 source and followed the php documentation: # ./configure --with-mysql # make # make install Everything went

[PHP] Re: build list of available functions and classes

2004-12-30 Thread Jason Barnett
You may want to check out phpm, an attempt at creating a CLI for the PHP manual: http://eide.org/?epc=php Sounds interesting, I will look at it. I'm not sure if that developer's work will answer your questions or not, but he appears to have tackled the issue already. Also, Rasmus Lerdorf has

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I don't seem to have an apxs directory.  I don't even have an apache directory as apachectl resides in /usr/sbin/apachectl Of course apache was installed from the fedora install. How do I install this against apache? On Thu, 30 Dec 2004 10:20:01 -0500, John Nichel [EMAIL PROTECTED] wrote:

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I don't seem to have an apxs directory.  I don't even have an apache directory as apachectl resides in /usr/sbin/apachectl Of course apache was installed from the fedora install. How do I install this against apache? On Thu, 30 Dec 2004 10:20:01 -0500, John Nichel [EMAIL PROTECTED] wrote:

[PHP] Re: authentication

2004-12-30 Thread zerof
Ali wrote: Hi everyone... can anyone lead me to a good tutorial on authentication...it wud be good if i can get a one in connection with a database.. thnks If you understand portuguese: http://www.educar.pro.br/ --- zerof -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Mário Gamito
Hi, A friend of mine told me that in Windows, PHP shows its warnings at the bottom of the pages. Actually, i've never had thought about this issue before. Better still... i even didn't know PHP for Windows had this behaviour. In Linux they're shown at the top and now i'm in the mood to make PHP

[PHP] Re: Warnings on the bottom of the pages on Linux

2004-12-30 Thread Jason Barnett
I haven't done it (what's the point since I'm a Windows user lol), but you can change the default error handler. If it's error messages at the bottom of HTML pages you want then just choose appropriate HTML elements you need to align a message at the bottom of your page.

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
blackwater dev wrote: I don't seem to have an apxs directory. I don't even have an apache directory as apachectl resides in /usr/sbin/apachectl Of course apache was installed from the fedora install. How do I install this against apache? I don't know if the rpm install of Apache includes apxs.

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread John Nichel
Mário Gamito wrote: Hi, A friend of mine told me that in Windows, PHP shows its warnings at the bottom of the pages. Actually, i've never had thought about this issue before. Better still... i even didn't know PHP for Windows had this behaviour. In Linux they're shown at the top and now i'm in

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Jason Barnett
Is it possible to achieve this in Linux ? Any help would be apreciated. Warm regards. http://us4.php.net/manual/en/ref.outcontrol.php Call me stupid (actually please don't :) ) but how does output buffering help in this case? Are you suggesting he write an output handler? -- Teach a person

[PHP] How to argue with ASP people...

2004-12-30 Thread Tony Di Croce
I am fairly new to PHP, but I am loving it... I have recently gotten involved in a business venture and I have been using PHP so far... Recently I have taken on a partner, and he is a big ASP guy... I am not totally against ASP, but it would have to be pretty good to get me to switch at this

Re: [PHP] Question: arrays and form elements

2004-12-30 Thread Brent Baisley
Nope. Is there a problem you are having with using that syntax? If you are having trouble with referencing the fields with javascript, you can't use the regular syntax you are used to.: document.formname.fieldname[] That will give you an error because of the brackets. In javascript you'll need

Re: [PHP] Align pic

2004-12-30 Thread John Nichel
Reply to the list please. Gleb Belov wrote: Sorry for posting it here as well, but can anybody please tell me about these? I mean, the HTML and CSS newsgroups as I really need them too. Thanks and sorry. http://webstandardsgroup.org/mail/ -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Rasmus Lerdorf
John Nichel wrote: I don't know if the rpm install of Apache includes apxs. If it doesn't, you'll have to install Apache from source. Usually apxs is in the apache-dev package on the various distros. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread John Nichel
Jason Barnett wrote: Is it possible to achieve this in Linux ? Any help would be apreciated. Warm regards. http://us4.php.net/manual/en/ref.outcontrol.php Call me stupid (actually please don't :) ) but how does output buffering help in this case? Are you suggesting he write an output handler?

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Marek Kilimajer
Mário Gamito wrote: Hi, A friend of mine told me that in Windows, PHP shows its warnings at the bottom of the pages. Actually, i've never had thought about this issue before. Better still... i even didn't know PHP for Windows had this behaviour. In Linux they're shown at the top and now i'm in

Re: [PHP] How to argue with ASP people...

2004-12-30 Thread Daniel Schierbeck
Tony Di Croce wrote: I am fairly new to PHP, but I am loving it... I have recently gotten involved in a business venture and I have been using PHP so far... Recently I have taken on a partner, and he is a big ASP guy... I am not totally against ASP, but it would have to be pretty good to get me to

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Rory Browne
Sorry if you recieved this twice. Head's wreaked today, and I keep making mistakes, such as posting to a person instead of to the list. If you're using apache2 then you need to add something along the lines of --with-apxs to your ./configure line. With apache1.3 it was --with-apxs=/path/to/apxs.

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Rory Browne
Apologies Marek if you recieved this twice, I mailed you instead of the list first time around. me.is_confused() == true; What does it matter whether errors show at the top or bottom of the page. They are probably different errors that show up, some of which show at the top, and others of which

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Warning: Unknown: Failed opening

[PHP] Re: COM Bug in PHP 4.3.10

2004-12-30 Thread Andi Gutmans
We are looking into it right now. Hopefully we will have a new version or at least a release candidate within 2 weeks. At 11:08 AM 12/30/2004 +0200, Tohar Trabinovitch wrote: -- Hi, I need to know when will be the next PHP 4.3.x release with the fix for the COM bug which was in 4.3.10. This

Re: [PHP] Re: Warnings on the bottom of the pages on Linux

2004-12-30 Thread Curt Zirzow
* Thus wrote Jason Barnett: I haven't done it (what's the point since I'm a Windows user lol), but you can change the default error handler. If it's error messages at the bottom of HTML pages you want then just choose appropriate HTML elements you need to align a message at the bottom of

Re: [PHP] How to argue with ASP people...

2004-12-30 Thread Ben
Daniel Schierbeck wrote: Tony Di Croce wrote: What points can I bring up in PHP's favor? In what areas does PHP trounce ASP? First of all, ASP doesn't run on anything but Windows servers (unless you're willing to use ChiliASP... *hiss*) Exactly! Portability is key. Not being locked into a

[PHP] Quick compile question --with-oci8

2004-12-30 Thread Brian Duke
This has been going on for about a week now. I have an oracle client installed. I have php4 source installed all on a stripped down fedora server. We get various errors. Like the infamous ld can find XXX in -lclntsh. Correct me if I'm wrong but we will have to install oracle8 || 9i before we can

[PHP] Re: [suspicious - maybe spam] Static Keyword

2004-12-30 Thread Jason Barnett
Paul Higgins wrote: Hi, I was reading this article: http://www.phppatterns.com/index.php/article/articleview/6/1/1/ . I have a question about it. If you create this static Singleton object, does it persist in memory globally? Or is it recreated each time a .php page is requested? AFAIK

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Warning: Unknown: Failed

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Bruce Douglas
if you want to know/have a rough guide on building/compiling php with mysql/mysqli support, the following link should help you out... although it's for linux.. http://marc.theaimsgroup.com/?l=php-generalm=109026859726530w=2 it kind of walks you through what you need to do.. hope it helps...

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Static Keyword

2004-12-30 Thread Paul Higgins
Hi, I was reading this article: http://www.phppatterns.com/index.php/article/articleview/6/1/1/ . I have a question about it. If you create this static Singleton object, does it persist in memory globally? Or is it recreated each time a .php page is requested? Thanks Paul

Re: [PHP] How to argue with ASP people...

2004-12-30 Thread Jason Barnett
Ben wrote: Daniel Schierbeck wrote: Tony Di Croce wrote: What points can I bring up in PHP's favor? In what areas does PHP trounce ASP? First of all, ASP doesn't run on anything but Windows servers (unless you're willing to use ChiliASP... *hiss*) Exactly! Portability is key. Not being

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I actually recompiled it all but was getting permission errors. I then rebooted and now linux seems to want to use the old apache instead of the new one I compiled with php support so I have to fix my environment variables to point to the new apache and figure out my permission errors. Thanks!

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread tr
John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream: Permission denied in Unknown

[PHP] Why extra slashes???

2004-12-30 Thread Wiberg
Hi there! Right now I'm creating a form that saves the text from a textarea to an array. That doesn't seem to be any problem. But when I save the contents, I get extra / ? The code looks like this: - //Which main product category is to treat? // if

Re: [PHP] Quick compile question --with-oci8

2004-12-30 Thread Marek Kilimajer
Please, don't hijack threads. Brian Duke wrote: This has been going on for about a week now. I have an oracle client installed. I have php4 source installed all on a stripped down fedora server. We get various errors. Like the infamous ld can find XXX in -lclntsh. Correct me if I'm wrong but we

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread tr
tr wrote / napísal (a): John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream:

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Marek Kilimajer
Rory Browne wrote: Apologies Marek if you recieved this twice, I mailed you instead of the list first time around. me.is_confused() == true; What does it matter whether errors show at the top or bottom of the page. They are probably different errors that show up, some of which show at the top, and

Re: [PHP] Understanding flock()

2004-12-30 Thread Marek Kilimajer
Gerard Samuel wrote: Im trying to simulate conditions, to see how flock works. Can anyone verify with the example code below, that data, never gets written to the file. //1 //2 are supposed to be processes??? For me, the var_dump() reports - int(7) bool(false) Thanks $fp = fopen('foo.txt', 'w');

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Rory Browne
That Marek seems to be my point exactly. Aparently Mario would perfer his errors to show on the bottom instead of on the top. I trying to figure out why this is, and why he wants errors in his script at all? me.level_of_confusion = CONFUSION_LEVEL_MAX; On Fri, 31 Dec 2004 01:13:33 +0100, Marek

Re: [PHP] Why extra slashes???

2004-12-30 Thread John Holmes
Wiberg wrote: Right now I'm creating a form that saves the text from a textarea to an array. That doesn't seem to be any problem. But when I save the contents, I get extra / ? http://us4.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc -- ---John Holmes... Amazon Wishlist:

Re: [PHP] Quick compile question --with-oci8

2004-12-30 Thread John Nichel
Brian Duke wrote: This has been going on for about a week now. I have an oracle client installed. I have php4 source installed all on a stripped down fedora server. We get various errors. Like the infamous ld can find XXX in -lclntsh. Correct me if I'm wrong but we will have to install oracle8 ||

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-30 Thread Al
You nailed it Curt. Virtual Host Powweb removed the system default tmp directory without telling anyone. All file uploading services were broken. I fixed the problem in php.ini Thanks everyone. Curt Zirzow wrote: * Thus wrote Al: What is a $_FILE[user][error]= 6 I can't find Error level 6 in

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
tr wrote: tr wrote / napísal (a): John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread John Nichel
Rory Browne wrote: That Marek seems to be my point exactly. Aparently Mario would perfer his errors to show on the bottom instead of on the top. I trying to figure out why this is, and why he wants errors in his script at all? me.level_of_confusion = CONFUSION_LEVEL_MAX; See, there's your problem.

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread mail.pmpa
Don't mean to start a discussion whatsoever, I love php, but one thing i can't do in php is Response.Redirect . Apart from that no complains so far :) * Happy New Year * Pedro Almeida. -Mensagem original- De: Tony Di Croce [mailto:[EMAIL PROTECTED] I am fairly new to PHP, but I am

Re: [PHP] How to argue with ASP people...

2004-12-30 Thread Rasmus Lerdorf
mail.pmpa wrote: Don't mean to start a discussion whatsoever, I love php, but one thing i can't do in php is Response.Redirect . Apart from that no complains so far :) header(Location: $url); which, by the way, makes a hell of a lot more sense. It's just an HTTP response header like any other

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread Robby Russell
On Fri, 2004-12-31 at 02:49 +, mail.pmpa wrote: Don't mean to start a discussion whatsoever, I love php, but one thing i can't do in php is Response.Redirect . Apart from that no complains so far :) * Happy New Year * Pedro Almeida. Sure you can.. class Response { function

Re: [PHP] Why extra slashes???

2004-12-30 Thread Zareef Ahmed
Hi, You can user stripslashes() function to remove them if gpc quotes is creating some kind of confusion in your mind. BTW these quotes are important in some security related situations. zareef ahmed. On Thu, 30 Dec 2004 20:15:06 -0500, John Holmes [EMAIL PROTECTED] wrote: Wiberg wrote:

Re: [PHP] How to argue with ASP people...

2004-12-30 Thread John Nichel
mail.pmpa wrote: Don't mean to start a discussion whatsoever, I love php, but one thing i can't do in php is Response.Redirect . Apart from that no complains so far :) http://us4.php.net/header -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List

[PHP] Xemacs indentation for php

2004-12-30 Thread Song Ken Vern-E11804
Hi, I would like the behaviour of turning on the cc-mode indentation in the ?php ? tags but turning off when escaping and doing html. I have been looking at the cc-engine.el source and can't seem to find the place where I should change. Is this behaviour possible? thanx -- PHP General

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread mail.pmpa
Can I do any session handling before calling header(Location: $url); ? Pedro Almeida. -Mensagem original- De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] mail.pmpa wrote: Don't mean to start a discussion whatsoever, I love php, but one thing i can't do in php is Response.Redirect .

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread Robby Russell
sure, add this to the top of your file: ob_start(); On Fri, 2004-12-31 at 04:50 +, mail.pmpa wrote: Can I do any session handling before calling header(Location: $url); ? Pedro Almeida. -Mensagem original- De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] mail.pmpa wrote:

[PHP] for win, does sapi/cgi fastcgi handle only 1 request at a time?

2004-12-30 Thread Xuefer Tinys
seems it will block all other php requests i've looked into the source, and seems it's only pre-fork under *nix not win any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Hosting woes and PHP 4.3.8 install (Interland)

2004-12-30 Thread [EMAIL PROTECTED]
My hosting company is very stubborn when it comes to functionality. They do not compile their version of PHP 4.3.8 with DOM so now none of my XML generating code works. The environment is a virtual host meaning that I share space on a server with other users but only I have access to my stuff.

RE: [PHP] Quick compile question --with-oci8

2004-12-30 Thread Brian Duke
Thanks John, Can you (or someone on the list) direct me to the oracle site where I can download the client files? The only client files I saw were for the 10g instantclient. Our current build says the libraries need don't exist with that one. -Original Message- From: John Nichel