php-windows Digest 1 Mar 2002 23:18:37 -0000 Issue 1024

Topics (messages 12368 through 12393):

Re: Cannot connect to MySQL with PHP 4.1.1
        12368 by: Matt Hillebrand
        12369 by: Pac mon
        12375 by: Egil Helland
        12376 by: Egil Helland
        12382 by: Nicole Amashta
        12384 by: Nicole Amashta

Re: sendmail for windows
        12370 by: DL Neil

Re: sending mail with mail()
        12371 by: DL Neil

Re: sending mail with mail(), Post Cast Server
        12372 by: Matt Hillebrand
        12373 by: DL Neil
        12374 by: Matt Hillebrand

Re: [N-PHP-R] Help with MySQL
        12377 by: Nicole Amashta
        12378 by: Nicole Amashta
        12379 by: Nicole Amashta

any comment?
        12380 by: Afan Pasalic
        12381 by: Erik H. Mathy
        12383 by: Nicole Amashta

[Security] PHP Exploit - Please Check Yourself
        12385 by: Thomas Davis

configure PSPELL help please!!
        12386 by: MG Langford

How can PHP receive and display data from a silent POST?
        12387 by: Afan Pasalic
        12391 by: Collins, Robert
        12392 by: Nicole Amashta

COM Methods and Attributes
        12388 by: Vail, Warren

PHP4.1.x - Step-by-Step Installation
        12389 by: Andre Amaral

'popen' command under WinXP
        12390 by: Chris Haidvogel

error query
        12393 by: Mark Sweeney

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 ---
I had a similar problem. One day, all of a sudden, I couldn't use my mysql
functions unless I omitted the db link identifier. Function calls like:

mysql_query($sql, $conn)

will not work for me unless I omit $conn, letting the functions assume the
last connection made to the db:

mysql_query($sql)

I don't think I was getting the same error message you were though. Has
anyone else had this strange problem? Thanks.



Matt Hillebrand
Web Developer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-----Original Message-----
From: Egil Helland [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Cannot connect to MySQL with PHP 4.1.1


For some reason, after I upgraded to 4.1.1, I am not able to connect
to  MySQL DB sources anymore. AFAIK I have set up the ini file like I
should, there are no differences in the IIS config since the 4.0.5
version I have been running here was installed.

Anyone familiar with this? I have seen hundreds of these errors all
over the web, but I have not found a solution to the problem yet. I
am tired of searching around the web for something that is probably
trivial :)

I have not upgraded my MySQL install, only php. The codeline that
does not get through is:

mysql_connect($host,$user,$password) or die ('Could not connect');

The output I get is:

Warning: Can't connect to MySQL server on 'localhost' (10061) in
************ on line 77

Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in ************* on line 77
Could not connect

Regards,


Egil

-=//
      Egil Helland / IKON AS - MCSE, Internet, Intranet
            mailto:[EMAIL PROTECTED]      http://egil.net
                                                        //=-



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



--- End Message ---
--- Begin Message ---
Well i'd suggest triple checking that mysqld is running. Uh.. try putting:
$link = mysql_connect(....) or die(....);
Just small things, but maybe it'll work.. other than that... No.. i've never 
had a problem with mysql, but then again i'm running apache..not IIS.


----Original Message Follows----
For some reason, after I upgraded to 4.1.1, I am not able to connect
to  MySQL DB sources anymore. AFAIK I have set up the ini file like I
should, there are no differences in the IIS config since the 4.0.5
version I have been running here was installed.

Anyone familiar with this? I have seen hundreds of these errors all
over the web, but I have not found a solution to the problem yet. I
am tired of searching around the web for something that is probably
trivial :)

I have not upgraded my MySQL install, only php. The codeline that
does not get through is:

mysql_connect($host,$user,$password) or die ('Could not connect');

The output I get is:

Warning: Can't connect to MySQL server on 'localhost' (10061) in
************ on line 77

Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in ************* on line 77
Could not connect

