[PHP] need CORBA/satellite examples

2001-05-03 Thread Peter Dudley
I have been searching for some time now for examples of code that uses = satellite, but the best I can find is the README and the entries in the = PHP manual. Can anyone point me to code that uses satellite that I can = learn from (or if you have code you don't want to post, feel free to = send d

Re: [PHP] PHP & Java ?

2001-05-04 Thread Peter Dudley
If it's javascript, then be careful about echoing PHP variables into Javascript strings. If you have something like (in Javascript) var myString = ''; and $phpString contains any apostrophes, then the javascript will break because Javascript thinks the string has ended prematurely. E.g, if $ph

Re: [PHP] References & Object XML-Parser

2001-05-16 Thread Peter Dudley
I am new to PHP's OO (though not to OO or to PHP), but here's a fix and my assessment of why it works: In your tag functions, you need to change the $this reference to instead refer to your $xml_parser object, thus: function tag_open($parser,$tag,$attributes) { global $xml_parser;

Re: [PHP] Why is this not working

2001-05-17 Thread Peter Dudley
can you write directly to the password file using crypt() instead of trying to run the htpasswd program? I think I used to do this in Perl, but it's been a LONG time since I tried it. I think it worked, though. Pete. PS: I'm also pretty sure that if you can't write direclty to the .htpasswd fi

Re: [PHP] PHP & XML Parsing

2001-05-18 Thread Peter Dudley
The problem is in your link URL, where you pass CGI parameters. When XML sees the & character, it assumes it's a special character thing such as & or ", so it's expecting a semicolon. http://cupe.ca/news/cupenews/showitem.asp?ID=2823&cl=1 Just yesterday I discovered a program called XML Spy whi

Re: [PHP] Class var not retaining values

2001-05-21 Thread Peter Dudley
Could it be that you need your for loop to iterate <= instead of < ? As it is, I don't think it will ever show anything. After all, you are setting $index to 0 at the beginning of the function every time you call it. My guess is you actually want to keep track of $index as an instance variable

Re: [PHP] Passing variables

2001-05-23 Thread Peter Dudley
You can "pass" variables through the session mechanism. http://www.php.net/manual/en/ref.session.php This will require some additional work to get your sessions working properly, but you probably want to do that anyway at some point. I have found the session mechanism to be extremely useful so f

Re: [PHP] PHP & XML Parsing

2001-05-23 Thread Peter Dudley
> Interesting.. So to be consistent with proper XML formatting, > should the server hosting the XML file convert the & into > & ? It depends on the situation, I believe. The server that sends you XML should indeed provide you well-formed XML, which it's not doing. Probably what should happen i

Re: [PHP] Interesting Problem (Sessions and Cookies)

2001-05-24 Thread Peter Dudley
You can indeed do this in javascript. You need to put a FORM on the page in the other frame and then access the data elements in that form with the syntax parent.frame[x].formname.elementname.value or something along those lines. This gets pretty ugly pretty quickly, IMO. Also, I think you coul

Re: [PHP] Form security

2001-05-24 Thread Peter Dudley
Are you using sessions? You can register a tracking variable on the form page and then check that variable on the processing page. If the posted data comes from any page other than the one that you want it to, the variable will not be set. Not 100% sure, but I think this covers what you've aske

Re: [PHP] General Coding Question

2001-06-20 Thread Peter Dudley
You don't use a lot of javascript, do you? ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 9gr5f9$v2$[EMAIL PROTECTED]">news:9gr5f9$v2$[EMAIL PROTECTED]... > im here to start a flamewar. > > dont use " then. why not use ' ? > > echo " > >" > > echo " > >" > I like the second

Re: [PHP] session question

2001-06-21 Thread Peter Dudley
There is a useful article here: http://phpbuilder.com/columns/ying2602.php3?page=1 As to "up to a million users" logged in at once... don't you wantto have multiple redundant web servers running under a load balancer? If the rest of your system can handle that many concurrent users, then I d

Re: [PHP] Auto submit form, How?

2001-06-30 Thread Peter Dudley
http://www.devguru.com/Technologies/ecmascript/quickref/select.html Javascript. Use onBlur or onChange and call document.formname.submit(). Pete. "Fates" <[EMAIL PROTECTED]> wrote in message 20010629125135.ELXV13240.femail10.sdc1.sfba.home.com@localhost">news:20010629125135.ELXV13240.femail10.