[PHP] MCRYPT anybody anybody???

2002-07-01 Thread charlesk

Does anybody know anything about mcrypt for windows???

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




[PHP] mcrypt again...

2002-07-01 Thread charlesk

Where can I get mcrypt for windows and php 4.2.1?

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




[PHP] mcrypt

2002-06-29 Thread charlesk

Has anyone got a working mcrypt.dll for php 4.2.1 and Windows 2000 Server?

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




[PHP] Help with Mail

2002-05-30 Thread charlesk

I am getting a Server Error when I try to send an email to a domain that we host.  I 
dont get that error when I send mail to another domain that we host.  I have checked 
DNS and I am able to ping the required hosts.  

Does anyone have any suggestions for what is causing this Server Error?

Thanks for any help
Charles Killmer
IIS 5.0 Windows 2000 Server PHP 4.2.1

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




Re: [PHP] Help with Mail NEVERMIND

2002-05-30 Thread charlesk

Oops I was misspelling the recipients name.  :)

Charles Killmer

-- Original Message --
From: charlesk  [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Thu, 30 May 2002 09:09:33 -0500

I am getting a Server Error when I try to send an email to a domain that we host.  I 
dont get that error when I send mail to another domain that we host.  I have checked 
DNS and I am able to ping the required hosts.  

Does anyone have any suggestions for what is causing this Server Error?

Thanks for any help
Charles Killmer
IIS 5.0 Windows 2000 Server PHP 4.2.1

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



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




[PHP] SID is missing in 4.2.0

2002-05-06 Thread charlesk

I am so far unable to use the var SID.  I have determined the the script thinks it is 
defing but empty.

?
session_start();
echo '.SID.';
echo br;
echo defind(SID);
echo br;
echo session_id();
?

Try this script.  SID is empty but defined.  I can alternately call session_id but I 
have many sites that use SID.

Charles Killmer
Windows 2000 Server IIS 5.0 upgrading PHP 4.1.2 - 4.2.0

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




[PHP] Process Scheduling

2002-05-03 Thread charlesk

This isnt really the place for it but I thought some might be interested.  

Has any thought been given to the following process scheduling idea?

As a process's cpu usage gets higher it priority gets slightly lower.  So that if I 
have a process to run but someone is hogging the CPU my task while it is lower in 
usage will get slightly more CPU priority.  

I am not talking about the major steps in priority only the minor steps within a 
priority.

So that this would only help 2 processes at the same priority, ie Normal,Low.

I have never modified and recompiled a linux kernal, and I work only with Windows at 
work so I havent really been able to play with this idea.  Just wodering if anyone 
else has.

Thanks
Charles Killmer

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




Re: [PHP] odd behavior

2002-05-01 Thread charlesk

check clearstatcache()

Charles Killmer

-- Original Message --
From: Craig Westerman [EMAIL PROTECTED]
Date: Tue, 30 Apr 2002 18:29:37 -0500

When I run this the first time, file.txt contains value of 30. Then I add 15
to it with following script and file now contains value of 45. I look at
file.txt after write and it does indeed contain number 45. But when I run
script 24 hours later via cron job, it still thinks file.txt is holding
number 30. Is $file somehow retaining value of 30 and not getting new value
of 45 when script runs second time? What is it called when this happens?

?php

$file = file('/usr/home/xyz/file.txt'); //file.txt contains value of 30

$number = 15;

$newnumber = $file + $number; //$newnumber now is 45

$fp = fopen('/usr/home/xyz/file.txt','w');
fputs($fp,$newnumber); // write value 45 to file.txt
fclose($fp);

?

Thanks

Craig 
[EMAIL PROTECTED]


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



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




RE: [PHP] New php functions?

2002-04-02 Thread charlesk

Its amazing how a message can change like this. My original meesage was just humorous.

Charles

---Original Message---
I went to php.net wnating info on the date() function.  To my surprise the word date 
was already in the search for field.   

Has PHP developed some new functions? 

Possible code 

? 
$question = read_psychic_aura(user); 

$answer = answer_question($question); 

echo $answer; 
? 

If not are these ever planned as I have use for them.   

Thanks 
Charles Killmer 

PS In case you are wondering yes this is supposed to be humorous.  ;-) 


-- Original Message --
From: Rick Emery [EMAIL PROTECTED]
Date: Mon, 1 Apr 2002 17:23:13 -0600 

  Extended info at http://www.mslinux.org

ROFLMAO

-Original Message-
From: margehair.terra.es [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] New php functions?


I love that manual! And what about the one in win help format? Not too bad, 
int it? They say it now works under MSLinux. Probably Mandrake too, but not 
tested yet.
Extended info at http://www.mslinux.org

See ya,
Marga

Vas escriure:
 I've got the PHP manual as a series of hyper-linked HTML pages.  Searchig
is
 is very fast.  And, I don't need to wait for download of single page.
 I've got the index.html page in my Favoties list, so the PHP manual ia
 always available; I don't have to try to remember where the downloaded doc
 is.
 
 -Original Message-
 From: Jason Murray [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 01, 2002 4:52 PM
 To: 'Jason Wong'; [EMAIL PROTECTED]
 Subject: RE: [PHP] New php functions?
 
 
  It begs the question, why don't you just download the manual? 
  It's available in a myriad of different formats, one of which 
  must suit you. It may not be bang up-to-date and it may not have 
  the (sometimes) useful user comments but it sure saves you a lot 
  of time and bandwidth.
 
 Heheh ... well, for one, it's not my bandwidth :) And the time it
 takes to open a new browser and type www.php.net/date and download
 the page is a lot faster than the amount of time it'd take to find
 out where the heck I put the downloaded document, then find the
 right page / entry / etc... :)
 
 J
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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

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



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




[PHP] New php functions?

2002-03-27 Thread charlesk

I went to php.net wnating info on the date() function.  To my surprise the word date 
was already in the search for field.  

Has PHP developed some new functions?

Possible code

?
$question = read_psychic_aura(user);

$answer = answer_question($question);

echo $answer;
?

If not are these ever planned as I have use for them.  

Thanks
Charles Killmer

PS In case you are wondering yes this is supposed to be humorous.  ;-)

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




Re: [PHP] Sooo close - please help

2002-03-22 Thread charlesk


It looks like gmp_divexact returns a resource which does not appear to be what you 
want.

You may have to access the result somehow to see if it is giving you what you expect.

Charles Killmer

-- Original Message --
From: brendan conroy [EMAIL PROTECTED]
Date: Fri, 22 Mar 2002 20:18:10 +

Hi guys,
   Thanks for reading this. I desperatley need help with this
error. I just finished a huge project thats taken me months, my code works,
but the code it uses has an error. The project is due Monday and naturally 
enough the guy who wrote the code with the error is gone on holiday for the
weekend- typical. To be so close to having it finished is sort of
sickening..

Does anyone know what the hell Resource id's are, and why they are showing
up in my array instead of good ol fashioned numbers?

My array goes (correct)into a function looking like this :

Array ( [0] = Array ( [0] = -1 [1] = 1 [2] = 1 [3] = 1 ) [1] =Array (
[0] = -2 [1] = 2 [2] = 2 [3] = 10 [4] = 2 ) [2] = Array ( [0] = -3[1]
= 3 [2] = 3 [3] = 9 ) ) Array ( [0] = Array ( [0] = -4 [1] = 4 [2]= 4
[3] = 4 ) [1] = Array ( [0] = -5 [1] = 5 [2] = 5 [3] = 5 ) [2] =Array
( [0] = -6 [1] = 6 [2] = 6 [3] = 6 ) )

and comes out looking like this:

Array ( [0] = Array ( [0] = Resource id #5 [1] = Resource id #8 [2] =
1[3] = 1 ) [1] = Array ( [0] = Resource id #16 [1] = Resource id #17
[2]= 2 [3] = 10 [4] = 2 [5] = ) [2] = Array ( [0] = Resource id #24
[1]= Resource id #25 [2] = 3 [3] = 9 ) ) Array ( [0] = Array ( [0]
=Resource id #35 [1] = Resource id #36 [2] = 4 [3] = 4 ) [1] = Array
([0] = Resource id #44 [1] = Resource id #45 [2] = 5 [3] = 5 ) [2]
=Array ( [0] = Resource id #53 [1] = Resource id #54 [2] = 6 [3] = 6 )
)

The Resource id #'s only go into the first two places in the end(third)
arrays.

Heres the other guys code, Im pretty sure the bug is in monic or prodmono as
they're the functions that deal with the elements that are turned into
Resource id #'s . I know this is an awful lot to ask,but like I said Im
desperate

 ?
 function grobmonic($g)
 {

   for($c=0;$ccount($g);$c++)
   {
   $g[$c]=monic($g[$c]);
   }
 return $g;
 }
 ?


 ?
 function monic($p)
 {
   print_r($p);
   if(gmp_cmp($p[0][0],$p[0][1])!=0)
   {
   $temp[0]=$p[0][1];
 $temp[1]=$p[0][0];
   $p=prodmono($temp,$p);
   }
 return $p;
 }
 ?




 ?
 function prodmono($p1,$p2)
 {

   for($a=0;$acount($p2);$a++)
 {

   $num=gmp_mul($p1[0],$p2[$a][0]);

 $den=gmp_mul($p1[1],$p2[$a][1]);
   $g=gmp_gcd($num,$den);
   if(gmp_cmp($g,1)!=0)
   {
   $num=gmp_divexact($num,$g);
   $den=gmp_divexact($den,$g);
   }
   $res[$a][0]=$num;
 $res[$a][1]=$den;
   $k=$i=$j=2;
   while($icount($p1)  $jcount($p2[$a]))
   {
   if($p1[$i]$p2[$a][$j])
   {
   $res[$a][$k]=$p1[$i];
   $res[$a][$k+1]=$p1[$i+1];
   $i=$i+2;
   }
   elseif($p1[$i]$p2[$a][$j])
   {
 $res[$a][$k]=$p2[$a][$j];
 $res[$a][$k+1]=$p2[$a][$j+1];
 $j=$j+2;
 }
   else
   {
 $res[$a][$k]=$p1[$i];
 $res[$a][$k+1]=$p1[$i+1]+$p2[$a][$j+1];
 $i=$i+2;
   $j=$j+2;
 }
   $k=$k+2;
   }
   while($icount($p1))
   {
   $res[$a][$k]=$p1[$i];
 $res[$a][$k+1]=$p1[$i+1];
 $i=$i+2;
   $k=$k+2;
 }
 while($jcount($p2[$a]))
 {
 $res[$a][$k]=$p2[$a][$j];
 $res[$a][$k+1]=$p2[$a][$j+1];
 $j=$j+2;
 $k=$k+2;
 }
   }
   return $res;
   }
 ?



I'd really appreciate help with this


Thanks a million







_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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




--

[PHP] Mulitple ini files?

2002-03-15 Thread charlesk

I want to make use of the doc_root settings in the ini file.  But I don't want ot have 
links on my sites like
on one site
href=/site1/document.php
and on another site
href=/site2/document.php

Is there some way to have different doc_roots based on the domain name or per IIS site?

Charles Killmer
IIS 5.0 Windows 2000 Server PHP 4.1.2

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




Re: [PHP] Mulitple ini files?

2002-03-15 Thread charlesk

I have many sites and all are virtual hosts.  I would like IIS to specify the home 
directory, for html, gifs, jpgs... and all of the php files to be somewhere else in 
the filesystem, specified by the php.ini.  

Charles

-- Original Message --
From: [EMAIL PROTECTED]
Date: Fri, 15 Mar 2002 15:38:17 -0600 (CST)

This is an IIS configuration issue. IIS is a horrible program to try to 
configure (look into getting Apache, which has flexible, powerful and 
well-documented configuration), but in a nutshell you need to look up how 
to create virtual hosts. Each one can have its own root.

miguel

On Fri, 15 Mar 2002, charlesk  wrote:

 I want to make use of the doc_root settings in the ini file.  But I don't want ot 
have links on my sites like
 on one site
 href=/site1/document.php
 and on another site
 href=/site2/document.php
 
 Is there some way to have different doc_roots based on the domain name or per IIS 
site?
 
 Charles Killmer
 IIS 5.0 Windows 2000 Server PHP 4.1.2
 
 



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




[PHP] PHP 4.1.2 binary for windows

2002-03-07 Thread charlesk

Does anyone know when this will be available? 
Or if it already is, where it can be downloaded?

Thanks
Charles

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




Re: [PHP] Odd parse speed problem in 4.06/Linux/Apache

2002-01-31 Thread charlesk

I noticed a similar thing so I started performance logs on all php scripts.  
I found that the same User (IP/User Agent) could request a file and it would usually 
run around .01 seconds.  Every once in a while though it would jump to 30+ seconds.
Not a server load issue because it sometimes happens after midnight.  The lowest point 
of the day.
No runaway processes, cant be buggy code because the same script with same parameters 
runs fine other times.

I dug into it for a while and never found a solution.

I posted a bug on php.net and they coulnd't help.

I cant reproduce it.
It continues to happen and we are continuing to monitor it.

Charles Killmer
Windows 2000 Server, PHP 4.1.0, IIS 5.0

-- Original Message --
From: Pekka Saarinen [EMAIL PROTECTED]
Date: Wed, 30 Jan 2002 18:27:43 +0200

Hi,

I have recently developed a free quite complex photo gallery software (see 
http://www.photography-on-the.net/ee/ ) with PHP/MySQL. It's quite near 
completion, only one odd server-related issue remains to be solved:

Two weeks ago the PHP code went suddenly really slow on my servers.  I did 
not change source code - it just went slow.

I usually get 80ms page parse speeds in my own Windows 2000 Pro 
1.3Ghz/512MB PC. I used to get about 200-250ms on all online Linux servers 
I tried it on - that's ok for me because it has some really big queries there.

To examine this sudden speed problem I set one test page on a shared server 
(Cobalt). I thought it was getting very busy (usually shared servers host 
about 200 sites at once) and that's why it went slow.  See
http://photography-on-the.net/gallery/list2.php , it makes a speed 
measurement on every block of code on a shared server. The page barely 
usable - and two weeks ago it was really fast.

But it's not a server user load thing.

A couple of days ago I got a _dedicated_ 1GHz/512MB/linux/Apache server 
(only with this one site in it so far), and put the same gallery there, and 
odd thing is that even if some parts of the code are now really fast and 
stable, there are still a few parts there that give very random parse 
delays like 300ms,1200ms, 800ms every time you refresh the page you get 
a different value - and the codes which seems to be have a problem are 
actually just few lines using simple print commands!

The most complicated database queries and array shuffling goes in 1ms, but 
simple parts take ages? In fact I tried the ms counter only on one print 
command and it jumped randomly from 0 to 1000ms!

See http://216.40.250.74/gallery/list2.php for a dedicated server parse 
times and tell me what the heck is going on there, please.

E.g there is a code block called TABLE HEADERS which has only few print 
statements like this:
---
if ($sort_row==$q6) print $markedrow;
print smallba href=\list.php?sortby=1 . $link . \ . $remove_ . 
font color=\#ff\ . $s_APERTURE . /font/a/b/small/td;
---

and it takes anything from 0 to 2000ms on a empty 1GHz Linux/Apache server 
without any traffic going on to parse it! My home server does it _always_ 
in 0ms.

I thought the problem was perhaps in speed measurement code, but it's 
results reflect to actual page load speeds well. The slow parts of the 
code do not query any MySQL, only simple arrays are used there with some if 
statements and print commands.

Can anyone explain this? Was there perhaps a new PHP hater kernel released 
for Linux couple of weeks ago or what's going on? Both servers, and my home 
dev server use PHP 4.06, I see no difference in configuration other that my 
server has Virtual Directory Support enabled and both Linux servers has 
it disabled (if that's it, what's Virtual Directory Support and how do you 
enable it?).

The ms counter code I use is

---
Function CheckTime ($VarStart, $VarEnd) {
  $arr = explode( , $VarStart . .$VarEnd);
  $ttime = smallIt took . round((($arr[2] + $arr[3]) - ($arr[0] + 
$arr[1])) *
1000) .ms./smallbr\n;
  return $ttime;
}

$start = microtime();

// do table header stuff here

// STOP PERFORMANCE CHECK
$end = microtime();
// PRINT PERFORMANCE NOTE
print TABLE HEADER: ;
echo CheckTime($start, $end);
---

PS. Is there some other timer code available?


Thanks for any insight,

Pekka Saarinen


-- 
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] mixed datatype

2002-01-28 Thread charlesk

How do you make a function like 
bool session_register (mixed name [, mixed ...])

What does the function look like that it can take unlimited arguments?

Charles Killmer

-- 
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] Multiple INI Files

2002-01-28 Thread charlesk

We host many sites with PHP.  Is there any way to have each site use a different 
php.ini?

Charles Killmer

-- 
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] RE: Multiple INI Files

2002-01-28 Thread charlesk

Windows 2000 Server, PHP 4.1.0, IIS 5.0


-- 
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 Creating GUID's in PHP 4.1.0

2002-01-15 Thread charlesk

Does anyone know how to create GUID's in PHP?

Charles Killmer
PHP 4.1.0 IIS 5 Windows 2000 Server

-- 
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] Compiled PHP

