php-windows Digest 8 Mar 2002 21:57:27 -0000 Issue 1036

Topics (messages 12517 through 12540):

R: [PHP-WIN] for loop...
        12517 by: Darvin Andrioli

no permissions for copy/move_uploaded_file - workaround?
        12518 by: Fabby

Re: What's this Error msg?
        12519 by: Nicole Amashta

Re: for loop...
        12520 by: Nicole Amashta

error message
        12521 by: Dan Zarrella

Re: sendmail for windows
        12522 by: LaserJetter
        12528 by: Ross Fleming
        12535 by: DL Neil
        12536 by: Shrock, Court
        12537 by: Scott St. John
        12538 by: Nicole Amashta

Re: sending mail with mail()
        12523 by: LaserJetter

Re: Connect to MS SQL server on diff machine
        12524 by: Nicole Amashta
        12525 by: Nicole Amashta
        12526 by: Nicole Amashta

sessions
        12527 by: Dan Zarrella
        12533 by: Dale Heil

Unable to load dynamic library 'c:\php\extensions\php_gd.dll' - The specified 
procedure could not be found
        12529 by: Jefferrs
        12530 by: Dan Zarrella
        12531 by: Nicole Amashta
        12532 by: alain samoun

sessions Problem Followup concerning IE6
        12534 by: Dale Heil
        12540 by: Mike Flynn

EZ upgrade to php 4.1.1
        12539 by: Afan Pasalic

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 Murphy

this is a very dumb answer... you may test if Approve.length is equal to
zero before the second loop, so you may change your code to

 for(int i = 0; i <  View.length; i++)

            if(Approve.length==0) { do something }
            else {
                for(int l = 0; l <Approve.length ; l++)


                        SQL = "insert into DOC_PRIVILEGES (COD)......

                                }
             }

May be it an idea?
Regards

Darvin

> -----Messaggio originale-----
> Da: Sandeep Murphy [mailto:[EMAIL PROTECTED]]
> Inviato: venerdì 8 marzo 2002 10.44
> A: [EMAIL PROTECTED]
> Oggetto: [PHP-WIN] for loop...
>
>
> hi,
>
> may be this is a dumb question to ask but here goes anyway..
>
> I have 2 for loops such as:
>
> for(int i = 0; i <  View.length; i++)

>               for(int l = 0; l <Approve.length ; l++)

>
>                       SQL = "insert into DOC_PRIVILEGES (COD)......
>
>                               }
>               }
>
> where view.length = 5 and approve.length is 0 (in this case), how do i
> execute my query irrespective of whether the inner forloop is empty or
> not???
>
> I cannot use a l"<=" as it wud result in an ArrayOutOfBoundsException...
>
> any suggestions pl??
>
> TIA,
> sands
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
hi all,

my file uploads fail due to restrictions by the provider. my upload script
is not allowed to execute the copy or move_uploaded_file functions. is there
another solution for it? i found a suggestion which said i should use
fopen() and so on ... but i don't know how to do that.

thanks in advance, fabby


--- End Message ---
--- Begin Message ---
Perhaps verify that the code you are running on windows is in fact
compatible with windows. Some things that work on Linux just don't work on
windows. That is, some functions don't work and/or can't be used on Linux.

Just a suggestion,

Nicole
www.aeontrek.com

"Martin Wright" <[EMAIL PROTECTED]> wrote in message
006b01c1c657$6ff535c0$0100a8c0@serv">news:006b01c1c657$6ff535c0$0100a8c0@serv...
> Warning: Unknown persistent list entry type in module shutdown (11) in
> Unknown on line 0
>
> Getting this on my apps under windows on my desktop.  Doesn't happen on
> Linux server.
>
> What and why, someone?
>
> TIA
>
> --
> Martin Wright
>
>


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

for(...) {
    do {

    } while( ... )
}

so that way, your code inside the inner loop will execute at least once
everytime ....

nicole amashta
www.aeontrek.com


"Sandeep Murphy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi,
>
> may be this is a dumb question to ask but here goes anyway..
>
> I have 2 for loops such as:
>
> for(int i = 0; i <  View.length; i++)

> for(int l = 0; l <Approve.length ; l++)

