[PHP] Allow service to interact with desktop and have network access

2004-02-28 Thread Vincent Bouret
Hi,

I was trying to figure out if there was any way I could run Apache in
Windows 2000 as a service which is allowed to interact with desktop and
which has network priviledges? I try to exec a an .exe from PHP which needs
network priviledges and which needs to interact with desktop.

Thanks

Vincent

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



Re: [PHP] Apache/IE hangs with PHP

2004-02-26 Thread Vincent Bouret
I just made the same test with IIS/PHP on Windows 2000 system and the
problem described previously doesn't occur. Looks like an Apache problem
then.

I've read that Internet Explorer is using only two connection / server.
Maybe it has something to do with that.

Thanks
Vincent

Evan Nemerson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 It's only IE? Perhaps IE keeps connections in a global structure and tries
to
 use already established connections, regardless of which window you're
using?
 It's just a guess, but it seems logical- it would cut down on TCP
handshake
 waste, but one window could effectively DoS another. I wonder what would
 happen on multi-user installations of windows...? Anyone got a box the
could
 test on?


 On Wednesday 25 February 2004 06:30 pm, Vincent Bouret wrote:
  Hi,
 
  I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1
  with PHP 4.3.4 as a module:
 
  httpd.conf
  LoadModule php4_module c:/php/sapi/php4apache.dll
  AddType application/x-httpd-php .php
  AddType application/x-httpd-php .phtml
 
  //After a list of modules
  AddModule mod_php4.c
 
  Let's say I have test.php that does nothing more than sleeping for 30
  seconds:
  ?php
  sleep(30);
  ?
  html
  content
  /html
 
  When I open up this script in IE with http://localhost/test.php and
within
  the 30 seconds sleep I try to load another file with .php extension
  (regardless of whether there are some php statements or not in the file)
on
  the same localhost server with another IE window, IE or Apache hangs
until
  the first script is done and then gives output of the second script.
 
  The thing is that when I connect to Apache manually with Telnet during
the
  same 30 seconds and I request a PHP script, I get the answer
immediately.
 
  I've tried almost everything, Apache 2.0, PHP5, disabling Keep-Alive in
  Apache, nothing works.
 
  What am I doing wrong? Is that a natural behaviour.
 
  Thanks for your help,
  Vincent

 -- 
 Evan Nemerson
 [EMAIL PROTECTED]
 http://coeusgroup.com/en

 --
 ...the whole idea of revenge and punishment is a childish daydream.
Properly
 speaking, there is no such thing as revenge. Revenge is an act which you
want
 to commit when you are powerless and because you are powerless: as soon as
 the sense of impotence is removed, the desire evaporates also. 

 -George Orwell

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



[PHP] Apache/IE hangs with PHP

2004-02-25 Thread Vincent Bouret
Hi,

I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1
with PHP 4.3.4 as a module:

httpd.conf
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml

//After a list of modules
AddModule mod_php4.c

Let's say I have test.php that does nothing more than sleeping for 30
seconds:
?php
sleep(30);
?
html
content
/html

When I open up this script in IE with http://localhost/test.php and within
the 30 seconds sleep I try to load another file with .php extension
(regardless of whether there are some php statements or not in the file) on
the same localhost server with another IE window, IE or Apache hangs until
the first script is done and then gives output of the second script.

The thing is that when I connect to Apache manually with Telnet during the
same 30 seconds and I request a PHP script, I get the answer immediately.

I've tried almost everything, Apache 2.0, PHP5, disabling Keep-Alive in
Apache, nothing works.

What am I doing wrong? Is that a natural behaviour.

Thanks for your help,
Vincent

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



[PHP] Removed the bundled MySQL client library. (Sterling)

2003-07-01 Thread Vincent Bouret
I found this in the ChangeLog of PHP5: Removed the bundled MySQL client
library. (Sterling)

What does that mean? We can't access MySQL anymore from PHP?


Vincent




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



[PHP] preg_replace problem

2003-06-17 Thread Vincent Bouret
Hi,

I am having this problem with preg_replace. I want the following thing but I
can't understand what regular expression I should put.

I want to replace all occurences of a given **whole** word into a string.

For example:

I want A dog jumped over a ladder to become xyzA/xyz dog jumped over
xyza/xyz ladder.

I **don't** want: A dog jumped over a ladder to become xyzA/xyz dog
jumped over xyza/xyz lxyza/xyzdder.

You understand what I mean? I can't do that will str_replace, but I know it
would be quite easy with preg_replace. Can someone help me?

Thanks

Vincent




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



[PHP] Unexpected $end error?

2003-01-05 Thread Vincent Bouret
Can someone tell me why I keep getting that error:

Parse error: parse error, unexpected $end in D:\Program Files\Apache
Group\Apache2\htdocs\proxy\acc_new.php on line 62

line 62 refers to /html

Thanks for your help

Vincent

Here is the content of acc_new.php

?php
//MUST declare $page_class to specify the level of authentication required
$page_class = account;

include('auth.php');

include('mysql.php');

?
html
head
titleAccount Management Tools - Add a new account/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
link href=proxy.css rel=stylesheet type=text/css
/head

body
h1Accounts Management Tools/h1
h2Add a new account/h2
form name=frmAdd method=post action=acc_new.php
pstrongUsername:/strong
  input type=text name=textfield
/p
  pstrongPassword:/strong
input name=txtPassword type=password id=txtPassword value=
size=25 maxlength=20
emMust contain between 4 and 20 characters./em/p
  pstrongFirstname:/strong
input name=txtFirstname type=text id=txtFirstname value=
size=25 maxlength=50
  /p
  pstrongLastname:/strong
input name=txtLastname type=text id=txtLastname value=
size=25 maxlength=50
  /p
  pstrongEmail address:/strong
input name=txtEmail type=text id=txtEmail value= size=50
maxlength=80
  /p
  pstrongUsergroup:/strong
  select name=selUserGroup
  ?php
  //Fetch list of groups
   $result = mysql_query(SELECT id, name FROM tblUserGroups, $db);
 $row = mysql_fetch_array($result);
 if ($row = mysql_fetch_array($result)) {
  do {
  ?
option value=?php echo $row['id']; ??php echo $row['name'];
?/option
  ?php
  } while($row = mysql_fetch_array($result));
  ?
   /select
   /p

  p align=center
input name=btnAdd type=submit id=btnUpdate value=Add new
account
  /p

/form

pa href=man_accounts.phpBack to Account Management Tools/a/p

/body
/html

and here is the content of auth.php

?php

//some code working with every other pages

?

and mysql.php

?php
//mysql.php Include file initializing connection to db
 $db = mysql_connect(dbinfo goes here);
 mysql_select_db(proxy_db, $db);

?



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