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
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]
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
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
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
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
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
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 {
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 () {
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]
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;
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
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
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
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:
($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
.
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]
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
--
18 matches
Mail list logo