Reply to Re: [PHP] Some Question

Your name:

Reply:


Posted by Khorosh Irani on 10/10/05 11:14

Hello
1.I dont have this mean I want this:
for example I write this function :myfunction ($para1, $para2,
$para3=123) .And I want to make $para1 optional that If I didnt write
it (for example:myfunction(1,123) )
It does not make problem
2.I want to see all of header not HTTP_USER_AGENT?
Thanks
On 4/26/05, john@johnallsopp.co.uk <john@johnallsopp.co.uk> wrote:
> I'm no authority, but I'm going to have a punt at this one
>
> > 1.How I can make a optional argument in function that if I dont
> > mention it in my code does not make problem?
>
> You can pass fewer arguments than specified in a function, so just
> make the optional ones to the right of the required ones. Also if you,
> say myfunction ($para1, $para2, $para3=123) it makes $para3 hold a
> default value if nothing's passed
>
> > 2.How I can see apache or IIS headers?
>
> Look for $HTTP_ followed by the header name in upper case and with any
> -s replaced by _, eg. HTTP_USER_AGENT
>
> hth
> J
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация