php-windows Digest 10 Oct 2002 03:47:18 -0000 Issue 1380
Topics (messages 16288 through 16305):
php/mySQL ... using different port
16288 by: Wolfgang Schneider
16296 by: Rich Gray
confirm box
16289 by: Davy Obdam
16290 by: Craig Donnelly
Re: [PHP] confirm box
16291 by: Archibald Zimonyi
16293 by: Davy Obdam
Re: problem passing variables...
16292 by: db
16294 by: Ignatius Reilly
16295 by: Rich Gray
16297 by: db
dringende vraag over uploadscript!!
16298 by: M.B.
verisign payflow pro
16299 by: Blue Presley
16300 by: Mikey
works on one server and not another
16301 by: Tim Blackwell
multiple include_paths
16302 by: Asendorf, John
Blank page after PHP ISAPI installation
16303 by: E. Kwong
passing variables part 2
16304 by: db
16305 by: Dash McElroy
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hello,
trying to connect to a mySQL database that runs on a 2nd mySQL server
and not the standard one, the 2nd mySQL has been assigned a different
port number ....
How do I change the connect to mySQL lines so the php file is trying
to open a connection to the mySQL server on the alternate port number
?
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
http://classes.bibelcenter.de ... online classes
http://www.bibelcenter.de ... biblical studies
www.christianbook.com/Christian/Books/home?event=AFF&p=1009812 ... Christian bookstore
http://www.christian-ebooks.de ... Christian eBooks
--- End Message ---
--- Begin Message ---
Try ...
mysql_connect('server:9999','user','password');
Where '9999' is the alternate port number.
HTH
Rich
-----Original Message-----
From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2002 15:34
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php/mySQL ... using different port
Hello,
trying to connect to a mySQL database that runs on a 2nd mySQL server
and not the standard one, the 2nd mySQL has been assigned a different
port number ....
How do I change the connect to mySQL lines so the php file is trying
to open a connection to the mySQL server on the alternate port number
?
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
http://classes.bibelcenter.de ... online classes
http://www.bibelcenter.de ... biblical studies
www.christianbook.com/Christian/Books/home?event=AFF&p=1009812 ... Christian
bookstore
http://www.christian-ebooks.de ... Christian eBooks
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi people,
Maybe a bit off-topic, but i thought lets ask anyway. I have a guestbook
admin page were i can delete multiple items from the database using
checkboxes. So when i click on the Submit button i would like a
javascript confirm box coming up. I have done that, but it deletes the
item(s) anyway, also if i click on cancel.
This is my javascript code in the head of the document:
<script language="JavaScript" type="text/javascript">
<!--
function ConfirmDelete()
{
input_box=confirm("Are you sure that you want to delete the
selected items?");
if (input_box!=true)
{
return false;
}
else
{
return true;
}
}
//-->
</script>
This is what i use in my PHP code:
<?php
//Guestbook admin page
echo "
<form name=\"admin\" onSubmit=\"ConfirmDelete();\">";
//The rest of my form
echo "
<input type=\"submit\" name=\"submit\" value=\"delete\">
</form>";
?>
<?php
//Delete items from guestbook
if(isSet($submit))
{
//Delete items
}
?>
Any help is appreciated, thanks for your time,
Best regards,
Davy Obdam,
mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
On your submit button put the following:
<input type="submit" name="submit" onClick="return confirm('Are you sure
you want to delete??')">
Hope that helps,
Craig
"Davy Obdam" <[EMAIL PROTECTED]> wrote in message
001a01c26f9e$a1c78a80$9600000a@davy">news:001a01c26f9e$a1c78a80$9600000a@davy...
> Hi people,
>
> Maybe a bit off-topic, but i thought lets ask anyway. I have a guestbook
> admin page were i can delete multiple items from the database using
> checkboxes. So when i click on the Submit button i would like a
> javascript confirm box coming up. I have done that, but it deletes the
> item(s) anyway, also if i click on cancel.
>
> This is my javascript code in the head of the document:
>
> <script language="JavaScript" type="text/javascript">
> <!--
> function ConfirmDelete()
> {
> input_box=confirm("Are you sure that you want to delete the
> selected items?");
> if (input_box!=true)
> {
> return false;
> }
> else
> {
> return true;
> }
> }
> //-->
> </script>
>
> This is what i use in my PHP code:
>
> <?php
> //Guestbook admin page
> echo "
> <form name=\"admin\" onSubmit=\"ConfirmDelete();\">";
> //The rest of my form
> echo "
> <input type=\"submit\" name=\"submit\" value=\"delete\">
> </form>";
> ?>
>
> <?php
> //Delete items from guestbook
> if(isSet($submit))
> {
> //Delete items
> }
> ?>
>
> Any help is appreciated, thanks for your time,
>
> Best regards,
>
> Davy Obdam,
> mailto:[EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Hi there,
> echo "
> <form name=\"admin\" onSubmit=\"ConfirmDelete();\">";
> //The rest of my form
>
I am not exactly sure about this but I think you have to define the
onSubmit with a return, otherwise it will always fall through, onSubmit
only fails the submission if it returns a false value, otherwise it
will always continue.
Add the following and test.
<form name=\"admin\" onSubmit=\"return ConfirmDelete();\">";
Archie
---
Archibald Zimonyi
[EMAIL PROTECTED]
"There is no logic like no logic"
--- End Message ---
--- Begin Message ---
Hi Archie,
Thanks it works. Great i knew i was forgetting something.
Best regards,
Davy Obdam,
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: Archibald Zimonyi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 4:44 PM
To: Davy Obdam
Cc: PHP Mailinglist; PHP-WIN Mailinglist
Subject: [PHP-WIN] Re: [PHP] confirm box
Hi there,
> echo "
> <form name=\"admin\" onSubmit=\"ConfirmDelete();\">";
> //The rest of my form
>
I am not exactly sure about this but I think you have to define the
onSubmit with a return, otherwise it will always fall through, onSubmit
only fails the submission if it returns a false value, otherwise it will
always continue.
Add the following and test.
<form name=\"admin\" onSubmit=\"return ConfirmDelete();\">";
Archie
---
Archibald Zimonyi
[EMAIL PROTECTED]
"There is no logic like no logic"
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
================================================================
Deze e-mail is door E-mail VirusScanner van Planet Internet
gecontroleerd op virussen. Op http://www.planet.nl/evs staat een
verwijzing naar de actuele lijst waar op wordt gecontroleerd.
--- End Message ---
--- Begin Message ---
at first, it was as though no variables were passed so the output looked
like:
1
Press to continue
pressing to continue added '?i=2' to the address, but the output remained
the same.
then, as per Rich Gray's suggestion, i capitalized $_GET (from '$_get'),
which had weirder results. $i is no longer echo'd after clicking the link.
also, the link, which originally tries to pass i=2, passes i=1 and doesn't
increase after clicking it.
odd, huh?
"H Marc Bower" <[EMAIL PROTECTED]> wrote in message
000001c26f9e$3b6fe520$0b00a8c0@mbower">news:000001c26f9e$3b6fe520$0b00a8c0@mbower...
> What output *are* you getting?
>
> (V)
>
> "db" <[EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
> > i've seen a lot of posts about this, but none helped. i've broken the
> script
> > down to its simplest components and still no luck.
> >
> > <?php
> >
> > IF(!isset($_get['i'])) {
> >
> > $i = 1;
> >
> > }
> >
> > echo $i."<BR>";
> >
> > $i++;
> >
> > echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
> >
> > ?>
> >
> > i've tried using empty(), $_post['i'] and $i, but none will work. i've
> been
> > trying to pass the variable back to the page itself so that $i keeps
> > increasing by 1 with each click. not that there's a use for this other
> than
> > my figuring out how to use it.
> >
> > any thoughts?
> >
> > btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a
> Win2kPro
> > (SP3) machine.
> >
> > thx!
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
--- End Message ---
--- Begin Message ---
I remember having met interpolation trouble with such code bits as
...passtest.php?i=".$i."\"/...
in echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
What I do now is write it this way:
echo "<a href='passtest.php?i={$i}'>Press to continue</a>";
And everything works fine.
This has the additional advantage of clarity.
BTW, you have an erroneous slash at the end of your opening <A>
HTH
Ignatius
____________________________________________
"db" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i've seen a lot of posts about this, but none helped. i've broken the
script
> down to its simplest components and still no luck.
>
> <?php
>
> IF(!isset($_get['i'])) {
>
> $i = 1;
>
> }
>
> echo $i."<BR>";
>
> $i++;
>
> echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
>
> ?>
>
> i've tried using empty(), $_post['i'] and $i, but none will work. i've
been
> trying to pass the variable back to the page itself so that $i keeps
> increasing by 1 with each click. not that there's a use for this other
than
> my figuring out how to use it.
>
> any thoughts?
>
> btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a
Win2kPro
> (SP3) machine.
>
> thx!
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
So you're doing this right?
<?php
if (!isset($_GET['i'])) {
$i = 1;
}
else $i = $_GET['i'];
echo $i."<BR>";
$i++;
echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
?>
-----Original Message-----
From: db [mailto:[EMAIL PROTECTED]]
Sent: 09 October 2002 15:58
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] problem passing variables...
at first, it was as though no variables were passed so the output looked
like:
1
Press to continue
pressing to continue added '?i=2' to the address, but the output remained
the same.
then, as per Rich Gray's suggestion, i capitalized $_GET (from '$_get'),
which had weirder results. $i is no longer echo'd after clicking the link.
also, the link, which originally tries to pass i=2, passes i=1 and doesn't
increase after clicking it.
odd, huh?
"H Marc Bower" <[EMAIL PROTECTED]> wrote in message
000001c26f9e$3b6fe520$0b00a8c0@mbower">news:000001c26f9e$3b6fe520$0b00a8c0@mbower...
> What output *are* you getting?
>
> (V)
>
> "db" <[EMAIL PROTECTED]> wrote in message
> news:<[EMAIL PROTECTED]>...
> > i've seen a lot of posts about this, but none helped. i've broken the
> script
> > down to its simplest components and still no luck.
> >
> > <?php
> >
> > IF(!isset($_get['i'])) {
> >
> > $i = 1;
> >
> > }
> >
> > echo $i."<BR>";
> >
> > $i++;
> >
> > echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
> >
> > ?>
> >
> > i've tried using empty(), $_post['i'] and $i, but none will work. i've
> been
> > trying to pass the variable back to the page itself so that $i keeps
> > increasing by 1 with each click. not that there's a use for this other
> than
> > my figuring out how to use it.
> >
> > any thoughts?
> >
> > btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a
> Win2kPro
> > (SP3) machine.
> >
> > thx!
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
that was it! thanks! i needed the 'else' statement in there. odd though, i
assumed it would default to that, but oh well. thanks a lot!
by the way, Ignatius, i tried your way with the same result. i still need
that 'else'.
thanks again guys!
"Rich Gray" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> So you're doing this right?
>
> <?php
>
> if (!isset($_GET['i'])) {
> $i = 1;
> }
> else $i = $_GET['i'];
>
> echo $i."<BR>";
>
> $i++;
>
> echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
> ?>
> -----Original Message-----
> From: db [mailto:[EMAIL PROTECTED]]
> Sent: 09 October 2002 15:58
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] problem passing variables...
>
>
> at first, it was as though no variables were passed so the output looked
> like:
>
> 1
> Press to continue
>
> pressing to continue added '?i=2' to the address, but the output remained
> the same.
>
> then, as per Rich Gray's suggestion, i capitalized $_GET (from '$_get'),
> which had weirder results. $i is no longer echo'd after clicking the
link.
> also, the link, which originally tries to pass i=2, passes i=1 and doesn't
> increase after clicking it.
>
> odd, huh?
>
> "H Marc Bower" <[EMAIL PROTECTED]> wrote in message
> 000001c26f9e$3b6fe520$0b00a8c0@mbower">news:000001c26f9e$3b6fe520$0b00a8c0@mbower...
> > What output *are* you getting?
> >
> > (V)
> >
> > "db" <[EMAIL PROTECTED]> wrote in message
> > news:<[EMAIL PROTECTED]>...
> > > i've seen a lot of posts about this, but none helped. i've broken the
> > script
> > > down to its simplest components and still no luck.
> > >
> > > <?php
> > >
> > > IF(!isset($_get['i'])) {
> > >
> > > $i = 1;
> > >
> > > }
> > >
> > > echo $i."<BR>";
> > >
> > > $i++;
> > >
> > > echo "<a href=\"passtest.php?i=".$i."\"/>Press to continue</a>";
> > >
> > > ?>
> > >
> > > i've tried using empty(), $_post['i'] and $i, but none will work.
i've
> > been
> > > trying to pass the variable back to the page itself so that $i keeps
> > > increasing by 1 with each click. not that there's a use for this
other
> > than
> > > my figuring out how to use it.
> > >
> > > any thoughts?
> > >
> > > btw, i'm running Apache v1.3.26 w/ php v4.2.3 / MySQL v3.23.52 on a
> > Win2kPro
> > > (SP3) machine.
> > >
> > > thx!
> >
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
--- End Message ---
--- Begin Message ---
Ik heb een script en dit moet werken om mee te uploaden.
Dat doet het ook alleen ik heb 1 probleem:
Wanneer ik ongeveer een bestand heb van 1MB, dan wordt ik na ingeveer 20
sec. doorgestuurt naar de 404 pagina waar staat dat de pagina niet gevonden
is etc...
Weet iemand hoe (zonder dat je de timeout zelf kan instellen op de server
zelf) je dit probleem kan oplossen.
Dan moet er ook gedacht worden aan 10 MB als maximum wat er geupload wordt.
PS. voor kleinere bestanden dan MB doet ie het dus wel volledig!!
M.B.
--- End Message ---
--- Begin Message ---
Hello, I have the newest build of PHP for windows and want to implement the
payflow pro functions/extension. However, I cannot find reference to the
actual extension (.dll) in the php.ini. How do I access these if I'm on a
windows system? i don't have the option to build from source code (or do i?).
blue
--- End Message ---
--- Begin Message ---
To quote from the manual (which is where you should have started):
"You will require the appropriate SDK for your platform, which may be
downloaded from within the manager interface once you have registered."
Mikey
> -----Original Message-----
> From: Blue Presley [mailto:[EMAIL PROTECTED]]
> Sent: 09 October 2002 18:54
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] verisign payflow pro
>
>
> Hello, I have the newest build of PHP for windows and want to
> implement the
> payflow pro functions/extension. However, I cannot find reference to the
> actual extension (.dll) in the php.ini. How do I access these if
> I'm on a
> windows system? i don't have the option to build from source code
> (or do i?).
>
> blue
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
--- End Message ---
--- Begin Message ---
this works on a windows XP machine i have but when i put it on a w2kserver
it doesn't work?
<html>
<body>
<?
@ $db = mysql_pconnect("localhost", "", "");
mysql_select_db("database_name");
$query = "insert into table_name values ('".$name."')";
$result = mysql_query($query);
?>
</body>
</html>
--- End Message ---
--- Begin Message ---
I'm attempting to install PEAR and from what I can tell, I only need to add
the PEAR installation directory to the include_path...
The website already has an extensive use of include in directory
d:\here\is\a\path
but, when I change the indlue_path from
include_path "D:\here\is\a\path"
to
include_path "D:\here\is\a\path;C:\path\for\pear"
I continue to get the "Failed opening required file PEAR.php (include path:
D:\here\is\a\path)" notice...
phpinfo shows that the new include path line is being used but it seems that
I only get one path...
Any help?
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
--- End Message ---
--- Begin Message ---
I just manual installed php in my W2K Professional workstation.
Php4isapi.dll is added to the App Mapping and ISAPI Filter in IIS. The
php.ini is in winnt; php4isapi.dll and php4ts.dll are in winnt\system32.
But when calling up a test.php (with only phpinfo() in it) in the
browser all I got is a blank page. Any idea what I might have missed?
Thx.
--- End Message ---
--- Begin Message ---
this is a follow-up question to my question about passing a variable through
a link ie,
echo "<a href='passtest.php?i={$i}'>Press to continue</a>";
how would i go about passing more than one variable, say $i and $j?
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
--- End Message ---
--- Begin Message ---
Use an ampersand (&) like follows:
echo "<a href=\"passtest.php?i={$i}&j={$j}\">Press to continue</a>";
-Dash
Faith, n:
That quality which enables us to believe what we know to be
untrue.
On Wed, 9 Oct 2002, db wrote:
> this is a follow-up question to my question about passing a variable through
> a link ie,
>
> echo "<a href='passtest.php?i={$i}'>Press to continue</a>";
>
> how would i go about passing more than one variable, say $i and $j?
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---