Regards,


Egil

-=//
       Egil Helland / IKON AS - MCSE, Internet, Intranet
             mailto:[EMAIL PROTECTED]      http://egil.net
                                                         //=-



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



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

--- End Message ---
--- Begin Message ---
I actully use the $link = part, I just did not include it below. The
MySQL daemon is there allright, I am hooked up to it now in fact, but
php is not able to do the same!

This is no problem with IIS, this is pure php + mysql, that I am
pretty sure of. I have seen loads of others with similar problems,
some running apache, some iis, some running on unix! Dont know what
cause this still, so any help is appreciated!

-e

On Fri, 01 Mar 2002 11:36:07 +0000, Pac mon wrote:
>Well i'd suggest triple checking that mysqld is running. Uh.. try
>putting: $link = mysql_connect(....) or die(....);
>Just small things, but maybe it'll work.. other than that... No..
>i've never had a problem with mysql, but then again i'm running
>apache..not IIS.
>
>
>----Original Message Follows----
>For some reason, after I upgraded to 4.1.1, I am not able to connect
>to  MySQL DB sources anymore. AFAIK I have set up the ini file like
>I should, there are no differences in the IIS config since the 4.0.5
>version I have been running here was installed.
>
>Anyone familiar with this? I have seen hundreds of these errors all
>over the web, but I have not found a solution to the problem yet. I
>am tired of searching around the web for something that is probably
>trivial :)
>
>I have not upgraded my MySQL install, only php. The codeline that
>does not get through is:
>
>mysql_connect($host,$user,$password) or die ('Could not connect');
>
>The output I get is:
>
>Warning: Can't connect to MySQL server on 'localhost' (10061) in
>************ on line 77
>
>Warning: MySQL Connection Failed: Can't connect to MySQL server on
>'localhost' (10061) in ************* on line 77 Could not connect
>
>Regards,
>
>
>Egil
>
>-=// Egil Helland / IKON AS - MCSE, Internet, Intranet
>mailto:[EMAIL PROTECTED]      http://egil.net //=-


-=//
      Egil Helland / IKON AS - MCSE, Internet, Intranet
            mailto:[EMAIL PROTECTED]      http://egil.net
                                                        //=-


--- End Message ---
--- Begin Message ---
Just another little note here:

I have tried every version from 4.0.4 pl1 and upwards. The only
version I get to work i 4.0.4 pl1. This also includes the latest
development version (4.3.0-dev) available.

Whatever happened after the 4.0.4 release? I can switch back to this
release, and everything starts working again right away!

-e

On Fri, 1 Mar 2002 14:31:18 +0100, Egil Helland wrote:
>I actully use the $link = part, I just did not include it below. The
> MySQL daemon is there allright, I am hooked up to it now in fact,
>but php is not able to do the same!
>
>This is no problem with IIS, this is pure php + mysql, that I am
>pretty sure of. I have seen loads of others with similar problems,
>some running apache, some iis, some running on unix! Dont know what
>cause this still, so any help is appreciated!
>
>-e
>
>On Fri, 01 Mar 2002 11:36:07 +0000, Pac mon wrote:
>>Well i'd suggest triple checking that mysqld is running. Uh.. try
>>putting: $link = mysql_connect(....) or die(....);
>>Just small things, but maybe it'll work.. other than that... No..
>>i've never had a problem with mysql, but then again i'm running
>>apache..not IIS.
>>
>>
>>----Original Message Follows----
>>For some reason, after I upgraded to 4.1.1, I am not able to
>>connect to  MySQL DB sources anymore. AFAIK I have set up the ini
>>file like I should, there are no differences in the IIS config
>>since the 4.0.5 version I have been running here was installed.
>>
>>Anyone familiar with this? I have seen hundreds of these errors all
>>over the web, but I have not found a solution to the problem yet. I
>>am tired of searching around the web for something that is probably
>>trivial :)
>>
>>I have not upgraded my MySQL install, only php. The codeline that
>>does not get through is:
>>
>>mysql_connect($host,$user,$password) or die ('Could not connect');
>>
>>The output I get is:
>>
>>Warning: Can't connect to MySQL server on 'localhost' (10061) in
>>************ on line 77
>>
>>Warning: MySQL Connection Failed: Can't connect to MySQL server on
>>'localhost' (10061) in ************* on line 77 Could not connect


