php-windows Digest 8 Mar 2003 12:57:04 -0000 Issue 1624
Topics (messages 18910 through 18914):
cgi error when instantiating a com application
18910 by: Rowan Hick
18914 by: Christoph Grottolo
Re: Develope a Windows PHP Extension.
18911 by: Frank M. Kromann
Re: PHP and DB2 on AS400
18912 by: Alejandro Trujillo J.
Re: basic sessions...
18913 by: Uttam
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 ---
Hi All,
If anyone could shed light on this I would be well appreciative.
Under IIS 5.1, XP Pro, PHP 4.3.0 and PHP 4.3.1 whenever I instantiate a com
object ie:
$myobj = new com ("ixsso.query") or die ("blah..")
I get a windows error message, although the script does execute up until the
com object call. If I call an invalid object ie ("muppet.fraggle") then I'll
get my correct die message and no error. If I don't have any script before
the new com call then I'll get a CGI error "The specified CGI application
misbehaved by not returning a complete set of HTTP headers. The headers it
did return are:"
AppName: php.exe AppVer: 4.3.1.1 ModName: php4ts.dll ModVer: 4.3.1.1
Offset: 00030727
I've tried installing Apache 2 and retesting, I get the same result. Anyone
else struck this problem ? Resolutions ?
Kind Regards,
Rowan
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Rowan Hick) wrote:
>Hi All,
>
>If anyone could shed light on this I would be well appreciative.
>
>Under IIS 5.1, XP Pro, PHP 4.3.0 and PHP 4.3.1 whenever I instantiate a com
>object ie:
>
>$myobj = new com ("ixsso.query") or die ("blah..")
>
>I get a windows error message, although the script does execute up until the
>com object call.
COM is buggy in 4.3.0 and 4.3.1. Try a stable snapshot from
http://snaps.php.net - it's been fixed. If you need an official
release you've got to wait for 4.3.2.
Christoph
--- End Message ---
--- Begin Message ---
Downloading and installing bison and flex is one thing, but if you have
CygWin and Visual Studio installed I have a breif instruction on my web
site (http://kromann.info/php4.php).
The CVS version of PHP also includes a small wrapper script for ext skel.
This will allow you to create a new extension and build it with Visual
Studio.
- Frank
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> The FIRST thing to do is make sure that you can compile PHP from scratch
on Windows:
>
> http://www.php.net/manual/en/install.windows.php#install.windows.build
>
> The info on how to write your own extension to PHP is also online:
>
> http://www.php.net/manual/en/zend.php
>
> Basicly, making one on Windows is exactly the same as on Linux... except
for the
> fact that you do compiling with Visual STudio, and all the command-line
tools
> will have to be executed in Cygwin.
>
> when installing 'Cygwin', you must specificly download the developer
apps
> 'flex', 'bison', 'automake', and 'autoconf'. Otherwise, after you set up
Visual
> C++, it will complain about them not being available.
>
> I always meant to write up a step-by-step doc on this... but I never
found the
> time ;)
>
> - --
>
> Brian 'Bex' Huff <[EMAIL PROTECTED]>
> PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5A06A150
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQE+aL/KmexGJFoGoVARAtT8AKCuRZvadCMScV2epjNvqDkHLFwFpwCggfpA
> jnM9mA+5yE7JEO3LTrEMrlo=
> =lzGg
> -----END PGP SIGNATURE-----
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I never do that, but, you can do it with the ODBC that is supported in
Windows PHP version, that is my idea for you.
--
Alejandro Trujillo J.
Cube Systems LTDA.
web : csltda.com
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--- End Message ---
--- Begin Message ---
*use $HTTP_SESSION_VARS [] instead of $_SESSION[]
* Upgraded to 4.2.2 or later, i also had difficulty running sessions on
4.1.1
regds,
-----Original Message-----
From: venu gopal [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 19:00
To: [EMAIL PROTECTED]
Subject: basic sessions...
I am developing an intranet website using
programming tool - php 4.1.1 running as a module,
HTML, Javascript.
webserver - apache 1.3.x.
browser - Internet Explorer 5.0 / Netscape 6.2
platform - Windows 2000.
I am having problems with sessions. i am not able to
understand what's
wrong with following fragment of code.
first.php
<?php
session_start();
if(!isset($_SESSION['count']))
$_SESSION['count']=0;
else
$_SESSION['count']++;
?>
I am having a link to next.php from this page.
next.php
<?php
if(!isset($_SESSION['count']))
echo "variable not set";
else
echo $_SESSION['count'];
?>
the output of the above code in next.php when loaded
is "variable not set" why is it so, do i need to make
any changes in the php.ini or is it something to do
with the browser. I had browsed through the archive
and refered "[PHP-WIN] newbie Basic sessions..." but
it didn't help me much.
I also tried with session.use_tras_sid "On" and "Off"
even that didn't work.
kindly guide me in this regard.
following are the session settings in php.ini.
register_globals = Off
session.save_handler = files
session.save_path = c:/temp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = c:/cookies
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"
venugopal
Advanced Micronic Devices Ltd.
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--- End Message ---