php-windows Digest 26 Aug 2002 13:27:45 -0000 Issue 1308

Topics (messages 15501 through 15519):

Re: re-initiating a sesion
        15501 by: Peter Houchin
        15502 by: Kieran Hall
        15512 by: Paul Roberts

Re: accessing the regisry with php
        15503 by: php
        15504 by: Ross Fleming
        15505 by: Kevin Fonner
        15506 by: Luis Ferro
        15510 by: Egil Helland
        15511 by: Cary
        15516 by: Tracker1

array from fgetcsv
        15507 by: crizz
        15508 by: crizz

php help
        15509 by: mathew jose seby

flat file databases with PHP
        15513 by: crizz
        15517 by: Svensson, B.A.T. (HKG)
        15518 by: Svensson, B.A.T. (HKG)

php pages appear only on server machine, not in others computers with IIS
        15514 by: Saci

Re: ISAPI & CGI
        15515 by: Tracker1

test
        15519 by: Fady Fouad

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
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]
> Subject: [PHP-WIN] re-initiating a sesion
>
>
> 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).  Any thoughts on the most effective way to
> do this?
>
> Kieran Hall
>

--- End Message ---
--- Begin Message ---
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 Houchin [mailto:[EMAIL PROTECTED]] 
Sent: 26 August 2002 00:22
To: Kieran Hall; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] re-initiating a sesion

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]
> Subject: [PHP-WIN] re-initiating a sesion
>
>
> 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).  Any thoughts on the most effective way
to
> do this?
>
> Kieran Hall
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
have a look at session_set_cookie_params in the man

Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
++++++++++++++++++++++++



----- Original Message ----- 
From: "Kieran Hall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 26, 2002 12:57 AM
Subject: RE: [PHP-WIN] re-initiating a sesion


> 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 Houchin [mailto:[EMAIL PROTECTED]] 
> Sent: 26 August 2002 00:22
> To: Kieran Hall; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] re-initiating a sesion
> 
> 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]
> > Subject: [PHP-WIN] re-initiating a sesion
> >
> >
> > 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).  Any thoughts on the most effective way
> to
> > do this?
> >
> > Kieran Hall
> >
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

--- End Message ---
--- Begin Message ---
I don't think you can.


--- End Message ---
--- Begin Message ---
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 trying to achieve?  There may be another option if u tell us
what you're accessing it for :)

Ross

> -----Original Message-----
> From: Kevin Fonner [mailto:[EMAIL PROTECTED]]
> Sent: 25 August 2002 19:34
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] accessing the regisry with php
>
>
> 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
>
>
>

--- End Message ---
--- Begin Message ---
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 everything and PHP seems awsome.  So that would 
mean that I am talking about the side of PHP that you run from the 
command line.  One important task though that I use a lot in vbscript is 
accessing the registry.  I do it for a lot of things such as change 
settings for applications and stuff.  I definitly am not planning to 
access the registry via their files.  That would be sort of windows 
suicidal..  especially with XP.  Vbscript has the support built in.  I 
didn't expect the same from php however I know their is a lot of fancy 
stuff out their.  Maybe it would be possible through COM.  I have 
already tried out the php and COM combo and it seems to work alright. 
 Haven't done that before though and I just wanted to see if anyone has 
come up with a simple way to do it.  Any comments and ideas are appreciated.

Thanks,
Kevin

Ross Fleming wrote:

>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 trying to achieve?  There may be another option if u tell us
>what you're accessing it for :)
>
>Ross
>
>  
>
>>-----Original Message-----
>>From: Kevin Fonner [mailto:[EMAIL PROTECTED]]
>>Sent: 25 August 2002 19:34
>>To: [EMAIL PROTECTED]
>>Subject: [PHP-WIN] accessing the regisry with php
>>
>>
>>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
>>
>>
>>
>>    
>>
>
>
>  
>