-=//
      Egil Helland / IKON AS - MCSE, Internet, Intranet
            mailto:[EMAIL PROTECTED]      http://egil.net
                                                        //=-


--- End Message ---
--- Begin Message ---
This may sound silly, but, make sure MySQL is running and that you can
connect from the command prompt.

? Other than that, I dont know because I am still using 4.0.6.

Good luck with it, and post back when you figure it out! I'd like to know.
Nix
www.aeontrek.com

"Egil Helland" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
For some reason, after I upgraded to 4.1.1, I am not able to connect
to  MySQL DB sources anymore. AFAIK I have set up the ini file like I
should, there are no differences in the IIS config since the 4.0.5
version I have been running here was installed.

Anyone familiar with this? I have seen hundreds of these errors all
over the web, but I have not found a solution to the problem yet. I
am tired of searching around the web for something that is probably
trivial :)

I have not upgraded my MySQL install, only php. The codeline that
does not get through is:

mysql_connect($host,$user,$password) or die ('Could not connect');

The output I get is:

Warning: Can't connect to MySQL server on 'localhost' (10061) in
************ on line 77

Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in ************* on line 77
Could not connect

Regards,


Egil

-=//
      Egil Helland / IKON AS - MCSE, Internet, Intranet
            mailto:[EMAIL PROTECTED]      http://egil.net
                                                        file://=-




--- End Message ---
--- Begin Message ---
Are you sure you are using a complete new install of PHP? Remove all old php
files ( dlls, ini, etc) and install completely fresh to make sure you are
using all the versions that go with the version of PHP you are wanting to
use (eg. 4.1.1).

Nix
www.aeontrek.com


"Egil Helland" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
Just another little note here:

I have tried every version from 4.0.4 pl1 and upwards. The only
version I get to work i 4.0.4 pl1. This also includes the latest
development version (4.3.0-dev) available.

Whatever happened after the 4.0.4 release? I can switch back to this
release, and everything starts working again right away!

-e

On Fri, 1 Mar 2002 14:31:18 +0100, Egil Helland wrote:
>I actully use the $link = part, I just did not include it below. The
> MySQL daemon is there allright, I am hooked up to it now in fact,
>but php is not able to do the same!
>
>This is no problem with IIS, this is pure php + mysql, that I am
>pretty sure of. I have seen loads of others with similar problems,
>some running apache, some iis, some running on unix! Dont know what
>cause this still, so any help is appreciated!
>
>-e
>
>On Fri, 01 Mar 2002 11:36:07 +0000, Pac mon wrote:
>>Well i'd suggest triple checking that mysqld is running. Uh.. try
>>putting: $link = mysql_connect(....) or die(....);
>>Just small things, but maybe it'll work.. other than that... No..
>>i've never had a problem with mysql, but then again i'm running
>>apache..not IIS.
>>
>>
>>----Original Message Follows----
>>For some reason, after I upgraded to 4.1.1, I am not able to
>>connect to  MySQL DB sources anymore. AFAIK I have set up the ini
>>file like I should, there are no differences in the IIS config
>>since the 4.0.5 version I have been running here was installed.
>>
>>Anyone familiar with this? I have seen hundreds of these errors all
>>over the web, but I have not found a solution to the problem yet. I
>>am tired of searching around the web for something that is probably
>>trivial :)
>>
>>I have not upgraded my MySQL install, only php. The codeline that
>>does not get through is:
>>
>>mysql_connect($host,$user,$password) or die ('Could not connect');
>>
>>The output I get is:
>>
>>Warning: Can't connect to MySQL server on 'localhost' (10061) in
>>************ on line 77
>>
>>Warning: MySQL Connection Failed: Can't connect to MySQL server on
>>'localhost' (10061) in ************* on line 77 Could not connect


-=//
      Egil Helland / IKON AS - MCSE, Internet, Intranet
            mailto:[EMAIL PROTECTED]      http://egil.net
                                                        file://=-




--- End Message ---
--- Begin Message ---
Scott,

> Come to think of it I have MS SMTP service from the IIS install, I
wonder
> if you install that, then point it to your ISP if that would work.

The answer is a definite "maybe"!

It is a topic that comes up on the list from time-to-time.
Some claim to have made it work.
The overwhelming majority come to grief.

The Win implementation of mail() is (IMHO) better than for *nix.
We can point at *any* SMTP server.
That server will then convey our msgs to another SMTP server, and so on.

Why then add an extra SMTP server?
a) to your machine's load?
b) to your msg's path?

Finally, the IIS SMTP is not a full server but a "stub".
If you have experience of other (M$ or non-M$) cut-down versions, then
...

Regards,
=dn

--- End Message ---
--- Begin Message ---
Hi Aris,

Still have questions, but at least you have a solution!

> Ok last thing i disocverd about this problem was
> that I was not only unable to do mail() from PHP but any other socket
> connection was not succesiful. It worked fine when i start php.exe in
> shell (command line) but the same script would not connect to anything
> (even localhost) if run by IIS4. i tryed new version of php (4.1.1
> instead of old 4.0.2) and the problem was persistant.
> My guess is that there was a problem with IIS4 or WinNT Server and how
> they setup envirnment for php.exe.
> I copied the website and scripts to an IIS5 server (Win 2k) and there
> I dont have a problem.

Well done,
=dn

--- End Message ---
--- Begin Message ---
Everyone with mail() problems should consider www.postcastserver.com. It's
free SMTP server software that works quite well. Just don't forget to
disable IIS' smtp server.



Matt Hillebrand
Web Developer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-----Original Message-----
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:56 AM
To: [EMAIL PROTECTED]; Aris Basic
Subject: Re: [PHP-WIN] sending mail with mail()


Hi Aris,

Still have questions, but at least you have a solution!

> Ok last thing i disocverd about this problem was
> that I was not only unable to do mail() from PHP but any other socket
> connection was not succesiful. It worked fine when i start php.exe in
> shell (command line) but the same script would not connect to anything
> (even localhost) if run by IIS4. i tryed new version of php (4.1.1
> instead of old 4.0.2) and the problem was persistant.
> My guess is that there was a problem with IIS4 or WinNT Server and how
> they setup envirnment for php.exe.
> I copied the website and scripts to an IIS5 server (Win 2k) and there
> I dont have a problem.

Well done,
=dn


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



--- End Message ---
--- Begin Message ---
Matt,

> Everyone with mail() problems should consider www.postcastserver.com.
It's
> free SMTP server software that works quite well. Just don't forget to
> disable IIS' smtp server.


Have made a note of the product for future reference. Thanks.

>From another current conversation on PHP-email: (my comment) The Windows
version of PHP has a better email interface implementation (than *nix),
in particular that any SMTP server (anywhere on the Internet) can be
directly addressed/pressed into service. So...
-----
Why then add an extra SMTP server?
a) to your machine's load?
b) to your msg's path?
-----

What do you think?
=dn

--- End Message ---
--- Begin Message ---
I've found that PHP/UNIX is better than PHP/Windows in every way, including
the use of mail() with sendmail. I had enormous problems with mail() in
Windows. Post Cast Server fixed all that.



Matt Hillebrand
Web Developer
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


-----Original Message-----
From: DL Neil [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 5:16 AM
To: Matt Hillebrand; [EMAIL PROTECTED]; Aris Basic
Subject: Re: [PHP-WIN] sending mail with mail(), Post Cast Server


Matt,

> Everyone with mail() problems should consider www.postcastserver.com.
It's
> free SMTP server software that works quite well. Just don't forget to
> disable IIS' smtp server.


Have made a note of the product for future reference. Thanks.

>From another current conversation on PHP-email: (my comment) The Windows
version of PHP has a better email interface implementation (than *nix),
in particular that any SMTP server (anywhere on the Internet) can be
directly addressed/pressed into service. So...
-----
Why then add an extra SMTP server?
a) to your machine's load?
b) to your msg's path?
-----

What do you think?
=dn



--- End Message ---
--- Begin Message ---
OK, I figured it out:

if I do a "show index from ftp", it will tell me all the indexes on that
table.

I dropped the index that was against that field and voila! No more unique
constraint. :)

Thanks guys!
Nix0r
www.aeontrek.com

"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
27E647E5629ED211BF78009027289C6303C1B73E@mail1...">news:27E647E5629ED211BF78009027289C6303C1B73E@mail1...;
> >> >ALTER table balh chage column foo foo int(5)unsigned
> >>
> >> Does the key word CHANGE COLUMN really exists with in MySQL?? That
would
> be
> >> amazing to be ale to change the domain of an attribute just like that.
> >>
> >Yep
> >Syntax (Nicole, this is the correct syntax by the way... :-) :
> >
> >ALTER TABLE table_name CHANGE orig_col_name new_col_name
> >new_col_attributes
> >
> >In fact, the column must be defined again from scratch, no attributes are
> >carried over from the previous definition if you ALTER it.
>
> Which suggest that the RDBMS internally first makes a DROP COLUMN, and
then
> perform an ADD COLUMN, well, if the column attributes is not preserved,
then
> I would like to suggest to use "ALTER TABLE <table name> DROP CONSTRAINT
> <constraint>" to change a constraint - this will keeps the attributes.
>
> Second reason for not using CHANGE COLUMN would then be to keep
> compatibility between different platforms.


--- End Message ---
--- Begin Message ---
Oh yeah, and to drop the index, I just did this:

alter table ftp drop index username

I don't ever remember making an index called username, but perhaps I did.
Either way, it was a unique index against the login. I don't want to have
unique logins because this table holds info about ftp from different ftp
sites, so it doesn't make since to make a unique constraint on that field.
Now, I will make it unique per (account,login). Maybe.

Thanks again all,
nix
www.aeontrek.com
=======================

"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
27E647E5629ED211BF78009027289C6303C1B73E@mail1...">news:27E647E5629ED211BF78009027289C6303C1B73E@mail1...;
> >> >ALTER table balh chage column foo foo int(5)unsigned
> >>
> >> Does the key word CHANGE COLUMN really exists with in MySQL?? That
would
> be
> >> amazing to be ale to change the domain of an attribute just like that.
> >>
> >Yep
> >Syntax (Nicole, this is the correct syntax by the way... :-) :
> >
> >ALTER TABLE table_name CHANGE orig_col_name new_col_name
> >new_col_attributes
> >
> >In fact, the column must be defined again from scratch, no attributes are
> >carried over from the previous definition if you ALTER it.
>
> Which suggest that the RDBMS internally first makes a DROP COLUMN, and
then
> perform an ADD COLUMN, well, if the column attributes is not preserved,
then
> I would like to suggest to use "ALTER TABLE <table name> DROP CONSTRAINT
> <constraint>" to change a constraint - this will keeps the attributes.
>
> Second reason for not using CHANGE COLUMN would then be to keep
> compatibility between different platforms.


--- End Message ---
--- Begin Message ---
OK, none is right here. I had already tried the alter and change and modify
before I even attempted to ask on this list.

say i have this table:

create table ftp(id int not null auto_increment primary key, accountnbr
varchar(30), login varchar(30) unique, password varchar(20), createdate
datetime);

