[PHP] PHPUK Meeting - Cancelled

2001-08-28 Thread James Moore

Hi everyone,

Im sorry to inform you that I have decided to cancel the meeting on the 8th
of September, this is due to having very little response and it seems
pointless to have a meeting that large for literally 8 to 10 people, if
there are still people who want to meet on that day then perhaps we can size
it down and meet in a pub for the afternoon and have a chat but the original
plan of a full scale meeting with talks etc is now NOT going to happen.
Please contact me if you still feel you want to come and meet in a pub for a
chat etc and Ill see what interest there is in that.

If you have sent monies for tickets etc please contact me and they will be
returned promptly.

Sorry for any inconvience caused.

Thanks,

- James
--
James Moore
[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_UK Meeting, Sat Sept 8th, Taunton, Somerset

2001-08-21 Thread James Moore

Hi all,

Just to confirm over the past week or so I have received enough interest in
the meeting for it to take place. The details will be as available at
http://www.phpuk.org/meetings.php For those who asked how to get tickets
please send monies to:

James Moore
Prospect House
Tower Hill
Stogursey
Somerset

Please include with this:

Your Name,
Your Address,
Your Email address
Your Phone number

I Will provide receipts on the day to those of you who require them for
expenses etc.

If you contacted me about speaking and heard back then please let me know
that you are still willing to speak on the subject we spoke about or, if you
would like to change your subject please let me know and we can discuss it.
If you have not contacted me about speaking yet, but would like too, and
think you have something to offer, then please feel free to email me as I'm
sure I can find you some time in which to speak.

Any other questions and please feel free to email me about them too. For
thoese reading this on PHP General list I am not subscribed to this list so
please make sure you reply to me too.

Cheers,

- James
--
James Moore
[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] Question on Commercial Offerings

2001-06-30 Thread James Moore

Thomas Deliduka wrote:
 
 I don't know quite how to word that subject but here's what we want to do.
 
 We have a shopping cart softwre (like a million others out there) which
 based in windows NT with a COM+ object to guard the source code.
 
 We mainly offer this product to our hosting customers as an add-on solution
 to their hosting.
 
 Well, we want to migrate this to PHP/MySQL and I don't know how to protect
 the source code. My boss is suggesting to make a DSO but I really am not a C
 programmer to do all that. I want to make it all in PHP but somehow protect
 the code. Any ideas?

http://www.zend.com/zend/products.php#encoder

- James

-- 
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 UK Usergroup Meeting

2001-06-22 Thread James Moore

Hi all,

Just a note for those in the UK about the next PHP UK meeting. 

Information can be found here: http://www.phpuk.org/meetings.php

The day promises to be interesting, as well as a good chance to meet
other PHP users in the UK and most of all enjoy yourselves. If you are
interested in coming please get your tickets as soon as possible so we
can cater for the correct number of people.

Hope to hear from you soon.

- James
--  
James Moore 
[EMAIL PROTECTED]
http://www.perl.com/search/index.php - we must be doing something right
 


-- 
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] Is this a joke?!

2001-06-22 Thread James Moore


 Is this a joke?
 http://www.perl.com/search/index.php
 
 *hehe*

I see someone has been reading my sig, and no its for real.

- James
--  
James Moore 
[EMAIL PROTECTED]
http://www.perl.com/search/index.php - we must be doing somthing right
 


-- 
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-CVS] cvs: php4 /ext/rtfm/tests 001.phpt

2001-04-25 Thread James Moore

I propose we merge this new extension into the 4.0.5 release branch as it is
somthing that has been missing from PHP for a long time :)

- James

 -Original Message-
 From: Hartmut Holzgraefe [mailto:[EMAIL PROTECTED]]
 Sent: 25 April 2001 22:02
 To: [EMAIL PROTECTED]
 Subject: [PHP-CVS] cvs: php4 /ext/rtfm/tests 001.phpt


 hholzgra  Wed Apr 25 14:01:49 2001 EDT

   Added files:
 /php4/ext/rtfm/tests  001.phpt
   Log:
   guess what ... :)
   cvs:
 --



 Index: php4/ext/rtfm/tests/001.phpt
 +++ php4/ext/rtfm/tests/001.phpt
 --TEST--
 Check for rtfm presence
 --SKIPIF--
 ?php if (!extension_loaded(rtfm)) print skip; ?
 --POST--
 --GET--
 --FILE--
 ?php
 echo rtfm extension is available;
 ?
 --EXPECT--
 rtfm extension is available



 --
 PHP CVS 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 CVS 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-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread James Moore

 fmk   Mon Apr 23 10:33:22 2001 EDT

   Modified files:
 /php4/mainconfig.w32.h php_ini.c
 +
 +/* Define directory constants for php and pear */
 +#define PHP_BINDIR c:\\php4
 +#define PHP_LIBDIR c:\\php4
 +#define PHP_DATADIR c:\\php4
 +#define PHP_SYSCONFDIR c:\\php4
 +#define PHP_LOCALSTATEDIR c:\\php4
 +#define PHP_CONFIG_FILE_PATH c:\\winnt
 +#define PEAR_INSTALLDIR c:\\php4\\pear

Ugh thats very very ugly.. I dont want my files there can you please use
SYSROOT instead of c:\\winnt please.

- James



-- 
PHP CVS 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: RE: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c

2001-04-23 Thread James Moore

how about defaulting to SystemDrive\\php4 but also allowing a envromental
variable to be set so

#define PHP_BINDIR (getenv(PHP_BinDir))?getenv(PHP_BinDir):c:\\php4

or somthing like that which works in C

- James

 -Original Message-
 From: Frank M. Kromann [mailto:[EMAIL PROTECTED]]
 Sent: 23 April 2001 19:24
 To: James Moore
 Cc: [EMAIL PROTECTED]
 Subject: Re: RE: [PHP-CVS] cvs: php4 /main config.w32.h php_ini.c


 Hi James,

 No problem. I change it to

 #define PHP_CONFIG_FILE_PATH getenv(SystemRoot)

 What about all the other directories ? These should be configureable too.

 - Frank

   fmk   Mon Apr 23 10:33:22 2001 EDT
  
 Modified files:
   /php4/mainconfig.w32.h php_ini.c
   +
   +/* Define directory constants for php and pear */
   +#define PHP_BINDIR c:\\php4
   +#define PHP_LIBDIR c:\\php4
   +#define PHP_DATADIR c:\\php4
   +#define PHP_SYSCONFDIR c:\\php4
   +#define PHP_LOCALSTATEDIR c:\\php4
   +#define PHP_CONFIG_FILE_PATH c:\\winnt
   +#define PEAR_INSTALLDIR c:\\php4\\pear
 
  Ugh thats very very ugly.. I dont want my files there can you please use
  SYSROOT instead of c:\\winnt please.
 
  - James
 
 
 
  --
  PHP CVS 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 CVS 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 CVS 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-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread James Moore


 sas   Sun Apr 22 08:17:57 2001 EDT

   Modified files:  (Branch: PHP_4_0_5)
 /php4/ext/ircgconfig.m4 ircg.c php_ircg.h
   Log:
   MFH allocation-related and thttpd-independence changes

Sascha can you please STOP MFH'ding your changes will have to wait for 4.0.6
now as we are trying to get this out the door then someone comes along and
merges a few more changes, to what is a fairly trivial extension albeit. Now
we either need to revert these patches as 4.0.5 was going to be released
tomorrow or some people need to voulenteer to test RC8.  Sascha I hope you
do and post your results to PHP-QA@ otherwise please revert these patches
and leave it until 4.0.6.

- James


-- 
PHP CVS 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-CVS] RE: [PHP-QA] RE: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/ircg config.m4 ircg.c php_ircg.h

2001-04-22 Thread James Moore

 On Sun, 22 Apr 2001, James Moore wrote:

  
   sas   Sun Apr 22 08:17:57 2001 EDT
  
 Modified files:  (Branch: PHP_4_0_5)
   /php4/ext/ircgconfig.m4 ircg.c php_ircg.h
 Log:
 MFH allocation-related and thttpd-independence changes
 
  Sascha can you please STOP MFH'ding

 Well, that really surprises me.  I commit minimal changes
 while other people commit _huge_ patches to the release
 branch and noone complains about that.

 Regardless, the changes I just committed are _all_
 self-contained.  They cannot affect anything else (beside the
 single config.m4 change which has been merged from the head
 branch).  And hence, they are in good tradition with what has
 happened up to now to the 4.0.5 branch.