2002-01-11 Thread charlesk

Are there any php compilers available for win32?  
Can they compile to byte code that the processor like C uses, instead of an 
interpreter?

Charles Killmer
IIS 5.0, Windows 2000 Server, PHP 4.1.0

-- 
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 dependent on connection speed?

2002-01-03 Thread charlesk

Is the php engine slowed by users with a slow connection? 

Charles Killmer
NetgainTechnology.com
IIS 5.0 Win 2000 Server PHP 4.1.0

-- 
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 scripts timeout

2002-01-03 Thread charlesk

Every once in a while, maybe 10 times a day, scripts timeout.  Different scripts, 
different places in the script, different IP addresses.  
I wrote an auto_append script that dumps the phpinfo to a file if the script ran 
longer than 30 seconds, and nothing is odd  in those phpinfo's.  
Sometimes the same IP address gets the script fast sometimes timeout.  I have 
increased the timeout from 60 to 120 then to 240.  I still get a few timeouts.  
I have looked through the code and it cant be a database connection because some of 
the scripts don't use a database.  It doesn't look like it can be an infinite loop 
either.

Does anyone have any thoughts?

Charles Killmer
NetgainTechnology.com
IIS 5.0 Win2000 Server PHP 4.1.0

-- Original Message --
From: Henning Sprang [EMAIL PROTECTED]
Date: 03 Jan 2002 15:33:31 +0100

Am 03 Jan 2002 08:10:08 -0600 schrieb charlesk :
 Is the php engine slowed by users with a slow connection? 
it _should_ not under normal circumstances - but what problems are you
exactly experiencing?

henning




-- 
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] Re: PHP scripts timeout

2002-01-03 Thread charlesk

I have looked at the post variables and sometimes it times out when nothing is passed 
to it.  Either through post get or cookie.(I know this from looking at the phpinfo 
that I dump everytime a script runs too long.)  Its got me stumped.  Hopefully someone 
someday will figure it out.  Thanks though.

Charles Killmer
IIS 5.0 Win2000 Server PHP 4.1.0

-- Original Message --
From: Fred [EMAIL PROTECTED]
Date: Thu, 3 Jan 2002 11:21:23 -0800

First of all, there is no need to worry about database connections, PHP does
not count the time that it is waiting for database connections to complete.
The best suggestion I can make is to try to determine if the scripts that
time out have been passed a common post or get variable, that may be
upsetting your code.

Fred

Charlesk [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Every once in a while, maybe 10 times a day, scripts timeout.  Different
scripts, different places in the script, different IP addresses.
 I wrote an auto_append script that dumps the phpinfo to a file if the
script ran longer than 30 seconds, and nothing is odd  in those phpinfo's.
 Sometimes the same IP address gets the script fast sometimes timeout.  I
have increased the timeout from 60 to 120 then to 240.  I still get a few
timeouts.
 I have looked through the code and it cant be a database connection
because some of the scripts don't use a database.  It doesn't look like it
can be an infinite loop either.

 Does anyone have any thoughts?

 Charles Killmer
 NetgainTechnology.com
 IIS 5.0 Win2000 Server PHP 4.1.0

 -- Original Message --
 From: Henning Sprang [EMAIL PROTECTED]
 Date: 03 Jan 2002 15:33:31 +0100

 Am 03 Jan 2002 08:10:08 -0600 schrieb charlesk :
  Is the php engine slowed by users with a slow connection?
 it _should_ not under normal circumstances - but what problems are you
 exactly experiencing?

 henning






-- 
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] printing php variable into html print $result; ?

