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,
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
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
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
Whatever form information you want to pass has to be part of the form.
WILLEMS Wim (BMB) wrote:
select name=database size=1
In the second script, the value of this will be in $_POST[database].
?php
$wim = 5; /* this is added to test the passing of the variables -
doesn't work either */
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
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 -
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 getting
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 require's
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.php
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 which
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! I'll
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
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:
?php
if (10==intval(ten)) echo boo\n; else echo no boo\n;
?
I get no boo. intval doesn't convert my ten to a
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
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
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
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, of course...
Max.
On Thursday 17 November 2005 23:05, you wrote:
On Thu, Nov 17, 2005 at 08:47:30PM +0100, Max Belushkin wrote
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
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
20 matches
Mail list logo