php-windows Digest 25 Oct 2001 11:11:55 -0000 Issue 821

Topics (messages 10006 through 10012):

I've never seen anything like this!!                         24556
        10006 by: singh2578.yahoo.com

PHP & iis 4.0 & Oracle 8.1.6
        10007 by: Sean Duke
        10011 by: Philippe Saladin

Re: Mail and NT
        10008 by: CJD

Re: Session management issues
        10009 by: Eric Pankoke

Re: Sendmail...
        10010 by: Eric Pankoke
        10012 by: Ross Fleming

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]


----------------------------------------------------------------------



The WEB'S YOUNGEST WOMEN!!!!

http:[EMAIL PROTECTED]/gc/webyoung/?adv_id=107277

TEEN SUPER MODELS.......LIVE and INTERACTIVE VIDEOS

YOUNG BABES GETTING DOWN AND DIRTY

http:[EMAIL PROTECTED]/gc/webyoung/?adv_id=107277

  Over 18 only






To be removed from this list please click the link below and enter your email address
http:[EMAIL PROTECTED]/remove.php





Hi,

I would like to find out how I can get php to work on Win NT 4.0? I have
tried the CGI module only and that failed. Then I downloaded the full .dll
pakage and installed that onto my machine, I un-commented the extension path
& the required libraries to use for a Oracle connection. I keep getting a
dialog box saying "unable to load dynamic link library"
'c:/PHP/extensions/php_ etc. any other ideas?

Sean

!----------------- php.ini

extension_dir = c:/PHP/extensions/
extension=php_oci8.dll
extension=php_oracle.dll

!---------- php error message

X-Powered-By: PHP/4.0.6 Content-type: text/html
Fatal error: Call to undefined function: ocilogon() in
d:\Inetpub\wwwroot\test\sean\querystring\display.php on line 4
PHP Warning: Unable to load dynamic library
'c:/PHP/extensions/php_oci8.dll' - in Unknown on line 0 PHP Warning: Unable
to load dynamic library 'c:/PHP/extensions/php_oracle.dll' - in Unknown on
line 0







it's a physical path, so you would use '\' and not '/' :
extension_dir=c:\PHP\extensions

Regards,
Philippe

"Sean Duke" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Hi,
>
> I would like to find out how I can get php to work on Win NT 4.0? I have
> tried the CGI module only and that failed. Then I downloaded the full .dll
> pakage and installed that onto my machine, I un-commented the extension
path
> & the required libraries to use for a Oracle connection. I keep getting a
> dialog box saying "unable to load dynamic link library"
> 'c:/PHP/extensions/php_ etc. any other ideas?
>
> Sean
>
> !----------------- php.ini
>
> extension_dir = c:/PHP/extensions/
> extension=php_oci8.dll
> extension=php_oracle.dll
>
> !---------- php error message
>
> X-Powered-By: PHP/4.0.6 Content-type: text/html
> Fatal error: Call to undefined function: ocilogon() in
> d:\Inetpub\wwwroot\test\sean\querystring\display.php on line 4
> PHP Warning: Unable to load dynamic library
> 'c:/PHP/extensions/php_oci8.dll' - in Unknown on line 0 PHP Warning:
Unable
> to load dynamic library 'c:/PHP/extensions/php_oracle.dll' - in Unknown on
> line 0
>
>
>






just use the IP address of the Exchange server, or your ISPs smtp server


"Joseph Koenig" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I'm developing a site on a NT box (I'm much more familiar with unix) and
> am unable to get mail to send on NT. I've edited the php.ini file so
> that SMTP = gatekeeper, which is the name of the server. That's all I
> saw in the manual and archives that would need to be changed. They have
> Exchange running on that server. is it possible exchange is running as a
> name other than 'gatekeeper', even though that's the name of the server?
> Their admin says it is running as gatekeeper, but I'd like to ensure
> that it really is. How do I check that, and if that's fine, what else
> should I look at to get this working? Please CC me as I am not on the
> win list. Thanks a lot,
>
> Joe






