Gerardo Rojas wrote:
I am able to connect to my MSSQL server and do whatever i need to do. The problem lies in that when I close the connection and the script terminates normally. I do a 'netstat' on my machine i see that i still have a socket connection to all my databases. Isn't the mssql_clo
I don't recall the specifics, but I believe it drops shortly afterwards.
Do a netstat on it after a specific duration and you will see it has
disconnected.
Also, check out mssql_connect and mssql_pconnect.
Thanks,
John Ellingsworth
http://mail.med.upenn.edu/~jellings/
AIM: vc2000support
-Or
I'm using PHP and MSSQL server.
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]
-Original Message-
From: Tony Trapp [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 5:02 PM
To: Gerardo Rojas
Subject: Re: [PHP-WIN] Connecting to MSSQL Server
are you using asp or T-SQL?
Tony..
I am able to connect to my MSSQL server and do whatever i need to do. The problem
lies in that when I close the connection and the script terminates normally. I do a
'netstat' on my machine i see that i still have a socket connection to all my
databases. Isn't the mssql_close() function suppo
Now that would be helpfull not just for this issues but others where I have resorted
to PHP
calling PERL scripts. So where can I find the PEC1 extensions? Off the PHP site?
--- "Frank M. Kromann" <[EMAIL PROTECTED]> wrote:
> I know I'm late into this discussion, but the PECl extension php_ntuser
I know I'm late into this discussion, but the PECl extension php_ntuser
gives you a tool to get the users and groups from the SAM database with a
few simple PHP functions.
- Frank
> Issue solved.
>
> After stopping my system admin on the way for more coffee he suggested
cycling IIS. Something
>
Sudeep sarath wrote:
Hi everyone,
A small problem..Help me out of this.
I have to convert the server date and time to my local date and time i.e Indian standard time(IST)(or to my system time).
My program is :
$display=date("F d, Y");
$time=date("H:i:s");
echo $display."";
echo $time;
?>
Issue solved.
After stopping my system admin on the way for more coffee he suggested cycling IIS.
Something
about more patience needed on my part and IIS caching or changes like folder
permissions related
to web page logic not taking instant affect.
So no I have what I want. On the admin browse
Can't do that. Using Integrated authority requires the user (in this case external
customer) to
enter login, password and domain. Since this Web server sits in our DMZ it is not
associated with
a domain controller. Really I'm not sure why but I could not get Integrated working
over the
years. So
Try this url:
http://www.ioncube.com/
HTH, Greetings
Piotr
--- carlos castillo <[EMAIL PROTECTED]> wrote:
>
> I want to know if you know a tool to crypt the code,
> all, i mean a file
> php, so when i open it i only see some characters
> without order, like
> zend, but free or where can i get z
Sorry, you should be using Integrated Windows Authentication rather than
basic integration.
-Original Message-
From: Paul Menard [mailto:[EMAIL PROTECTED]
Sent: 25 February 2004 3:37
To: David Felton; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Best way to check for user 'Administrator' group
I'm getting somewhere.
I set the audit on the folder. I also double-checked my 'is_writeable()' code. I have
this code
checking the folder. This folder is set to read/write by Administrators only (but not
full
control). I have started two browsers. One is logged in a an admin-level account. The
To be honest with you I'm not 100% sure on IIS 6 and the context PHP
will run as after you do the basic authentication ... test this you can
audit successes/failures for the everyone group on the particular
file/folder you try to write to, then the eventlogs will tell you whose
trying to access it
Well that was a second option should the 'is_writeable()' finally be proved not to
work.
I know I can list the members of the Admin group in PERL. Don't seem to remember any
direct PHP
APIs for this. My thought was to check the userid from the AUTH_USER variable, check
Admin group
list and set
Well, a database solution was not wanted according to the specification.
But it fairly simple to change the fopen() to a sql query...
On Wed, 2004-02-25 at 16:32, Bowden, Zeb wrote:
> True this solution will work, but it requires you to double your efforts
> and maintain the membership of the Adm
That is exactly how my setup is configured.
No Anonymous,
Yes Basic,
No on Windows Integrated
This is set at the top level of the wwwroot in IIS.
Not sure why the 'is_writeable()' is not working. Still investigating.
--- David Felton <[EMAIL PROTECTED]> wrote:
>
> If you enable basic aut
If you enable basic authentication on the webserver and then disable
anonymous access, php will run under the credentials of the currently logged
in user. If you do this the 'is_writeable()' trick would work as you
expeted.
-Original Message-
From: Paul Menard [mailto:[EMAIL PROTECTED]
S
True this solution will work, but it requires you to double your efforts
and maintain the membership of the Administrators group and a text file
.. Of course you could just have a scheduled task(hourly,daily,etc) to
go through and enumerate your admin group and populate the text file ..
I think as
Ah. Now we are getting someone who kind of understands my issues.
Yes. I mean the local system administrators group.
Yes. I was looking at using 'is_readable()', 'is_writeable()'. Tried both on file(s)
and folder(s)
with no luck. I tried creating a file/folder both inside my Web tree InetPub as
Well, we are talking about very trivial routine programming here,
which has a million different solutions. Here is another one:
% cat userlvls.txt
user1;0
user2;0
user3;0
admin1;1
admin2;1
%
function get_user_lvl($user_name) {
$userLevel = LVL_ORDINARY_USER;
if (($fp = fopen("userlvl.txt"
When you say member of the administrators group do you mean a member of
the local admin group on your webserver machine? The iswritable solution
won't work because you will be writing to the file in the security
context of the account under which IIS is running (Network Service
probably)
I think t
Would it be possible for you to regulate with which user are allowed to
access which file? In such a case, if a user can't do fopen() on a
certain php file, then this user wont be able to access the
functionality in this file. A Q&D solution as to say.
Anyhow, in my I ignorant view of what you hav
Okay, well first I do not wish to complicate the maintenance of the system by
requiring dual
setup, once on the windows user level and another in the database to adjust the user
group
membership. And no I do not want to add a fancy form page that will allow me to do
this task. At
this point I ha
Have an entry in your MySQL databases that states a/the users level (admin, user etc).
Then when they attempt to login check against this value against their
username/password credentials and then determine the logic yourself.
You could even have a dropdown box populate with the types of admin/u
--- Begin Message ---
http://pobs.mywalhalla.net
On Wed, 2004-02-25 at 15:31, carlos castillo wrote:
> I want to know if you know a tool to crypt the code, all, i mean a file
> php, so when i open it i only see some characters without order, like
> zend, but free or where can i get zend or a sim
I want to know if you know a tool to crypt the code, all, i mean a file
php, so when i open it i only see some characters without order, like
zend, but free or where can i get zend or a similar tool.
thanks.
Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]
__
You answer your own question:
"I want to determine if the user has admin level privledges."
How do you think you can achieve that?
On Wed, 2004-02-25 at 15:19, Paul Menard wrote:
> What
>
> Not sure if that was meant to be so sarcastic!
>
> I do not wish to use a login form of H
What
Not sure if that was meant to be so sarcastic!
I do not wish to use a login form of HTML. The user are already authenticated via
Windows when the
user directs thier browser to the URL. At this point they receive a popup and enter
the login
information. After this via PHP I want to dete
John Lim,Hello!
Thank you so much. How stupid I am to ignore the CHR function!
by the way,do you have any idea about converting a number,which
is larger than 255,into a byte stream?
=== 2004-02-25 20:20:00 ===
>The most elegant way is probably:
>
>for ( $i = 0; $i <=255
The most elegant way is probably:
"Meteorlet Woody" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I got it.
>
> for ( $i = 0; $i <= 255; $i++ )
> {
> $Dictionary[] = sprintf("%c",$i);
> }
> ?>
>
> === 2004-02-25 18:00:06 ===
>
> >Hi,everyone!
> >
> > When I want to cre
I got it.
=== 2004-02-25 18:00:06 ===
>Hi,everyone!
>
> When I want to create a character dictionary,I meet a problem.
>The problem is that how to put the characters (256 ASCII,including nonprintable)
>in an array in one loop.
>
> I can do like this:
>
Hi
Would try
/Jesper
-Ursprungligt meddelande-
Från: Meteorlet Woody [mailto:[EMAIL PROTECTED]
Skickat: den 25 februari 2004 11:00
Till: php-windows
Ämne: [PHP-WIN] Character Problem
Hi,everyone!
When I want to create a character dictionary,I meet a problem.
The problem i
Hi,everyone!
When I want to create a character dictionary,I meet a problem.
The problem is that how to put the characters (256 ASCII,including nonprintable)
in an array in one loop.
I can do like this:
But when I want to do by using loop,it doesn't work.
On Wed, 2004-02-25 at 04:00, Adelle L. Hartley wrote:
> > Seams like you run php as an CGI application(?). If so, don't do that.
>
> I am using PHP with IIS. When running PHP on IIS,
> can it only run as a CGI application?
Answer: no.
--
PHP Windows Mailing List (http://www.php.net/)
To unsub
I have kind of the same problem:
I'm running a Windows 2003 server on a 400W / 220V AC 50Hz,
there is about 10.000 lumen in the room, and the weather
is sunny today.
Now, how do I do a make login form to my system?
On Tue, 2004-02-24 at 21:19, Paul Menard wrote:
> Hi all,
>
> System: Windows
35 matches
Mail list logo