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
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]
> 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
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
> 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 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
> 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
> 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
> 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
> 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 () {
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]
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
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
> 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
> 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
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
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
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
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
> 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
-
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]
21 matches
Mail list logo