Re: [PHP] [php] passing variables doesn't work

2006-10-25 Thread Max Belushkin
Whatever form information you want to pass has to be part of the form. WILLEMS Wim (BMB) wrote: In the second script, the value of this will be in $_POST["database"]. $wim isn't part of your form - it will /not/ get saved into the next PHP script. You can handle it through input type hid

Re: [PHP] If array()

2006-10-12 Thread Max Belushkin
John Taylor-Johnston wrote: How can I use "if" to see an array contains something? if (sizeof($array)) ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date verification

2006-10-09 Thread Max Belushkin
Ron Piggott (PHP) wrote: Is there a PHP function which verifies a valid date has been entered (-MM-DD)? Ron http://www.php.net/manual/en/function.checkdate.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POPUP window in PHP

2006-10-09 Thread Max Belushkin
Captain wrote: My requirement is, i want to upload one file. i am checking whether it exists or not in Server side. Your script will have to work in stages, generating a page and sending to the browser on each stage: 1. Make a form to upload a file for the user to submit - this is just ordina

Re: [PHP] POPUP window in PHP

2006-10-09 Thread Max Belushkin
Captain wrote: hi, i want to do YES/NO confirmation (like POPUP). If YES, it will upload a file PHP is server-side, not client-side. You can have the confirmation passed as a GET variable in a two-step process for example, i.e. first show a confirmation form if $_GET["confirm"] is not set, el

Re: [PHP] help me plz

2006-01-18 Thread Max Belushkin
If this is on the same web page, your question has nothing to do with PHP - look into, i.e., JavaScript. suresh kumar wrote: hi, i am using 2 combo box one for country & another one for city.when i select country name from combo box their corresponding city names has to be changed in their c

Re: [PHP] Anyone getting bounces from

2005-12-07 Thread Max Belushkin
John Nichel wrote: Jay Blanchard wrote: [EMAIL PROTECTED] ? I am getting failure notices out the wazoo for some very old messages to the general list. I am too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkng if string is a number

2005-11-17 Thread Max Belushkin
the user typing 11l when they mean 111 B) you don't want to accept a value of 0 In principle, that's the only problem with "intval" - a "0" will evaluate as false in a logical statement. Unless one wants to make sure it's a full number from start to end, o

Re: [PHP] php related segmentation fault with Apache 2.0.55

2005-11-17 Thread Max Belushkin
I have had various problems with upgrading one or the other, until I took it as a rule to recompile both upon an upgrade. On the machine I do things completely manually on [which has it's drawbacks], I generally also upgrade to the current version of PHP together with any Apache update, and v

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-17 Thread Max Belushkin
Hi list, Does anyone have any information/updates on this issue perhaps? The thread on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027056.html hasn't had anything new (since Nov 6), and on http://bugs.php.net/bug.php?id=35059 it's been stated as "fixed" ever since (Nov

Re: [PHP] checkng if string is a number

2005-11-17 Thread Max Belushkin
If I misunderstood the intval part of your post, than the [proposed already] is_numeric solutions are the way to go. is_numeric will, however, unlike the conversion functions, return false if there's anything but a number in the string, so, i.e., is_numeric ("10a1") will return false, but intv

Re: [PHP] checkng if string is a number

2005-11-17 Thread Max Belushkin
Which version of PHP are you using? On php 4.4.0 (SuSE 10.0 default RPM, not custom build, so perhaps I'm missing some extras you're using?) the following script works fine: I get no boo. intval doesn't convert my "ten" to a number. Moreover, the output of the following: produces an e

Re: [PHP] mod_rewrite, apache2, php5RC1 and osx bsd

2005-11-10 Thread Max Belushkin
I've been having a problem with PHP 4.4.1 and mod_rewrite, which, as Geert Booster kindly pointed out, has been reported on http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027038.html, which also has a link to the PHP bug report in the thread. Not sure if this is relevant to PHP5

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-09 Thread Max Belushkin
> Maybe the following [1] thread on the FreeBSD ports lists does help you. > I (and the other sysops/users of this machine) are waiting for a patch > for this problem > You're not the only one :-) > [1] > http://lists.freebsd.org/pipermail/freebsd-ports/2005-November/027038.html Oh, thanks a lot!

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
> I cant see this being an issue with PHP because it would do that for > every function, have you tried using a different function, something > simple say, I've been trying it in various ways - for the simplest functions, it takes hundreds of request to appear, for the more involved things whic

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
> It would also be helpful to see the mquery() script - maybe someone else > may know more then! Well, mquery is simply "mysql_query($query);", in the stipped-down version I've had to resort to for testing. Basically, does nothing, since even mysql_connect that USED to be at the start of func.

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
On Saturday 05 November 2005 17:49, James Benson wrote: > > I've had a different set of scripts employing a different "func.php". > > However, in both of those, mquery() is defined. But > > they do *not* include anything else, and the > So you defined mquery() in both files and one include's or re

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-05 Thread Max Belushkin
> Try using require_once or include_once Well, here's all the fun starting. This is relatively long, but please bear with me. First of all, yes, I did include_once, require_once, even resorted to "if (! $inc_done) include_once("func.php")", and setting $inc_done in func.php. No-go, was still gett

[PHP] PHP 4.4.1 on Apache 2.0.x issue

2005-11-04 Thread Max Belushkin
Hi list, after upgrading to PHP 4.4.1, I'm having the following problem: Apache is running in prefork mode. index.php includes func.php, which defines some functions and connects to MySQL. For a while (1-2 requests) everything runs ok, except mysql sockets keep stacking up. And then - wham

[PHP] proc_open, fwrite, 16384 bytes magic

2005-11-01 Thread Max Belushkin
Hi everyone, I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0, FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a buffer are accepted perfectly, which makes it an exact 16 KB. If a buffer is larger, the rest is discarded. No errors appear anywhere - and