[PHP-WIN] ftp_rawlist working as Admin and not working as normal user

2002-12-27 Thread Paul Menard
All, Seasons greeting to all. I'm running PHP version C:\>php-cgi.exe -v PHP 4.3.0RC2 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.4.0, Copyright (c) 1998-2002 Zend Technologies under windows 2000 server for production and windows 2000 prof for development. I am using IIS 5 a

[PHP-WIN] is_dir() question regarding windows authentication

2002-12-31 Thread Paul Menard
Happy New Year all! I have a PHP script (or a set of them really) that I have developed since the summer. One of the script will read a database and display to the user the contents of the directory. the directory by the way is store absolute full pathname. I even worked out the REGEX routine to c

[PHP-WIN] Windows Service interactions with PHP

2003-01-14 Thread Paul Menard
All, I' converting a Web site from ASP to PHP. One of the last issues I am working on is converting the ASP page that will show the status of a specific Service. This page also allows the Admin level user to stop/start the service. What is the 'best' way to code this in PHP and/or Perl? Paul

Re: [PHP-WIN] Windows Service interactions with PHP

2003-01-14 Thread Paul Menard
; > > ?> > > > En espérant que cela aide > Ignatius > ________ > - Original Message - > From: "Paul Menard" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, January 14, 2003 5:10 PM > Subject: [PHP-WIN] Windows Service intera

[PHP-WIN] PHP.ini directive override

2003-01-21 Thread Paul Menard
Question about overriding some PHP.ini parameters. Since the security folks will not allow direct FTP from a user to an external system I put up a PHP page that will allow a user to authenticate and select from a list the external system they would like to connect to. Got the idea from a PHP pro

[PHP-WIN] Upgrading to MySQL 4.1 or higher worried about clients

2003-06-24 Thread Paul Menard
Hi all, I'be been considering upgrading my data , MySQL 3.23.42 to 4.013 or even going to 4.1. I've read on the MySQL upgrade documents that some client might be affected when upgrading to 4.1. It does specificall mention Perl which I use to supplement PHP. By I'm more concerned about PHP. Should

Re: [PHP-WIN] connect to Mysql Server

2003-07-16 Thread Paul Menard
I was just reading about this on the MySQL web site. It seems they have change the authentication protocol starting with version 4.1 There is a note that clients like PHP, Perl etc will need to be recompiled to support the NEW protocol. For now I'm sticking with MySQL 4.0.1 Paul --- "Michael G.

[PHP-WIN] [PHP] Time formatting from int (seconds)

2003-08-16 Thread Paul Menard
Hi all, Quick question about the best (and easiest) way to format a display string into the HH:MM:SS format from an integer var. Is there a PHP function that will provide this? I've looked at the various functions and all are used for taking a date/time as use. Or is there a function someone has

Re: [PHP-WIN] Auto Refresh

2003-09-20 Thread Paul Menard
You could use a standard HTML technique which is putting a meta statement into the of your HTML Like so The 'content' variable could be set to 5. In the example I have provided the page will auto-refresh every 120 seconds (2 minutes). Paul --- Donatas <[EMAIL PROTECTED]> wrote: > I would al

[PHP-WIN] Any way to override use of TEMP folder for Windows function 'tmpfile()'.

2003-09-25 Thread Paul Menard
Hello all, I have a strange problem request. I manage an FTP only server. This server is a Windows 2003 Advanced server. On it I run IIS 5.0 and PHP 4.3.2 for Win32. I am also using Windows authentication. This is I think what is causing the issue. This and the Windows function ‘tmpfile()’. I h

[PHP-WIN] Change ENV via putenv() during script execution

2003-12-01 Thread Paul Menard
Hi all, Happy Holidays. I'm having trouble with the ftp_rawlist() command. In reading many post it was stated that this script relies on the TEMP environment variable. Well that is just my issue. On the Windows system that the user connects to and authentictes to, the TEMP env var is set to a l

[PHP-WIN] Question about general web site layout

2003-12-22 Thread Paul Menard
Okay. This is not really a question specific to Windows. But here is goes. I am looking for some 'Nest Practice' advice on how to layout my pages and config files. By layout I am not talking about the presentation of the page for the browser but instead the layout of the pages on disk. Here is

[PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-24 Thread Paul Menard
Hi all, System: Windows Advanced Server 2000 running IIS5 PHP version 4.3.3 running CGI User authentication: via Windows (all users) Question. I have a web site I put together that is used by many different users. These users are all local accounts. Some are members of the Administrators group a

Re: [PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-25 Thread Paul Menard
> 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 Advanced Server 2000 run

Re: [PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-25 Thread Paul Menard
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

RE: [PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-25 Thread Paul Menard
the file in the security > context of the account under which IIS is running (Network Service > probably) > > I think the easiest thing for you to do is use a tool in the windows > 2000 or 2003 resource kit called "showgrps.exe" ... The 2k3 resource kit > is free so you

RE: [PHP-WIN] Best way to check for user 'Administrator' group me mbership

2004-02-25 Thread Paul Menard
t; 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- > F

RE: [PHP-WIN] Best way to check for user 'Administrator' groupmembership

2004-02-25 Thread Paul Menard
> 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

RE: [PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-25 Thread Paul Menard
t; trying to access it. > > > > > -Original Message- > From: Paul Menard [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 25, 2004 10:29 AM > To: Bowden, Zeb; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Best way to check for user 'Administrator'

RE: [PHP-WIN] Best way to check for user 'Administrator' group me mbership

2004-02-25 Thread Paul Menard
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 > me mbership > > > Tha

RE: [PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-25 Thread Paul Menard
browser session I have then menu option I need and on the non-admin session I do not have then option. Case closed. Thanks all. --- Paul Menard <[EMAIL PROTECTED]> wrote: > I'm getting somewhere. > > > I set the audit on the folder. I also double-checked my 'is_write

RE: [PHP-WIN] Best way to check for user 'Administrator' group membership

2004-02-25 Thread Paul Menard
> > non-admin session I do not have then option. > > > > Case closed. > > > > Thanks all. > > > > > > > > --- Paul Menard <[EMAIL PROTECTED]> wrote: > > > I'm getting somewhere. > > > > > > > > >

Re: [PHP-WIN] Photo gallery with description

2004-05-12 Thread Paul Menard
Trevor, So are you going to offer your gallery code for use by others? Just curious. I'm also working on my own version of gallery software. I am using Gallery (http://gallery.menalto.com/modules.php?op=modload&name=News&file=index) currently, but hate that it does not easily integrate into my s

[PHP-WIN] MemoryMangement?

2004-07-12 Thread Paul Menard
Greeting all, So I've been looking for some functions in PHP that will report the memory used by a script (I used to know this). The reason is I am working on a personal picture gallery package in PHP and was using this package, http://www.offsky.com/software/exif/index.php, to extract the EXIF

Re: [PHP-WIN] Re: Handling Linux directory paths in Win32

2004-07-21 Thread Paul Menard
Just a comment or thought on Jason's reply. I thought you could use '/' as the seperator and the PHP engine would figure out based on the run-time OS what the actual path format would be. Hence you can use actual path names like; E:/path1/path2/path3/somefile.php in your include and require sta

Re: [PHP-WIN] Php5 merging with Java???

2004-09-01 Thread Paul Menard
I cannot speak for the direction of PHP since I am not part of that development. I am just a PHP developer like yourself. But if you are referring to the Developer Shed Plug-in article http://www.developershed.com/plugin/PlugIn_magazine_september2004.pdf#page=9 I would not worry too much. DevS

Re: [PHP-WIN] exif

2004-09-09 Thread Paul Menard
Can't answer your issue. But after running into similar issues. I found a PHP solution that does not rely on and external dll. This is a 100% PHP scripted solution ans works very well. Here is the URL http://www.offsky.com/software/exif/index.php Paul --- [EMAIL PROTECTED] wrote: > Apache cr

Re: [PHP-WIN] include statement

2004-10-29 Thread Paul Menard
So just so I'm clear on your files... Let's say you have a file, index.php. This file has an include statement for 'header.htm'. Your question is does it matter if the header.htm is just HTML and does not contain and PHP? No it does not matter. But the URL must be pointed to the index.php PHP

Re: [PHP-WIN] pop3 emailer

2005-05-28 Thread Paul Menard
MY best suggestion is to use the PHP IMap/POP functions. It's pretty simply to do this (until you get into attachments. If you are just looking for a webmail package to host on your server to allow reading your local mailbox check out http://ilohamail.org/main.php?page=Downloads Though it does

Re: [PHP-WIN] MySQL Support

2005-06-13 Thread Paul Menard
What version of PHP and MySQL. For a long time PHP comes with MySQL support compiled in (especially on Windows). P --- "Brian D. McGrew" <[EMAIL PROTECTED]> wrote: > I installed a pretty general manual installation of PHP and it's > working, I do a phpinfo() and life is good. I can't seem to g

Re: [PHP-WIN] Using Inernet Explorer COM object and need to reference popup windows

2005-06-16 Thread Paul Menard
So I'm reading this and it sounds really interesting and all but I'm also scratching my head asking myself what this popup, IE COM object (client side) discussion has to PHP (server side). (Apologies if this seems rude. Having another Monday today. ;) --- Dang Nguyen <[EMAIL PROTECTED]> wrote:

Re: [PHP-WIN] MySQL and PHP

2005-08-17 Thread Paul Menard
Well you can start with the mysql_connect() call. If you are unable to connection check the error code. Then take action if needed. --- Jon <[EMAIL PROTECTED]> wrote: > Is there some way to have PHP test if MySQL is running and if not make the > system call to start it? > > This is just an ME

Re: [PHP-WIN] Handling objects as session vars

2005-10-12 Thread Paul Menard
Marcos, A suggestion to your code changes. Try this first. Note I removed the 'if' statement where you were checking for a valid object instance. I suggest using the PHPHPunction 'is_a' and/or 'is_object'. Start with this... David, This is not a correct statement "sessions work by using c

Re: [PHP-WIN] Re: [PHP] Removing Items from an Array

2005-10-13 Thread Paul Menard
Well to give my .02 here. Why even go through the second foreach? By doing this you are making your code very inefficient in that it must read through the entire set of arrays. Sure it works fine if you have only a few. But if there are a few thousand it takes longer. As the arrays are structu

Re: [PHP-WIN] Is this a PHP bug?

2005-10-16 Thread Paul Menard
No not a bug. Maybe just the loose nut behind the keyboard. :<> Change the assignment for variable $x to: $x="0"; In the first if you are using "==". This will only compare values. As you know the second if "===" compares the value and type. I always try and stay away from "$var = 0" expression

Re: [PHP-WIN] Is this a PHP bug?

2005-10-16 Thread Paul Menard
Well per this PHP page: http://us2.php.net/manual/en/language.operators.comparison.php, "If you compare an integer with a string, the string is converted to a number. " So to follow this regarding your example: $x = 0; // Numeric zero $y = 'Some kind of string'; if (is_null($x)) echo "x is NULL

Re: [PHP-WIN] Manipulating images

2005-11-17 Thread Paul Menard
Well first of all the HTML image tag you provided '' really have no play in processing for PHP or Apache. This is pass-through code. In other words you are parsing this via PHP to build the filename for the img src= attribute but the fact the file does not actually exist is not a concern of PHP

Re: [PHP-WIN] If code not working?

2006-01-04 Thread Paul Menard
Um. What is the '0' for? if( ($_SERVER["REMOTE_ADDR"]=="x.x.x.x")|| ($_SERVER["REMOTE_ADDR"]=="y.y.y.y")|| 0 <-- This should not be here. ) - Original Message From: Christopher Malton <[EMAIL PROTECTED]> To: php-windows@lists.php.net Sent: Wednesday, January 04, 200

Re: [PHP-WIN] LAST_INSERT_ID & LAST_UPDATE_ID

2007-05-24 Thread Paul Menard
Well what database? If mysql you can use the php function mysql_insert_id(); http://www.php.net/manual/en/function.mysql-insert-id.php - Original Message From: sam rumaizan <[EMAIL PROTECTED]> To: php-windows@lists.php.net Sent: Thursday, May 24, 2007 4:26:42 PM Subject: [PHP-WIN] LAST_IN

Re: [PHP-WIN] Dynamic image resizing on upload

2007-06-12 Thread Paul Menard
Mark, Not sure about your comment "...the Windows install doc has not been written.". >From the ImageMagick site I see the pre-compiled Windows downloads http://www.imagemagick.org/script/binary-releases.php#windows Just above the list of download links is the paragraph: "The Windows version of