Sorry Sascha,
I missed the com changes too, I just saw the thttpd and ircg changes..

Herald I trust you will be helping to test RC8 too please dont MFH this late
in the process and before you do so send a mail to PHP-DEV and PHP-QA
justifying your changes and why they are so urgent that they require the
delay of the release of PHP 4.0.5 is it really that necessary to fix the mem
leak??

TO both of you we have just tested RC7 please be realistic and if you
changes REALLY need to be in 4.0.5 then thats OK and we will test again but
if they are not critical then please revert the patches  you are delaying
the release of 4.0.5 further by forcing another RC cycle.

Sascha looking at your patch:

+PHP_FUNCTION(ircg_ignore_add)
+{+#if defined(IRCG_API_VERSION)  IRCG_API_VERSION = 20010402
+   zval **args[2];
+   php_irconn_t *conn;
+   smart_str s;
+
+   if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_array_ex(2, args) ==
FAILURE)
+   WRONG_PARAM_COUNT;
+
+   convert_to_long_ex(args[0]);
+   convert_to_string_ex(args[1]);
+
+   conn = lookup_irconn(Z_LVAL_PP(args[0]));
+   if (!conn) RETURN_FALSE;
+
+   smart_str_setl(s, Z_STRVAL_PP(args[1]), Z_STRLEN_PP(args[1]));
+   irc_ignore_add(conn-conn, s, 1);
+#endif
+}

Would it not be better to have an else here the outputs a warning rather
than having the possibility of

PHP_FUNCTION(ircg_ignore_add)
{
}

The same is true of:
ircg_ignore_del

and seemingly a lot of the IRCG functions..

- James


-- 
PHP CVS 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: [PHP-WIN] xml with php

2001-04-19 Thread James Moore

 Any guidance would be greatly appreciated,

Please dont cross post like this these questions should be sent to
php-general. I just got three copies of this in my mailbox which isnt really
necessary now is it?

- James


-- 
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-CVS] cvs: php4 /win32 install.txt

2001-04-16 Thread James Moore

jmoore  Mon Apr 16 02:44:21 2001 EDT

  Modified files:  
/php4/win32 install.txt 
  Log:
  - Updating order slighly so the install is easier to follow.
  
Index: php4/win32/install.txt
diff -u php4/win32/install.txt:1.1 php4/win32/install.txt:1.2
--- php4/win32/install.txt:1.1  Fri Nov  3 03:43:45 2000
+++ php4/win32/install.txt  Mon Apr 16 02:44:21 2001
@@ -10,7 +10,6 @@
 Apache:
 1. Stop the Apache Webserver.
 Edit the httpd.conf and put in these lines, modified to your environment:
-2. Unzip the Package to c:\php, now move php4ts.dll to the windows/system(32) 
directory, overwritte any older file!
 
 # for the apache module
 LoadModule php4_module c:/php/sapi/php4apache.dll
@@ -21,8 +20,11 @@
 Action application/x-httpd-php4 "/php4/php.exe"
 AddType application/x-httpd-php4 .php
 
+2. Unzip the Package to c:\php, now move php4ts.dll to the windows/system(32) 
+directory, overwritte any older file!
+
 3. Copy the php.ini-dist to your sysroot (directory where you installed windows), 
rename it to php.ini, and
 edit the php.ini to fit your needs.
+
 4. Restart the Apache server.
 
 



-- 
PHP CVS 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] Forcing Case

2001-04-14 Thread James Moore

RTFM:

http://www.php.net/manual/en/function.strtoupper.php
http://www.php.net/manual/en/function.strtolower.php
http://www.php.net/manual/en/function.ucfirst.php

- James

 -Original Message-
 From: midget2000x [mailto:[EMAIL PROTECTED]]
 Sent: 14 April 2001 08:16
 To: [EMAIL PROTECTED]
 Subject: [PHP] Forcing Case
 
 
 Is there any way to force case...like if I have a string and want 
 it to appear
 in all lowercase (or uppercase, God forbid)?
 
 Thanks,
 
 Rory
  ---
 providing the finest in midget technology
 
 -- 
 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-CVS] cvs: php4 /ext/sockets sockets.c

2001-04-10 Thread James Moore



 Everyone,

 Can I merge this into the current RC? This should not cause
 any problems.

What are we doing with the current release right now?
who is having problems and which problems are outstanding??

We have two possible MFH's that people want to do which shouldnt really be
included at this later stage but both are quite important.

We really need to get 4.0.5 out the door so please send a list of any
problems you are aware of or any fixes you feel should be in there so that
they can be reviewed and put in the branch if needed. Today is Tuesday lets
try and get a List by tomorrow and then an RC with any fixes tomorrow night
then two days testing and release on Friday, otherwise release on monday if
there are still unresolved issues.

-James


-- 
PHP CVS 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] PHP.net is slow

2001-04-04 Thread James Moore

just grab a copy and install locally from http://snaps.php.net/

A quick rewrite rule/browser based java script etc will do exactly the same
thing as php.net/functioname does but quicker.

- James
--
James Moore
[EMAIL PROTECTED]
PHP Web Scripting: http://www.php.net/
PHP QA Team: http://qa.php.net/
PHP-GTK: http://gtk.php.net/
VL-SRM: http://www.vl-srm.net/

 -Original Message-
 From: Matt Friedman [mailto:[EMAIL PROTECTED]]
 Sent: 04 April 2001 19:45
 To: php general
 Subject: [PHP] PHP.net is slow


 I don't know about everyone else but I've found that since the
 changeover to
 the new design of the php.net site, it's been very unreliable.

 I used to be able to look up a function in seconds if I didn't quite
 remember the usage. Now, I find that the doesn't won't even come up at
 times.

 Other times the search is very slow. If others have noticed this
 perhaps we
 can alert the developers to the situation.

 How about a downloadalbe version of the site? Does such a thing exist?


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

2001-04-03 Thread James Moore


 On Tuesday 03 April 2001 01:42, you wrote:
  Hello
 
  In PHP there is an instruction : nl2br .
  Does anybody know if there is something similar in Perl???
 
 Well, you'd think Perl experts would know this a bit better that PHP 
 experts, hm?

$string =~ s/\n/br\n/g

-James
--  
James Moore
[EMAIL PROTECTED]
PHP Web Scripting: http://www.php.net/
PHP QA Team: http://qa.php.net/
PHP-GTK: http://gtk.php.net/
VL-SRM: http://www.vl-srm.net/ 

-- 
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] Programming Jobs - what I look for.

2001-04-02 Thread James Moore


 * Ability to talk me through at least 2 ways of solving a data
 manipulation
 problem, without code - whiteboard/paper/hand gestures and words only.
 You also need to be able to argue why one method is better over another.
 You don't have to be right, but you have to be able to justify your
 choices.

Sounds like a suit who wants to be a techie sure your doing the right job ;)

James


-- 
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] Installing PHP as cgi and as self.

2001-04-02 Thread James Moore


 Hello,

 Can I install php as a cgi and install it as its own program?  On a redhat
 7.0 box Apache 1.3

 Thanks Brandon?

Yep, cgi is the same as a command line interpreter.
Just ./configure and dont enable any of the sapi's

James


-- 
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-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-04-02 Thread James Moore

Rasmus,

please could you add *.chm to cvs wrappers please so the compiled helpfiles
in PHPWEB arnt corrupted anymore when they are added. I dont think my Karama
allows me to do this myself (I know you can cvs add -kb file.chm but
someones bound to forget to do so in the future).

Thanks

James

 -Original Message-
 From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
 Sent: 02 April 2001 15:57
 To: [EMAIL PROTECTED]
 Subject: [PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4


 rasmusMon Apr  2 07:57:11 2001 EDT

   Modified files:
 /CVSROOT  avail gen_acl_file.m4
   Log:
   Karma for Nick




-- 
PHP CVS 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] Starting a Forum?!

2001-04-02 Thread James Moore


 Hi...

 I'm starting a forum, but I have one problem..

 1. Is there a easy way to ignore/don't take HTML/php tags inside a post..

 e.g someone echo's $mysql_password/username?
  or something else...

 include, require etc...

take a look at http://www.php.net/manual/en/function.htmlspecialchars.php
and http://www.php.net/manual/en/function.htmlentities.php

Cheers,

James


-- 
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] VRML and PHP

2001-04-02 Thread James Moore


 
 Since PHP comes from a preprocessor and you can create VRML Code 
 with it, it
 is
 possible. Just set .vrml as your extension in the config file and 
 implement
 PHP tags.

Yep totally...

James

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

2001-04-01 Thread James Moore


 Is it possible in any instance that someone else will be able to
 de-code my
 PHP scripts once I have used the Zend Encoder on it, and be able
 to read it?
 Obviously they will be able to decode it to actually use it on
 the server,
 but will they ever be able to read the source?

They will not be able to read the source as such. If they did mange to
decode your script, which is unlikley then they would have Zend opcode
rather than PHP Source Code which is the PHP equivilent of ASM. It would be
very difficult to reconstuct your source code from this opcode and probably
more hassle than actually rewriting the same functionality themselves (IE
thats a no its pretty much impossible to retrive source code from encoded
files).

James
--
James Moore
[EMAIL PROTECTED]
PHP Web Scripting: http://www.php.net/
PHP QA Team: http://qa.php.net/
PHP-GTK: http://gtk.php.net/
VL-SRM: http://www.vl-srm.net/


-- 
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-CVS] cvs: php4(PHP_4_0_5) /ext/midgard .cvsignore ChangeLog INSTALL LICENSE Makefile.in README.session article.c attachment.c calendar.c config.m4 config.m4.session element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_session.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c session.c session.modules.c session.sql sitegroup.c snippet.c snippetdir.c style.c topic.c

2001-03-31 Thread James Moore

jmoore  Sat Mar 31 16:35:50 2001 EDT

  Removed files:   (Branch: PHP_4_0_5)
/php4/ext/midgard   topic.c style.c snippetdir.c snippet.c 
sitegroup.c session.sql session.modules.c 
session.c README.session preparser.c 
preparser-scanner.l preparser-parser.y 
preferences.c php_midgard.h person.c parameter.c 
pagelink.c pageelement.c page.c oop.c mkall 
midgard.c mgd_topic.h mgd_style.h 
mgd_snippetdir.h mgd_snippet.h mgd_sitegroup.h 
mgd_session.h mgd_preparser.h mgd_preferences.h 
mgd_person.h mgd_pagelink.h mgd_pageelement.h 
mgd_page.h mgd_oop.h mgd_member.h mgd_mail.h 
mgd_internal.h mgd_image.h mgd_host.h mgd_group.h 
mgd_file.h mgd_eventmember.h mgd_event.h 
mgd_errno.pl mgd_element.h mgd_calendar.h 
mgd_attachment.h mgd_article.h mgd_access.h 
member.c Makefile.in mail.c LICENSE INSTALL 
image.c host.c group.c file.c eventmember.c 
event.c element.c config.m4.session config.m4 
ChangeLog calendar.c attachment.c article.c 
.cvsignore 
  Log:
  Removing Midgard from release branch
  



-- 
PHP CVS 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] PHP SITE REDESIGN - What happened to older source files?

2001-03-30 Thread James Moore

   I need an older version of PHP because my pam_auth won't build with
 php-4.0.4pl1?  With the redesign of the php site, I think they
 removed older
 source files.  Can anyone confirm this, or does anyone know where
 I can get
 php-4.0.0 - 4.0.4 source files?

The files are no longer avaible form the site but are still avalible via cvs
(cvs.php.net) just checkout the files you want from the distributions
directory. I wouldnt advise using anything less recent than 4.0.4pl1 though
due to security issues in previous versions.

James
--
James Moore
[EMAIL PROTECTED]
PHP Web Scripting: http://www.php.net/
PHP QA Team: http://qa.php.net/
PHP-GTK: http://gtk.php.net/
VL-SRM: http://www.vl-srm.net/


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

2001-03-30 Thread James Moore


  HI all,
  how to compile php without function phpinfo enalbe. so if user call
  phpinfo() it would be false/error.  i would like to build a free web
  server with php but i don't like if the user know what are the tools
  in my server 'couse it's a free server.
  
  is it possible or it's just a stupid question?
 

just disable it via the php.ini settings using disable_functions=

James

-- 
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-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-29 Thread James Moore


 abThu Mar 29 02:35:33 2001 EDT

   Modified files:
 /php4/ext/midgard config.m4 config.m4.session
   Log:
   - Typo fixed
   - config.m4.session updated to config.m4

What does this fix do?? does it need to be included in 4.0.5?? or will ming
work without it??

James


-- 
PHP CVS 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-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-29 Thread James Moore


 On Thu, Mar 29, 2001 at 11:50:29AM +0100, James Moore wrote:
 
   abThu Mar 29 02:35:33 2001 EDT
  
 Modified files:
   /php4/ext/midgard config.m4 config.m4.session
 Log:
 - Typo fixed
 - config.m4.session updated to config.m4
 
  What does this fix do?? does it need to be included in 4.0.5??
 or will ming
  work without it??
 1) It is not ming but midgard

 2) It does add libmidgard.so into the list of linked libraries. Yes, it
 need to be included into 4.0.5

Hmm.. we dont really want another RC if we can avoid it.. whats the best
thing to do here people? Alex, what happens if its not in 4.0.5?? is it
related to somthing that has been changed in midgard recently (IE isnt in
the RC Branch?) or is it a long term issue that has needed fixing? If
midgard doesnt work without this change then I suppose it will have to go
into 4.0.5 and we will probably need another (quick) RC otherwise I think it
can probably wait until 4.0.6. Also can some of you midgard guys build and
check the latest RC[4] to make sure midgard works etc as I dont think anyone
else is.

James


-- 
PHP CVS 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-CVS] cvs: php4 / run-tests.php

2001-03-29 Thread James Moore

jmoore  Thu Mar 29 04:07:38 2001 EDT

  Modified files:  
/php4   run-tests.php 
  Log:
  Output php version at end of tests.
  
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.21 php4/run-tests.php:1.22
--- php4/run-tests.php:1.21 Wed Mar 21 08:01:52 2001
+++ php4/run-tests.php  Thu Mar 29 04:07:37 2001
@@ -245,7 +245,7 @@
 dowriteln(sprintf("Tests passed: %4d (%s%%)", $passed, $passed_pstr));
 dowriteln("=");
 dowriteln("Skipped ".sizeof($skipped_extensions)." extensions.");
-
+dowriteln("PHP Version: ".phpversion());
 }
 
 function find_testdirs($dir = '.', $first_pass = true)



-- 
PHP CVS 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] IP of server?

2001-03-28 Thread James Moore


 I want to base the database a PHP script uses on the IP address of the
 server running the script. What is the fastest way to get the IP
 address of
 the server from a script? I could use environment variables but they are
 unreliable (when run from cron for example, the environment
 doesn't have all
 the variables you would expect). I wrote the following function based on a
 Perl firewall script that uses ifconfig, but it has too much overhead to
 call every time I connect to the database. All I really want to
 do is add a
 conf variable to php.ini that gets read at startup and is cached from then
 on. Any ideas?

Why not test for the enviromental var, if its not there then call your
function, if it is use it?

James
--
James Moore
[EMAIL PROTECTED]
PHP: http://www.php.net/
PHP QA Team: http://qa.php.net/
PHP-GTK: http://gtk.php.net/
VL-SRM: http://www.vl-srm.net/


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

2001-03-21 Thread James Moore



 -Original Message-
 From: Wen Ni Leong [mailto:[EMAIL PROTECTED]]
 Sent: 21 March 2001 10:10
 To: [EMAIL PROTECTED]
 Subject: [PHP] trim string
 
 
 I need help in this basic string function.
 I query from the database by using while loop and the result in in
 array.  I separated them by using "," .
 
 I want at the end of the string to be trim off.  Unfortunately I tried
 all the string function such as chop,trim and substr but they seem like
 can't manage to trim the end of the string.  Please help me.

http://www.php.net/rtrim

James

-- 
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-CVS] cvs: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread James Moore


   Modified files:
 /php4/ext/cpdfphp_cpdf.h
   Log:
   Solved compile failure due to clash bewteen IMAP and ClibPDF headers.

Does this need to be in 4.0.5 release?? if so please merge it into the
release branch (PHP_4_0_5).

James


-- 
PHP CVS 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-CVS] cvs: php4(PHP_4_0_5) /ext/standard credits.c credits.h info.h

2001-03-17 Thread James Moore

jmoore  Sat Mar 17 04:21:28 2001 EDT

  Modified files:  (Branch: PHP_4_0_5)
/php4/ext/standard  credits.c credits.h info.h 
  Log:
  MFH for website team credits.
  
Index: php4/ext/standard/credits.c
diff -u php4/ext/standard/credits.c:1.5 php4/ext/standard/credits.c:1.5.2.1
--- php4/ext/standard/credits.c:1.5 Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/credits.c Sat Mar 17 04:21:21 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: credits.c,v 1.5 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: credits.c,v 1.5.2.1 2001/03/17 12:21:21 jmoore Exp $ */
 
 #include "php.h"
 #include "info.h"
@@ -95,6 +95,14 @@
php_info_print_table_start();
php_info_print_table_header(1, "PHP Quality Assurance Team");
php_info_print_table_row(1, "Andre Langhorst, Hellekin O. Wolf, Jalal 
Pushman, James Moore, Jani Taskinen, Joey Smith, Olivier Cahagne, Phil Driscoll, 
Sebastian Bergmann, Zak Greant");
+   php_info_print_table_end();
+   }
+
+   if (flag  PHP_CREDITS_WEB) {
+   /* Website Team */
+   php_info_print_table_start();
+   php_info_print_table_header(1, "PHP Website Team");
+   php_info_print_table_row(1, "Hojtsy Gabor, Colin Viebrock, Jim 
+Winstead");
php_info_print_table_end();
}
 
Index: php4/ext/standard/credits.h
diff -u php4/ext/standard/credits.h:1.2 php4/ext/standard/credits.h:1.2.2.1
--- php4/ext/standard/credits.h:1.2 Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/credits.h Sat Mar 17 04:21:22 2001
@@ -17,16 +17,26 @@
+--+
 */
 
-/* $Id: credits.h,v 1.2 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: credits.h,v 1.2.2.1 2001/03/17 12:21:22 jmoore Exp $ */
 
+#ifndef CREDITS_H
+#define CREDITS_H
 
+#ifndef HAVE_CREDITS_DEFS
+#define HAVE_CREDITS_DEFS
+
 #define PHP_CREDITS_GROUP  (10)
 #define PHP_CREDITS_GENERAL(11)
 #define PHP_CREDITS_SAPI   (12)
 #define PHP_CREDITS_MODULES(13)
 #define PHP_CREDITS_DOCS   (14)
 #define PHP_CREDITS_FULLPAGE   (15)
+#define PHP_CREDITS_QA (16)
+#define PHP_CREDITS_WEB(17)
 #define PHP_CREDITS_ALL0x
 
+#endif /* HAVE_CREDITS_DEFS */
+
 PHPAPI void php_print_credits(int flag);
 
+#endif
Index: php4/ext/standard/info.h
diff -u php4/ext/standard/info.h:1.21 php4/ext/standard/info.h:1.21.2.1
--- php4/ext/standard/info.h:1.21   Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/info.hSat Mar 17 04:21:22 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: info.h,v 1.21 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: info.h,v 1.21.2.1 2001/03/17 12:21:22 jmoore Exp $ */
 
 #ifndef INFO_H
 #define INFO_H
@@ -35,6 +35,8 @@
 #define PHP_INFO_LICENSE   (16)
 #define PHP_INFO_ALL   0x
 
+#ifndef HAVE_CREDITS_DEFS
+#define HAVE_CREDITS_DEFS
 
 #define PHP_CREDITS_GROUP  (10)
 #define PHP_CREDITS_GENERAL(11)
@@ -43,7 +45,10 @@
 #define PHP_CREDITS_DOCS   (14)
 #define PHP_CREDITS_FULLPAGE   (15)
 #define PHP_CREDITS_QA (16)
+#define PHP_CREDITS_WEB (17)
 #define PHP_CREDITS_ALL0x
+
+#endif /* HAVE_CREDITS_DEFS */
 
 #define PHP_LOGO_GUID"PHPE9568F34-D428-11d2-A769-00AA001ACF42"
 #define PHP_EGG_LOGO_GUID  "PHPE9568F36-D428-11d2-A769-00AA001ACF42"



-- 
PHP CVS 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-CVS] cvs: php4 /ext/standard credits.c credits.h info.h

2001-03-14 Thread James Moore

jmoore  Wed Mar 14 13:28:58 2001 EDT

  Modified files:  
/php4/ext/standard  credits.c credits.h info.h 
  Log:
  Adding webteam to credits. 
  
Index: php4/ext/standard/credits.c
diff -u php4/ext/standard/credits.c:1.5 php4/ext/standard/credits.c:1.6
--- php4/ext/standard/credits.c:1.5 Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/credits.c Wed Mar 14 13:28:58 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: credits.c,v 1.5 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: credits.c,v 1.6 2001/03/14 21:28:58 jmoore Exp $ */
 
 #include "php.h"
 #include "info.h"
@@ -95,6 +95,14 @@
php_info_print_table_start();
php_info_print_table_header(1, "PHP Quality Assurance Team");
php_info_print_table_row(1, "Andre Langhorst, Hellekin O. Wolf, Jalal 
Pushman, James Moore, Jani Taskinen, Joey Smith, Olivier Cahagne, Phil Driscoll, 
Sebastian Bergmann, Zak Greant");
+   php_info_print_table_end();
+   }
+
+   if (flag  PHP_CREDITS_WEB) {
+   /* Website Team */
+   php_info_print_table_start();
+   php_info_print_table_header(1, "PHP Website Team");
+   php_info_print_table_row(1, "Hojtsy Gabor, Colin Viebrock, Jim 
+Winstead");
php_info_print_table_end();
}
 
Index: php4/ext/standard/credits.h
diff -u php4/ext/standard/credits.h:1.2 php4/ext/standard/credits.h:1.3
--- php4/ext/standard/credits.h:1.2 Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/credits.h Wed Mar 14 13:28:58 2001
@@ -17,16 +17,26 @@
+--+
 */
 
-/* $Id: credits.h,v 1.2 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: credits.h,v 1.3 2001/03/14 21:28:58 jmoore Exp $ */
 
+#ifndef CREDITS_H
+#define CREDITS_H
 
+#ifndef HAVE_CREDITS_DEFS
+#define HAVE_CREDITS_DEFS
+
 #define PHP_CREDITS_GROUP  (10)
 #define PHP_CREDITS_GENERAL(11)
 #define PHP_CREDITS_SAPI   (12)
 #define PHP_CREDITS_MODULES(13)
 #define PHP_CREDITS_DOCS   (14)
 #define PHP_CREDITS_FULLPAGE   (15)
+#define PHP_CREDITS_QA (16)
+#define PHP_CREDITS_WEB (17)
 #define PHP_CREDITS_ALL0x
 
+#endif /* HAVE_CREDITS_DEFS */
+
 PHPAPI void php_print_credits(int flag);
 
+#endif
Index: php4/ext/standard/info.h
diff -u php4/ext/standard/info.h:1.21 php4/ext/standard/info.h:1.22
--- php4/ext/standard/info.h:1.21   Sun Feb 25 22:07:17 2001
+++ php4/ext/standard/info.hWed Mar 14 13:28:58 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: info.h,v 1.21 2001/02/26 06:07:17 andi Exp $ */
+/* $Id: info.h,v 1.22 2001/03/14 21:28:58 jmoore Exp $ */
 
 #ifndef INFO_H
 #define INFO_H
@@ -35,6 +35,8 @@
 #define PHP_INFO_LICENSE   (16)
 #define PHP_INFO_ALL   0x
 
+#ifndef HAVE_CREDITS_DEFS
+#define HAVE_CREDITS_DEFS
 
 #define PHP_CREDITS_GROUP  (10)
 #define PHP_CREDITS_GENERAL(11)
@@ -43,7 +45,10 @@
 #define PHP_CREDITS_DOCS   (14)
 #define PHP_CREDITS_FULLPAGE   (15)
 #define PHP_CREDITS_QA (16)
+#define PHP_CREDITS_WEB (17)
 #define PHP_CREDITS_ALL0x
+
+#endif /* HAVE_CREDITS_DEFS */
 
 #define PHP_LOGO_GUID"PHPE9568F34-D428-11d2-A769-00AA001ACF42"
 #define PHP_EGG_LOGO_GUID  "PHPE9568F36-D428-11d2-A769-00AA001ACF42"



-- 
PHP CVS 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] good ide?

