Here's something you might try. I haven't tried it with PHP, but I do use
it as a shortcut for a couple of VFP programs I have written when needing
to make registry entries.
Use PHP to write yourself a .reg file. Then run the .reg file with the exec
command.
If you have time to try this I woul
For registry stuff, try activestate perl with the win32::adminmisc
module from Roth Consulting - it should do the job for you in a php way
(well, almost).
-e
On Sunday, August 25, 2002, at 08:33 PM, Kevin Fonner wrote:
> Anybody know what a good way to access the windows registry with PHP?
>
sir,
the following code i used to pass an id from one page to next but
it is not working,can you please help me.
(i am working on windows 98 os,apache server)
application.html::
Enter an id num:
---
course.php::
It's me again, sorry for the unnessesery post. Mr. Ross Fleming answered
already in my previous post and I thank him very much.
But the post is done so anyone can say to words about "isset" :DDD
"C zz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I decid
I decided to use fgetcsv, because it puts the data it retrieves from the in
an array. But a problem occured (again). I used a while to show the Arrays
values but I couldn't find a way stop the while. I tried checking for an
empty array " " or "" but never stopped ... is there a nill value in PHP o
I'm a great apologist of PHP, specially when compared with VBScript and
ASP... but... for that effect i think you would be better served with
perl itself...
It works well in windows and porting the maintenance scripts from
unix/perl to windows/perl would be fairly easy... a great source for
t
We'll I have been using Windows Scripting Host to do maintenance on the
computers in our comapany. Now I'm getting tired of dealing with
vbscript for windows and bash for unix/linux systems. I'd like to
standardize the scripting language I use for our company's mundane
tasks. I've looked at
fopen on system.dat and user.dat? For win9x at least, I've no idea where xp
and such store the registry. In fact, not having a 9x machine to hand, I
couldn't tell you how easy it is to interpret the two registry files. I
would imagine it's bloody dangerous and difficult though.
What are you tr
I don't think you can.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know how to start the session, that isn't the problem. I want the
session to continue when the user returns. My question is really:
Should I save the session Id in a cookie? And if I should, the browser
seems to need refreshing (IE6).
Kieran Hall
-Original Message-
From: Peter Houch
on the top of every pages that you need the sessions make sure you have
session_start() put this before any html out put and you shouldn't have any
problems
> -Original Message-
> From: Kieran Hall [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 26 August 2002 9:01 AM
> To: [EMAIL PROTECTED]
>
php-windows Digest 25 Aug 2002 23:01:48 - Issue 1307
Topics (messages 15492 through 15500):
browser bug?
15492 by: arch
15493 by: Ross Fleming
Always getting a parse error
15494 by: Dennis Hoffmann
15495 by: Rich Gray
array way
15496 by: crizz
I have been playing with sessions on my web site and have tried to
reinitiate a session by saving the session Id in a cookie and checking
for it at the top of the page. However, this seems to fail. I
discovered also, that by refreshing the browser the sessions starts
(from the Id in the cookie).
You are indeed correct in your assumption as to the line which causes the
problems.
Replace the line $myarray[$i]= $myvar.$i; with
$myarray[$i] = ${"myvar".$i};
It should solve your problems. You might want to do an isset(${"myvar".$i})
and an !empty(${"myvar".$i}) check before assigning them
Anybody know what a good way to access the windows registry with PHP?
Thanks,
Kevin
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Crizz
use myvar[] in the form and PHP will generate an array for you
HTH
Rich
-Original Message-
From: crizz [mailto:[EMAIL PROTECTED]]
Sent: 25 August 2002 09:21
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] array way
Can you helpme with that?
I have some variables with names like:
Can you helpme with that?
I have some variables with names like: $myvar1, $myvar2, $myvar3... and so
on... and I want to put them in an array. Ofcourse I need a Loop because I
don't know the number of the variables.
It will probably be like that:
$myarray= range(1,NumberOfVars);
$i=1
while ($ i
You're missing a closing ')' on the if statement
i.e.
if (!empty($name) && !empty($email) && !empty($submit)
should be ...
if (!empty($name) && !empty($email) && !empty($submit)) <- extra closing
bracket
HTH
Rich
-Original Message-
From: Dennis Hoffmann [mailto:[EMAIL PROTECTED]]
Sen
Hi,
I'm a newbie (you guessed, right?) :-)
My problem is: I'm trying to set a cookie.
There are 2 pages involved, the first of which containing a form:
NAME
Email
.
.
.
The 2nd file is setcookie.php, and so far I have the following code:
if (!empty($name) && !empty($email) && !empty($submit)
You haven't really told us the bug... Tell us the output and it would also
be handy if you could provide an example of code which causes the error.
Ross
> -Original Message-
> From: arch [mailto:[EMAIL PROTECTED]]
> Sent: 25 August 2002 13:34
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN]
Hi,
I'm running PHP 4.2.1 as a module of Apache 2.0.39 on XP. Everything works
fine, except in the case of certain output from my scripts, which a certain
browser--which shall remain anonymous (but it's initials are IE6)--can't
seem to handle, and responds by having the browser equivalent of an
e
php-windows Digest 25 Aug 2002 09:53:57 - Issue 1306
Topics (messages 15490 through 15491):
Re: ISAPI & CGI
15490 by: Luis Ferro
Mit PHP+COM auf PDC zugreifen
15491 by: Mario Schmidt
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscr
Hallo NG!
Ich versuche, mit PHP und der COM-Klasse die Windows-Benutzer und Gruppen
von einem Domänencontroller (NT4 oder Win2k Active Directory) auszulesen.
Dazu benutze ich folgenden Code:
$adsiobj = new COM("WinNT://rechnername");
Mit ASP klappte das immer prima, nur in PHP enthält das neue
23 matches
Mail list logo