Re: [PHP] does //commenting reduce performance?

2002-11-24 Thread Sterling Hughes
> At 09:42 24.11.2002, Adam said: > [snip] > >I have always had the opinion that the more comments you put into php > >scripts, the slower they will run because there is more data to be read... > >Can someone tell me if there is any truth in this or whether c

Re: [PHP] Insert file into sql server binary field.

2002-11-24 Thread Sterling Hughes
> Read the file, addslashes(), and then insert it > Rather, read the file, don't touch addslashes, then insert it. AddSLashes is not for binary data... -Sterling > Naif Al-Otaibi wrote: > > >How can I insert a file into a binary field in sql server 2000. Do I > >need some function in the que

Re: [PHP] OS X and cURL Issues

2002-11-30 Thread Sterling Hughes
you need to upgrade the bundled cURL to version 7.9.8 (soon to be 7.10.2), or install a special version of the cURL library for PHP's installation. -Sterling > I'm working on getting the following install working under OS 10.2.2: > > ../configure --prefix=/usr \ > --sysconfdir=/etc \ > --loca

Re: [PHP] PHP 4.3.0, function removed?

2002-12-28 Thread Sterling Hughes
leak() is only included if you compile PHP with debug mode. Out of interest, why on earth would someone in user-space be using the leak() function. -Sterling > Can't see anything in the changelog but after upgrading to 4.3.0 I get an error when >using leak(); > Fatal error: Call to undefined fu

Re: [PHP] Web Based PHP CVS

2003-01-05 Thread Sterling Hughes
> > Does anyone know of any decent PHP/Web front ends to CVS? > check out chora. -sterling > Thanks > Mike > > > P.S. Still looking for a good Linux SysAdmin Mail list. > I don't understand Romanian but thanks for the answer! :-) > > > > > > -- > PHP General Mailing List (http://www.p

Re: [PHP] Zend IDE vs. PhpEd

2003-01-05 Thread Sterling Hughes
> Can anyone who's familiar with both give an honest, open evaluation? I'm > in a rush project and need something quickly (have to purchase tomorrow), > but I'm on the fence when it comes to these two products. > > Zend costs $100 less than Phped, so I'm leaning that way. But if there's > anythi

[PHP] PHP and XML mailing list

2003-01-24 Thread Sterling Hughes
A mailing list for discussing the future of PHP and XML development has been created. You can subscribe by sending a message to [EMAIL PROTECTED] (normal ezmlm commands apply). This mailing list is _only_ intended for actual php extension and api development, user support questions should remain

Re: [PHP] slides

2003-01-27 Thread Sterling Hughes
On Mon, 2003-01-27 at 10:20, Ornella Fasolo wrote: > Hallo, > does anybody knows where can I find a set of presentation > sildes of the PHP language base(or PHP toghether with mysql)? . > May be coming from any tutorial or previous course. > Thank you very much > http://talks.php.net/ > Ornella

RE: [PHP] php5 writeup