So, how can I drop that unique constraint? The constaint isn't named? Only
thing I can think of is, IF that unique thing is actually an index, I can
drop the index ... but problem is, I can't remember what the name of the
index was. I think it was ix_login, or idx_login, or index_login. Something
like that. I am about to try that.

Wish me luck.

Nix0r
www.aeontrek.com


"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> I know this is not MySQL, so that's why I put the [N-PHP-R] in the subject
> (means Non-PHP-Related)
>
> But, my problem is this.
>
> I have a table in MySQL. One of the fields (not the primary key), has a
> unique constraint on it. I need to remove this unique constraint, but I
> can't figure out how. I dn't see this in the MySQL docs.
>
> Does anyone know how to remove uniquness from a field?
>
>
> Thanks,
>
> --
> Nicole Amashta
> Web Applications Developer
> www.aeontrek.com
>
>
>


--- End Message ---
--- Begin Message ---
"Flaws found in PHP scripting language"

http://zdnet.com.com/2100-1105-847252.html


Any comment?


Afan
--- End Message ---
--- Begin Message ---
Comment? On what? There's a security flaw. Get the latest version. It's
fixed.

- Erik

> -----Original Message-----
> From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:22 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] any comment?
>
>
> "Flaws found in PHP scripting language"
>
> http://zdnet.com.com/2100-1105-847252.html
>
>
> Any comment?
>
>
> Afan
>

--- End Message ---
--- Begin Message ---
>From that article:

<snip>
While PHP can be installed on other Web site software, the flaws only affect
those Web servers running on top of the Linux or Solaris operating systems,
according to an advisory released by German security and Internet software
company e-Matters.

In the past, Microsoft's Internet Information Server has had a slew of
problems with flaws in its components that allowed hackers and worms to
break in. This time, the software appears not to be vulnerable, even if it's
using PHP.

The flaws, a collection of heap overflows and problematic boundary checks,
could crash vulnerable servers or allow attackers full access to them, said
the advisory. Different flaws affect various versions of PHP, from 3.10 to
4.1.1.

Ullrich and the PHP Web site recommend that Linux and Solaris Web sites
using PHP upgrade their software to the latest version, 4.1.2, which solves
the problem.

</snip>

Nix
www.aeontrek.com


========================
"Afan Pasalic" <[EMAIL PROTECTED]> wrote in message
001101c1c134$d29b5560$311f49d1@VAIO...">news:001101c1c134$d29b5560$311f49d1@VAIO...;
"Flaws found in PHP scripting language"

http://zdnet.com.com/2100-1105-847252.html


Any comment?


Afan



--- End Message ---
--- Begin Message ---

You may have seen this already, but as Security is mainly an issue of
reputation, and I like PHP, I don't want to hear about anyone actually being
effected by this. Please read the entire advisory, it isn't very long. Many
on this list are not effected but some with older installations may be.

http://security.e-matters.de/advisories/012002.html



--- End Message ---
--- Begin Message ---
I'm trying to configure PHP on WINDOWS , with PSPELL support - on UNIX i would
type ./configure--with-pspell[DIR] but on windows of course this isn't
possible. Can anybody help with with how to configure properly: maybe i can just
add some lines to my php.ini file?

Any help greatly appreciated.

Mike Langford
--- End Message ---
--- Begin Message ---
Hi,


How can PHP receive and display data from a silent POST?

Payflow Link, sends back to a URL a silent POST with $ECHODATA.

Does anyone know how to show this on a page?

Thanks.

Afan
--- End Message ---
--- Begin Message ---
if you are referring to something like a form post you can check the array
$HTTP_POST_VARS

Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email : [EMAIL PROTECTED]


-----Original Message-----
From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] How can PHP receive and display data from a silent
POST?


Hi,


How can PHP receive and display data from a silent POST?

Payflow Link, sends back to a URL a silent POST with $ECHODATA.

Does anyone know how to show this on a page?

Thanks.

Afan
--- End Message ---
--- Begin Message ---
What is Payflow link? Is this a windows app or something?

I know in Java, you can send Get & Post info. Other than that, I'm not fully
understanding your question.

