php-windows Digest 1 Apr 2003 17:13:44 -0000 Issue 1663

Topics (messages 19218 through 19228):

Re: PHP as CSS Stylesheet - broken in IE6/PHP 4.3.x
        19218 by: Per Lundberg

.
        19219 by: chris.avontuur.philips.com

COM and reference or smart pointers ....
        19220 by: Ruben Goethals

COM and reference or smart pointers to com interface
        19221 by: Ruben Goethals

Re: [newbie] SSL on Win98
        19222 by: speedfreak.chello.be

Extension doesn't work in IIS
        19223 by: Benjamin Walling
        19225 by: Luis Ferro

Andrew's Image Problem
        19224 by: Andrew von Hoesslin

Simple Answer, but I can't see it....
        19226 by: Trystano.aol.com
        19227 by: skate
        19228 by: Trystano.aol.com

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 ---
On Mon, 2003-03-31 at 21:58, Isetro Savi wrote:
> > Does the stylesheet validate? (http://validator.w3.org)
> > 
> > I would guess this is a register_globals problem.

What this means is that you can no longer write $moo to get the contents
of the GET/POST/cookie variable "moo", but you rather need to use
$_GET["moo"], $_POST["moo"] and similar.  But you might already be aware
of that.

> The stylesheet validates.  I've been trying to comment out some of the
> database code (stylesheet colors stored in mysql db) to see if that
> helps, but I've still had no luck.  I'm not explicitly using any
> globals, but I'll check through and see if I note anything.

I have had some *really* weird problems with stylesheets in Mozilla
sometimes.  It simply doesn't load my stylesheet if there are things
printed before the starting <html> tag (like debug messages and such). 
I don't know if this is the cause of your problems (it might not be) but
it might be worth at try.  Try also using a blank page (or as blank as
possible) that includes the CSS to make sure there is nothing that
interferes somehow.
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Regards,

Chris Avontuur

Web Development
Medical Imaging IT
Philips Medical Systems Nederland B.V.
Building QV-222 
phone +31 40 27 65625

--- End Message ---
--- Begin Message ---
Hi, I am writing a php application to use a com object that is defined in my
OS, but I have difficulties getting a (smart)pointer from another
com-object.

Here is the code (untill the error):
******************************************************************
$ConnectionObj = new COM("Falcon.ConnectionObject") or die("Unable to
instanciate ConnectionObject"); //First COM-object !!!!
print "Loaded ConnectionObject\n";
$GroupDataObj = new COM("Falcon.GroupData") or die("Unable to instanciate
GroupDataObject"); //Second COM-object!!!
print "Loaded GroupDataObject\n";

$devOpenErr = $ConnectionObj->Open2("FalconEdi.Pei16Edi.1","COM1");//);
//Get a connection to some thing :-)

$result = $GroupDataObj->Connection($ConnectionObj);  //Here is the error
******************************************************************

At this last line I get the error Invoke() failed:exception occured. I think
this is because I don't know how to get a smartpointer to that
ConnectionObject.  Because a parameter in the GroupDataObj must be a pointer
to the first COM-object and this is done throught this function
(GroupDataObj->Connection) which takes a pointer to that first com-object.
The function GroupDataObj->Connection is defined as follows:
******************************************************************
HRESULT IGroupDataTransfer::Connection (  [in] IConnection * newVal )
******************************************************************

with "IConnection" the Interface "Falcon.ConnectionObject" like in my php
code above.

In C++, I would have done that last line as follows:
******************************************************************
HRESULT hr = GroupdataObj->Connection (IConnectionPtr(IConnectionObj));
******************************************************************

But in C++ the headers are used and this is what I found for the definition
of IConnectionPtr:
******************************************************************
#if defined(__cplusplus) && defined(_MSC_VER) &&
defined(_COM_SMARTPTR_TYPEDEF)
_COM_SMARTPTR_TYPEDEF(IConnection, __uuidof(IConnection));
******************************************************************

Anybody knows ho to do that in PHP ?
Are these variables I created abov, "$ConnectionObj"  and
"$GroupDataObj" pointers or php-com-structures or both ? If not the first
how can you get a pointer to it then ?

Thanks



--- End Message ---
--- Begin Message ---
Hi, I am writing a php application to use a com object that is defined in my
OS, but I have difficulties getting a (smart)pointer from another
com-object.

Here is the code (untill the error):
******************************************************************
$ConnectionObj = new COM("Falcon.ConnectionObject") or die("Unable to
instanciate ConnectionObject"); //First COM-object !!!!
print "Loaded ConnectionObject\n";
$GroupDataObj = new COM("Falcon.GroupData") or die("Unable to instanciate
GroupDataObject"); //Second COM-object!!!
print "Loaded GroupDataObject\n";

$devOpenErr = $ConnectionObj->Open2("FalconEdi.Pei16Edi.1","COM1");//);
//Get a connection to some thing :-)

$result = $GroupDataObj->Connection($ConnectionObj);  //Here is the error
******************************************************************

At this last line I get the error Invoke() failed:exception occured. I think
this is because I don't know how to get a smartpointer to that
ConnectionObject.  Because a parameter in the GroupDataObj must be a pointer
to the first COM-object and this is done throught this function
(GroupDataObj->Connection) which takes a pointer to that first com-object.
The function GroupDataObj->Connection is defined as follows:
******************************************************************
HRESULT IGroupDataTransfer::Connection (  [in] IConnection * newVal )
******************************************************************

with "IConnection" the Interface "Falcon.ConnectionObject" like in my php
code above.

In C++, I would have done that last line as follows:
******************************************************************
HRESULT hr = GroupdataObj->Connection (IConnectionPtr(IConnectionObj));
******************************************************************

But in C++ the headers are used and this is what I found for the definition
of IConnectionPtr:
******************************************************************
#if defined(__cplusplus) && defined(_MSC_VER) &&
defined(_COM_SMARTPTR_TYPEDEF)
_COM_SMARTPTR_TYPEDEF(IConnection, __uuidof(IConnection));
******************************************************************

Anybody knows ho to do that in PHP ?
Are these variables I created abov, "$ConnectionObj"  and
"$GroupDataObj" pointers or php-com-structures or both ? If not the first
how can you get a pointer to it then ?

Thanks





--- End Message ---
--- Begin Message ---
Bobby Rahman wrote:

> Hiya
>
> Can anyone point me in the direction of a dummies guide (idiot proof..)
> to installing and configuring SSL for PHP4/Apache2.4.03/Win98. Had a little
> look around on a few php websites but as usual im finding the windows stuff
> a little lacking for me.
>
> Thanks
>
> Bob
>

Hi Bob, here are a few links you can check out. Whether they're idiot-proof or
not is not for me to judge...

http://hunter.campbus.com/ (fast 'n easy, should be idiot proof!)
    Apache_1.3.27-Mod_SSL_2.8.14-Openssl_0.9.7a-Win32.zip
    Apache_2.0.44-Openssl_0.9.7a-Win32.zip

http://swamp.sourceforge.net/ SWAMP (Secure Windows Apache Mysql Php):
    fully configured, installation of Apache 1/2 (mod_ssl), PHP, MySQL, OpenSSL
and related
    administrative tools; for installation details on Apache2, point your
browser to
    http://sourceforge.net/docman/display_doc.php?docid=14556&group_id=68771

http://tud.at/programm/apache-ssl-win32-howto.php3 (just what it says)

For details on configuring Apache: after installing any of the above, check your
local Apache2 manual or http://httpd.apache.org/docs-2.0/ for latest
documentation.

Good luck,
speedfreak


--- End Message ---
--- Begin Message ---
I set up the mssql extension.  I process a page from the command line (php
d:\websites\istatus\DispatchNav.php) and it reads from the SQL Server and
processes normally.  If I try the page from a browser, I get 'call to
undefined function: mssql_connect()'.  I have restarted IIS, and that did
not help.



--- End Message ---
--- Begin Message --- I would think that is a permission problem. When you execute from the command line, you are executing with your user name and permissions. When you execute from within IIS, you are either executing it from IUSR_servername or IWAN_servername users... Which can or can't have rights to the dlls in question...

Check also with phpinfo() to acertain what extensions are installed, because you can have it installed in a directory but php.ini may have an incomplete configuration...

Just two ideas... hope to have been of help...

LF

Benjamin Walling wrote:

I set up the mssql extension.  I process a page from the command line (php
d:\websites\istatus\DispatchNav.php) and it reads from the SQL Server and
processes normally.  If I try the page from a browser, I get 'call to
undefined function: mssql_connect()'.  I have restarted IIS, and that did
not help.








--- End Message ---
--- Begin Message ---
Anybody have a clue why this does not work??!!!

I am using php430 

imagecopy 
("images/card/finaltemp/maincard.jpg","images/sponsor/pics/top/G3top.jpg",15,15,15,15,15,15);

this works so i dont know what the problem is???

$size = getimagesize ("images/card/finaltemp/maincard.jpg");

echo "<img src=\"images/card/finaltemp/maincard.jpg\" {$size[3]}>";

$size = getimagesize ("images/sponsor/pics/top/G3top.jpg");

echo "<img src=\"images/sponsor/pics/top/G3top.jpg\" {$size[3]}>";



thanks 

--- End Message ---
--- Begin Message ---
Hi, I have a login HTML form within a PHP page that I want to call itself 
when submitted. But when I press the submit button within the form, the form 
doesn't load itself for some reason. I have tried two ways of solving this 
but can't get it to work. It would be great if someone could identify where I 
have gone wrong.

I have the tried the following codes:

<form method="post" action="SessionLogin.php"></form>  //SessionLogin.php is 
the name of the actual file

and...

<?PHP $self = $_SERVER[ 'PHP_SELF' ]; ?>
<form method="post" action="<?php echo $self ?>"></form>

Both don't seem to work for some reason.

Cheers in advance

Tryst

--- End Message ---
--- Begin Message ---
i'm guessing (hoping) that you have an actual form inside those form tags?

what's the rest of the code look like, and what does it actually do?

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 01, 2003 5:48 PM
Subject: [PHP-WIN] Simple Answer, but I can't see it....


> Hi, I have a login HTML form within a PHP page that I want to call itself
> when submitted. But when I press the submit button within the form, the
form
> doesn't load itself for some reason. I have tried two ways of solving this
> but can't get it to work. It would be great if someone could identify
where I
> have gone wrong.
>
> I have the tried the following codes:
>
> <form method="post" action="SessionLogin.php"></form>  //SessionLogin.php
is
> the name of the actual file
>
> and...
>
> <?PHP $self = $_SERVER[ 'PHP_SELF' ]; ?>
> <form method="post" action="<?php echo $self ?>"></form>
>
> Both don't seem to work for some reason.
>
> Cheers in advance
>
> Tryst
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--- End Message ---
--- Begin Message ---
This is the some of the code that is contained within the PHP page...

<?php

if (isset( $_POST[ "username"] )) {
code here....
} 
?>
more HTML & PHP etc...

<?PHP $self = $_SERVER[ 'PHP_SELF' ]; ?>
<form method="post" action="SessionLogin.php"></form>
<input type="text" name="username" maxlength="20"/>
<input type="password" name="password" maxlength="20"/>
<input type="submit" value="Submit"/>
</form>
?>
More HTML etc...

When the submit button is pressed the nothing happens.

Tryst

--- End Message ---

Reply via email to