2003-04-04 Thread Sterling Hughes
On Fri, 2003-04-04 at 10:45, Dan Rossi wrote: > what exactly do namespaces do , i can sorta see whats its doin > > and this is what i want !! > > define('NUM', 10); > try { > if (NUM < 20) { > throw new Exception( > NUM . " is too small!" > ); > } > } catch (E

Re: [PHP] dotnet module?

2003-06-11 Thread Sterling Hughes
In php5 you can use the mono module. -Sterling On Wed, 2003-06-11 at 21:43, DvDmanDT wrote: > Hello, I was wondering if anyone has a working php_dotnet.dll? I was also > wondering is anyone was going to add class constructor support for it? Or is > that already supported? > > Thanks in advance /

[PHP] PHP 5.0.0 Beta 1

2003-06-29 Thread Sterling Hughes
The PHP development community is proud to announce the release of PHP 5 Beta 1. Both source packages and a Win32 build are available, you can find these packages at http://www.php.net/downloads.php. For a complete list of changes, please refer to http://www.php.net/ChangeLog-5.php. Some of the m

[PHP] Re: [PHP-DEV] Do I need the closing ?> tag

2002-11-08 Thread Sterling Hughes
uld any PHP developer care to > prognosticate on the liklihood this might change in future? > I definitely think that _you_ should do it. But this is not the proper place for these questions, ask them on [EMAIL PROTECTED] ?> Sterling -- Sterling Hughes <[EMAIL PROTECTED]> Did I

[PHP-CVS] cvs: php4 /ext/zziplib php_zziplib.h zziplib.c

2001-01-11 Thread Sterling Hughes
| | [EMAIL PROTECTED] so we can mail you a copy immediately. | +--+ - | Authors: Hartmut Holzgraefe <[EMAIL PROTECTED]> | + | Authors: Sterling Hughes <[EMAIL

[PHP-CVS] cvs: php4 / EXTENSIONS /ext/zziplib CREDITS EXPERIMENTAL README

2001-01-11 Thread Sterling Hughes
: Sterling Hughes <[EMAIL PROTECTED]> +MAINTENANCE: Maintained +STATUS: Experimental +--- EXTENSION: calendar MAINTENANCE: Unknown STATUS: Unknown @@ -187,7 +192,7 @@ EXT

[PHP-CVS] cvs: php4 /ext/curl curl.c php_curl.h

2001-01-12 Thread Sterling Hughes
sterlingFri Jan 12 02:49:39 2001 EDT Modified files: /php4/ext/curl php_curl.h curl.c Log: Make daniel's changes work in ZTS mode... Index: php4/ext/curl/php_curl.h diff -u php4/ext/curl/php_curl.h:1.15 php4/ext/curl/php_curl.h:1.16 --- php4/

Re: [PHP] Problem with Exec()

2001-01-12 Thread Sterling Hughes
It should also be noted that the system interaction functions (namely, passthru(), exec(), system() and popen()) are broken/incorrectly implemented, actually, its windows that's incorrectly implemented, but be that as it may, the functions do not work with windows). To the original poster:

Re: [PHP] Guru Needed - the parser is corrupting my html!!

2001-01-13 Thread Sterling Hughes
As a note, you can also place: And that will solve your problem... -Sterling Cynic wrote: > > this is a bug in PHP (several reports in bug db). either ask > your ISP to disable trans-sid in your virtual host, or do it > yourself in .htaccess > > At 15:52 13.1. 2001, Jamie Burns wrote the f

Re: [PHP] Wondering whats wrong?

2001-01-13 Thread Sterling Hughes
Toby Butzon wrote: > > This is a matter of figuring out why the variable isn't a > valid file handle resource. To do so, find where it should > be made such a resource (the line that says $fp = > fsockopen...etc... is probably it), and add some error > checking. I believe this function has its

[PHP-CVS] cvs: php4 /ext/sablot php_sablot.h sablot.c

2001-01-16 Thread Sterling Hughes
sterlingTue Jan 16 04:02:47 2001 EDT Modified files: /php4/ext/sablotphp_sablot.h sablot.c Log: @ Added the xslt_set_base function. (Sterling) Added the SABLOT_SET_ERROR() macro to set sablotron errors... Index: php4/ext/sablot/php_sablot

[PHP-CVS] cvs: php4 /ext/sablot sablot.c

2001-01-17 Thread Sterling Hughes
sterlingWed Jan 17 06:14:22 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: Fix (well it works) the error display with sablotron. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.30 php4/ext/sablot/sablot.c:1.31 --- ph

[PHP-CVS] cvs: php4 /pear/HTML Processor.php

2001-01-17 Thread Sterling Hughes
. | // +--+ // | Authors: Sterling Hughes <[EMAIL PROTECTED]> | // +--+ // // $Id: Processor.php,v 1.1 2001/01/17 16

Re: [PHP] xslt_run problems

2001-01-18 Thread Sterling Hughes
> > I am having an issue hopefully someone else has encountered already. I > have successfully compiled the latest expat(0.50) and sablot(1.95.1) > libraries and configured and compiled php4 and apache1.3.14 to use the > Sablotron Extensions. > > I think anyway it was successful because it say

[PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-01-18 Thread Sterling Hughes
sterlingThu Jan 18 12:49:13 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Fix the proto Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.28 php4/ext/sockets/sockets.c:1.29 --- php4/ext/sockets/sockets.c:1.28

Re: [PHP] Clearing a variable

2001-01-18 Thread Sterling Hughes
> On Thu, 18 Jan 2001, Brandon Orther wrote: > > > Hello, > > > > How can I clear a variable? > > > > Thank you, > > > > > > Brandon Orther > > WebIntellects Design/Development Manager > > [EMAIL PROTECTED] > > 800-994-6364 > > www.webintellects.com > >

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> > In a message dated 19/01/2001 19:03:13 GMT Standard Time, > > [EMAIL PROTECTED] writes: > > > > << Use a database for the words and say "SELECT 1 WHERE LOWERCASE('$name') > > LIKE > > '%'+word+'%'" and count how many rows are returned. No need to re-invent the > > wheel. > > > > -- > > Ig

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> On Fri, 19 Jan 2001, DanO wrote: > > > > > why use a DB? > > > > just create an array of dirty words then loop your input thru it with a > > regex. > > > > DanO > > > > Because a DB would probably be faster than creating an array and looping > through it with a regex. > Not really, a db would b

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> On Fri, 19 Jan 2001, Sterling Hughes wrote: > > > If you go with the other method (described by Ignacio), see the in_array() > > function, which saves you the trouble of looping... > > > > -Sterling > > > > I thought about in_array(), but then I re

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> On Fri, 19 Jan 2001, Ignacio Vazquez-Abrams wrote: > > > On Fri, 19 Jan 2001, Sterling Hughes wrote: > > > > > I'm saying use the same method, but use an array and avoid the strpos() > > > function: > > > > > > $words = preg_split(&

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> On Fri, 19 Jan 2001, Sterling Hughes wrote: > > > Its a whip up of what I was talking about, I didn't mean it as real code > > :)... Switch $words to $word and then swith the argument order to in_array > > and yes, it makes sense... > > > &

Re: [PHP] Profanity Filter

2001-01-19 Thread Sterling Hughes
> On Fri, 19 Jan 2001, Sterling Hughes wrote: > > > Its a whip up of what I was talking about, I didn't mean it as real code > > :)... Switch $words to $word and then swith the argument order to in_array > > and yes, it makes sense... > > > &

[PHP-CVS] cvs: php4 /ext/sablot sablot.c

2001-01-20 Thread Sterling Hughes
sterlingSat Jan 20 15:42:03 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: Fix the scheme handler support and make it compile on win32 systems. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.32 php4/ext/sablot/sablo

Re: [PHP] W98se, PWS 4.0, IE 5.5 php wird nicht interpretiert

2001-01-21 Thread Sterling Hughes
Hoi, Das hier ist eine rein-deutschsprachige Liste. Bitte schicke deutsche Mails an die deutsche PHP liste (php-center.de). Danke, Sterling Philipp Althaus wrote: > > trotz viel Nachlesen und üben schaffe ich es nicht php zum Laufen zu bringen. > Bin neu in der PHP-Welt. > > ich möch

Re: [PHP] W98se, PWS 4.0, IE 5.5 php wird nicht interpretiert

2001-01-21 Thread Sterling Hughes
[EMAIL PROTECTED] wrote: > > On Sun, Jan 21, 2001 at 09:40:01PM +0100, Sterling Hughes wrote: > > Hoi, > > Das hier ist eine rein-deutschsprachige Liste. Bitte schicke deutsche > > Mails an die deutsche PHP liste (php-center.de). > > Hei Sterling, this is a

Re: [PHP] null or NULL

2001-01-22 Thread Sterling Hughes
Carsten Gehling wrote: > > I don't get it. Is there any difference between null and NULL in PHP? > > Couldn't find any reference to either in the manual, only in the errata? > There is none. Its case-insensitive afaik. -Sterling -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP-CVS] cvs: php4 /ext/curl curl.c

2001-03-02 Thread Sterling Hughes
sterlingFri Mar 2 17:06:55 2001 EDT Modified files: /php4/ext/curl curl.c Log: add a warn not available for curl_getinfo(). remove unneccessary error checking. Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.38 php4/ext/curl/cur

Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c basic_functions.h

2001-03-03 Thread Sterling Hughes
Am I right that your removing this function? uu, backwards compat?? ;-) -Sterling > zeev Sat Mar 3 17:17:22 2001 EDT > > Modified files: > /php4/ext/standard basic_functions.c basic_functions.h > Log: > this function will never return true... > > > Index: php4/ext/standard/basi

Re: [PHP-CVS] cvs: php4 /ext/curl config.m4

2001-03-11 Thread Sterling Hughes
Why this? -Sterling > sniper Sat Mar 10 16:49:16 2001 EDT > > Modified files: > /php4/ext/curl config.m4 > Log: > If AC_CHECK_LIB fails, assume that --with-openssl is needed > > Index: php4/ext/curl/config.m4 > diff -u php4/ext/curl/config.m4:1.3 php4/ext/curl/config.m4:1.4 > --- php4

[PHP-CVS] cvs: php4 /ext/bz2 bz2.c php_bz2.h

2001-03-14 Thread Sterling Hughes
sterlingWed Mar 14 22:24:38 2001 EDT Modified files: /php4/ext/bz2 bz2.c php_bz2.h Log: Bit of a cleanup, added some inline docs, decreased the amount of memory used. Index: php4/ext/bz2/bz2.c diff -u php4/ext/bz2/bz2.c:1.8 php4/ext/bz2/

[PHP-CVS] cvs: php4 /ext/bz2 bz2.c

2001-03-14 Thread Sterling Hughes
sterlingWed Mar 14 23:03:28 2001 EDT Modified files: /php4/ext/bz2 bz2.c Log: remove a little insanity. Index: php4/ext/bz2/bz2.c diff -u php4/ext/bz2/bz2.c:1.9 php4/ext/bz2/bz2.c:1.10 --- php4/ext/bz2/bz2.c:1.9 Wed Mar 14 22:24:38 2001

[PHP-CVS] cvs: php4 /ext/bz2 bz2.c

2001-03-15 Thread Sterling Hughes
sterlingThu Mar 15 20:23:58 2001 EDT Modified files: /php4/ext/bz2 bz2.c Log: Slightly modified fix from jeremy brand <[EMAIL PROTECTED]>. he correctly pointed out that allocating the buffer to a little more than need (exact formula is in the c

[PHP-CVS] cvs: php4 /ext/bz2 bz2.c

2001-03-19 Thread Sterling Hughes
sterlingMon Mar 19 10:59:24 2001 EDT Modified files: /php4/ext/bz2 bz2.c Log: Whitespace fix... Index: php4/ext/bz2/bz2.c diff -u php4/ext/bz2/bz2.c:1.12 php4/ext/bz2/bz2.c:1.13 --- php4/ext/bz2/bz2.c:1.12 Thu Mar 15 20:23:58 2001 +++ ph

Re: [PHP-CVS] cvs: php4 /ext/midgard config.m4

2001-03-19 Thread Sterling Hughes
On Mon, 19 Mar 2001, Jani Taskinen wrote: > On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > > >On Mon, Mar 19, 2001 at 01:19:06PM -0600, Andrei Zmievski wrote: > >> On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > >> > This fix does not work because @MIDCONFIG_FILE@ in php_midgard.h does > >> > n

Re: [PHP-CVS] cvs: php4 /ext/midgard config.m4

2001-03-19 Thread Sterling Hughes
On Mon, 19 Mar 2001, Colin Viebrock wrote: > > I don't think it belongs in PEAR at all. I could see the logic behind > > distributing it with PHP, but don't see any reason to distribute it in > > pear... > > > Except that isn't this what PEAR was for all along? A collection of classes > and a

[PHP-CVS] cvs: php4 /ext/curl curl.c

2001-03-19 Thread Sterling Hughes
sterlingMon Mar 19 17:46:41 2001 EDT Modified files: /php4/ext/curl curl.c Log: Remove some unnecessary error checking Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.39 php4/ext/curl/curl.c:1.40 --- php4/ext/curl/curl.c:1.39 Fri

[PHP-CVS] cvs: php4 /ext/curl curl.c

2001-03-20 Thread Sterling Hughes
sterlingTue Mar 20 13:30:43 2001 EDT Modified files: /php4/ext/curl curl.c Log: remove some unneccessary casts, remove unneccessary error casts, standardize the coding format for some of the stuff. Index: php4/ext/curl/curl.c diff -u php4/

Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-16 Thread Sterling Hughes
On Tue, 17 Apr 2001, Dan Kalowsky wrote: > kalowsky Mon Apr 16 19:02:36 2001 EDT > > Modified files: > /php4/ext/odbcphp_odbc.c > Log: > This change seems to fix bugs 7158, 7807, 8531, and 8636. After asking why this >patch was applied no one seemed to respond with an

Re: [PHP-CVS] cvs: php4 /ext/odbc php_odbc.c

2001-04-17 Thread Sterling Hughes
On Tue, 17 Apr 2001, Jani Taskinen wrote: > On Mon, 16 Apr 2001, Sterling Hughes wrote: > > >> > >> -#ifndef HAVE_DBMAKER > >> - if ((*pv_onoff)) { > >> -#else > >>if (pv_onoff && (*pv_onoff)) { > >> -#en

[PHP-CVS] cvs: php4 /ext/sablot sablot.c

2001-04-19 Thread Sterling Hughes
sterlingThu Apr 19 07:59:34 2001 EDT Modified files: /php4/ext/sablotsablot.c Log: fix crash bug 10400. Index: php4/ext/sablot/sablot.c diff -u php4/ext/sablot/sablot.c:1.37 php4/ext/sablot/sablot.c:1.38 --- php4/ext/sablot/sablot.c:1.37

[PHP-CVS] cvs: php4 /ext/ccvs ccvs.c

2001-04-22 Thread Sterling Hughes
sterlingSun Apr 22 16:40:34 2001 EDT Modified files: /php4/ext/ccvs ccvs.c Log: Fix bug #10447. Index: php4/ext/ccvs/ccvs.c diff -u php4/ext/ccvs/ccvs.c:1.13 php4/ext/ccvs/ccvs.c:1.14 --- php4/ext/ccvs/ccvs.c:1.13 Sun Feb 25 22:06:48 200

[PHP-CVS] cvs: php4 /ext/curl curl.c

2001-04-24 Thread Sterling Hughes
sterlingTue Apr 24 15:10:41 2001 EDT Modified files: /php4/ext/curl curl.c Log: Fixed a crash bug. Return the proper amount. Index: php4/ext/curl/curl.c diff -u php4/ext/curl/curl.c:1.41 php4/ext/curl/curl.c:1.42 --- php4/ext/curl/curl.c

[PHP] Fwd: curl questionnaire!

2002-01-09 Thread Sterling Hughes
For those of you who use the cURL extension, the underlying library is putting up a little questionaire, to help get a better idea of what the cURL user community wants, feel free to go ahead and participate, the URL (without reading the attachment :) is: http://curl.haxx.se/q

Re: [PHP] Using include() and URL's

2002-01-17 Thread Sterling Hughes
> In regards to 1, neither of them are. they're just examples I was testing. > > As for your second note, it need only include the page, it needs only to > display the page. It works fine with local references, just not with URL's. > You can't use URL includes on the windows systems, only un

Re: [PHP] Porting from Linux to Windows!?$#

2002-01-27 Thread Sterling Hughes
> Hi all, > > I would like to ask my experienced friends here if its possible to port a > script made for linux to run in windows IIS. I've been trying to make linux > scripts run on my server and some of them do and some don't. I also notice > that the problem relies how Linux and Windows refer

Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-02 Thread Sterling Hughes
On Sat, 2002-02-02 at 17:42, Manuel Lemos wrote: > Hello, > > Lars Wilhelmsen wrote: > > > > "Ben Clumeck" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I would like to send an e-mail (the same e-mail) to 1,000 different > > people. > > > I want each

Re: [PHP] telnet or ssh in PHP (Curl?)

2001-12-17 Thread Sterling Hughes
> > Hi Bas! > > SSH is possible but complicated. > Not really, just create a tunnel... -Sterling -- 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: [

[PHP-CVS] cvs: php4 / EXTENSIONS

2001-03-21 Thread Sterling Hughes
+++ php4/EXTENSIONS Wed Mar 21 11:46:05 2001 @@ -174,7 +174,7 @@ EXTENSION: bz2 PRIMARY MAINTAINER: Sterling Hughes <[EMAIL PROTECTED]> MAINTENANCE: Maintained -STATUS: Experimental +STATUS: Working SINCE:

[PHP-CVS] cvs: php4 /ext/bz2 EXPERIMENTAL

2001-03-21 Thread Sterling Hughes
sterlingWed Mar 21 11:47:05 2001 EDT Removed files: /php4/ext/bz2 EXPERIMENTAL Log: Remove experimental status from bz2 (as of 4.0.6) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP-CVS] cvs: php4 /ext/dbx dbx.c dbx_mysql.c dbx_mysql.hdbx_odbc.c dbx_odbc.h php_dbx.h

2001-03-22 Thread Sterling Hughes
On Thu, 22 Mar 2001, Marc Boeren wrote: > mboeren Thu Mar 22 07:14:35 2001 EDT > > Modified files: > /php4/ext/dbx dbx.c dbx_mysql.c dbx_odbc.c dbx_mysql.h dbx_odbc.h > php_dbx.h > Log: > Changed C++ style comments to C-style comm

[PHP-CVS] cvs: php4 / FUNCTION_LIST.txt

2001-03-26 Thread Sterling Hughes
sterlingMon Mar 26 10:29:13 2001 EDT Removed files: /php4 FUNCTION_LIST.txt Log: Remove FUNCTION_LIST.txt, the file is sadly out of date and not really used... -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP-CVS] cvs: php4 /ext/fdf fdf.c

2001-04-06 Thread Sterling Hughes
On Sat, 7 Apr 2001, Jani Taskinen wrote: > sniperFri Apr 6 19:48:20 2001 EDT > > Modified files: > /php4/ext/fdf fdf.c > Log: > fixed protos > Yikes, it seems like you moved the grammar backwards... >From what I remember of english, the active voice is the correc

Re: [PHP-CVS] cvs: php4 /ext/fdf fdf.c

2001-04-06 Thread Sterling Hughes
On Sat, 7 Apr 2001, Jani Taskinen wrote: > On Fri, 6 Apr 2001, Sterling Hughes wrote: > > >On Sat, 7 Apr 2001, Jani Taskinen wrote: > > > >> sniper Fri Apr 6 19:48:20 2001 EDT > >> > >> Modified files: > >>

Re: [PHP-CVS] cvs: php4 /ext/standard dir.c

2001-04-09 Thread Sterling Hughes
On Mon, 9 Apr 2001, Sean Bright wrote: > elixerMon Apr 9 13:56:49 2001 EDT > > Modified files: > /php4/ext/standarddir.c > Log: > Stop SIGSEGV on Apache startup. Patch from <[EMAIL PROTECTED]> > Should be CONST_CS|CONST_PERSISTENT no? > > Index: php4/ext/stan

Re: [PHP] socket error

2001-09-07 Thread Sterling Hughes
On Sat, 8 Sep 2001, sagar wrote: > line10 -> if (($sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { > echo "socket() failed: reason: " . strerror($sock) . "\n"; > } > > i'm getting an error saying > Fatal error: Call to undefined function: socket() in c:\program file

RE: [PHP] randomly picking a variable from an array

2001-09-07 Thread Sterling Hughes
On Fri, 7 Sep 2001, King, Justin wrote: > The easiest way I can think of would be to get a random number based on > the size of an array. If you're querying your database and filling an > array with all images, just use the database's random routine instead. > (I.E. "SELECT quote,author from ran

Re: [PHP] socket error

2001-09-07 Thread Sterling Hughes
-Sterling > /sagar > > - Original Message - > From: Sterling Hughes <[EMAIL PROTECTED]> > To: sagar <[EMAIL PROTECTED]> > Cc: php <[EMAIL PROTECTED]> > Sent: Saturday, September 08, 2001 1:54 AM > Subject: Re: [PHP] socket error > > > >

Re: [PHP] file management

2001-09-07 Thread Sterling Hughes
On Fri, 7 Sep 2001, Gerard Samuel wrote: > Can a file be truncated from the beginning, and by x amount of lines?? > Thanks > Truncated from the beginning? Do you mean truncate the file by X lines, starting from the first position in the file, well, yeah: Please note the above

Re: [PHP] Cybercash compiling as shared module

2001-09-07 Thread Sterling Hughes
On Fri, 7 Sep 2001, Michael Kimsal wrote: > I'm trying this specifically with the cybercash module. When I just do > ./configure --with-cybercash=/path/to/mck, it works (well, it gets thru > configure > and make anyway). > > ./configure --with-cybercash=/path/to/mck,shared and > ./configure --wi

Re: [PHP] Re: Regular Expressions - A relatively simple search...

2001-09-09 Thread Sterling Hughes
On Mon, 10 Sep 2001, Mike Gifford wrote: > Thanks robin, this is very useful! > yep, although pathinfo() is much easier: $extension = pathinfo($userfile_name, PATHINFO_EXTENSION); -Sterling > Robin Vickery wrote: > > [EMAIL PROTECTED] (Mike Gifford) writes: > > > > > >>Hello, > >>

Re: [PHP] cURL support

2001-09-10 Thread Sterling Hughes
On Tue, 11 Sep 2001, Daniel Baldoni wrote: > G'day Jason > > >> On the hosting provider, HTTPS connections don't work. But, > >> I'm told the command-line version of curl does work. > > > > That'd probably be because they didn't install the HTTPS-able > > version of cURL. Check out curl.haxx.se

Re: [PHP] Re: WELCOME to php-general@lists.php.net

2001-09-13 Thread Sterling Hughes
On Thu, 13 Sep 2001 [EMAIL PROTECTED] wrote: > I'm not entirely positive but not sure if you can use the domain name in the > include.. in other words try: > include("home.htm"); > ?> > > And you obviously cant include pages from other servers.. > 1) yes, you can include pages from other s

RE: [PHP] posted urls

2001-09-13 Thread Sterling Hughes
On Fri, 14 Sep 2001 [EMAIL PROTECTED] wrote: > ereg_replace or str_replace perhaps? > > eg > > $something= "this is a sentence"; > > $something = ereg_replace (" ","+", $something); > > print $something; > That'll work, although str_replace is faster and better... fyi, if you want to e

Re: [PHP] Re: Why doesn't this work?

2001-09-15 Thread Sterling Hughes
On Sat, 15 Sep 2001, CC Zona wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Ray Van Dolson) wrote: > > > I'm trying to do: > > > > print split("=",$testString)[0]; > > Curly braces often seem to help in situations like these. Untried, but > maybe this will do the trick for you: >

Re: [PHP] PHP/CVS

2001-09-15 Thread Sterling Hughes
On Sat, 15 Sep 2001, Peter Gibson wrote: > $ cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r "4.0.4pl1" php4 > cvs [server aborted]: Numeric tag 4.0.4pl1 contains characters other than > digits and '.' > > How do I check php-4.0.4pl1 out? > > My ~/.cvsrc file contains: > $ cat ~/.cvsrc > cvs

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Sterling Hughes
On Sun, 16 Sep 2001, Bora Paksoy wrote: > Hi; > > I am planning to implement a new site which will be > using mysql db heavily, and I am in the middle of (and > stuck:) deciding what I should use for implementation. > I would definitely prefer Java Servlets, but it is > very expensive to host ser

Re: [PHP] What is PHP's equivalent?

2001-09-17 Thread Sterling Hughes
On Mon, 17 Sep 2001, Eric Lebetsamer wrote: > What is PHP's equivalent to ASP/COM or JSP/EJB? Basically, I want to get an > idea of what methods there are of having multi tier development in PHP. Any > information or links are appreciated. > Not that PHP needs an equivalent, but... PHP sup

Re: [PHP] GPL and The PHP License

2001-09-24 Thread Sterling Hughes
On Mon, 24 Sep 2001, Fábio Migliorini wrote: > > The php was distributed under gpl in the version 3 now it´s distribued > under "the php license" that is based on qpl (qt public license)... so... > > 1) Is "the php license" incopatible with gpl? yep. > 2) Can I write a program in php an

Re: [PHP] CURL

2001-09-24 Thread Sterling Hughes
On Mon, 24 Sep 2001, Daniel Demacek wrote: > Hi, all > > anyone know how to get this to work? > > > # this is suppose to do same thing as fpassthru(); > # but using SSL > > > header("Content-Type: application/octet-stream"); > header("Content-Disposition: attachment; filename=" . $f); > > $ch =

Re: [PHP] curl_exec() output and curl_setopt( CURL_CERTIFICATE,$path )

2001-09-25 Thread Sterling Hughes
On Tue, 25 Sep 2001, Kamil Nowicki wrote: > 1. How to redirect curl_exec() output to a variable without >passing it thru a file? > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); echo $data; curl_close($ch); -Sterling -- PHP General Mailing List (h

Re: [PHP] How would you code: $r = func() or return 0?

2001-09-26 Thread Sterling Hughes
On Wed, 26 Sep 2001, scott [gts] wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I thought i'd ask for your comments on how you'd code this > common perl code with PHP: > > $value = some_function() or return 0; > > i usually code my functions to return 0 or "" on error, but > have

Re: [PHP] PEAR?

2001-01-29 Thread Sterling Hughes
latest and greatest version of pear If your not adept with CVS, you can send me a mail for any class you want (or to the list)... There should be at least nightly builds (if that term could be used) on pear.php.net, I'll send you a note when there are Best Regards, Sterling Hughes [E

[PHP-CVS] cvs: php4 / TODO

2001-02-04 Thread Sterling Hughes
sterlingSun Feb 4 01:19:01 2001 EDT Modified files: /php4 TODO Log: Add a bunch of stuff.. Index: php4/TODO diff -u php4/TODO:1.109 php4/TODO:1.110 --- php4/TODO:1.109 Wed Jan 24 11:16:43 2001 +++ php4/TODO Sun Feb 4 01:19:01 2001 @@

[PHP-CVS] cvs: php4 / TODO

2001-02-04 Thread Sterling Hughes
sterlingSun Feb 4 01:20:31 2001 EDT Modified files: /php4 TODO Log: # *Brain Fart* Index: php4/TODO diff -u php4/TODO:1.110 php4/TODO:1.111 --- php4/TODO:1.110 Sun Feb 4 01:19:01 2001 +++ php4/TODO Sun Feb 4 01:20:31 2001 @@ -71,7 +

Re: [PHP-CVS] cvs: php4 /ext/standard mail.c php_mail.h

2001-02-05 Thread Sterling Hughes
> > Modified files: > /php4/ext/standard mail.c php_mail.h > Log: > - Added a new parameter to mail() which appends aditional command line > parameters to the mail program. This is usefull to set the From headers > correctly with the -f parameter to sendmail p.e. > @- Added a n

Re: [PHP] RE: [PHP-WIN] Revised [PHP] COM and PHP

2001-02-05 Thread Sterling Hughes
> I tried with FALSE same error. > > I also tried the following word example > > $word = new COM("word.application") or die("Unable to instanciate Word"); > print "Loaded Word, version {$word->Version}\n"; > $word->Visible = 0; > $word->Documents->Add(); > $word->Selection->TypeText("Testing, te

Re: [PHP-CVS] cvs: php4 /ext/standard mail.c php_mail.h

2001-02-06 Thread sterling hughes
Derick Rethans wrote: > > On Mon, 5 Feb 2001, Sterling Hughes wrote: > > > > @- Added a new parameter to mail() which appends aditional command line > > > @ parameters to the mail program. (Derick) > > > > This won't be portable, on windows it

Re: [PHP-CVS] cvs: php4 /ext/standard mail.c php_mail.h

2001-02-06 Thread sterling hughes
Derick Rethans wrote: > > On Tue, 6 Feb 2001, sterling hughes wrote: > > > Derick Rethans wrote: > > > > > > I know this... it should probably be noted in the docs. > > > > > > > Are you sure we should be adding that option to the mail() c

Re: [PHP-CVS] cvs: php4 /ext/mnogosearch php_mnogo.c test.php

2001-02-06 Thread Sterling Hughes
This extension is being released in this next version of PHP, you only need one news entry, something to the effect of "Added the UDM search extension (authors)" -Sterling > gluke Tue Feb 6 06:30:54 2001 EDT > > Modified files: > /php4/ext/mnogosearch php_mnogo.c test.php > Log: > U

Re: [PHP] XSLT problems....

2001-02-06 Thread sterling hughes
Javier Muniz wrote: > > In my experience this is caused by an error in your .xsl... not exactly > the most verbose error so I don't know what's actually happening here. > > -jm > Yup, it is, to correct this, place the following function in your xslt document:: function report_xslt_error($pars

Re: [PHP-CVS] cvs: php4 /ext/standard file.c file.h

2001-02-11 Thread Sterling Hughes
> elixer Sat Feb 10 18:38:40 2001 EDT > > Modified files: > /php4/ext/standard file.c file.h > Log: > Fix for bug #4556 > # This is pretty much a total rewrite of get_meta_tags using a simple > # handwritten tokenizer. It might be overkill, but it works. I'd say th

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.h mg

2001-02-12 Thread Sterling Hughes
> emile Mon Feb 12 09:23:37 2001 EDT > > Added files: > /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 >

[PHP-CVS] cvs: php4 /ext/bz2 bz2.c php_bz2.h /ext/curl curl.c php_curl.h /ext/sablot php_sablot.h sablot.c /ext/swf php_swf.h swf.c

2001-02-15 Thread Sterling Hughes
@@ | obtain it through the world-wide-web, please send a note to | | [EMAIL PROTECTED] so we can mail you a copy immediately. | +--+ - | Authors: Sterling Hughes <[EMAIL PROTEC