Nix
www.aeontrek.com



"Afan Pasalic" <[EMAIL PROTECTED]> wrote in message
00c901c1c15b$f7250df0$311f49d1@VAIO...">news:00c901c1c15b$f7250df0$311f49d1@VAIO...;
Hi,


How can PHP receive and display data from a silent POST?

Payflow Link, sends back to a URL a silent POST with $ECHODATA.

Does anyone know how to show this on a page?

Thanks.

Afan



--- End Message ---
--- Begin Message ---
PHP is great at looking up requested methods and attributes for a COM
object, if you have documentation and know the name used.  Is there any way
to use php to produce a list of methods and attributes for an invoked object
(say IMAP.session)?


Warren Vail
Tools, Metrics & Quality Processes
215 Fremont 02-658

--- End Message ---
--- Begin Message ---
Hi all. Here is a link for anyone who wants to install or are having problem
with PHP on a Windows systems using IIS. This is cool website with more
tutorials to come based on PHP and Windows. So keep tuned!

http://www.experttek.com
Look under Useful Links on the menu for the tutorial. And don't forget to
leave your feedback on the Forum. :)

I hope this will help some people out there.

Andre


--- End Message ---
--- Begin Message ---
I am currently trying to get some php code working that was originially
written to run under UNIX.  I have a problem though.  The function 'popen'
doesn't seem to want to work.  Here is the code snipet:

$command = $CVS->conf['paths']['rcsdiff'] . " $options -r$rev1 -r$rev2
'$fullName' 2>&1";
 if (!($diffStream = popen($command, 'r'))) {
    return false;
} else {
    while ($line = fgets($diffStream, 4096)) {
          $diff[] = rtrim($line);
      }
      return $diff;
}

I have confirmed that $command is properly set and I also realize that WinXP
has no idea what "2>&1" means.  I have tried altering the command as such:

 $command = "cmd /K \"" . $CVS->conf['paths']['rcsdiff'] . "
$options -r$rev1 -r$rev2 '$fullName'\"";

and also:

 $command = "command.com  /C \"" . $CVS->conf['paths']['rcsdiff'] . "
$options -r$rev1 -r$rev2 '$fullName'\"";

however neither appear to be producing a stream for me.  I don't want to be
returning false.  I need it to capture the output from the command.  First
off, is there a way to get popen to work in WinXP?  If not, is there a way
to rewrite this code to capture the output from this command?

I am currently running PHP 4.1.1 on Apache 1.3.23.

Thank you in advance for any help.

--
Chris Haidvogel
Software Engineer
Videk, Inc.
2200 Brighton Henrietta Town Line Rd.
Rochester, NY 14623
Phone: (716) 292-6210
Fax: (716) 292 5884
E-mail: [EMAIL PROTECTED]





--- End Message ---
--- Begin Message ---
Sorry to bother, but I am having a severe problem with this (probably stupidly) flawed 
code.

It is part of a script to call descriptions for images along with their filenames from 
a mysql database. trouble is, it doesnt work, and it claims that I have a syntax error 
near "LIMIT 10"

The code is below, and i would be very thankful if anyone could point out jsut hwat I 
am doing wrong

$newpics = mysql_query("SELECT ID, alt FROM $MID LIMIT 10");
if (!$newpics) {
echo( "<p>Error performing query " . mysql_error() . "</p>" );
exit();
}
while ( $row = mysql_fetch_array($newpics) ) {
$id=$row[ID];
$alt=$row[alt];
$alt = htmlspecialchars($alt);
$alt = eregi_replace("\[b]","<b>",$alt);
$alt = eregi_replace("\[/b]","</b>",$alt);
$alt = eregi_replace("\[i]","<i>",$alt);
$alt = eregi_replace("\[/i]","</i>",$alt);
echo("<a href=\"viewer.php?title=$title&id=$id\">$alt</a><br>");
}
?>
--- End Message ---

Reply via email to