Re: simple question, but i dunn the answer..
| From: | Cynic | Date: | Thu, 04 Jan 2001 10:55:07 +0000 |
| Subject: | Re: simple question, but i dunn the answer.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32623@lists.php.net to get a copy of this message | ||
Jeremy, there's an inaccuracy in each of your posts:
- variable name cannot start with a digit - $14 will trigger
a parse error
- don't remember when it happened, but $argv was changed to
behave the same as in C, and $argv[0] contains the name of
the script in recent versions of PHP.
At 01:32 4.1. 2001, jeremy brand wrote the following:
--------------------------------------------------------------
>After thinking about what you are probably wanting to accomplish..
>
>This is probably what you want...
>
>$argv[0]
>
>In your example, $argv[0] will contain 14.
>
>Jeremy
>
>Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
>http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for
>more
>Get your own Free, Private email at http://www.smackdown.com/
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "<body>" -- Quoted from Yahoo! homepage,
> http://www.yahoo.com
>
>On Wed, 3 Jan 2001, jeremy brand wrote:
>
>> Date: Wed, 3 Jan 2001 16:29:04 -0800 (PST)
>> From: jeremy brand <jeremy@nirvani.net>
>> To: PeterOblivion@aol.com
>> Cc: php-general@lists.php.net
>> Subject: Re: [PHP] simple question, but i dunn the answer..
>>
>> you can just check:
>>
>> if (isset($14))
>> // then ?14 was there
>> else
>> // it wasn't.
>>
>> Jeremy
>>
>> Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
>> http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
>> for more
>> Get your own Free, Private email at
>> http://www.smackdown.com/
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> "<body>" -- Quoted from Yahoo! homepage,
>> http://www.yahoo.com
>>
>> On Wed, 3 Jan 2001 PeterOblivion@aol.com wrote:
>>
>> > Date: Wed, 3 Jan 2001 19:25:53 EST
>> > From: PeterOblivion@aol.com
>> > To: php-general@lists.php.net
>> > Subject: [PHP] simple question, but i dunn the answer..
>> >
>> > I see some sites that pass variables like..
>> > script.php?14
>> > instead of
>> > script.php?id=14
>> > anyone know how to do this?
>> >
>> >
>> > Thanks
>> > - Peter
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> > For additional commands, e-mail: php-general-help@lists.php.net
>> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>> >
>> >
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-general-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>>
>>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz