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
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
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
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/
: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
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
Yeah I found that out eventually. Thanks :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
--
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
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
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
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
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
[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
still in
the text boxes. What is the easiest way to do this using PHP?
Many thanks
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
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\
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)
{
}
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
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
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
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
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
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:
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
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
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
--
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
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
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
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
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
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
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
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:
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
-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
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
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
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
40 matches
Mail list logo