>
>   SQL = "insert into DOC_PRIVILEGES (COD)......
>
> }
> }
>
> where view.length = 5 and approve.length is 0 (in this case), how do i
> execute my query irrespective of whether the inner forloop is empty or
> not???
>
> I cannot use a l"<=" as it wud result in an ArrayOutOfBoundsException...
>
> any suggestions pl??
>
> TIA,
> sands


--- End Message ---
--- Begin Message ---
check how php is installed and configured with your servers, sessiona dn 
persistant DB connections do not work correctly when php is used as a cgi 
excecutable(which may be the case under windows) and they do as an api-style 
module(most likely the case with apache/*nix). -dan

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---
--- Begin Message ---
Is 192.168.0.2 a valid IP address? I didn't know you could have a zero as
one of the elements.


"Dl Neil" <[EMAIL PROTECTED]> wrote in message
0ac801c1c118$1f9244e0$c200a8c0@jrbrown">news:0ac801c1c118$1f9244e0$c200a8c0@jrbrown...
> 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 ---
The 192.168.0.xxx range are used in Microsofts Internet Connection Sharing
I believe.  The host PC (the one with the actual internet connection, modem
whatever) is 192.168.0.1, the rest of the computers on the network are
assigned up from one, so 192.168.0.2 will be the second pc attached to the
network.

LaserJetter wrote:

> Is 192.168.0.2 a valid IP address? I didn't know you could have a zero as
> one of the elements.
>
> "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> 0ac801c1c118$1f9244e0$c200a8c0@jrbrown">news:0ac801c1c118$1f9244e0$c200a8c0@jrbrown...
> > 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
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
LaserJetter,

> Is 192.168.0.2 a valid IP address? I didn't know you could have a zero
as
> one of the elements.

I'm not sure where this question came from, but ...

Yes you can have a zero value in IP address octets.
Obviously they all can't be zero.
(I haven't researched it, but maybe the first cannot be zero)
I suggest that 192.168.0.nnn must be THE most commonly used IP
address/sub-net in the world!

Regards,
=dn

--- End Message ---
--- Begin Message ---
There are 5 different address classes. You can determine which class any IP
address is in by examining the first 4 bits of the IP address. 
        Class A addresses begin with 0xxx, or 1 to 126 decimal. 
        Class B addresses begin with 10xx, or 128 to 191 decimal. 
        Class C addresses begin with 110x, or 192 to 223 decimal. 
        Class D addresses begin with 1110, or 224 to 239 decimal. 
        Class E addresses begin with 1111, or 240 to 254 decimal. 

There are three IP network addresses reserved for private networks. The
addresses are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. They can be
used by anyone setting up internal IP networks, such as a lab or home LAN
behind a NAT or proxy server or a router. It is always safe to use these
because routers on the Internet will never forward packets coming from these
addresses. These addresses are defined in RFC 1918.

from: http://www.ralphb.net/IPSubnet/ipaddr.html

In summary, 192.168.0.0 is a private class C subnet with a maximum of 254
hosts or nodes (.0 and .255 are reservered as the network and broadcast
addresses respectively)

> -----Original Message-----
> From: DL Neil [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 11:55 AM
> To: LaserJetter
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] sendmail for windows
> 
> 
> LaserJetter,
> 
> > Is 192.168.0.2 a valid IP address? I didn't know you could 
> have a zero
> as
> > one of the elements.
> 
> I'm not sure where this question came from, but ...
> 
> Yes you can have a zero value in IP address octets.
> Obviously they all can't be zero.
> (I haven't researched it, but maybe the first cannot be zero)
> I suggest that 192.168.0.nnn must be THE most commonly used IP
> address/sub-net in the world!
> 
> Regards,
> =dn
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
You see 192.168.xxx.xxx as home networks and corporate networks, it is a 
Class C designed for that as it will NOT route on the Internet.

As for the 0 you could have 192.168.0.1, but will not see 192.168.0.0 as 0 
and 255 are your broadcast addresses.  So in a home network BEHIND a 
firewall or Internet Connection Sharing device  the USUABLE 
addresses for your machines would be:  192.168.0.1-192.168.0.254.  
hth
-Scott





On Fri, 8 Mar 2002, DL Neil wrote:

> LaserJetter,
> 
> > Is 192.168.0.2 a valid IP address? I didn't know you could have a zero
> as
> > one of the elements.
> 
> I'm not sure where this question came from, but ...
> 
> Yes you can have a zero value in IP address octets.
> Obviously they all can't be zero.
> (I haven't researched it, but maybe the first cannot be zero)
> I suggest that 192.168.0.nnn must be THE most commonly used IP
> address/sub-net in the world!
> 
> Regards,
> =dn
> 
> 
> 

-- 


--- End Message ---
--- Begin Message ---
Yeah, if you are using DHCP. Otherwise, you manually assign IPs to each
computer on the network.


"Ross Fleming" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The 192.168.0.xxx range are used in Microsofts Internet Connection Sharing
> I believe.  The host PC (the one with the actual internet connection,
modem
> whatever) is 192.168.0.1, the rest of the computers on the network are
> assigned up from one, so 192.168.0.2 will be the second pc attached to the
> network.
>
> LaserJetter wrote:
>
> > Is 192.168.0.2 a valid IP address? I didn't know you could have a zero
as
> > one of the elements.
> >
> > "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> > 0ac801c1c118$1f9244e0$c200a8c0@jrbrown">news:0ac801c1c118$1f9244e0$c200a8c0@jrbrown...
> > > 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
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
There is a class for connecting to a SMTP server directly at phpbuilder.com
I think.  This is really useful if you've got a fast internet connection
i.e. the web server is hosted by someone.


"Aris Basic" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
> Im trying to use mail() function with PHP 4.02 under WIndows NT Server
> and IIS
> and I allways get Failed to connect
> even though the SMPT server in php.ini is setup correctly
> and i cna acces that server from webserver
>
> doing the same thing on WIndows NT Workstation and apache (same version
> of PHP) works.
> is it something with that PHP version or there is something else i have
> to take look at.
>
> Thank You
> Aris


--- End Message ---
--- Begin Message ---
No luck yet with this.

I'm still having trouble getting PHP to see the php_mssql.dll. The extension
path is set correctly. I even copy and pasted the path from the window bar -
so no typo. The extension exists in this path. I added IUSER_ to the
ntwlib.dll and to the php directory .... no luck yet.

I did clicnfg and verifified TCP/IP was there. I removed named pipes from
the list. Not working yet.

I just rebooted. So, we'll see ...

Nicole ....
www.aeontrek.com

"Ray Hunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Have you uncomment the dll in the php.ini file?
>
> Thank you,
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -----Original Message-----
> From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: Connect to MS SQL server on diff machine
>
>
> OK, this still isn't working. It's not seeing the php_mssql.dll, even
though
> it's there and the path is set correctly to extensions in PHP.
>
> I've never had trouble with this before, so I'm baffled as of now.
>
> Any ideas?
>
> nicole
> www.aeontrek.com
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Just install the client tools from the SQL Server CD (if you have
> > this).
> >
> > Well, I just did this and now I will see if the rest works ...
> >
> > stay tuned ....
> >
> > nicole
> > www.aeontrek.com
> >
> > "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > OK, I have Apache and PHP 4.0.6 installed. I want to be able to
> > > access
> an
> > MS
> > > SQL Server, but I don't want to install SQL Server on the web
> > > server.
> What
> > > files are needed in order to do this?
> > >
> > > Normally, I have no problem with this because I typically have MS
> > > SQL
> > Server
> > > installed on the web server.
> > >
> > > The only file I know of to put in the system32 root is ntwdblib.dll.
> > > But
> > are
> > > there any others? (Aside from enabling the php_mssql.dll).
> > >
> > > I still get the unable to load php_mssql.dll even though the file
> > > exists
> > and
> > > the extension_dir path is set to where I keep this extension.
> > >
> > > This works in all cases where I have the SQL Server running on the
> > > same machine as PHP/Apache, etc. So I am guess I am just missing
> > > some other
> > files
> > > for this to work. ANyone encounter this scenario and realized how to
> > resolve
> > > this?
> > >
> > > Any help or direction is appreciated!
> > >
> > > TIA,
> > >
> > > --
> > > Nicole Amashta
> > > Web Applications Developer
> > > www.aeontrek.com
> > >
> > >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
Yes.

"Ray Hunter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Have you uncomment the dll in the php.ini file?
>
> Thank you,
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -----Original Message-----
> From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 10:08 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: Connect to MS SQL server on diff machine
>
>
> OK, this still isn't working. It's not seeing the php_mssql.dll, even
though
> it's there and the path is set correctly to extensions in PHP.
>
> I've never had trouble with this before, so I'm baffled as of now.
>
> Any ideas?
>
> nicole
> www.aeontrek.com
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Just install the client tools from the SQL Server CD (if you have
> > this).
> >
> > Well, I just did this and now I will see if the rest works ...
> >
> > stay tuned ....
> >
> > nicole
> > www.aeontrek.com
> >
> > "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > OK, I have Apache and PHP 4.0.6 installed. I want to be able to
> > > access
> an
> > MS
> > > SQL Server, but I don't want to install SQL Server on the web
> > > server.
> What
> > > files are needed in order to do this?
> > >
> > > Normally, I have no problem with this because I typically have MS
> > > SQL
> > Server
> > > installed on the web server.
> > >
> > > The only file I know of to put in the system32 root is ntwdblib.dll.
> > > But
> > are
> > > there any others? (Aside from enabling the php_mssql.dll).
> > >
> > > I still get the unable to load php_mssql.dll even though the file
> > > exists
> > and
> > > the extension_dir path is set to where I keep this extension.
> > >
> > > This works in all cases where I have the SQL Server running on the
> > > same machine as PHP/Apache, etc. So I am guess I am just missing
> > > some other
> > files
> > > for this to work. ANyone encounter this scenario and realized how to
> > resolve
> > > this?
> > >
> > > Any help or direction is appreciated!
> > >
> > > TIA,
> > >
> > > --
> > > Nicole Amashta
> > > Web Applications Developer
> > > www.aeontrek.com
> > >
> > >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---
--- Begin Message ---
Update: Problem fixed.

Solution: replaced the current php_mssql.dll with another one (different
size and date), and it worked. Must have been an issue with the dll version
not compatible with the version of php (4.0.6) that I was using.

Thanks for the help people!

Nicole
www.aeontrek.com

"Always something simple!"

"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> No luck yet with this.
>
> I'm still having trouble getting PHP to see the php_mssql.dll. The
extension
> path is set correctly. I even copy and pasted the path from the window
bar -
> so no typo. The extension exists in this path. I added IUSER_ to the
> ntwlib.dll and to the php directory .... no luck yet.
>
> I did clicnfg and verifified TCP/IP was there. I removed named pipes from
> the list. Not working yet.
>
> I just rebooted. So, we'll see ...
>
> Nicole ....
> www.aeontrek.com
>
> "Ray Hunter" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Have you uncomment the dll in the php.ini file?
> >
> > Thank you,
> >
> > Ray Hunter
> > Firmware Engineer
> >
> > ENTERASYS NETWORKS
> >
> >
> > -----Original Message-----
> > From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 07, 2002 10:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Re: Connect to MS SQL server on diff machine
> >
> >
> > OK, this still isn't working. It's not seeing the php_mssql.dll, even
> though
> > it's there and the path is set correctly to extensions in PHP.
> >
> > I've never had trouble with this before, so I'm baffled as of now.
> >
> > Any ideas?
> >
> > nicole
> > www.aeontrek.com
> >
> > "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Just install the client tools from the SQL Server CD (if you have
> > > this).
> > >
> > > Well, I just did this and now I will see if the rest works ...
> > >
> > > stay tuned ....
> > >
> > > nicole
> > > www.aeontrek.com
> > >
> > > "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > OK, I have Apache and PHP 4.0.6 installed. I want to be able to
> > > > access
> > an
> > > MS
> > > > SQL Server, but I don't want to install SQL Server on the web
> > > > server.
> > What
> > > > files are needed in order to do this?
> > > >
> > > > Normally, I have no problem with this because I typically have MS
> > > > SQL
> > > Server
> > > > installed on the web server.
> > > >
> > > > The only file I know of to put in the system32 root is ntwdblib.dll.
> > > > But
> > > are
> > > > there any others? (Aside from enabling the php_mssql.dll).
> > > >
> > > > I still get the unable to load php_mssql.dll even though the file
> > > > exists
> > > and
> > > > the extension_dir path is set to where I keep this extension.
> > > >
> > > > This works in all cases where I have the SQL Server running on the
> > > > same machine as PHP/Apache, etc. So I am guess I am just missing
> > > > some other
> > > files
> > > > for this to work. ANyone encounter this scenario and realized how to
> > > resolve
> > > > this?
> > > >
> > > > Any help or direction is appreciated!
> > > >
> > > > TIA,
> > > >
> > > > --
> > > > Nicole Amashta
> > > > Web Applications Developer
> > > > www.aeontrek.com
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>


--- End Message ---
--- Begin Message ---
Does anyone know anything about the differnce in session handling between 
linux and windows, i have an admin interface working fin with sessions in 
windows but it flops on linux, register_globals is on, yet there is somekind 
of problem with retriving session variables inside of functions. -dan

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

--- End Message ---
--- Begin Message ---
Running winNT4.0sp6a, apache1.3.20, php4.1.1(as a module)

I've been able to call a function from first .php page that sets a session variable 
(verified with an echo).
        I used    $_SESSION['BreadCrumbCounter'] = 0;

then from that page I call a second .php page via    
<a href="/eduEIS/Components/php/mainPage.php?sid=<?php echo $PHPSESSID?>">
I also tried    <a href="/eduEIS/Components/php/mainPage.php?<?=SID?>">

In second page, the session variable comes back as not set.
    I used    if (!isset($_SESSION['BreadCrumbCounter'])) {...

 I set session.auto_start to ON, set register globals to off.  What I took that doc as 
saying is in 4.1.1, 
with auto_start on, I could use $_SESSION[] without
the need to start a session and register session variables.  What am I missing?  I 
noticed the SID is
missing when using that href.

below are my php.ini settings.
register_globals Off  Off
session.use_trans_sid   1    1
session
Session Support enabled 

Directive       Local Value     Master Value    
session.auto_start      On      On      
session.cache_expire    180     180     
session.cache_limiter   nocache nocache 
session.cookie_domain   no value        no value        
session.cookie_lifetime         0       0       
session.cookie_path     /       /       
session.cookie_secure   Off     Off     
session.entropy_file    no value        no value        
session.entropy_length  0       0       
session.gc_maxlifetime  1440    1440    
session.gc_probability  1       1       
session.name    PHPSESSID       PHPSESSID       
session.referer_check   no value        no value        
session.save_handler    files   files   
session.save_path       /tmp    /tmp    
session.serialize_handler       php     php     
session.use_cookies     Off     Off     


--- End Message ---
--- Begin Message ---
"Unable to load dynamic library 'c:\php\extensions\php_gd.dll' - The
specified procedure could not be found"

That's the error message I get when trying to enable the GD extension in
PHP4.1.1 on the Xitami webserver.

My extensions directory is specified as:

extension_dir = c:\php\extensions\

and I've uncommented the GD dll. And yes, the locations and filenames match
up.

Can anyone help?


--- End Message ---
--- Begin Message ---
when i got that error i ussually copy and paasted the .dll file in lots of 
places, like c:\windows or c:\winnt and the windows\sytem dir. try that and 
rememebr to restart the server.-dan

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---
--- Begin Message ---
I had similar issue with my php_mssql.dll.

Problem turned out to be mismatching version.  Make sure that dll is
compatible with the version of PHP you are using.

Maybe your problem is same as mine was.

Hope that helps,
Nicole
www.aeontrek.com

"Jefferrs" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "Unable to load dynamic library 'c:\php\extensions\php_gd.dll' - The
> specified procedure could not be found"
>
> That's the error message I get when trying to enable the GD extension in
> PHP4.1.1 on the Xitami webserver.
>
> My extensions directory is specified as:
>
> extension_dir = c:\php\extensions\
>
> and I've uncommented the GD dll. And yes, the locations and filenames
match
> up.
>
> Can anyone help?
>
>


--- End Message ---
--- Begin Message ---
One possibility is that the dll you are pointing at, has not been compiled
with your current PHP version.
A+
Alain


-----Original Message-----
From: Jefferrs [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 9:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Unable to load dynamic library
'c:\php\extensions\php_gd.dll' - The specified procedure could not be
found


"Unable to load dynamic library 'c:\php\extensions\php_gd.dll' - The
specified procedure could not be found"

That's the error message I get when trying to enable the GD extension in
PHP4.1.1 on the Xitami webserver.

My extensions directory is specified as:

extension_dir = c:\php\extensions\

and I've uncommented the GD dll. And yes, the locations and filenames match
up.

Can anyone help?



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

--- End Message ---
--- Begin Message ---
I am using IE6.  I got someone with IE5.5 and my code works.

So, I just went into IE6>Tools>Internet Options>Privacy>Web Sites>Edit
and added my domain with Allow All and it works. 

I thought that php would still add the SID automatically even if a 
user had cookies blocked.

Any explanations, work arounds beside having users change their settings when
migrating to IE6?  Disabled in IE5.5 and before is definitely different 
than blocked in IE6.  It probably makes sense for security.  Maybe that was
one of the holes MS fixed?

TIA, Dale.





 

-----Original Message-----
From: Dale Heil [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] sessions


Running winNT4.0sp6a, apache1.3.20, php4.1.1(as a module)

I've been able to call a function from first .php page that sets a session variable 
(verified with an echo).
        I used    $_SESSION['BreadCrumbCounter'] = 0;

then from that page I call a second .php page via    
<a href="/eduEIS/Components/php/mainPage.php?sid=<?php echo $PHPSESSID?>">
I also tried    <a href="/eduEIS/Components/php/mainPage.php?<?=SID?>">

In second page, the session variable comes back as not set.
    I used    if (!isset($_SESSION['BreadCrumbCounter'])) {...

 I set session.auto_start to ON, set register globals to off.  What I took that doc as 
saying is in 4.1.1, 
with auto_start on, I could use $_SESSION[] without
the need to start a session and register session variables.  What am I missing?  I 
noticed the SID is
missing when using that href.

below are my php.ini settings.
register_globals Off  Off
session.use_trans_sid   1    1
session
Session Support enabled 

Directive       Local Value     Master Value    
session.auto_start      On      On      
session.cache_expire    180     180     
session.cache_limiter   nocache nocache 
session.cookie_domain   no value        no value        
session.cookie_lifetime         0       0       
session.cookie_path     /       /       
session.cookie_secure   Off     Off     
session.entropy_file    no value        no value        
session.entropy_length  0       0       
session.gc_maxlifetime  1440    1440    
session.gc_probability  1       1       
session.name    PHPSESSID       PHPSESSID       
session.referer_check   no value        no value        
session.save_handler    files   files   
session.save_path       /tmp    /tmp    
session.serialize_handler       php     php     
session.use_cookies     Off     Off     



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Sessions won't depend on the browser version.  If you are using cookies for 
the sessions, it will just depend on whether their browser has cookies 
blocked or not.  If you are not using cookies, and have the "transparent 
SID" option turned on in the PHP.INI file, then the ?SID=xxx will get 
appended onto links on the server-side before it ever even gets to the 
user's browser, so the browser version will have nothing to do with whether 
the SID gets added to the url or not.  The SID will only get added 
automatically if you have the "transparent SID" option turned on in the 
php.ini file.

Also, the SID won't get added for things like JavaScript redirects, META 
'refresh' tag redirects, header('Location: ...') redirects and all forms, 
as far as I know, so you'll have to add it manually for these.

Hope that helps.

-Mike

At 02:44 PM 3/8/02 -0500, Dale Heil wrote:
>I am using IE6.  I got someone with IE5.5 and my code works.
>
>So, I just went into IE6>Tools>Internet Options>Privacy>Web Sites>Edit
>and added my domain with Allow All and it works.
>
>I thought that php would still add the SID automatically even if a
>user had cookies blocked.
>
>Any explanations, work arounds beside having users change their settings when
>migrating to IE6?  Disabled in IE5.5 and before is definitely different
>than blocked in IE6.  It probably makes sense for security.  Maybe that was
>one of the holes MS fixed?
>
>TIA, Dale.

--- End Message ---
--- Begin Message ---
We are trying to upgrade to PHP 4.1.1 but are encountering that some variables that 
are not set as global are giving us records, same for constants. Does anyone know an 
easy way to solve this? we are running on a IIS box.

Or does anyone know how to run 2 versions of PHP4 on the same server? need to PHP.ini 
files.

Thanks.
--- End Message ---

Reply via email to