--- End Message ---
--- Begin Message ---
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 
that would be to take a peek in activestate site 
(http://www.activestate.com/) or cygwin site (http://www.cygwin.com/)...

I think that both provide very good support for windows...

I'm not saying that PHP doesn't do the job also, but as you refered that 
you have your unix scripts made in perl...

Cheers,
Luis Ferro
TelaDigital

P.S.- I wouldn't recomend the direct edit of the system files... there 
are system API for doing that and i'm sure that anything that runs COM 
(as php, perl and python among others)  have suport for them...


Kevin Fonner wrote:

> 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 everything and PHP seems awsome.  So that would 
> mean that I am talking about the side of PHP that you run from the 
> command line.  One important task though that I use a lot in vbscript 
> is accessing the registry.  I do it for a lot of things such as change 
> settings for applications and stuff.  I definitly am not planning to 
> access the registry via their files.  That would be sort of windows 
> suicidal..  especially with XP.  Vbscript has the support built in.  I 
> didn't expect the same from php however I know their is a lot of fancy 
> stuff out their.  Maybe it would be possible through COM.  I have 
> already tried out the php and COM combo and it seems to work alright. 
> Haven't done that before though and I just wanted to see if anyone has 
> come up with a simple way to do it.  Any comments and ideas are 
> appreciated.
>
> Thanks,
> Kevin
>
> Ross Fleming wrote:
>
>> 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 trying to achieve?  There may be another option if u 
>> tell us
>> what you're accessing it for :)
>>
>> Ross
>>
>>  
>>
>>> -----Original Message-----
>>> From: Kevin Fonner [mailto:[EMAIL PROTECTED]]
>>> Sent: 25 August 2002 19:34
>>> To: [EMAIL PROTECTED]
>>> Subject: [PHP-WIN] accessing the regisry with php
>>>
>>>
>>> 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
>>>
>>>
>>>
>>>   
>>
>>
>>
>>  
>>
>
>

---
[This E-mail scanned for viruses by Declude Virus]

--- End Message ---
--- Begin Message ---
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?
>
> Thanks,
> Kevin
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
egil helland / it consultant (mcse, web technology)
web: ikon.as / egil.net

--- End Message ---
--- Begin Message ---
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 would really like to know if it work through 
PHP's exec.

Cary

At 09:47 PM 8/25/02, Kevin Fonner wrote:
>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 
>everything and PHP seems awsome.  So that would mean that I am talking 
>about the side of PHP that you run from the command line.  One important 
>task though that I use a lot in vbscript is accessing the registry.  I do 
>it for a lot of things such as change settings for applications and 
>stuff.  I definitly am not planning to access the registry via their 
>files.  That would be sort of windows suicidal..  especially with 
>XP.  Vbscript has the support built in.  I didn't expect the same from php 
>however I know their is a lot of fancy stuff out their.  Maybe it would be 
>possible through COM.  I have already tried out the php and COM combo and 
>it seems to work alright. Haven't done that before though and I just 
>wanted to see if anyone has come up with a simple way to do it.  Any 
>comments and ideas are appreciated.
>
>Thanks,
>Kevin
>
>Ross Fleming wrote:
>
>>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 trying to achieve?  There may be another option if u tell us
>>what you're accessing it for :)
>>
>>Ross
>>
>>
>>
>>>-----Original Message-----
>>>From: Kevin Fonner [mailto:[EMAIL PROTECTED]]
>>>Sent: 25 August 2002 19:34
>>>To: [EMAIL PROTECTED]
>>>Subject: [PHP-WIN] accessing the regisry with php
>>>
>>>
>>>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
>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
"Kevin Fonner" <[EMAIL PROTECTED]> wrote in message...
> Anybody know what a good way to access the windows registry with PHP?

Best bet is to use a com object to access the registry.. if you do a
search for "ASP REGISTRY" even though the search is for ASP objects,
they will be usable in PHP with COM enabled.

check out 15seconds.com also, a good resource, you will need to adapt
the syntax for the object in question to php..

--
=======================================================================
Michael J. Ryan  -  tracker1 at theroughnecks dot com
Roughneck BBS: http://www.theroughnecks.net  telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc  -  http://www.trillian.cc/
--- Synchronet 3.10j-Win32 NewsLink 1.29
 *  Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---
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 or
a way to determine where my value stop?

The code is like that:

while ($outputstring[$i] !=""){
 echo $outputstring[$i]."<br>";
 $i+=1;
}

P.S.Thank you all for your time and sorry for my so simple questions but I
just started with PHP, I have a book on my hands and Trying to figure things
out. Thanks again
crizz


--- End Message ---
--- Begin Message ---
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 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
or
> a way to determine where my value stop?
>
> The code is like that:
>
> while ($outputstring[$i] !=""){
>  echo $outputstring[$i]."<br>";
>  $i+=1;
> }
>
> P.S.Thank you all for your time and sorry for my so simple questions but I
> just started with PHP, I have a book on my hands and Trying to figure
things
> out. Thanks again
> crizz
>
>


--- End Message ---
--- Begin Message ---


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::::::::::

<html>
<body>
<form action=course.php method=post>
<BR> Enter an id num:<input type=text name=id size=4><br>
<input type=submit value="Send Id!">
</form>
</body>
</html>

---------------------------------------------------
course.php::::::::::::::
<html>
<body>
<?
   print "You entered: " . $id . "<br>";
?>
</body>
</html>
__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/

--- End Message ---
--- Begin Message ---
So, one more begginers question. I want to ask about "flat file databases".
What exactly is it. It's just projects that store their data on simply
files, or it's a database system (like Mysql). Are there any rules on how to
store and retrieve data from files, so they will be called "flat file
databases"?

Does anyone know where I can find any reference on the Internet?

I'm trying to make small site in PHP (for practice) and use simple files, so
I'm wondering if I should first learn about flat file databases and use
them,

thanks in advance,
krizz


--- End Message ---
--- Begin Message ---
Definitions:

A /flat file/ is a plain text file.

A /data base/ could (informally) be a number a things such as:

a) a collection with related information (recorded facts) in any
   kind of format (a telephone book is then in this sense a database,
   and even meeting notes in your agenda could be regarded as a database.)

