[PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Dallas Thunder
Consider the following form in a HTML file:

...




...

Now I'm posting this form into a PHP script.  The problem is I can't change
that HTML file.  Which means I can't modify the code above into PHP prefered
style:



...

So, how can I get the correct values of the checkbox?  $_REQUEST['box'] is
not an array and only contains the last value.  Thanks!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How do I customize the User-Agent when opening a remote file?

2002-08-15 Thread Dallas Thunder

How do I customize the User-Agent when using fopen() or file() to open a
remote file?

PHP use "PHP/4.2.3-dev" on my system as the User-Agent when I using file()
function to retrive a remote file.  Howerver, some servers will refuse to
serve browsers other than Mozilla compatible and return a 403 code.  Is
there any method to let me define User-Agent for my own?  Thanks!







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: known bugs in current CHM, contribution appreciated!

2002-08-26 Thread Dallas Thunder

I'm using IE6 under WinXP, I've encountered all the three known bugs in
Sample7.  The third one is really unacceptable.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: CHM 8th sample is out

2002-08-28 Thread Dallas Thunder

Great!  The sample code in the manual looks much better.
But I feel the function definition is not so visible.  I almost didn't find
it when I first look at the manual.  I think add a blank line before and
after function definition or use a special color could be better.

"Gabor Hojtsy" <[EMAIL PROTECTED]> wrote in message
010401c24e7f$1e1745d0$0f0a@developer2">news:010401c24e7f$1e1745d0$0f0a@developer2...
> Hi!
>
> The 8th sample of the New CHM Edition of the PHP Manual is out now.
> It fixes the *.js selection problem in the preferences application,
> and many bugs experienced by IE6 users:
>
> - example ugliness is away
> - horizontal scroll problems are away
> - context menu placement is fixed
>
> All these errors occured because the modified standard compliant
> object model of IE6.
>
> In addition to these bug fixes two small new features were added. Now
> you can access both of the context menus (one with right click, the
> other with CTRL+right click), so you only need to select your
> prefered menu. The custom context menu is also placed inside the window
> if you right click at the edge (much like the system context menu),
> and is not forced to the right-bottom direction of the place where
> you click.
>
> The "Friendly HTTP error message" problem does not seem to be
> solveable, so I included a reg file in the distribution to ease
> the fix for IE6 users (please also read details on the CHM's page).
>
> http://weblabor.hu/php-doc-chm/
>
> The question is what new bugs I have added with these fixes? ;)
>
> Goba
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Session 4.2.2

2002-08-29 Thread Dallas Thunder

If you encounter any problem with session variables, it may not caused by
session.  An important change between 4.2.0 or above and versions below is
that the 'register_globals' directive will be set Off by default in
'php.ini' file.  So you can't access session variables (e.g. $var) directly,
instead of $_SESSION["var"].  Also for HTTP get, post, cookie variables.
Hope it helps.

"Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I would like to know if there are any changes on session of PHP between
the
> version 4.1.0 and 4.2.2?
>
> Thanks.
>
> Breno Cardoso Perucchi
> [EMAIL PROTECTED]
> Consultor - Omega Tecnologia
> http://www.omegatec.net/
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Reading from a file using fgets()

2002-08-29 Thread Dallas Thunder

Well, this is exactly what function file() does.

"David Christensen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> When PHP reads from a file using fgets(), does it do it in order?
> Meaning, when reading STDIN from a file, does it read line1, then line2,
> line3, and so on until EOF?
>
> My purpose is to read each line of file and push it into an array.
>
> Thanks for your help,
>
> Dave
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Session 4.2.2

2002-08-29 Thread Dallas Thunder

Just edit your 'php.ini' file, if 'register_globals = Off', then set it to
On.  It will solve a lot of problems if you are learning PHP from examples.

"Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> Do you have an example?
>
> Thanks.
>
> "Breno Cardoso Perucchi" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I would like to know if there are any changes on session of PHP between
> the
> > version 4.1.0 and 4.2.2?
> >
> > Thanks.
> >
> > Breno Cardoso Perucchi
> > [EMAIL PROTECTED]
> > Consultor - Omega Tecnologia
> > http://www.omegatec.net/
> >
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php