2001-02-27 Thread James Moore

May I suggest the Zend IDE, at the moment it is the only one to really be a
full IDE with Debugger support etc. you can get a demo of it from
http://www.zend.com/store/.

James

 -Original Message-
 From: Luke Loeffler [mailto:[EMAIL PROTECTED]]
 Sent: 27 February 2001 08:32
 To: [EMAIL PROTECTED]
 Subject: [PHP] good ide?


 Does anyone know of a good PHP ide?  I've tried PHP-Coder, but it has bugs
 stem to stern, not the least of which mysteriously deleted an
 entire page of
 code... PHP Script editor I've also tried, but it is barren and
 in German...

 If only there were a Sun Forte for php :(

 Luke


 --
 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-CVS] cvs: php4 /ext/standard string.c

2001-02-26 Thread James Moore

jmoore  Mon Feb 26 05:04:01 2001 EDT

  Modified files:  
/php4/ext/standard  string.c 
  Log:
  Fix for bug #9449 to stop infinate loop in wordwrap.
  
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.191 php4/ext/standard/string.c:1.192
--- php4/ext/standard/string.c:1.191Sun Feb 25 22:07:23 2001
+++ php4/ext/standard/string.c  Mon Feb 26 05:04:00 2001
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: string.c,v 1.191 2001/02/26 06:07:23 andi Exp $ */
+/* $Id: string.c,v 1.192 2001/02/26 13:04:00 jmoore Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -463,6 +463,7 @@
break;
}
}
+   l ++;
}
}
i += l+1;



-- 
PHP CVS 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] DIsplaying page before script finnished

2001-02-24 Thread James Moore



 -Original Message-
 From: David Tandberg-Johansen [mailto:[EMAIL PROTECTED]]
 Sent: 24 February 2001 16:34
 To: [EMAIL PROTECTED]
 Subject: [PHP] DIsplaying page before script finnished


 Hello!

 I wonder if there are any way to display the page before the script is
 finished?

 I have a loop in my script,and I want to display the resoult for
 each loop.

If you have output buffering on then you need to flish the buffer (see the
manual) otherwise it should happen automatically.

James


-- 
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] C vs PHP

2001-02-24 Thread James Moore


 As you may know, C does not provide any kind of support for garbage
 collection, every thing you want to be done you have to tell (in C) by
 yourself. But in PHP i have no ideia about how it manages memory. for
 instance:

You dont need to worry about mem mangement as PHP does it all for you.

James

-- 
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] Latest PHP CVS binaries

2001-02-23 Thread James Moore


 Does anyone know where I can download some compiled binaries of the latest
 PHP snapshot (Win32)?

Have you got somewhere you can let me put them and Ill build you some
otherwise Ill set you up an FTP account later and let you have them.

James
--
James Moore
PHP QA Team
[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-CVS] cvs: php4 /ext/standard array.c crypt.c php_rand.h rand.c

2001-02-21 Thread James Moore

jmoore  Wed Feb 21 16:24:19 2001 EDT

  Modified files:  
/php4/ext/standard  array.c crypt.c php_rand.h rand.c 
  Log:
  Adding php_rand() and php_srand(seed) as a wrapper around random, lrand48 and rand.
  
  
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.95 php4/ext/standard/array.c:1.96
--- php4/ext/standard/array.c:1.95  Wed Feb 21 09:22:26 2001
+++ php4/ext/standard/array.c   Wed Feb 21 16:24:19 2001
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: array.c,v 1.95 2001/02/21 17:22:26 andrei Exp $ */
+/* $Id: array.c,v 1.96 2001/02/22 00:24:19 jmoore Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -1364,18 +1364,7 @@
 
 
 static int array_data_shuffle(const void *a, const void*b) {
-   return (
-   /* This is just a little messy. */
-#ifdef HAVE_RANDOM
-random()
-#else
-#ifdef HAVE_LRAND48
-lrand48()
-#else
-rand()
-#endif
-#endif
-   % 2) ? 1 : -1;
+   return (php_rand() % 2) ? 1 : -1;
 }
 
 
Index: php4/ext/standard/crypt.c
diff -u php4/ext/standard/crypt.c:1.35 php4/ext/standard/crypt.c:1.36
--- php4/ext/standard/crypt.c:1.35  Tue Feb  6 08:27:08 2001
+++ php4/ext/standard/crypt.c   Wed Feb 21 16:24:19 2001
@@ -17,7 +17,7 @@
|  Rasmus Lerdorf [EMAIL PROTECTED]   |
+--+
  */
-/* $Id: crypt.c,v 1.35 2001/02/06 16:27:08 jimjag Exp $ */
+/* $Id: crypt.c,v 1.36 2001/02/22 00:24:19 jmoore Exp $ */
 #include stdlib.h
 
 #include "php.h"
@@ -85,14 +85,10 @@
 #define PHP_STD_DES_CRYPT 1
 #endif
 
-#if HAVE_RANDOM
-#define PHP_CRYPT_RAND random()
-#elif HAVE_LRAND48
-#define PHP_CRYPT_RAND lrand48()
-#else
-#define PHP_CRYPT_RAND rand()
-#endif
 
+#define PHP_CRYPT_RAND php_rand()
+
+
 PHP_MINIT_FUNCTION(crypt)
 {
 #if PHP_STD_DES_CRYPT
@@ -105,13 +101,7 @@
 REGISTER_LONG_CONSTANT("CRYPT_MD5", PHP_MD5_CRYPT, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("CRYPT_BLOWFISH", PHP_BLOWFISH_CRYPT, CONST_CS | 
CONST_PERSISTENT);
 
-#if HAVE_SRANDOM
-   srandom((unsigned int) time(0) * getpid() * (php_combined_lcg() * 1.0));
-#elif HAVE_SRAND48
-   srand48((long) time(0) * (long) getpid() * (long) (php_combined_lcg() * 
1.0));
-#else
-   srand((unsigned int) time(0) * getpid() * (php_combined_lcg() * 1.0));
-#endif
+   php_srand(time(0) * getpid() * (php_combined_lcg() * 1.0));
 
 return SUCCESS;
 }
Index: php4/ext/standard/php_rand.h
diff -u php4/ext/standard/php_rand.h:1.6 php4/ext/standard/php_rand.h:1.7
--- php4/ext/standard/php_rand.h:1.6Sun Jul  2 16:46:47 2000
+++ php4/ext/standard/php_rand.hWed Feb 21 16:24:19 2001
@@ -19,7 +19,7 @@
| Based on code from: Shawn Cokus [EMAIL PROTECTED]  |
+--+
  */
-/* $Id: php_rand.h,v 1.6 2000/07/02 23:46:47 sas Exp $ */
+/* $Id: php_rand.h,v 1.7 2001/02/22 00:24:19 jmoore Exp $ */
 
 #ifndef PHP_RAND_H
 #definePHP_RAND_H
@@ -34,6 +34,28 @@
 #define PHP_RAND_MAX 2147483647
 #else
 #define PHP_RAND_MAX RAND_MAX
+#endif
+
+/* Define rand Function wrapper */
+#ifdef HAVE_RANDOM
+#define php_rand() random()
+#else
+#ifdef HAVE_LRAND48
+#define php_rand() lrand48()
+#else
+#define php_rand() rand()
+#endif
+#endif
+
+/* Define srand Function wrapper */
+#ifdef HAVE_SRANDOM
+#define php_srand(seed) srandom((unsigned int)seed)
+#else
+#ifdef HAVE_SRAND48
+#define php_srand(seed) srand48((long)seed)
+#else
+#define php_srand(seed) srand((unsigned int)seed)
+#endif
 #endif
 
 #endif /* PHP_RAND_H */
Index: php4/ext/standard/rand.c
diff -u php4/ext/standard/rand.c:1.23 php4/ext/standard/rand.c:1.24
--- php4/ext/standard/rand.c:1.23   Mon Feb 19 11:20:47 2001
+++ php4/ext/standard/rand.cWed Feb 21 16:24:19 2001
@@ -19,7 +19,7 @@
| Based on code from: Shawn Cokus [EMAIL PROTECTED]  |
+--+
  */
-/* $Id: rand.c,v 1.23 2001/02/19 19:20:47 derick Exp $ */
+/* $Id: rand.c,v 1.24 2001/02/22 00:24:19 jmoore Exp $ */
 
 #include stdlib.h
 
@@ -199,15 +199,7 @@
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg);
-#ifdef HAVE_SRANDOM
-   srandom((unsigned int) (*arg)-value.lval);
-#else
-#ifdef HAVE_SRAND48
-   srand48((unsigned int) (*arg)-value.lval);
-#else
-   srand((unsigned int) (*arg)-value.lval);
-#endif
-#endif
+   php_srand((*arg)-value.lval);
 }
 /* }}} */
 