b) a database Manager System (DBMS), this is just a collection
   of programs that helps one to create and maintain a database.

c) an instance in b). 

On the other hand a "database system" is a information processing system including
both the database (in the meaning of iii) with its related software such as user
interfaces, maintenance tools, etc, etc. A DBS usually stores it data in a DBMS 
evirionment of some kind, but not necessarily, for example a set of php scripts
that manipulates flat files can make up a database system, without having DBMS
support.

A popular database system which utilizes flat files are SRS. It's fairly easy to
update files in this system since it includes a DBMS, which uses a languages
called Icarus to index and maintain the flatfiles.

However, I would guess that most things you can do with php and flat files
would be better suited to be developed in a DBMS like MySQL or something,
since the MySQL will take care of all the DBMS tasks for you.



> -----Original Message-----
> From: crizz [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] flat file databases with PHP
> 
> 
> So, one more begginers question. I want to ask about "flat file databases".
> What exactly is it. It's just projects that store their data on simply
> files, or it's a database system (like Mysql). Are there any rules on how to
> store and retrieve data from files, so they will be called "flat file
> databases"?
> 
> Does anyone know where I can find any reference on the Internet?
> 
> I'm trying to make small site in PHP (for practice) and use simple files, so
> I'm wondering if I should first learn about flat file databases and use
> them,
> 
> thanks in advance,
> krizz
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
> A /data base/ could (informally) be a number a things such as:
> 
> a) a collection with related information (recorded facts) in any
>    kind of format (a telephone book is then in this sense a database,
>    and even meeting notes in your agenda could be regarded as a database.)
> 
> b) a database Manager System (DBMS), this is just a collection
>    of programs that helps one to create and maintain a database.
> 
> c) an instance in b). 
> 
> On the other hand a "database system" is a information processing system including
> both the database (in the meaning of iii) with its related software such as user

ERRATA: "in the meaning of iii" should be  "in the meaning of a) and c)"
--- End Message ---
--- Begin Message ---
On my develop machine , who is the where IIS server is running everything
works perfect, all html and php pages works ok.



If I try to use another computer on the same network to browse my pages, I
receive only the html pages and the message CGI ERROR while trying to open a
php page.



What I need to do in IIS to permit others computers on my network to also
run scripts not only my local machine?



My php directory is a subdirectory of wwwroot something like this



D:\Inetpub\wwwroot\sample\php



IIS5











--- End Message ---
--- Begin Message ---
"Luis Ferro" <[EMAIL PROTECTED]> wrote in message...
> ISAPI -> Loaded as a module when the web server comes online
> CGI -> Called when a request is made
>
> FAST-CGI -> Pool of CGI engines that allow a faster CGI execution then
> the plain CGI, but it's slower then ISAPI
>
> Also there are changes in the security model applied, where ISAPI is
> stronger as it runs within the security context of the web server.
>
> Some directives are available/inavailable in the diferent running
> processes... you will have to check the manual to accertain which (or
> run the server in both and perform a phpinfo() within both...

along these lines, I like the isapi for production servers, always
choose "run in separate process" for client sites, or use the
cgi for clients.. since buggy code can kill the server...

As for dev, it is a tossup... iisreset.exe comes in handy when using
the isapi version though.. *weg*

--
=======================================================================
Michael J. Ryan  -  tracker1 at theroughnecks dot com
Roughneck BBS: http://www.theroughnecks.net  telnet://theroughnecks.net
=======================================================================
Y!: aztracker1 - aim: azTracker1 - icq: 4935386 - msn: see email
One program for aim/icq/yahoo/msn/irc  -  http://www.trillian.cc/
--- Synchronet 3.10j-Win32 NewsLink 1.29
 *  Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net
--- End Message ---
--- Begin Message ---


--
======================================================
"You are the salt of the earth; but if the salt loses its flavor, how shall
it be seasoned?  It is then good for nothing but to be thrown out and
trampled underfoot by men."  - Matthew 5:13
Fady Fouad
http://www.geocities.com/superfady


--- End Message ---

Reply via email to