2002-01-03 Thread charlesk

something like

?
$result = mssql_query($sql);
for ($i=0;$imssql_num_rows($result);$i++) {
   mssql_data_seek($result,$i);
   $row = mssql_fetch_object($result);
   echo $row-someColumnInTable;
   echo $row-someOtherColumnInTable;
}
?

-- Original Message --
From: louie miranda [EMAIL PROTECTED]
Date: Fri, 4 Jan 2002 04:45:57 +0800

Hi, is it possible to print the sql query? i mean
i want to print the output of the command SELECT * FROM members;
and output it into html, i tried

print $result; -- it gives me different output..

 Resource id #2


ty,
louie...

# PHP SCRIPT ###

html
body

?php

$db = mysql_connect(my_db_host, my_db_user, my_db_pass)
or die(Could not connect);

mysql_select_db(cavite,$db);

$result = mysql_query(SELECT * FROM members,$db) or
die(Error:.mysql_error()
);

printf(ircname: %sbr, mysql_result($result,0,ircname));
printf(email: %sbr, mysql_result($result,0,email));
printf(realname: %sbr, mysql_result($result,0,realname));
printf(asl: %sbr, mysql_result($result,0,asl));
printf(info: %sbr, mysql_result($result,0,info));

print brbr;

?

/body

/html

# PHP SCRIPT ###


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



--
Charles Killmer
Netgain Technology
251-4700
--

-- 
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] INI file parsing

2002-01-02 Thread charlesk

Does PHP parse the ini file every time a file is requested?  I am trying to track down 
a problem on various pages where the timelimit will expire.  These are not complex 
pages and when I go to them they work fine.  
I have used the same browser that the user eses when the timeout occurs.  Nothing 
strange for me.  
I have looked at the line that the error log specifies and it is just random lines.  
sometimes it is a '}'.  As if the script just ran out of time on that line.  BTW '}' 
is the closing of an if statement so it isnt stuck in a loop.  And when I go to the 
page I make sure to use the same querystring that the user sent.

Another thought, is the php engine slowed by users with a slow connection?

Charles Killmer
NetgainTechnology.com

-- 
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] INI file parsing

2002-01-02 Thread charlesk

I am running IIS 5.0 Windows 2000 Server.  Changes made to the ini take effect 
immediately.  So it seems that php in Windows and IIS reloads the ini every time a 
page is requested?  

Charles Killmer

-- Original Message --
From: Joe Webster [EMAIL PROTECTED]
Date: Wed, 2 Jan 2002 15:46:32 -0500

no you need to restart apache to change an in setting. So it loads the
settings once per server start (at least with apache).