@@ -253,15 +245,9 @@
}

return_value-type = IS_LONG;
-#ifdef HAVE_RANDOM
-   return_value-value.lval = random();
-#else
-#ifdef HAVE_LRAND48
-   return_value-value.lval = lrand48();
-#else
-   return_value-value.lval = rand();
-#endif
-#endif
+
+   return_value-value.lval = php_rand();
+
 /*
  * A bit of tricky math 

RE: [PHP] Function/method syntax limitations

2001-02-20 Thread James Moore

untested but..

 $foo = ${$test-blah()}[0];

 // Similarly for objects, cannot do:
 $foo = $test-childTest()-blah();

$foo = ${$test-childTest()}-blah();

 // Instead have to do:
 $temp = $test-childTest();
 $foo = $temp-blah();

Might work.. never had need to test it and cant be bothered now but would be
intereted to hear if it works..

James


-- 
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] Creative solution with XML,PHP,MYSQL

2001-02-19 Thread James Moore


 -Original Message-
 From: Siim Einfeldt aka Itpunk [mailto:[EMAIL PROTECTED]]
 Sent: 17 February 2001 14:25
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [PHP] Creative solution with XML,PHP,MYSQL

Siim, Please dont cross post like this, I just got 4 copies of your email in
my inbox which I dont really want, 1 is enough. Be sensible and send it to
the correct mailing list rather than "Spaming" 7 groups.

James


-- 
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] zend ide debugger

2001-02-16 Thread James Moore


 
  The IDE is pretty nice. Startup (Windows version through
 Samba) takes a
  long time and there are still some crashing issues.

Have you reported these if the happen consistenly Im sure the Zend folk
would love to hear about them so that they can fix them..

  It's nowhere near as
  spry as PHPEd but we're talking about a integrated debugger.

We are talking about Java and C/C++ or whatever phped is written in, Java
will be slower but then you can use it on nearly any platform.

  I can't use the scroll wheel.

Java does not support this very well yet at all but maybe the Zend folks
will sort this for a future version the 1.4 JRE should support this...

  I passed it off to an engineer so I can't comment
  further. (He's having trouble getting it to recognize the include files.
  Anyone have a tip?)

Include files must be on the webserver in the same dir as dummy.php or your
include path, personally this is slightly annonying but maybe we will see
this fixed in a future version..


James


-- 
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] FW: CSETI Announcement - Urgent Disclosure Project Update

2001-02-15 Thread James Moore

Please read and forward.

-Original Message-
From: James [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2001 21:39
To: Young, Stuart; Raf; Nicky Gosney; Nick;
[EMAIL PROTECTED]; John Boddy; Iain; Green, Karen; Darren S;
Andy; [EMAIL PROTECTED]
Subject: FW: CSETI Announcement - Urgent Disclosure Project Update


 
-Original Message-
From: Tony Craddock [mailto:[EMAIL PROTECTED]]
Sent: 14 February 2001 05:35
To: [EMAIL PROTECTED]
Subject: CSETI Announcement - Urgent Disclosure Project Update


Please Post and Distribute As Desired

Since August of 2000, the CSETI Disclosure Project has recorded the
testimony of over 100 military, government and related witnesses to UFO
events and
projects from around the world.  The testimony of these courageous witnesses
creates a permanent archive with the most profound implications as it
constitutes dozens of first-hand, often top-secret witnesses to UFO events,
internal UFO -related government projects and covert government activities
related to UFOs, Extraterrestrial Intelligence and exotic energy and
propulsion system projects. These 100 witnesses constitute the tip of a
larger pool of over 400 prospective witnesses, many of whom would prefer
coming forward first in formal Congressional hearings --which we hope will
follow the upcoming planned disclosure event.

This testimony is on broadcast quality digital videotape and audio tape.
Printed transcriptions of the testimony are currently being created.

We are requesting that any further military, government, government-
contractor or related witnesses to UFO events and projects contact CSETI
Director Dr. Steven Greer immediately for inclusion in the briefing
materials and the upcoming disclosure event. Such witnesses may contact Dr.
Greer via
the CSETI website at www.cseti.org http://www.cseti.org/  or at 540 456
8302 (government witnesses
only should use this number, please).

Additionally, any other substantial, supporting evidence, such as government
documents, high quality UFO photographs and videotaped images, hard evidence
etc. should similarly be referred to the project for inclusion in the final
briefing materials and disclosure Press Conference.

The date for the Disclosure Press  Conference and related activities in
Washington DC has been set and will occur in the Spring of this year (2001).

Prior to the Disclosure Press Conference we will be conducting private
briefings for key leaders in society, government and related institutions
(for example, members of the US Congress, White House staff, scientific and
religious leaders etc). If you have good access to such leaders and can
assist with arranging  a briefing please contact Dr. Greer as soon as
possible.

This body of testimony is being edited and the over 100 hours of testimony
will be condensed into a 2 hour briefing video. Additionally, a written
briefing document consisting of witness testimony transcripts, government
documents and important case material and policy papers is being prepared
for use in the briefings and in the Disclosure Press Conference in
Washington.

The Disclosure Press Conference will present many of the government
witnesses in person, and the other evidence and briefing materials will  be
available
to the media at that time.  People with excellent national and international
media contacts  who can assist pro bono with media coordination are invited
to contact Dr. Greer also.

Unfortunately, a documentary containing this witness testimony will not be
available as there are insufficient funds to complete such a project.

We would like to thank all of the supporters and contributors to this
historic effort and especially the witnesses who have come together to let
the world know the truth about this very important matter.

Anyone who would like to help support this effort is invited to make a
tax-deductible contribution to : The Disclosure Project, PO Box 265, Crozet
Va 22932.

Further updates will be issued as the date for the event approaches.

Again, we would like to thank our many supporters for their assistance in
and dedication to disclosing the truth.

The Disclosure Project
CSETI
11 February 2001




RE: [PHP] gettimeofday() question

2001-02-14 Thread James Moore



 I need to be able to create files with unique names.  One thought
 I had was
 to use the date functions.  In windows API you can call a function that
 returns the number of milliseconds since, I think its January 1,
 1970.  That
 number would pretty much be garunteed to be unuquie (although it could be
 long, noone has to read these names).

 if I use the PHP gettimeofday() function and get the "usec" value, would
 this be the same thing? The manual is unclear about what the usecs is in
 reference to.

Up until PHP 4.0.5 gettimeofday under windows is unreliable as a timing
mechanism although this has now been fixed. Before PHP 4.0.5 PHP does return
some sort of contrived usec value for the time, after PHP 4.0.5 it will
return a value accurate to the nearest millisecond rather than microsecond.
This should not really affect the randomness of the function that much and
the interface from the PHP end is identical (usec value will be milliseconds
not microseconds). I would suggest using somthing like

srand((double)microtime()*100);
$unique_id = md5(rand(0,32000));

which is very effective for creating unique id's.

James


-- 
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] Here you have, ;o)

2001-02-13 Thread James Moore

Hi:
Check This!





-- 
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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c ho

2001-02-12 Thread James Moore


  http://www.midgard-project.org/topic/165.html

 Well, that's a nice project, but why does it need to be in the PHP CVS?

Just too add to this.. I dont see what place midgard has in PHP CVS, If I go
and create a totally separate project which isnt a PHP extension really then
can I put it in CVS along with everyone else?? I dont think Midgard has a
place here maybe in a separate module or in PEAR (which would be ideal for
it) but why main CVS? It just doesnt fit.

James


-- 
PHP CVS 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-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.

2001-02-12 Thread James Moore


 This is distributed as GNU and the GNU license is splattered
 throughout, is
 that a problem as we have seen with readline?

 Sean


 This is distributed as GNU and the GNU license is splattered
 throughout, is
 that a problem as we have seen with readline?


quote
The application and documentation are licensed LGPL, GPL and GFDL which
ensures developers, webmasters, ISPs, and business managers that they're
investing in a strategy that grants everyone the freedom to share solutions
and participate in the application design.
/quote

I believe that the LGPL is compatible with the PHP Licience which means
there are no licience issues.. this was my first thought but apperently they
have already fixed this.

James


-- 
PHP CVS 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] IIS 5

2001-02-10 Thread James Moore

http://www.php.net/manual/en/install.iis.php
and
http://cvs.php.net/viewcvs.cgi/php4/win32/README.txt?rev=1.4content-type=te
xt/vnd.viewcvs-markup

James

 -Original Message-
 From: Christian Bjorklund [mailto:[EMAIL PROTECTED]]
 Sent: 10 February 2001 15:46
 To: [EMAIL PROTECTED]
 Subject: [PHP] IIS 5


 Hello I like to have some directions in how to install PHP on IIS 5

 Regards

 Christian.



 Krmagnom AB
 Christian Bjrklund
 Rdmansgatan 67
 113 60 Stockholm
 Tel: 08-320750
 Fax: 08-320751
 Mobil: 070-8880002



-- 
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] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread James Moore

[snip]
  for ($index = 0; $index  sizeof($books); $index++)
  {
   $book_data_file = fopen("$thisdir/$books[$index]/book_info.dat", "r");
   echo "pOpened $thisdir/$books[$index]/book_info.dat/p";
   $book_data_in = fread($book_data_file, filesize($book_data_file));
 ^
should be:   
filesize("$thisdir/$books[$index]/book_info.dat")

   echo "pbook_data_in = $book_data_in/p";
   fclose($book_data_file);
[snip]

HTH

James
--  
James Moore
PHP QA Team
[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-CVS] cvs: php4 /ext/standard credits.c

2001-02-05 Thread James Moore

jmoore  Mon Feb  5 02:18:14 2001 EDT

  Modified files:  
/php4/ext/standard  credits.c 
  Log:
  Adding Sebastian Bergmann to QA team list.
  
Index: php4/ext/standard/credits.c
diff -u php4/ext/standard/credits.c:1.3 php4/ext/standard/credits.c:1.4
--- php4/ext/standard/credits.c:1.3 Mon Jan 22 16:50:49 2001
+++ php4/ext/standard/credits.c Mon Feb  5 02:18:14 2001
@@ -17,7 +17,7 @@
+--+
 */
 
