Re: Fw: [PHP-WIN] Passing by reference...

2002-01-01 Thread Michael Sims
At 12:08 AM 1/2/2002 -0600, Michael Sims wrote: >At 09:27 AM 1/2/2002 +1100, Ignatius Teo wrote: >>Isn't passing by reference a "no-no" is terms of good programming? At least >>that's what I was told when I studied programming about 12 years ago? >> >>Ignatius > >Not sure...do you recall the reaso

Re: Fw: [PHP-WIN] Passing by reference...

2002-01-01 Thread Michael Sims
At 09:27 AM 1/2/2002 +1100, Ignatius Teo wrote: >Isn't passing by reference a "no-no" is terms of good programming? At least >that's what I was told when I studied programming about 12 years ago? > >Ignatius Not sure...do you recall the reasons that were given when you were told that? -- PHP W

Re: Fw: [PHP-WIN] Passing by reference...

2002-01-01 Thread Pac mon
Understood.. as far as I can answer your question... I'd have to say that yes it does 'break' the 'rule' and that it is still the 'preached' method to avoid such things. > >One of the fundamental rules of blackbox programming is that a function >should never change the value of a global variabl

Re: Fw: [PHP-WIN] Passing by reference...

2002-01-01 Thread Ignatius Teo
One of the fundamental rules of blackbox programming is that a function should never change the value of a global variable. And there are very compelling reasons why this rule exists. I'm simply suggesting that "passing by reference" as a programming "technique" breaks this fundamental rule.a

Re: Fw: [PHP-WIN] Passing by reference...

2002-01-01 Thread Pac mon
Some teachers will say this just because they think students are dumb. The reasoning behind it is that 'if we teach them to pass by reference some other dumb programmer can accidentally change values around and break stuff!' Simpletons! > >Isn't passing by reference a "no-no" is terms of good p

Re: [PHP-WIN] MySQL problems...

2002-01-01 Thread Pac mon
Uhm... I don't think so ... what I mean is if you access mysql directly from the mysql app then there are users and passwords. Most likely you have or at least *SHOULD* have a password set for the root user of MYSQL. When accessing the DB from PHP you in order to be able to run queries on a DB

[PHP-WIN] Re: 500 Internal Server Error

2002-01-01 Thread Chris Burwell
I fixed this problem. I don't remember how, but none the less it's fixed. Now i am encountering another problem. It seems session vars do not retain their values once you leave the page that registers them. I have found several entries in the bug database about this. My question is does anyone els

Fw: [PHP-WIN] Passing by reference...

2002-01-01 Thread Ignatius Teo
Isn't passing by reference a "no-no" is terms of good programming? At least that's what I was told when I studied programming about 12 years ago? Ignatius - Original Message - From: "Anthony Ritter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 01, 2002 2:40 PM Sub

[PHP-WIN] Cookies

2002-01-01 Thread Chris Burwell
I have a user authentication script that compares the information the user enters t the information that is in a database table. When the user enter the correct information (Username and password) Two cookies are set one for the username and one for the password. My problem is when the user is red

[PHP-WIN] 500 Internal Server Error

2002-01-01 Thread Chris Burwell
I am running apache 1.3.X, MySQL 3.23.47, and PHP 4.1.0 on windows XP pro. I have a user login script that compare the information the user enters into the forms with the information in our database. After the user enters the correct information a session should be started. My question is when my

php-windows Digest 1 Jan 2002 19:51:22 -0000 Issue 931

2002-01-01 Thread php-windows-digest-help
php-windows Digest 1 Jan 2002 19:51:22 - Issue 931 Topics (messages 11249 through 11254): Re: Settings per virtual site on IIS ? 11249 by: Olivier Mascia 11250 by: Christoph Grottolo Re: CGI mode still requires php4isapi.dll? 11251 by: Steve Yates Re: problems with

[PHP-WIN] Re: Filemanager Problems...

2002-01-01 Thread G Schneider
Hi, well without knowing anything about your script, filemanager.php, I would guess that your script is wanting to access another directory (other than the directory it currently sits in). But scripts cannot do that if PHP's Safe Mode is switched on. Your webhost decides wether Safe Mode should

Re: [PHP-WIN] problems with domxml and xslt extensions

2002-01-01 Thread Olivier Mascia
Hello, Luca wrote: L> Must be php4apache.dll, then. I was hoping 4.1.0 would fix this L> problem, but it seems it didn't. Anyway, just to be sure it's not L> some dumb error of mine, I'd like to hear from someone who runs L> php as an apache module on windows98 and has the same problem getting L

Re: [PHP-WIN] problems with domxml and xslt extensions

2002-01-01 Thread Luca
Olivier Mascia <[EMAIL PROTECTED]> wrote: > When I does : > $dom = xmldoc(searchitems("03000"));// searchitems returns a XML string > $root = $dom->root(); > /* or $root = domxml_root($dom); */ > print_r($root); > it gives me no problems (php4.1.0 win32 as IS

Re: [PHP-WIN] CGI mode still requires php4isapi.dll?

2002-01-01 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Suggestions, besides the obvious of > completely deleting and reinstalling PWS or Apache? To follow up with the group, I uninstalled PWS and installed Apache 1.3.22 and the problem has disappeared as

Re: [PHP-WIN] Settings per virtual site on IIS ?

2002-01-01 Thread Christoph Grottolo
How about mentioning this in the manual? Would be helpful. Happy new year to all Christoph "Shane Caraveo" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Yes, you can use the registry to do per-directory settings. | | HKEY_LOCAL_MACHINE\SOFTWARE\PHP\Pe

Re: [PHP-WIN] Settings per virtual site on IIS ?

2002-01-01 Thread Olivier Mascia
Hello, Shane Caraveo wrote: SC> Yes, you can use the registry to do per-directory settings. SC> SC> HKEY_LOCAL_MACHINE\SOFTWARE\PHP\Per Directory Values SC> SC> Create keys for each directory, then add the entries. So if you're SC> website is at c:\inetpub\wwwroot, under the above key, add: S