There are two potential problems (unless, of course, there's more to your 
pages than what you're showing us).  Do you put a session_start() at the 
top of each page?  If not, you won't be able to share variables across 
pages.  Also, are you sure the session id is getting passed to each 
page?  If not, it will start a new session each time and your variables 
will never be registered.  Also, you shouldn't need the second 
session_start() in the else block of the login page.

At 11:28 AM 10/24/01 -0600, Jason McIntyre wrote:
>Hi there:
>I am using PHP 4+ and MySQL to manage access to secured areas on a website.
>My problem is that my session functions don't seem to be working properly.
>Even after I start and register a session variable, my function to check
>that session variable says that it doesn't exist. Help!
>
>Here are the scripts:
>
>Login page:
>
><?
>  require_once("db_con.php"); -creates the database connection
>  require_once("user_auth.php"); - authenticates user in database
>  session_start();
>
>  if($txtUsername && $txtPassword)
>  {
>   $result = login($txtUsername, $txtPassword);
>      if (!$result)
>      {
>         header("Location: loginerror.php");
>   }
>   else
>   {
>    session_start();
>    session_register("valid_user");
>    $valid_user = $result; - this passes in the unique id of the person who
>logged in.
>    header("Location: ../memberso/default.php?idccacon=".$valid_user);
>      }
>       exit;
>     }
>?>
>---------------------------------
>Now if the user exists it opens the ...default.php page, which has this code
>...
><?
>require_once("valid_user.php");
>check_valid_user(); - which is in the valid_user.php
>
>
>This is the function that is called.
>
><?
>  function check_valid_user()
>  {
>   global $valid_user;
>   if (!session_is_registered("valid_user"))
>       header("Location: ../secure/accesserror.php");
>  }
>?>
>
>
>thx!
>Jason
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Just curious, where did you find the win32 version of sendmail?

At 11:49 PM 10/24/01 +0100, Ross Fleming wrote:
>Never mind people, I found a win32 version of sendmail and it works now.
>
>Ta anyway
>
>Ross
>
>-----Original Message-----
>From: Ross Fleming [mailto:[EMAIL PROTECTED]]
>Sent: 24 October 2001 23:29
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] Sendmail...
>
>
>Hello, I'm probably just being a bit thick, but how exactly do I get the
>mail function to work?..
>
>Do I need a sendmail replacement? (I downloaded blat to see if that would
>help but can't see that it does.)
>
>------
>php.ini
>
>
>[mail function]
>; For Win32 only.
>SMTP= mail.totalise.co.uk ; for Win32 only
>
>; For Win32 only.
>sendmail_from= [EMAIL PROTECTED] ; for Win32 only
>
>----------
>
>Do I need to have this in?..
>
>; For Unix only.  You may supply arguments as well (default:
>'sendmail -t -i').
>;sendmail_path=
>
>I tried uncommenting the sendmail_path and pointed to c:\windows\blat.exe
>
>Called it from within a php page
>mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
>
>Got:
>Warning: Server Error in C:\Program Files\Apache
>Group\Apache\htdocs/email.php on line 11
>
>whether I uncommented the sendmail_path line or not.
>
>Any help appreciated.  I'm running Windows 98.
>
>Thanks
>
>Ross
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]





Searched google with the string "sendmail for windows".

http://www.indigostar.com/sendmail.htm

It's a shareware version of sendmail though, not sure how long it will
last.  I'm thinking about using Blat (freeware) which is just a command
line mailer and just calling it from exec() or system() etc.  Either
that or actually using sendmail through cygwin or something.

Ross


Eric Pankoke wrote:
> 
> Just curious, where did you find the win32 version of sendmail?
> 
> At 11:49 PM 10/24/01 +0100, Ross Fleming wrote:
> >Never mind people, I found a win32 version of sendmail and it works now.
> >
> >Ta anyway
> >
> >Ross
> >
> >-----Original Message-----
> >From: Ross Fleming [mailto:[EMAIL PROTECTED]]
> >Sent: 24 October 2001 23:29
> >To: [EMAIL PROTECTED]
> >Subject: [PHP-WIN] Sendmail...
> >
> >
> >Hello, I'm probably just being a bit thick, but how exactly do I get the
> >mail function to work?..
> >
> >Do I need a sendmail replacement? (I downloaded blat to see if that would
> >help but can't see that it does.)
> >
> >------
> >php.ini
> >
> >
> >[mail function]
> >; For Win32 only.
> >SMTP= mail.totalise.co.uk ; for Win32 only
> >
> >; For Win32 only.
> >sendmail_from= [EMAIL PROTECTED] ; for Win32 only
> >
> >----------
> >
> >Do I need to have this in?..
> >
> >; For Unix only.  You may supply arguments as well (default:
> >'sendmail -t -i').
> >;sendmail_path=
> >
> >I tried uncommenting the sendmail_path and pointed to c:\windows\blat.exe
> >
> >Called it from within a php page
> >mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3");
> >
> >Got:
> >Warning: Server Error in C:\Program Files\Apache
> >Group\Apache\htdocs/email.php on line 11
> >
> >whether I uncommented the sendmail_path line or not.
> >
> >Any help appreciated.  I'm running Windows 98.
> >
> >Thanks
> >
> >Ross
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >--
> >PHP Windows Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


Reply via email to