php-windows Digest 28 Oct 2003 13:42:30 -0000 Issue 1975
Topics (messages 21897 through 21907):
Re: Problems with TCP/IP and PHP
21897 by: DvDmanDT
21898 by: Robert Duda
21907 by: DvDmanDT
Check box value for PHP
21899 by: Rinku Shivnani
21900 by: Rinku Shivnani
21903 by: Luis Moreira
21905 by: Chen Chang-QCH2044
Access Violation at 00020400.. any solutions?
21901 by: chinwah
Access Violation at 00020400.. any solutions
21902 by: chinwah
Re: Run php file every day?
21904 by: Luis Moreira
call function by flash button
21906 by: Rinku Shivnani
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 ---
XP home.. :p
Should be same thing though...
--
// DvDmanDT
MSN: dvdmandt士otmail.com
Mail: dvdmandt川elia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
##########################
"Robert Duda" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I am using the compiled versions and have tried using ip addresses instead
> of host names with the same results. I don't think it's my host file.
> Besides, why would pike be able to reach the same hosts?
>
> Are you using XP pro?
>
> Rob
>
> "Dvdmandt" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I have been using every version and RC of PHP since 4.2.1 days, and I
have
> > never had any problems, using sockets, mysql_connect,
> > fopen("http://blalbla") or anything...
> >
> > Did you compile yourself or did you download precompiled ones... If you
> > compiled yourself, try the precompiled one... Check your hosts file
> > (C:\windows\system32\drivers\etc) and see if something is wrong with
it...
> >
> > --
> > // DvDmanDT
> > MSN: dvdmandt士otmail.com
> > Mail: dvdmandt川elia.com
> > ##########################
> > Please, if you are using windows, you may be infected by Swen. Please go
> > here to find out more:
> > http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
> >
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
> > ##########################
> > "Robert Duda" <[EMAIL PROTECTED]> skrev i meddelandet
> > news:[EMAIL PROTECTED]
> > > I am running the following:
> > >
> > > PHP Version 4.3.4RC2, I tried 4.3.3 with the same results.
> > > MySql Version 4.0.16-nt
> > > Windows XP Professional
> > >
> > > Using PHP as cgi with Roxen.
> > >
> > > Anytime I try to connect to anything over TCP/IP I get an error. Below
> is
> > > the error that I get if I try to connect to an IMAP source:
> > >
> > > Warning: imap_open(): Couldn't open stream {mydomain.com:143}INBOX in
> > > F:\projects\phpgroupware\email\inc\class.mail_dcom_imap.inc.php on
line
> > 214
> > >
> > > Warning: imap_open(): Couldn't open stream
> > > {mydomain.com:143/imap/notls}INBOX in
> > > F:\projects\phpgroupware\email\inc\class.mail_dcom_imap.inc.php on
line
> > 214
> > > (the code comes from phpgroupware version 0.9.14.007)
> > >
> > > And if I try to connect to Mysql I get the following error unless I
use
> > > named-pipes:
> > >
> > > #2004 - Can't create TCP/IP socket (10106)
> > > (This error comes from phpmyadmin during log in, if I change the host
> > entry
> > > to '.' instead of 'localhost' the login succeeds.)
> > >
> > > I have the IMAP extension uncommented and the path to the extensions
> > > directory is correct. I can get to the IMAP server from Pike running
on
> > the
> > > same box so the proble is not the IMAP server. In fact when I look at
> the
> > > IMAP logs the connection never gets to the server. This appears to be
> some
> > > disconnect between the C-client library and the windows TCP/IP library
> > under
> > > XP. Has anyone else had the same problem and if so how did you fix it?
> > >
> > > Any help with this would be greatly appreciated.
> > >
> > > Thanks,
> > >
> > > Rob
--- End Message ---
--- Begin Message ---
Networking and security are slightly different. I have both and believe me
there is a big difference between the two.
Rob
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> XP home.. :p
>
> Should be same thing though...
>
> --
> // DvDmanDT
> MSN: dvdmandt士otmail.com
> Mail: dvdmandt川elia.com
> ##########################
> Please, if you are using windows, you may be infected by Swen. Please go
> here to find out more:
> http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
> http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
> ##########################
> "Robert Duda" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> > I am using the compiled versions and have tried using ip addresses
instead
> > of host names with the same results. I don't think it's my host file.
> > Besides, why would pike be able to reach the same hosts?
> >
> > Are you using XP pro?
> >
> > Rob
> >
> > "Dvdmandt" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > I have been using every version and RC of PHP since 4.2.1 days, and I
> have
> > > never had any problems, using sockets, mysql_connect,
> > > fopen("http://blalbla") or anything...
> > >
> > > Did you compile yourself or did you download precompiled ones... If
you
> > > compiled yourself, try the precompiled one... Check your hosts file
> > > (C:\windows\system32\drivers\etc) and see if something is wrong with
> it...
> > >
> > > --
> > > // DvDmanDT
> > > MSN: dvdmandt士otmail.com
> > > Mail: dvdmandt川elia.com
> > > ##########################
> > > Please, if you are using windows, you may be infected by Swen. Please
go
> > > here to find out more:
> > > http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
> > >
> http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
> > > ##########################
> > > "Robert Duda" <[EMAIL PROTECTED]> skrev i meddelandet
> > > news:[EMAIL PROTECTED]
> > > > I am running the following:
> > > >
> > > > PHP Version 4.3.4RC2, I tried 4.3.3 with the same results.
> > > > MySql Version 4.0.16-nt
> > > > Windows XP Professional
> > > >
> > > > Using PHP as cgi with Roxen.
> > > >
> > > > Anytime I try to connect to anything over TCP/IP I get an error.
Below
> > is
> > > > the error that I get if I try to connect to an IMAP source:
> > > >
> > > > Warning: imap_open(): Couldn't open stream {mydomain.com:143}INBOX
in
> > > > F:\projects\phpgroupware\email\inc\class.mail_dcom_imap.inc.php on
> line
> > > 214
> > > >
> > > > Warning: imap_open(): Couldn't open stream
> > > > {mydomain.com:143/imap/notls}INBOX in
> > > > F:\projects\phpgroupware\email\inc\class.mail_dcom_imap.inc.php on
> line
> > > 214
> > > > (the code comes from phpgroupware version 0.9.14.007)
> > > >
> > > > And if I try to connect to Mysql I get the following error unless I
> use
> > > > named-pipes:
> > > >
> > > > #2004 - Can't create TCP/IP socket (10106)
> > > > (This error comes from phpmyadmin during log in, if I change the
host
> > > entry
> > > > to '.' instead of 'localhost' the login succeeds.)
> > > >
> > > > I have the IMAP extension uncommented and the path to the extensions
> > > > directory is correct. I can get to the IMAP server from Pike running
> on
> > > the
> > > > same box so the proble is not the IMAP server. In fact when I look
at
> > the
> > > > IMAP logs the connection never gets to the server. This appears to
be
> > some
> > > > disconnect between the C-client library and the windows TCP/IP
library
> > > under
> > > > XP. Has anyone else had the same problem and if so how did you fix
it?
> > > >
> > > > Any help with this would be greatly appreciated.
> > > >
> > > > Thanks,
> > > >
> > > > Rob
--- End Message ---
--- Begin Message ---
Ok, can you give me one difference? I have setup servers and PHP on both
home and professional, as well as connections and firewalls and I haven't
noticed any difference.. :s
--
// DvDmanDT
MSN: dvdmandt士otmail.com
Mail: dvdmandt川elia.com
##########################
Please, if you are using windows, you may be infected by Swen. Please go
here to find out more:
http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
##########################
"Robert Duda" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Networking and security are slightly different. I have both and believe me
> there is a big difference between the two.
>
> Rob
>
> "Dvdmandt" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > XP home.. :p
> >
> > Should be same thing though...
> >
> > --
> > // DvDmanDT
> > MSN: dvdmandt士otmail.com
> > Mail: dvdmandt川elia.com
> > ##########################
> > Please, if you are using windows, you may be infected by Swen. Please go
> > here to find out more:
> > http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
> >
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
> > ##########################
> > "Robert Duda" <[EMAIL PROTECTED]> skrev i meddelandet
> > news:[EMAIL PROTECTED]
> > > I am using the compiled versions and have tried using ip addresses
> instead
> > > of host names with the same results. I don't think it's my host file.
> > > Besides, why would pike be able to reach the same hosts?
> > >
> > > Are you using XP pro?
> > >
> > > Rob
> > >
> > > "Dvdmandt" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]
> > > > I have been using every version and RC of PHP since 4.2.1 days, and
I
> > have
> > > > never had any problems, using sockets, mysql_connect,
> > > > fopen("http://blalbla") or anything...
> > > >
> > > > Did you compile yourself or did you download precompiled ones... If
> you
> > > > compiled yourself, try the precompiled one... Check your hosts file
> > > > (C:\windows\system32\drivers\etc) and see if something is wrong with
> > it...
> > > >
> > > > --
> > > > // DvDmanDT
> > > > MSN: dvdmandt士otmail.com
> > > > Mail: dvdmandt川elia.com
> > > > ##########################
> > > > Please, if you are using windows, you may be infected by Swen.
Please
> go
> > > > here to find out more:
> > > > http://us.mcafee.com/virusInfo/default.asp?id=helpCenter&hcName=swen
> > > >
> >
http://securityresponse.symantec.com/avcenter/venc/data/[EMAIL PROTECTED]
> > > > ##########################
> > > > "Robert Duda" <[EMAIL PROTECTED]> skrev i meddelandet
> > > > news:[EMAIL PROTECTED]
> > > > > I am running the following:
> > > > >
> > > > > PHP Version 4.3.4RC2, I tried 4.3.3 with the same results.
> > > > > MySql Version 4.0.16-nt
> > > > > Windows XP Professional
> > > > >
> > > > > Using PHP as cgi with Roxen.
> > > > >
> > > > > Anytime I try to connect to anything over TCP/IP I get an error.
> Below
> > > is
> > > > > the error that I get if I try to connect to an IMAP source:
> > > > >
> > > > > Warning: imap_open(): Couldn't open stream {mydomain.com:143}INBOX
> in
> > > > > F:\projects\phpgroupware\email\inc\class.mail_dcom_imap.inc.php on
> > line
> > > > 214
> > > > >
> > > > > Warning: imap_open(): Couldn't open stream
> > > > > {mydomain.com:143/imap/notls}INBOX in
> > > > > F:\projects\phpgroupware\email\inc\class.mail_dcom_imap.inc.php on
> > line
> > > > 214
> > > > > (the code comes from phpgroupware version 0.9.14.007)
> > > > >
> > > > > And if I try to connect to Mysql I get the following error unless
I
> > use
> > > > > named-pipes:
> > > > >
> > > > > #2004 - Can't create TCP/IP socket (10106)
> > > > > (This error comes from phpmyadmin during log in, if I change the
> host
> > > > entry
> > > > > to '.' instead of 'localhost' the login succeeds.)
> > > > >
> > > > > I have the IMAP extension uncommented and the path to the
extensions
> > > > > directory is correct. I can get to the IMAP server from Pike
running
> > on
> > > > the
> > > > > same box so the proble is not the IMAP server. In fact when I look
> at
> > > the
> > > > > IMAP logs the connection never gets to the server. This appears to
> be
> > > some
> > > > > disconnect between the C-client library and the windows TCP/IP
> library
> > > > under
> > > > > XP. Has anyone else had the same problem and if so how did you fix
> it?
> > > > >
> > > > > Any help with this would be greatly appreciated.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Rob
--- End Message ---
--- Begin Message ---
Dear All,
Pls guide on how to assign value for chkbox in PHP ?
I have program in which if a person clicks on chkbox and then clicks
on submit then the chked records shd not come in the list.
Regards,
Rinku
--- End Message ---
--- Begin Message ---
Pls answer, Its tooooooo urgent.
--- End Message ---
--- Begin Message ---
This is part of a php/html script.
Check the syntax.
You more than likely forgetting something along the way.
echo "<form method=\"POST\" action=\"submete_registo.php\">";
echo "<input type=\"checkbox\" name=\"exito_1\" value=\"ON\"></p>";
echo "<input type=\"checkbox\" name=\"exito_2\" value=\"ON\"></p>";
echo "<input type=\"checkbox\" name=\"exito_3\" value=\"ON\"></p>";
echo "<input type=\"checkbox\" name=\"exito_4\" value=\"ON\"></p>";
echo "<p align=\"center\"><input type=\"submit\" value=\"Submeter\"
name=\"B1\">";
echo "</form>";
Luis
----- Original Message -----
From: "Rinku Shivnani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 7:37 AM
Subject: [PHP-WIN] Check box value for PHP
> Dear All,
>
> Pls guide on how to assign value for chkbox in PHP ?
>
> I have program in which if a person clicks on chkbox and then clicks
> on submit then the chked records shd not come in the list.
>
> Regards,
> Rinku
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi Rinku,
In HTML form:
<form action="" method=post>
<input type=checkbox name=checkbox1 value="1">
<input type=checkbox name=checkbox1 value="2">
<input type=checkbox name=checkbox1 value="3">
...
</form>
In Php code:
$checkbox1 = $HTTP_POST_VARS["checkbox1"];
$num = count($checkbox1);
for ($i=0; $i<$num; $i++) {
echo $checkbox1[$i];
}
You can also get this from php manual.
Regards
Rick
-----Original Message-----
From: Rinku Shivnani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 3:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Check box value for PHP
Dear All,
Pls guide on how to assign value for chkbox in PHP ?
I have program in which if a person clicks on chkbox and then clicks
on submit then the chked records shd not come in the list.
Regards,
Rinku
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello all,
I use win2k, IIS5.0, and php4.3.2RC4-Win32. And i have created a
com(dll) to call for a web services created by delphi. I use the php
"com" function to call this dll. This is the error i got "PHP has
encountered an Access Violation at 00020400", i got this hex "00020400"
everytime. Here is the code,
<?
$conn = new COM("MySession.SessionCall") or die("Cannot start
GSSessionService");
$conn->ValidateSession('89381982');
?>
I test the same com with ASP and it run fine.
Any ideas or suggestions?
From
chinwah
--- End Message ---
--- Begin Message ---
Hello all,
I use win2k, IIS5.0, and php4.3.2RC4-Win32. And i have created a
com(dll) to call for a web services created by delphi. I use the php
"com" function to call this dll. This is the error i got "PHP has
encountered an Access Violation at 00020400", i got this hex "00020400"
everytime. Here is the code,
<?
$conn = new COM("MySession.SessionCall") or die("Cannot start
GSSessionService");
$conn->ValidateSession('89381982');
?>
I test the same com with ASP and it run fine.
Any ideas or suggestions?
From
chinwah
--- End Message ---
--- Begin Message ---
Try MS Task scheduling
----- Original Message -----
From: "Disko_kex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 5:06 PM
Subject: [PHP-WIN] Run php file every day?
> Hi,
>
> Is there an easy way to run a php file same time every day? Im running
> IIS5 and PHP4.3.3.
>
> Thx
>
--- End Message ---
--- Begin Message ---
Can you pls tell me How to call any function from flash button ?
Code is as under :
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab
#version=4,0,2,0" width="111" height="40">
<param name=movie value="Auction/animal.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="#FF9933">
<embed src="Auction/animal.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod
_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="111"
height="40" bgcolor="#FF9933">
</embed>
</object>
"Now from this flash button how to call the function "available_cattle""
<?
function available_cattle()
{
global $conn, $chk_arr;
$query= "select name, village, dt, breed, types where
kiosk_nm='$AUTH_USER' and flag='n'";
$result=pg_exec($conn,$query) or die("No data");
$numrows=pg_numrows($result)-1;
If($numrows>0)
{
?>
<p><b><font face="Lmg-arun" size="5">N}WF/F 5|F6LVM</font></b></p>
<table width="75%" border="3" bordercolor="#993333">
<tr>
<td>
<div align="center"><b><font face="Lmg-arun" color="#000000">J[RF.
UI[,</font></b></div>
</td>
<td>
<div align="center"><b><font face="Lmg-arun"
color="#000000">GFD</font></b></div>
</td>
<td>
<div align="center"><b><font face="Lmg-arun">UFD</font></b></div>
</td>
<td>
<div align="center"><b><font face="Lmg-arun">TFZLB</font></b></div>
</td>
<td>
<div align="center"><b><font face="Lmg-arun">HFlT</font></b></div>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<CENTER>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab
#version=4,0,2,0" width="190" height="46">
<param name=movie value="button4.swf">
<param name=quality value=high>
<param name="BGCOLOR" value="#FF9933">
<embed src="index_image/button4.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod
_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="190"
height="46" bgcolor="#FF9933">
</embed>
</object>
</CENTER>
<?
}
}
?>
--- End Message ---