[PHP] To the PHP developpers / DOMXML (Update and delete??)

2001-03-05 Thread Dominique Paquin

Greetings PHP Developpers.

I am presently making a web based application that will be able to add nodes
as well as update and remove them from XML documents. I saw in my
researches, up to now, That XMLDOM does not support update and delete of
nodes. I just wanted to know if someone is presently working on that and
when I should expect the release of these functions. Thanks

Regards,
Dominique Paquin

Galea Secured Networks Inc.
[EMAIL PROTECTED]
FAX:  450 979-9027


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Tree menu

2001-03-09 Thread Dominique Paquin

http://www.webreference.com/dhtml/hiermenus/instructions/noframes/step4.html

It's client side javascript and very as a beautifull look.

Dominique Paquin

""Rosen"" [EMAIL PROTECTED] wrote in message
98akm9$poe$[EMAIL PROTECTED]">news:98akm9$poe$[EMAIL PROTECTED]...
 Hi,
 can someone tell me where I can get
 some Tree Menu ?

 Thanks,
 Rosen Marinov




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] unsuscribe me

2001-03-09 Thread Dominique Paquin

LoL!

PHP is open source and, thus, accessible to everyone without condition.
But it help me a lot to see funny replies like this from time to time.
Thanks Dominick

Dominique Paquin



""Dominick Vansevenant"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I think this is the best proof you don't have to be a genius to program
PHP
 :-)

 Dominick

 -Original Message-
 From: Emmerson Rafael Miranda Ramirez [mailto:[EMAIL PROTECTED]]
 Sent: vrijdag 9 maart 2001 12:01
 To: [EMAIL PROTECTED]
 Subject: [PHP] unsuscribe me
 Importance: High


 this is the 5th request
 "UNSUSCRIBE ME"



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Changing Directory rights with chgrp or exec(chown)

2001-03-13 Thread Dominique Paquin

Hi all,

Is it possible to change the group rights on a directory like this?

chgrp("/home/www/host/sitedir.com", "site1.com");