Charlesk [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Does PHP parse the ini file every time a file is requested?  I am trying
to track down a problem on various pages where the timelimit will expire.
These are not complex pages and when I go to them they work fine.
 I have used the same browser that the user eses when the timeout occurs.
Nothing strange for me.
 I have looked at the line that the error log specifies and it is just
random lines.  sometimes it is a '}'.  As if the script just ran out of time
on that line.  BTW '}' is the closing of an if statement so it isnt stuck in
a loop.  And when I go to the page I make sure to use the same querystring
that the user sent.

 Another thought, is the php engine slowed by users with a slow connection?

 Charles Killmer
 NetgainTechnology.com



-- 
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] Forking in PHP

2002-01-02 Thread charlesk

This works almost.  Instead of having echo hello; you have a huge process that takes 
a while, the browser wont redirect until the script is finished.  This seems to be a 
feature of IIS.  Has anyone found a way to do something similar in PHP 4.1.0, IIS 
5.0, Windows 2000 Server?

I basically want a way for the user to see a different page than have them waiting for 
the script to finish.

?
if ($process)
{
   echo cool;
} else
{
   header(Location: test2.php4?process=true);
   error_log(this means it works\r\n,3,c:\errors\errors.txt);
   echo hello;
}
?

Charles Killmer
NetgainTechnology.com

-- 
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] Forking in PHP

2002-01-02 Thread charlesk

Thanks for the reply but leave the duh's! out of comments please.


-- Original Message --
From: Bas van Rooijen [EMAIL PROTECTED]
Reply-To: Bas van Rooijen [EMAIL PROTECTED]
Date: Wed, 02 Jan 2002 22:32:53 +0100


Hi,


You could use register_shutdown_function() which should be called before the script 
ends (duh!).

Define a function for your process and pass it's name to register_shutdown_function() .

bvr.

On Wed,  2 Jan 2002 15:14:59 -0600, charlesk  wrote:

This works almost.  Instead of having echo hello; you have a huge process that 
takes a while, the browser wont redirect until the script is finished.  This seems to 
be a feature of IIS.  Has anyone found a way to do something similar in PHP 4.1.0, 
IIS 5.0, Windows 2000 Server?

I basically want a way for the user to see a different page than have them waiting 
for the script to finish.

?
if ($process)
{
   echo cool;
} else
{
   header(Location: test2.php4?process=true);
   error_log(this means it works\r\n,3,c:\errors\errors.txt);
   echo hello;
}
?

Charles Killmer
NetgainTechnology.com

-- 
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] Forking in PHP

2002-01-02 Thread charlesk

register_shutdown_function() doesnt work either.  Seems to be IIS caching the output 
until the script finishes.  Anyone else have an idea?

-- Original Message --
From: Bas van Rooijen [EMAIL PROTECTED]
Reply-To: Bas van Rooijen [EMAIL PROTECTED]
Date: Wed, 02 Jan 2002 22:32:53 +0100


Hi,


You could use register_shutdown_function() which should be called before the script 
ends (duh!).

Define a function for your process and pass it's name to register_shutdown_function() .

bvr.

On Wed,  2 Jan 2002 15:14:59 -0600, charlesk  wrote:

This works almost.  Instead of having echo hello; you have a huge process that 
takes a while, the browser wont redirect until the script is finished.  This seems to 
be a feature of IIS.  Has anyone found a way to do something similar in PHP 4.1.0, 
IIS 5.0, Windows 2000 Server?

I basically want a way for the user to see a different page than have them waiting 
for the script to finish.

?
if ($process)
{
   echo cool;
} else
{
   header(Location: test2.php4?process=true);
   error_log(this means it works\r\n,3,c:\errors\errors.txt);
   echo hello;
}
?

Charles Killmer
NetgainTechnology.com

-- 
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] Exec as user

2001-12-28 Thread charlesk

I tried echo %PATH%  test.txt and both the webpage and the dos prompt echo the 
correct path information.  This shows that a batch file executed by php can access the 
system vars. They have a diffence only in accessing the %USERNAME% variable.  Could 
this be indicative that it is running as the system user?  If so how do I change that?

Charles Killmer

