RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Indeed that works thank you very much :) -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 11 July 2003 15:50 To: Gary Ogilvie; [EMAIL PROTECTED] Subject: Re: [PHP] Capturing Windows Login Details > Well here is some more information so you can understand w

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Well here is some more information so you can understand what I am trying to do: I need to display their username in html/php document. This document has a form which they fill out. It is to stop people changing who they are when they fill out the form (for example joe bloggs filling out a timeshe

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
I have found out that all I actually need is the username. That is all - either the windows login username or the firewall username. How do I grab either? Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Everything I try I get "undefined index" what does this mean? It is vital also that I can grab the user and the pass before somebody can access a certain part of the website, like the authentication dialogs that appear in Internet Explorer. Gazza -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
:36 To: Gary Ogilvie; [EMAIL PROTECTED] Subject: Re: [PHP] Capturing Windows Login Details > I need to capture the username and password used to login to Windows > 2000/XP with PHP. Does anybody know how to do this? You can get the username, that's it. $_SESSION['LOGON_USER&#

[PHP] Capturing Windows Login Details

2003-07-11 Thread Gary Ogilvie
Hi All, I need to capture the username and password used to login to Windows 2000/XP with PHP. Does anybody know how to do this? Many thanks Gary Ogilvie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Refresh in PHP [solved]

2003-07-07 Thread Gary Ogilvie
Yeah I found that out eventually. Thanks :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Refresh in PHP

2003-07-07 Thread Gary Ogilvie
Hi Everyone, My user has reported a problem when he loads a page. The page grabs data from MSSQL and displays this on the screen. However, it is not updated. Is there any way in getting the page to automatically refresh itself ONCE when it is loaded, without ending up in a loop? Many thanks --

[PHP] Refresh in PHP

2003-07-04 Thread Gary Ogilvie
Hi Everyone, My user has reported a problem when he loads a page. The page grabs data from MSSQL and displays this on the screen. However, it is not updated. Is there any way in getting the page to automatically refresh itself once when it is loaded? Many thanks -- PHP General Mailing List (ht

RE: [PHP] Forms & PHP - Thanks

2003-07-02 Thread Gary Ogilvie
Thanks all, I shall try these methods now. I may be a while - the form is pretty large :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Forms & PHP

2003-07-02 Thread Gary Ogilvie
Ah I understand that - many thanks. -Original Message- From: Greg Wiley [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 14:59 To: Gary Ogilvie; 'PHP General' Subject: Re: [PHP] Forms & PHP On Wed, 2 Jul 2003 14:45:27 +0100, Gary Ogilvie <[EMAIL PROTECTED]> w

RE: [PHP] Forms & PHP[Scanned]

2003-07-02 Thread Gary Ogilvie
Wouldn't I then be saving the contents of that page twice in the database? -Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: 02 July 2003 14:53 To: PHP General Subject: RE: [PHP] Forms & PHP[Scanned] If I've understood your initial email correctly another approach wo

RE: [PHP] Forms & PHP

2003-07-02 Thread Gary Ogilvie
l the text boxes with the information that was already written - because this information (from page1.php, first form) has not been saved to the database yet. You probably knew this anyway - but I had to go through that process to satisfy myself!! Many Thanks Gary Ogilvie -- PHP General Mailing

RE: [PHP] Forms & PHP

2003-07-02 Thread Gary Ogilvie
[snip] By maintaining the POST (assuming you're using POST)variables and calling them into the form values when reloaded. If you go to the second page store the POST variables in hidden form input types, then grab them when the second page is POSTED. Does this make sense? Not enough caffeine for me

[PHP] Forms & PHP

2003-07-02 Thread Gary Ogilvie
still in the text boxes. What is the easiest way to do this using PHP? Many thanks Gary Ogilvie

RE: [PHP] Using header in if statement

2003-06-27 Thread Gary Ogilvie
I didn't realise you could use echo to run a URL. Thanks for your help :) -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 14:08 To: Gary Ogilvie Cc: 'PHP General' Subject: Re: [PHP] Using header in if statement Just have it echo, examp

[PHP] Using header in if statement

2003-06-27 Thread Gary Ogilvie
If I attempt to direct the user to a url with in a if statement using a header I get the following error message: Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\company_search\admin\login.php:3) in c:\inetpub\wwwroot\company_search\admin\

RE: [PHP] Just a small question on if statement - Solved

2003-06-27 Thread Gary Ogilvie
Thanks that is great!! -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 13:55 To: Gary Ogilvie Cc: 'PHP General' Subject: Re: [PHP] Just a small question on if statement if($myUser == $myReturnedUser && $myPass == $myReturnedPass) { }

[PHP] Just a small question on if statement

2003-06-27 Thread Gary Ogilvie
Hi everyone, I want to make an if statement that works only if the 2 conditions are correct It starts as: If ($myUser == $myReturnedUser) But I want to add another so that the if statement runs only if $myUser is equal to $myReturnedUser AND $myPass is equal to $myReturnedPass. How do I do t

RE: [PHP] mssql_num_rows problem (Solved)

2003-06-27 Thread Gary Ogilvie
Thanks a lot Jay It seems that when a "password" type of form is used then you must send the password variable to the database instead of the user...Strange but it works !! -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 27 June 2003 13:45 To: Gary Og

[PHP] mssql_num_rows problem

2003-06-27 Thread Gary Ogilvie
Hello everyone, I am trying to grab some data from a table in a database. Here is the code I am using: $myServer = "192.92.0.248"; $myUsername = "Admin"; $myPassword = "bluefish"; $myDB = "COMPANY"; $myUser = $_GET['user']; $myPass = $_GET['pass']; #print ("$myUser$myPass"); $s = mssql_co

RE: [PHP] mssql_connect error

2003-06-25 Thread Gary Ogilvie
Seems ok here. -Original Message- From: Michael A Smith [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 19:45 To: Gary Ogilvie Subject: RE: [PHP] mssql_connect error You need a load_extension ( i think ) directive in the php.ini file pointing to the right dll. -Michael On Wed, 2003-06-25

RE: [PHP] mssql_connect error

2003-06-25 Thread Gary Ogilvie
The extensions directory is set to the correct path in the ini file though. I can't see where my error is... -Original Message- From: Michael A Smith [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 18:56 To: Gary Ogilvie Subject: RE: [PHP] mssql_connect error It's in the php.ini

RE: [PHP] mssql_connect error

2003-06-25 Thread Gary Ogilvie
What do you mean? How do I do this? -Original Message- From: Michael A Smith [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 18:53 To: Gary Ogilvie Subject: Re: [PHP] mssql_connect error You didn't compile with --enable-mssql. -Michael On Wed, 2003-06-25 at 09:48, Gary Ogilvie wrote:

[PHP] mssql_connect error

2003-06-25 Thread Gary Ogilvie
Hi all, I am testing a connection to MSSQL but I get the following error: Fatal error: Call to undefined function: mssql_connect() in c:\inetpub\scripts\newsletter.php on line 28 I don't understand what this error is - my code is as follows: $myServer = "localhost"; $myUser = "admin"; $myPa

RE: [PHP] default time (Solved)

2003-06-25 Thread Gary Ogilvie
Thanks a lot - I never realised you had to use the date() function to get the time! -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 25 June 2003 15:44 To: Gary Ogilvie Cc: [EMAIL PROTECTED] Subject: Re: [PHP] default time Read the manual page for the date tag: http

[PHP] default time

2003-06-25 Thread Gary Ogilvie
Hi everyone, I want to assign the current time to a variable. Currently I am using: $myTime = time() But this displays the time as: 1056551047 when it is in fact 15:25 How do I get the proper format for time? I looked on the web site but couldn't understand any of it :( Thanks in advance --

[PHP] - Default Date

2003-06-23 Thread Gary Ogilvie
Hi everyone, I am about to start work on a PHP script and I need to know how to today's date. Is there a default variable built into PHP that has today's date? Many thanks Gary Ogilvie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Empty Page problems

2003-06-19 Thread Gary Ogilvie
07 To: Gary Ogilvie; [EMAIL PROTECTED] Subject: Re: [PHP] Empty Page problems > Can anyone tell me what is wrong with my PHP script? I am trying to add > information to an MSSQL database from a separate HTM file. The script it > as follows: How about you tell us what the problem is? What is

[PHP] Empty Page problems

2003-06-19 Thread Gary Ogilvie
Hello everyone, Can anyone tell me what is wrong with my PHP script? I am trying to add information to an MSSQL database from a separate HTM file. The script it as follows: Attempting To Connect To MSSQL - "); $s = @mssql_connect($myServer, $myUser, $myPass) or die("Couldn't Connect To SQL Serve

[PHP] Trapping PHP Errors

2003-06-19 Thread Gary Ogilvie
Hi everyone, How do I trap a PHP error and display my own error message instead? I have two PHP scripts - one that creates tables on MSSQL and one that deletes tables on MSSQL. I wish to capture the message that appears if the user attempts to create tables that already exist, or delete ones that

RE: [PHP] My Problem

2003-06-18 Thread Gary Ogilvie
After changing the dir to "f:\php\exstensions" all was ok =) -Original Message----- From: Gary Ogilvie [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:40 To: 'Terje Torkelsen'; [EMAIL PROTECTED] Subject: [PHP] My Problem Don't worry all - its all been fixed

[PHP] My Problem

2003-06-18 Thread Gary Ogilvie
Don't worry all - its all been fixed now - thanks for the help :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Connecting to MSSQL Using PHP on Apache2.X.XWindowsMachine

2003-06-18 Thread Gary Ogilvie
It appears don't have a extension_path line in my ini file -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:35 To: Gary Ogilvie Cc: 'Jay Blanchard'; [EMAIL PROTECTED] Subject: RE: [PHP] Connecting to MSSQL Using PHP on Apache2.X.XWindo

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.XWindowsMachine

2003-06-18 Thread Gary Ogilvie
Now I get an error message when going to load the page: Unknown(): Unable to load dynamic library './php_mssql.dll' - The specified module could not be found. -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:29 To: Gary Ogilvie Cc: 

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X WindowsMachine

2003-06-18 Thread Gary Ogilvie
How do I comment out a line in an ini file... -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Gary Ogilvie; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X WindowsMachine [snip] I have

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X WindowsMachine

2003-06-18 Thread Gary Ogilvie
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 16:14 To: Gary Ogilvie; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X WindowsMachine [snip] I have tried it on a different machine and it is

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X WindowsMachine

2003-06-18 Thread Gary Ogilvie
I have tried it on a different machine and it is working... so maybe its something to do with the setup of my computer? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 15:59 To: [EMAIL PROTECTED] Cc: Gary Ogilvie; [EMAIL PROTECTED] Subject: RE: [PHP

RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X Windows Machine

2003-06-18 Thread Gary Ogilvie
Sent: 18 June 2003 15:51 To: Gary Ogilvie; [EMAIL PROTECTED] Subject: RE: [PHP] Connecting to MSSQL Using PHP on Apache 2.X.X Windows Machine [snip] "); $s = @mssql_connect($myServer, $myUser, $myPass) or die("Couldn't connect to SQL Server on $myServer"); print ("stag

[PHP] Connecting to MSSQL Using PHP on Apache 2.X.X Windows Machine

2003-06-18 Thread Gary Ogilvie
ge I only get the first print line displayed in the browser. When I check MSSQL no table has been added. Does anyone know how I can fix this? I am running Apache 2.X.X on Windows 2000 Server (on my local machine) using PHP 4.X.X. Any help is appreciated Gary Ogilvie