Re: [PHP] Help with this-> pointers

2001-07-24 Thread Sean Cazzell
The $foo->bar() syntax is actually object references in PHP, not pointers. See the docs in the php manual regarding objects in PHP. Kind Regards, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

[PHP] Broken ip2long and long2ip?

2001-05-19 Thread Sean Cazzell
ciate it if a someone can verify this before I submit it as a bug. Regards, Sean Cazzell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Multiple Selections?

2001-05-13 Thread Sean Cazzell
> I have a Multiple Selection HTML Field --- the user can select any number of > items by holding down the CTRL key. When I submit my form to my (say) > TestProg.php -- in the Hidden Input Field I only see the value for the > *last* item I selected... how can I see all the items I selected? If y

Re: [PHP] PHP's OO is bad?

2001-05-12 Thread Sean Cazzell
His series of articles ("top php programming mistakes") is great, and I've heard good things about his "PHP Cookbook" but Hughes is way off here. There is some additional overhead with OO code but there is *very* little difference in speed (less than 5% in synthetic benchmarks, and much less in m

Re: [PHP] verify phone number

2001-05-11 Thread Sean Cazzell
> I am looking for code to verify a phone number has been entered correctly on > a form field. Requirements would include the area code: xxx-xxx-. You should use a regex for this. Something like... if (ereg ("[0-9]{3}-[0-9]{3}-[0-9]{4}", $number)) { print "good\n"; } else {

Re: [PHP] Hidden Input and Quotes?

2001-05-11 Thread Sean Cazzell
> So my question is, should I (or, really, can I) encode it? My thinking is I > want to encode it with the htmlspecialchars() function... however, > eventually, all the data within the Hidden Input Boxes will be stored into > my mySQL database, so I'll want to decode it before I send it (restorin

Re: [PHP] protecting video files

2001-05-11 Thread Sean Cazzell
> which works fine until I add this at the top > > if($HTTP_REFERER != "http://www.hardcorehosting.com/video/test.html";) > { > exit(); > } > Check to make sure $HTTP_REFERER is being set. Just create another script that has something like: Then create a link to this new script from the te

Re: [PHP] Encode/Decode Problem

2001-05-11 Thread Sean Cazzell
> I have a " in the middle of the encoded string. How can I solve this > problem? You need to use addslashes(). http://www.zend.com/manual/function.addslashes.php Regards, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP] Sending attachments via mail()

2001-05-11 Thread Sean Cazzell
> I have some jpgs I'd like to send as attachments with automatically > generated (via PHP) e-mails. Does anyone have any suggestions as to how > I might go about this? Check this out: http://www.zend.com/codex.php?id=103&single=1 Regards, Sean -- PHP General Mailing List (http://www.php.n

Re: [PHP] help with classes

2001-02-12 Thread Sean Cazzell
> So how does one correctly assign a variable to a variable inside a class withot >doing something like: > > var $bar = ''; > $this->bar = $foo; > That's how you have to do it. class MyClass { var $bar; // This is the class's constructor sub MyClass () {

Re: [PHP] PHP, MySQL and XML

2001-02-05 Thread Sean Cazzell
ok at these to get an idea of how to use the XML module to parse RDF. Regards, Sean Cazzell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] upload

2001-02-04 Thread Sean Cazzell
Hmm...well if you mean "can I upload a file from the web browser to the web server", the answer is yes. See the php manual on zend.com. http://www.zend.com/manual/ Regards, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] Learning MySQL

2001-02-04 Thread Sean Cazzell
You need to go get yourself a copy of the MySQL book from New Riders. Stay away from the O'Reilly one, it sucks. Regards, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list a

Re: [PHP] I should apologize

2001-02-04 Thread Sean Cazzell
> I don't mean to bash php in any way (as in the Ruby plugs in my last > post). I use it because it has so many advantages over other more > system-oriented not web-oriented languages for this type of work. It's > fantastic. I don't think anyone will take offense to your mentioning the adva

Re: [PHP] Apache and PHP

2001-02-04 Thread Sean Cazzell
> I'm not even sure that the shell escape is even used in win32 perl - I think > it's done via a regular file association. So maybe he just needs to associate .php files with php.exe? -Sean (who hasn't ever used php on windows) -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] HTTP compression

2001-02-04 Thread Sean Cazzell
Alain, When PHP parses a file, it treats the stuff that's not in blocks as though each line were a print or echo statement. So your whole file will be compressed and sent to the browser. Regards, Sean On Sun, 4 Feb 2001, Alain Fontaine wrote: > Rasmus, > > Thanks for the clarification; it

Re: [PHP] E-mail valid

2001-02-01 Thread Sean Cazzell
valid. Even so, it is easy to create a throw-away account at hotmail or another free email provider. Anyway, there is a class on phpclasses.upperdesign.com that does a good job of checking an address. Regards, Sean Cazzell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] [php] - alphabetizing

2001-01-21 Thread Sean Cazzell
each ($people_strings)) { print "$key -> $value\n"; } That should print out: andy -> foo joe -> bar The ksort is the magic part, it sorts arrays by their keys. Regards, Sean Cazzell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] MySQL replication

2001-01-21 Thread Sean Cazzell
Andi, No personal experience (yet), but there's a good article on phpbuilder that you might want to take a look at if you haven't already: http://www.phpbuilder.com/columns/tanoviceanu2912.php3 Regards, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] " " charactor problem

2001-01-20 Thread Sean Cazzell
> I grab this line and try to make it an array like this: print "line: $thelinefromfile\n"; //Check the line > $var1 = trim($thelinefromfile); > $var2 = split(" ", $thelinefromfile); > $count = count($var2); Are you sure $thelinefromfile is actually being set correctly? Regards, Sean -

Re: [PHP] XOR data encryption

2001-01-20 Thread Sean Cazzell
abase. Regards, Sean Cazzell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]