-/* $Id: credits.c,v 1.3 2001/01/23 00:50:49 jimw Exp $ */
+/* $Id: credits.c,v 1.4 2001/02/05 10:18:14 jmoore Exp $ */
 
 #include "php.h"
 #include "info.h"
@@ -94,7 +94,7 @@
if (flag  PHP_CREDITS_QA) {
php_info_print_table_start();
php_info_print_table_header(1, "PHP Quality Assurance Team");
-   php_info_print_table_row(1, "Andre Langhorst, Hellekin O. Wolf, Jalal 
Pushman, James Moore, Jani Taskinen, Joey Smith, Olivier Cahagne, Phil Driscoll, Zak 
Greant");
+   php_info_print_table_row(1, "Andre Langhorst, Hellekin O. Wolf, Jalal 
+Pushman, James Moore, Jani Taskinen, Joey Smith, Olivier Cahagne, Phil Driscoll, 
+Sebastian Bergmann, Zak Greant");
php_info_print_table_end();
}
 



-- 
PHP CVS 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-CVS] cvs: php4 /win32 time.c

2001-02-05 Thread James Moore


 I don't think you should be using static variables in the
 functions. Don't
 forget that you might have more than one thread accessing this
 function at
 a time (unless you came to the conclusion that a race here can't
 do any harm).

I dont think race conditions here will do any real harm but then again its
probably best to be safe. Having said that I am not 100% sure on how to make
it thread safe either which I would like to do. Are there any documents or
guidlines anywhere I can read about this? Its probably a good chance to
learn.

James


-- 
PHP CVS 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] XML - HTML via PHP

2001-02-05 Thread James Moore

IIRC sterling (with the help of lots of cherry-beer) put some docus into the
CVS the otherday, checkout http://snaps.php.net/manual for the latest
version of the manual with documentation for XSL functions which are now
avalible in PHP.

James

 -Original Message-
 From: Brian V Bonini [mailto:[EMAIL PROTECTED]]
 Sent: 05 February 2001 15:17
 To: PHP Lists
 Subject: [PHP] XML - HTML via PHP


 Has anyone successfully used PHP to
 transform XML to HTML on the fly?

 Can you point me to some info/tutorials.

 -Brian
 ***



 --
 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] Working with email piped to PHP

2001-02-04 Thread James Moore


 # This is the standard input script.

 $fp = fopen("php://stdin","r");
 $writer_file = fopen("test.txt","w");
 fwrite($writer_file,"$fp");
 fclose($writer_file);
 fclose($fp);

 ?

 As stated, it does create the test.txt in the specified location,
 however,
 upon inspection of the file, it only shows the following text:
 "Resource id
 #1" on the first line, and that's it.

This is what would be expected, your writing a file pointer to file not the
coentents of the stdin, you need to do somthing along the lines of the
following

// Untested Code

/* -*- Open stdin for reading -*- */
$fp = fopen("php://stdin","r");

/* -*- Open test.txt for writing -*- */
$writer_file = fopen("test.txt","w");

/* -*- Check both were opened -*- */
if($fp  $writer_file) {

/* -*- Read in stdin -*- */
while(!feof($fp)) {
$stdin .= fread($fp, 4096);
}

/* -*- Write to test.txt -*- */
if (sizeof($stdin) != fwrite($writer_file, $stdin, sizeof($stdin))) {
//Not all of stdin was written to file
}
else {
/* -*- Close Files -*- */
fclose($writer_file);
fclose($fp);
}
}
else {
//files were not opened
}

James


-- 
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-CVS] cvs: php4 /win32 time.c

2001-02-04 Thread James Moore

jmoore  Sun Feb  4 07:52:33 2001 EDT

  Modified files:  
/php4/win32 time.c 
  Log:
  Fix for time.c under win32. Patch By: "Vanhanen, Reijo" [EMAIL PROTECTED]
  
  @- microtime under windows now returns accurate values (James)
  
  
  
Index: php4/win32/time.c
diff -u php4/win32/time.c:1.4 php4/win32/time.c:1.5
--- php4/win32/time.c:1.4   Wed Jun 16 10:06:53 1999
+++ php4/win32/time.c   Sun Feb  4 07:52:32 2001
@@ -11,7 +11,15 @@
  *
  */
 
+/* $Id: time.c,v 1.5 2001/02/04 15:52:32 jmoore Exp $ */
 
+ /**
+  *
+  * 04-Feb-2001
+  *   - Added patch by "Vanhanen, Reijo" [EMAIL PROTECTED]
+  * Improves accuracy of msec
+  */
+
 /* Include stuff  */
 
 #include "time.h"
@@ -21,22 +29,92 @@
 #include mmsystem.h
 #include errno.h
 
