I can't get my head around dealing with all the magic that PHP does to my
data. I'm trying to do the following (in C++):
char a = 'a';
a = a + 13;
The resulting value of a is 'n'. If I do the equivalent in PHP ($a = "a";
$a += 13;) the resulting value is 13. I tried (int)$a += 13;, but t
Well, here's your chance to criticize a newbie.
As an exercise in learning PHP I have written a rot-13 script. It is at
http://hutnick.com/rot13/index.html?show_content=1 .
I'm soliciting comments on style, technique, etc. Be brutal, but don't
get your feelings hurt if I don't take your comment
Leon Mergen said:
> Now, first of all, why did you this:
>
> "); ?>
>
> and not just:
>
>
Because short tags are evil ;-) My provider has short tags enabled, so
there is no getting around this bit of ugliness.
> only that I personally prefer to call a print() statement for
> everything
Do you
Larry Brown said:
> equates an object to a function
You'd be better off trying to equate an object to a data type.
-Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris Boget said:
>> > equates an object to a function
>> You'd be better off trying to equate an object to a data type.
>
> Why is that? Please explain?
> I do not mean to sound trite. I do not know and am very curious
> to hear more.
Consider two approaches to extending your procedural program
Rick Emery said:
> if ( $_POST['passwd'] != $db['password'] )
> {header("Location: loginfailed.html"); exit;
> }
> - Original Message -
> From: "Shams" <[EMAIL PROTECTED]>
> To: <>
> Sent: Tuesday, January 21, 2003 3:48 AM
> Subject: [PHP] $header = "Location:" being ignored!
>
John Wells said:
> Can I safely use GPL'd libraries, classes, etc. (i.e. PearDB) and
> resources that fall under other open source licenses when developing the
> app and let them redistribute accordingly, or would that be a violation?
I don't know anything about the licensing terms of PearDB.
Re
Chris Hayes said:
> The GPL can be a headache to figure out when it gets to complicated
> situations.
> My uneducated working conclusion is that the GPL prevents you from
> selling GPL-ed code as is, or improved GPL-ed code. Selling GPL-ed
> code, even if you improved it, is dead wrong. Even if
John Wells said:
>> However - if you want to sell software under a closed licence you will
>> need to be carefull to avoid 'linking' with gpl'd code.
>> The problem is that 'linking' as used in the gpl seems to refer to C
>> programming - and is an unclear term when refering to php.
I know I read
John Wells said:
> Peter Hutnick said:
>>> Yeah...that's really what I'm wondering. If I have my own code, but
>>> make function calls and the like to script libraries licensed under
>>> the GPL, does it mean my code will have to be GPL'd as well?
Scott Fletcher said:
> Darn!! There's no way to undo it. So, I can't use this method of
> encryption for my other project. In that case, I'll live.
Lemme guess? Was it going to be a revolutionary compression program that
can compress any file to 128 bits?
In all seriousness, the output o
http://www.php.net/manual/en/function.similar-text.php states that the third
argument should be a reference. PHP 4.0.6 complains "Warning: Call-time
pass-by-reference has been deprecated - argument passed by value;" etc.
But that percentage (double) is only available this way . . .
Where am I g
> On Thu, Sep 06, 2001 at 11:04:09PM -0500, Peter Hutnick wrote:
>> http://www.php.net/manual/en/function.similar-text.php states that the
>> third argument should be a reference. PHP 4.0.6 complains "Warning:
>> Call-time pass-by-reference has been deprecated - argumen
13 matches
Mail list logo