It doesn't work for me and i have tried this:
exec(chown apache:site1.com /home/www/host/sitedir.com")

Where sitedir.com is the directory i wish to be affected and site1.com is
the group that i want assigned to it. Is their a way to make this work??

Thanks
Dominique Paquin





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Directory rights: Create and delete is possible but not ccggrp, why?

2001-03-22 Thread Dominique Paquin

I posted a message last week on this subject, and I have searched for an
answer meanwhile.

So i decided to re ask my question a little bit differently since i did not
find the answer to my problem:

I use a web based application I am making and through this application I
create directories. I can create the directories with no problem using PHP
with full rights (777). The directories, then, needs to have their group
changed to something else and here is my problem,

I tried a chgrp (the php function) from php to change it as well as
exec('chgrp'...) or exec('chown' ...) and then I tried a system('chgrp'...)
and system('chown'...). All this to no success. Someone told me, here on the
list, that apache was runing as nobody:nobody, so it had no rights to change
rights. We changed the user:group of apache and called it apache:apache.
then we re-tried all our experiences, to no avail. I am sure I am having all
the rights necessary because I can delete the directories I create with no
trouble.

Note: If I connect in console mode with the user apache, i can chown the
directory as I wish.

Any suggestion on how to change rights on directories would be appreciated.
(With PHP or any other solution)

Thanks in advance

Dominique Paquin
Galea secured networks




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Directory rights: Create and delete is possible but notccggrp, why?

2001-03-22 Thread Dominique Paquin

Thanks a lot for the answer, it's the first constructive response i have for
my problem.
I was banging my head on the walls with this one.

I might just use C/Cron to correct this. If you implemented this could you
guide me a little
bit in the steps to follow to complete this?

Thanks again.

Dominique Paquin.

"Keith Vance" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have run into a problem similar to this. Basically what I have found is
 that there is no way to do this sort of thing using php through apache.
 I fixed my problem by writting a perl script that creates the directories
 and sets the permissions/groups correctly. I have php write out a text
 file and dump it into a directory, the perl script runs from cron and
 checks the directory every few minutes and creates the appropriate
 directories based on the data in the files. It a hackish way of doing it,
 but it actually works quite well. If you didn't want to use cron, you
 could just have a process running that monitors the directory constantly.
 There are a number of ways to do this, including using cgi php or C or
 whatever.
 There are very good reasons why you can't do what you want to do, you
 just have to get creative.

 K E I T H  V A N C E
 Software Engineer
 n-Link Corporation

 On Thu, 22 Mar 2001, Dominique Paquin wrote:

  I posted a message last week on this subject, and I have searched for an
  answer meanwhile.
 
  So i decided to re ask my question a little bit differently since i did
not
  find the answer to my problem:
 
  I use a web based application I am making and through this application I
  create directories. I can create the directories with no problem using
PHP
  with full rights (777). The directories, then, needs to have their group
  changed to something else and here is my problem,
 
  I tried a chgrp (the php function) from php to change it as well as
  exec('chgrp'...) or exec('chown' ...) and then I tried a
system('chgrp'...)
  and system('chown'...). All this to no success. Someone told me, here on
the
  list, that apache was runing as nobody:nobody, so it had no rights to
change
  rights. We changed the user:group of apache and called it apache:apache.
  then we re-tried all our experiences, to no avail. I am sure I am having
all
  the rights necessary because I can delete the directories I create with
no
  trouble.
 
  Note: If I connect in console mode with the user apache, i can chown the
  directory as I wish.
 
  Any suggestion on how to change rights on directories would be
appreciated.
  (With PHP or any other solution)
 
  Thanks in advance
 
  Dominique Paquin
  Galea secured networks
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Help: PHP with DOMXML

2001-03-30 Thread Dominique Paquin

Greetings!

I have been working on a project that will, in part, use XML to store the
user list and personal info of the application's users.

Here is the general look of a single user node (a single xml file contains n
users)=

user name="username" type="personal"
  hostsite1.com/host
  personalInfo
fullNameJohn Doe/fullName
email[EMAIL PROTECTED]/email
maxSpace100/maxSpace
  /personalInfo
/user

When i access, update or delete these nodes, everything works fine. BUT,
when i try to add a new node, it comes out all on a single line.: here is
how i do the addition:

 function addUser($_username, $_file, $_name, $_email, $_quota, $_type,
$_virtualhost)
  {
$xmlContent   = implode(file($_file), "");
$doc  = xmldoc($xmlContent);

// Recuperate the root node
$root = $doc-root();

// Create the node user amd it's sub nodes
// 
$user  = $root-new_child("user","");
  $user-setattr("name", $_username);
  $user-setattr("type", $_type);
  $user-new_child("host", $_virtualhost);
  $personalInfo = $user-new_child("personalInfo", "");
$personalInfo-new_child("fullName", $_name);
$personalInfo-new_child("email",  $_email);
$personalInfo-new_child("maxSpace", $_quota);

// Save every thing in the xml file
// 
if(!($myFile = fopen($_file, "w")))
{
  print("Error: ");
  print($_file . "could not be created \n");
  exit;
}
else
{
  file://$XMLcontent   = $doc-dumpmem();
  fputs($myFile, $doc-dumpmem());
  fclose($myFile);
}
  }

When i call the above function, the addition is done, but all on a single
line, and when the nodes are made on a single line, the rest of the
application is unable to access the information. Help.

We are on apache 1.3.19, PHP 4.0.4pl1 on a Linux box with redhat7.0. Kernel
2.2.16.

Help!

Dominique Paquin
galea secured networks
Quebec



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Release of PHP 4.05

2001-04-05 Thread Dominique Paquin

Greetings!

Anyone knows when  PHP 4.05 is supposed to be released?

Dominique Paquin
galea secured networks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Release of PHP 4.05

2001-04-05 Thread Dominique Paquin

Thanks for the quick reply, I'm eager to have access to the new DOMXML
functions. Probably make my life a whole lot easier.   :))

Dominique


""Neil Kimber"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Heard whispers that it could be next week. Testing isn't over. They're on
 the 6th release candidate.

 -Original Message-
 From: Dominique Paquin [mailto:[EMAIL PROTECTED]]
 Sent: 05 April 2001 19:54
 To: [EMAIL PROTECTED]
 Subject: [PHP] Release of PHP 4.05


 Greetings!

 Anyone knows when  PHP 4.05 is supposed to be released?

 Dominique Paquin
 galea secured networks



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP 4.0.5

2001-04-23 Thread Dominique Paquin

I asked when the new version of PHP was comming out at the beginning of the
month and some one told me that it was comming out the week after. Haven't
seen it yet, anyone knows the release date??

Dominique Paquin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Session kill and apache

2001-04-25 Thread Dominique Paquin

Greetings!

Here's my problem:

I have a web-based application from which it is possible to log off.

The user is authenticated through a .htpasswd file and then he access the
system. After that a button is displayed that can log off the user. If he
clicks on this, the application does the following:

session_unregister() all the session variables and then
session_destroy().

Now my problem is, if the user clicks back enough of time or if he manually
enter the initial .php page in the url bar, he will reach the initial page
where the user is usually authenticated throught he .htpasswd file. At this
point the user is accepted automatically and he does not need to re-enter
his user/password.

I don't want this to be possible, i want the user to enter the user/password
again. Is their an apache command to kill the session or  some other
approach to this problem???

Dominique Paquin





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]