+int getfilesystemtime(struct timeval *time_Info) 
+{
+FILETIME ft;
+__int64 ff;
+
+GetSystemTimeAsFileTime(ft);   /* 100 ns blocks since 01-Jan-1641 */
+/* resolution seems to be 0.01 sec */ 
+ff = *(__int64*)(ft);
+time_Info-tv_sec = (int)(ff/(__int64)1000-(__int64)11644473600);
+time_Info-tv_usec = (int)(ff % 1000)/10;
+return 0;
+}
+
+ 
+
 int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info)
 {
-   _int64 mstimer, freq;
+
+   static struct timeval starttime = {0, 0};
+   static __int64 lasttime = 0;
+   static __int64 freq = 0;
+   __int64 timer;
+   LARGE_INTEGER li;
+   BOOL b;
+   double dt;
+
/* Get the time, if they want it */
if (time_Info != NULL) {
-   time_Info-tv_sec = time(NULL);
-   /* get ticks-per-second of the performance counter
-  Note the necessary typecast to a LARGE_INTEGER structure 
-*/
-   if (!QueryPerformanceFrequency((LARGE_INTEGER *)  freq)) {
-   time_Info-tv_usec = 0;
-   } else {
-   QueryPerformanceCounter((LARGE_INTEGER *)  mstimer);
-   mstimer = (__int64) (mstimer * .8);
-   time_Info-tv_usec = (long) (mstimer % 0x0FFF);
-   }
+   if (starttime.tv_sec == 0) {
+b = QueryPerformanceFrequency(li);
+if (!b) {
+starttime.tv_sec = -1;
+}
+else {
+freq = li.QuadPart;
+b = QueryPerformanceCounter(li);
+if (!b) {
+starttime.tv_sec = -1;
+}
+else {
+getfilesystemtime(starttime);
+timer = li.QuadPart;
+dt = (double)timer/freq;
+starttime.tv_usec -= (int)((dt-(int)dt)*100);
+if (starttime.tv_usec  0) {
+starttime.tv_usec += 100;
+--starttime.tv_sec;
+}
+starttime.tv_sec -= (int)dt;
+}
+}
+}
+if (starttime.tv_sec  0) {
+b = QueryPerformanceCounter(li);
+if (!b) {
+starttime.tv_sec = -1;
+}
+else {
+timer = li.QuadPart;
+if (timer  lasttime) {
+getfilesystemtime(time_Info);
+dt = (double)timer/freq;
+starttime = *time_Info;
+starttime.tv_usec -= (int)((dt-(int)dt)*100);
+if (starttime.tv_usec  0) {
+starttime.tv_usec += 100;
+--starttime.tv_sec;
+}
+starttime.tv_sec -= (int)dt;
+}
+else {
+lasttime = timer;
+dt = (double)timer/freq;
+time_Info-tv_sec = starttime.tv_sec + (int)dt;
+time_Info-tv_usec = starttime.tv_usec + 
+(int)((dt-(int)dt)*100);
+if (time_Info-tv_usec  100) {
+time_Info-tv_usec -= 100;
+++time_Info-tv_sec;
+}
+}
+}
+}
+if (starttime.tv_sec  0) {
+getfilesystemtime(time_Info);
+}
+
}
/* Get the timezone, if they want it */
if (timezone_Info != NULL) {
@@ -52,21 +130,32 @@
 /* this usleep isnt exactly accurate but should do ok */
 void usleep(unsigned int useconds)
 {
-   __int64 mstimer, freq;
-   long now, then;
-   if (QueryPerformanceFrequency((LARGE_INTEGER *)  freq)) {
-   QueryPerformanceCounter((LARGE_INTEGER *)  mstimer);
-   now = (long) (((__int64) (mstimer * .8)) % 0x0FFF);
-   then = now + useconds;
-   

[PHP-CVS] cvs: php4 /ext/standard/tests/time .cvsignore 001.phpt

2001-02-04 Thread James Moore

jmoore  Sun Feb  4 08:56:59 2001 EDT

  Added files: 
/php4/ext/standard/tests/time   .cvsignore 001.phpt 
  Log:
  Adding microtime() tests
  

Index: php4/ext/standard/tests/time/.cvsignore
+++ php4/ext/standard/tests/time/.cvsignore
*.exp
*.out
*.php
phpt.*

Index: php4/ext/standard/tests/time/001.phpt
+++ php4/ext/standard/tests/time/001.phpt
--TEST--
microtime() function
--POST--
--GET--
--FILE--
?php
$passed = 0;
$failed = 0;
for ($i=1;$i=10;$i++){
   list($micro,$time)=explode(" ",microtime());
   $add=$micro+$time;
   $add$last ? $failed++: $passed++;
   $last=$add; }
echo "Passed: ".$passed."\n";
echo "Failed: ".$failed."\n";
?
--EXPECT--
Passed: 10
Failed: 0


-- 
PHP CVS 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] Pricing for PHP programming???

2001-02-01 Thread James Moore


 Isn't it illegal in the US to discuss
 rates in this manner?
 
 It's always been my understanding that
 The U.S. law specifically makes discussion
 of pricing between competitors (all or some)
 a federal offense. 
 
 Am I taking this too literally?

Lucky most of us arnt in the US then isnt it.

James

-- 
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-CVS] cvs: php4 / php.ini-dist

2001-02-01 Thread James Moore

This looks good although maybe something like the following would make it
easier to find sections.. at the moment the [syslog] (required) titles seem
to fade into the background a bit having this above the [title] would maybe
make the sections easier to spot.

;;
; Syslog ;
;;

James

 -Original Message-
 From: Jon Parise [mailto:[EMAIL PROTECTED]]
 Sent: 01 February 2001 06:34
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP-CVS] cvs: php4 / php.ini-dist


 On Thu, Feb 01, 2001 at 06:29:41AM -, Jon Parise wrote:

  jon Wed Jan 31 22:29:41 2001 EDT
 
Modified files:
  /php4   php.ini-dist
Log:
Massive reformatting.

 Before anyone says something, I know that I should have reformatted
 the php.ini-optimized file, too.  I just don't have the time to finish
 the job right now.  You have no idea how long it took to go through
 this one and reformat everything consistently.  I'm glad it got done,
 though, because it's much easier to navigate this file, especially now
 that the comments conform to eighty column screen widths.

 I'd appreciate some members of the QA team reviewing this file.  In a
 way, it's an important piece of PHP documentation in and of itself,
 and it really should receive a lot more attention than it has in the
 past.

 My eyes and fingers hurt, so I'm going to sleep now. =)

 --
 Jon Parise ([EMAIL PROTECTED])  .  Rochester Inst. of Technology
 http://www.csh.rit.edu/~jon/  :  Computer Science House Member

 --
 PHP CVS 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 CVS 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-CVS] cvs: php4 / RELEASE_PROCESS

2001-01-31 Thread James Moore

jmoore  Wed Jan 31 05:58:20 2001 EDT

  Added files: 
/php4   RELEASE_PROCESS 
  Log:
  Adding readme for release process, this needs to live somewhere and here seems as 
good a place as any.
  



-- 
PHP CVS 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] IIS and PHP authorization

2001-01-30 Thread James Moore


 [snip]
 There is an ISAPI module.
 [snip]

 yes, which is more than unstable as I found... Using a good
 machine (2xXeon
 550, 512 MB, NT4/SP6a/IIS4) it constantly crashed being a filter, and
 crashed being used as MIME plugin latest at the 6th page access.

Yes unfortuanly on NT 4 and IIS 4 PHP ISAPI is reported as unstable, but, I
would say that PHP is getting *TOWARDS* production quality on IIS 5 and Win
2k. Just a few more querks to fix and then I think that once this is done it
would be usable under win 2k and IIS 5 as ISAPI.

James


-- 
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] E Bay is going up again..

2001-01-29 Thread James Moore

John,

There are various reasons why what you suggested will not happen, if you
really want to see why look in the archives there are plenty of posts. You
have a delete key so use it.

Rasmus already has Spam filters for the list but they only block certain
email address' these are added, blocking *@yahoo.com isn't really an option
either, so use you delete key, stop complaining and don't worry about it,
yes it is annoying but every piece of Spam on the lists is reported to the
correct people by me, im sure others do the same too, all of the last three
Spam posts from yahoo accounts have been reported and yahoo have been very
efficient at shutting them down and apologising.

James

 -Original Message-
 From: Jonathan Sharp [mailto:[EMAIL PROTECTED]]
 Sent: 28 January 2001 03:59
 To: tabathia; [EMAIL PROTECTED]
 Subject: RE: [PHP] E Bay is going up again..


 Do I have to repeat myself about this topic? Sheesh!

 -Codeboy



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

2001-01-14 Thread James Moore

addslashes()

James
--  
James Moore
PHP Quality Assurance Team
[EMAIL PROTECTED] 

 -Original Message-
 From: rodrigo [mailto:[EMAIL PROTECTED]]
 Sent: 14 January 2001 21:41
 To: php php
 Subject: [PHP] Quotes
 
 
 I recently came across this problem and I am sure that there is a quick
 fix for it. I need a solution to the quotes problem when sending
 queries. I use single quotes to construct my SQL queries. This worked
 fine since the data entered into the DB was all in spanish.
 
 However, yesterday I was typing in an English name that had a single
 quote (say, like O'reilly) and the SQL querie was all wrong.
 
 What is the solution to this? Thanks in advance.
 -- 
 
 Ivan R. Quintero E.* (507)228-3477
 Aptdo 1263   * (507)228-9105
 Balboa, Ancon* 640-0370
 Republic of Panama * 
 
 
 -- 
 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]