-- Original Message --
From: Mike Eheler [EMAIL PROTECTED]
Date: Thu, 27 Dec 2001 16:56:21 -0800

Try doing this

?
 echo 'pre';
 print_r(array($HTTP_SERVER_VARS,$HTTP_ENV_VARS));
 echo '/pre';
?

And see if the information you want is in there anywhere.

Mike

 I don't believe that the system variables are available to php.  I work on
 *nix mostly, but I have a windows machine at home running php and I can't
 access any of my system var's.
 - Original Message -
 From: charlesk  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 27, 2001 11:33 AM
 Subject: [PHP] Exec as user
 
 
 
I have been looking through the docs and found no help on either finding

 which user the EXEC'ed commands run as, or how to specify which user they
 should run as.  I tried exec, system, and passthru running a batch file that
 would write %USERNAME% to a file.  And all three functions wrote nothing.
 They would however write hello world.  Has anybody else run into this.
 
I tried exec(test.bat);
test.bat:
echo %USERNAME%  test.txt

when run from a command line it resulting in Charles
when run from a webpage it resulted in ECHO is on.
if I added a line echo off above the echo username it resulted in ECHO

 is off. again only from the webpage.
 
In essense I need to update a DNS server through a web page.  It works if

 the script is local but not if it has to update a different server.
 
Charles Killmer
Windows 2000 Server, IIS 5.0, PHP 4.1.0

--
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] redirect phpinfo output

2001-12-28 Thread charlesk

How can I redirect the output from phpinfo to a file.
If I try 
error_log(phpinfo(),3,z:\\.date(YmdHis)..html);

all that is in the file is the number 1.

The output gets sent to the user.

Charles Killmer

-- 
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] Exec as user

2001-12-27 Thread charlesk

I have been looking through the docs and found no help on either finding which user 
the EXEC'ed commands run as, or how to specify which user they should run as.  I tried 
exec, system, and passthru running a batch file that would write %USERNAME% to a file. 
 And all three functions wrote nothing.  They would however write hello world.  Has 
anybody else run into this.  

I tried exec(test.bat);
test.bat:
echo %USERNAME%  test.txt

when run from a command line it resulting in Charles
when run from a webpage it resulted in ECHO is on.
if I added a line echo off above the echo username it resulted in ECHO is off. 
again only from the webpage.

In essense I need to update a DNS server through a web page.  It works if the script 
is local but not if it has to update a different server.

Charles Killmer
Windows 2000 Server, IIS 5.0, PHP 4.1.0

-- 
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] Exec as user

2001-12-27 Thread charlesk

I can access the username system var when the script is run from a command prompt.  
The problem lies when iis tells php to run it.  I have the directory security turned 
on so IIS authenticates me before any scripts are run. So it should be running as me.

Charles Killmer

-- Original Message --
From: Jim Lucas [php] [EMAIL PROTECTED]
Date: Thu, 27 Dec 2001 13:50:17 -0800

I don't believe that the system variables are available to php.  I work on
*nix mostly, but I have a windows machine at home running php and I can't
access any of my system var's.
- Original Message -
From: charlesk  [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 27, 2001 11:33 AM
Subject: [PHP] Exec as user


 I have been looking through the docs and found no help on either finding
which user the EXEC'ed commands run as, or how to specify which user they
should run as.  I tried exec, system, and passthru running a batch file that
would write %USERNAME% to a file.  And all three functions wrote nothing.
They would however write hello world.  Has anybody else run into this.

 I tried exec(test.bat);
 test.bat:
 echo %USERNAME%  test.txt

 when run from a command line it resulting in Charles
 when run from a webpage it resulted in ECHO is on.
 if I added a line echo off above the echo username it resulted in ECHO
is off. again only from the webpage.

 In essense I need to update a DNS server through a web page.  It works if
the script is local but not if it has to update a different server.

 Charles Killmer
 Windows 2000 Server, IIS 5.0, PHP 4.1.0

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





--
Charles Killmer
Netgain Technology
251-4700
--

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