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

[PHP] Broken ip2long and long2ip?

2001-05-20 Thread Sean Cazzell
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] 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 more

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=103single=1 Regards, Sean -- PHP General Mailing List

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

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: ?php print Referer: $HTTP_REFERER\n; ? Then create

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 (restoring

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

2001-02-04 Thread Sean Cazzell
Alain, When PHP parses a file, it treats the stuff that's not in ?php? 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;

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

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

Re: [PHP] E-mail valid

2001-02-01 Thread Sean Cazzell
t 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: [EMAIL PR

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:

Re: [PHP] [php] - alphabetizing

2001-01-21 Thread Sean Cazzell
($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 PROTECTED] For additio

Re: [PHP] XOR data encryption

2001-01-20 Thread Sean Cazzell
. 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] 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 --