[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-10 Thread Rasmus Lerdorf
rasmus Wed Jan 10 22:06:03 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: More people for the documentation team Index: CVSROOT/avail diff -u CVSROOT/avail:1.27 CVSROOT/avail:1.28 --- CVSROOT/avail:1.27 Tue Jan 9 15:46:44 2001

Re: [PHP] Re-engineering print()

2001-01-10 Thread Rasmus Lerdorf
Try this: function my_eval($code) { ob_start(); eval($code); $retval = ob_get_contents(); ob_end_clean(); return $retval; } $str = my_eval("echo 2+2;"); echo $str; -Rasmus On Thu, 11 Jan 2001, Kristofer Widholm wrote: Here's what you wrote, 01-01-11: $s = sprintf("%s",

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-11 Thread Rasmus Lerdorf
rasmus Thu Jan 11 11:25:17 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Forgot the pres tree Index: CVSROOT/avail diff -u CVSROOT/avail:1.28 CVSROOT/avail:1.29 --- CVSROOT/avail:1.28 Wed Jan 10 22:06:03 2001 +++ CVSROOT/avail Thu

[PHP-CVS] cvs: CVSROOT / avail gen_ext_sapi_list.sh

2001-01-11 Thread Rasmus Lerdorf
rasmus Thu Jan 11 11:39:46 2001 EDT Modified files: /CVSROOTavail gen_ext_sapi_list.sh Log: Fix acl generation for extensions with multiple authors Index: CVSROOT/avail diff -u CVSROOT/avail:1.29 CVSROOT/avail:1.30 --- CVSROOT/avail:1.29 Thu Jan 11

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-11 Thread Rasmus Lerdorf
rasmus Thu Jan 11 22:15:31 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Yet another Korean translator Index: CVSROOT/avail diff -u CVSROOT/avail:1.31 CVSROOT/avail:1.32 --- CVSROOT/avail:1.31 Thu Jan 11 12:51:10 2001 +++

Re: [PHP] Is there a function to subtract dates

2001-01-12 Thread Rasmus Lerdorf
Just subtract the Unix timestamps. ie. $past_date = mktime(12,45,0,5,6,1994); $diff = time() - $past_date; $days = $diff/86400; // number of seconds in a day echo (int)$days; // truncate to an integer -Rasmus On 12 Jan 2001, Matthew Brealey wrote: I need to find the

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-12 Thread Rasmus Lerdorf
rasmus Fri Jan 12 10:27:59 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for Jon Index: CVSROOT/avail diff -u CVSROOT/avail:1.32 CVSROOT/avail:1.33 --- CVSROOT/avail:1.32 Thu Jan 11 22:15:30 2001 +++ CVSROOT/avail Fri

Re: [PHP] Comparing Memory Variables

2001-01-13 Thread Rasmus Lerdorf
On Sat, 13 Jan 2001, RealGM Webmaster wrote: Hi Everyone, I am having a little trouble getting a memory variable and a session variable to compare correctly I have an if statement as below: if ($id=='{$SESSION["id"]}') { if($id == $SESSION['id']) { -Rasmus -- PHP General Mailing

RE: [PHP] load balancing with php/apache?

2001-01-13 Thread Rasmus Lerdorf
PROTECTED]] Sent: Saturday, January 13, 2001 11:22 AM To: Rasmus Lerdorf Cc: [EMAIL PROTECTED] Subject: Re: [PHP] load balancing with php/apache? http://www.linuxvirtualserver.org/ We use LVS on our website - it works great! We have 2 load balancers with the HA package and 6 PHP webservers

Re: [PHP] Mixing PHP3 SSI

2001-01-13 Thread Rasmus Lerdorf
Why did you decide not to use virtual? The readfile() method you are using turns PHP into the browser and it makes a completely new request to your web server. -Rasmus On Sat, 13 Jan 2001, Scott Brown wrote: Ok - I thought I saw that it could be done, so I tried it... and I almost got it

RE: [PHP] Mixing PHP3 SSI

2001-01-13 Thread Rasmus Lerdorf
the first ? virtual(...) ? call, processed it, and then forgot about the rest of the page. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 13, 2001 11:56 PM To: Scott Brown Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Mixing PHP3 SSI

RE: [PHP] Mixing PHP3 SSI

2001-01-13 Thread Rasmus Lerdorf
If readfile is indeed that "broken", maybe we can talk the powers that be into dumping full HTTP headers through the readfile call in a future version I mean, the main script has it already from when it was called... so it should be able to sub-call pages in that same context. readfile()

Re: [PHP] problem using flock()

2001-01-13 Thread Rasmus Lerdorf
Oh man, I wouldn't do it this way. Log this stuff in a separate file using a simple append which doesn't need logging. Then write yourself a simple little perl script that figures it out after the fact. File locking on anything with high traffic is going to make your hair turn grey. Another

RE: [PHP] Mixing PHP3 SSI

2001-01-13 Thread Rasmus Lerdorf
If readfile is indeed that "broken", maybe we can talk the powers that be into dumping full HTTP headers through the readfile call in a future version I mean, the main script has it already from when it was called... so it should be able to sub-call pages in that same context.

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-13 Thread Rasmus Lerdorf
rasmus Sat Jan 13 21:55:07 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for David Croft Index: CVSROOT/avail diff -u CVSROOT/avail:1.33 CVSROOT/avail:1.34 --- CVSROOT/avail:1.33 Fri Jan 12 10:27:59 2001 +++ CVSROOT/avail

Re: [PHP] cookie stopped working???

2001-01-13 Thread Rasmus Lerdorf
SetCookie("cpvin","$vin","time()+1500"); SetCookie("cpvin",$vin,time()+1500); Note though that such short expiry times make you very prone to people having their clocks set wrong. It is a better idea to embed your server's timestamp in the value of the cookie and when you get the cookie back

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-14 Thread Rasmus Lerdorf
rasmus Sun Jan 14 08:07:32 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Fold generated extension karma into gen_acl script and add CVS account for Boian so he can play in the ext/vpopmail directory Index: CVSROOT/avail diff -u

[PHP-CVS] cvs: CVSROOT / commitinfo

2001-01-14 Thread Rasmus Lerdorf
rasmus Sun Jan 14 08:09:44 2001 EDT Modified files: /CVSROOTcommitinfo Log: Use cvs_acls script from CVSROOT Index: CVSROOT/commitinfo diff -u CVSROOT/commitinfo:1.9 CVSROOT/commitinfo:1.10 --- CVSROOT/commitinfo:1.9 Sun Jan 7 21:20:42 2001 +++

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-14 Thread Rasmus Lerdorf
rasmus Sun Jan 14 08:12:31 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: phpdoc CVS account for Bokin Jung Index: CVSROOT/avail diff -u CVSROOT/avail:1.35 CVSROOT/avail:1.36 --- CVSROOT/avail:1.35 Sun Jan 14 08:07:31 2001 +++

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-14 Thread Rasmus Lerdorf
rasmus Sun Jan 14 08:19:01 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Add CVS account for Sean Bright - I briefly skimmed his patch. Looks ok. Index: CVSROOT/avail diff -u CVSROOT/avail:1.36 CVSROOT/avail:1.37 ---

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-14 Thread Rasmus Lerdorf
rasmus Sun Jan 14 08:24:56 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Give Boian access to phpdoc tree Index: CVSROOT/avail diff -u CVSROOT/avail:1.37 CVSROOT/avail:1.38 --- CVSROOT/avail:1.37 Sun Jan 14 08:19:01 2001 +++

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

2001-01-14 Thread Rasmus Lerdorf
Sat Jan 13 13:52:09 2001 +++ php4/ext/standard/exec.cSun Jan 14 08:30:22 2001 @@ -15,7 +15,7 @@ | Author: Rasmus Lerdorf | +--+ */ -/* $Id: exec.c,v 1.47 2001/01/13 21

Re: [PHP] O Reilly PHP conference

2001-01-14 Thread Rasmus Lerdorf
It's still 6 months away. Attendee registration is not open yet. Right now we are just looking for speakers. -Rasmus On Sun, 14 Jan 2001, Dallas Kropka wrote: Posted on the home page of PHP.net is a blurb about an open source PHP conference where can I find information regarding signup

Re: [PHP] compiling PHP with jpeg-support

2001-01-14 Thread Rasmus Lerdorf
nm -o libgd.a | grep -i jpeg Triple-check that you don't have multiple versions of libgd.a on your system. -Rasmus On Sun, 14 Jan 2001, Joakim Bomelin wrote: Your GD library probably wasn't compiled with jpeg support. When I try to use gdImageJpeg() in a C program I get no errors. Is

Re: [PHP] DocBook Editors?

2001-01-14 Thread Rasmus Lerdorf
No options? No SGML editors out there with a tag catalog, etc? Emacs -- 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] eval() function

2001-01-14 Thread Rasmus Lerdorf
Yes, eval() is expensive. On Sun, 14 Jan 2001, Adam Powell wrote: Hi, in my application I am making a lot of use of the eval() function, however I was wondering if this is going to cause any extra load. Does it do anything like load in the PHP engine again or anything? We just added it

Re: [PHP] __FILE__,$PATH_INFO,$PATH_TRANSLATED

2001-01-15 Thread Rasmus Lerdorf
__FILE__ is the filename of the current file being parsed. This can change around as the php script includes other files. It is mostly used for printing out information on where an error occurred. $PATH_INFO is the part of the URI after the script. ie. www.php.net/test.php/whatever/blah In

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-15 Thread Rasmus Lerdorf
rasmus Mon Jan 15 09:12:59 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for J.Anton, Lee Index: CVSROOT/avail diff -u CVSROOT/avail:1.39 CVSROOT/avail:1.40 --- CVSROOT/avail:1.39 Sun Jan 14 16:28:09 2001 +++

Re: [PHP] Turning magic quotes on/off.

2001-01-16 Thread Rasmus Lerdorf
I just struggled with quoting in php3 and php4. Traditional old-style raw data would be nice to have but using set_magic_quotes_runtime (false) doesn't help. Should that turn it off anyway? It is likely already off. magic_quotes_runtime is a legacy feature nobody uses

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

2001-01-16 Thread Rasmus Lerdorf
rasmus Tue Jan 16 12:37:51 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Kill some warnings Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.27 php4/ext/sockets/sockets.c:1.28 --- php4/ext/sockets/sockets.c:1.27 Wed

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Rasmus Lerdorf
1.Set cookies to a particular value (e.g., foo=hi and bar=ho), AND 2.Redirect the user to a new page in a different directory? AND 3.have the new page be able to retrieve the values of both foo and bar? No, 1. and 2. can not be done in the same request reliably. Some browsers

[PHP-CVS] cvs: php4 /ext/exif exif.c /main network.c

2001-01-16 Thread Rasmus Lerdorf
rasmus Tue Jan 16 22:40:49 2001 EDT Modified files: /php4/ext/exif exif.c /php4/main network.c Log: Kill a couple of warnings Index: php4/ext/exif/exif.c diff -u php4/ext/exif/exif.c:1.10 php4/ext/exif/exif.c:1.11 --- php4/ext/exif/exif.c:1.10

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-16 Thread Rasmus Lerdorf
rasmus Wed Jan 17 00:05:45 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for Lyric Index: CVSROOT/avail diff -u CVSROOT/avail:1.43 CVSROOT/avail:1.44 --- CVSROOT/avail:1.43 Tue Jan 16 16:29:32 2001 +++ CVSROOT/avail Wed Jan

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Rasmus Lerdorf
Is PHP the implied script, so that it is okay to begin PHP code like this ? vs. like this ?php When is it not implied? You should use ?php. In future versions the open short tag would be dropped or your administrator can disable the open short tag. Well, I don't see the short tag ever

Re: [PHP] Two things

2001-01-17 Thread Rasmus Lerdorf
When I get a list of items from a database I would like to display them with alternating colors. Does anyone know how or where I can get some code that will show me how to do that? $col = 0; $colors = array('#ff','#00'); while($row=mysql_fetchrow($result)) { echo "td

Re: [PHP] Weird nested while loop problem

2001-01-17 Thread Rasmus Lerdorf
What I'm getting is that the inner while loop executes on the first execution of the outer while, and then not at all. How would I get it to execute each time? Coming from a perl background, I got stuck there too when I started using PHP. PHP has this odd notion of an array pointer.

Re: [PHP] ? PHP vs. ?

2001-01-17 Thread Rasmus Lerdorf
You know, this means that ALL of my hundreds of pages over multiple sites would break. That's really sad. It won't happen. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] Ethics question...

2001-01-17 Thread Rasmus Lerdorf
There are no restrictions on that. In fact the license on PHP is explicitly not the GPL for this very purpose. As for restricting the demo. I would suggest restricting it via a license. Any serious customer is not going to violate a license in order to save a couple of hundred bucks. -Rasmus

Re: [PHP] Ethics question...

2001-01-17 Thread Rasmus Lerdorf
There are no restrictions on that. In fact the license on PHP is explicitly not the GPL for this very purpose. How does the license of PHP have anything to do whith the code that Shane has written (unless he is distributing his software with PHP, much as like an embeded system)? I have

RE: [PHP] Ethics question...

2001-01-17 Thread Rasmus Lerdorf
a customer like Microsoft, Morgan-Stanley, Amazon.com.. yes, but a new start-up that thinks: "when we'll grow we'll buy something cooler" will crack your soft down (or will ignore your license) ... I've seen it happening so many times... So what? They'll do that anyway unless you spend a

Re: [PHP] Variable Scope

2001-01-18 Thread Rasmus Lerdorf
I'm a bit troubled with the fact that variables declared at the top of your script are not then global to functions within that script. That in order to see that variable within a function you'd have to declare it as global in the function (understanding that the variable could have been set

Re: [PHP]GD, PHP and Apache troubles

2001-01-18 Thread Rasmus Lerdorf
gcc -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0 .4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/ source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED

Re: [PHP] PHP site on CD-ROM

2001-01-18 Thread Rasmus Lerdorf
You would need to go through a web server for it to work. On Fri, 19 Jan 2001, Philip Apostol wrote: Can I run a PHP/Apache/MySQL services on a CD-ROM. We have PHP scripts that handle queries on a large database. We would like to distribute it on a CD-ROM so they could access the database

Re: [PHP] RE: Ethics question...

2001-01-18 Thread Rasmus Lerdorf
I think the single most importand piece of software that saves us the most money is thttpd. That all runs in a single thread and uses select to pump out content. Since it is a single thread, it never chews up tons of memory forking children. By the way, there is a PHP module for thttpd.

Re: [PHP] RE: Ethics question...

2001-01-18 Thread Rasmus Lerdorf
By the way, there is a PHP module for thttpd. Thank you. I know. I haven't had a chance to spend time testing it. Would anyone recommend it for mission critical environments? I can't really do that since I have never tried it. -Rasmus -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] ASP Guy Looking for Select Case equivalent

2001-01-19 Thread Rasmus Lerdorf
http://php.net/switch On Fri, 19 Jan 2001, Karl J. Stubsjoen wrote: Hello, What is the equivalent command to Select Case as in: Select case 10 + 2 case 10 'nope case 11 'nope case 12 'yep case 13 'yep - but case 12 comes first! end

Re: [PHP-CVS] cvs: php4 /main rfc1867.c

2001-01-19 Thread Rasmus Lerdorf
- is_arr_upload = (start_arr = strrchr(namebuf,'[')) + is_arr_upload = (start_arr = strchr(namebuf,'[')) Yes, this makes more sense. -Rasmus -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-19 Thread Rasmus Lerdorf
rasmus Fri Jan 19 11:45:18 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for Jason Index: CVSROOT/avail diff -u CVSROOT/avail:1.48 CVSROOT/avail:1.49 --- CVSROOT/avail:1.48 Thu Jan 18 12:40:32 2001 +++ CVSROOT/avail Fri Jan

Re: [PHP] php4 auto download problem

2001-01-19 Thread Rasmus Lerdorf
Do you have a LoadModule line to load the PHP module? On Fri, 19 Jan 2001, Thomas Anderson wrote: I installed php4 and supposidly configured it with apache and mysql. When I go to a page with php in it it doesn't load it. Instead it automatically prompts me to download it. I know this has

Re: [PHP] HELP!. INstalling PHP4 on a Cobalt RAQ 2!

2001-01-20 Thread Rasmus Lerdorf
Can you install flex and bison? On Sat, 20 Jan 2001, Trunkz Santai wrote: Hi Im trying to isntall PHP4 on my Raq 2 but Im not having much luck. I was wondering if someone here could assist me. I uploaded apache and configured it and it worked fine. Its running in /usr/local/apache-x.x.x

Re: [PHP] simple math

2001-01-20 Thread Rasmus Lerdorf
11 % 3 On Sat, 20 Jan 2001 [EMAIL PROTECTED] wrote: Lets say I have 11 / 3 answer is 2.667 what if I want to get the remainder of it so 11 / 3 would be 2 is there a built in function for this in PHP? kinda like MOD in Visual Basic? - Thanks -- PHP General Mailing List

Re: [PHP] MailBomb Problem...

2001-01-20 Thread Rasmus Lerdorf
Edit your php.ini file and edit your sendmail_path directive. The default is "sendmail -t -i". Add the correct -o switch (don't remember it offhand) to have sendmail just queue the email instead of trying to deliver right away. Then set up sendmail to deliver the queue at regular intervals.

Re: [PHP] Mysql Array Question

2001-01-20 Thread Rasmus Lerdorf
while($row = mysql_fetch_array($id,MYSQL_ASSOC)) { foreach($row as $index=$value) { $z[$index][] = $value; } } For a table with 3 rows and fields abc and def in each row this would produce an array like this: $z[abc][0] $z[def][0] $z[abc][1] $z[def][1] $z[abc][2]

Re: [PHP] Cookies...

2001-01-20 Thread Rasmus Lerdorf
Currently my cookie expires in 1 hour, How can I make it expire in 1 day? setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */ setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1); 24*3600 -Rasmus -- PHP General Mailing List (http://www.php.net/)

[PHP-CVS] cvs: php4 / configure.in /ext/mysql/libmysql libmysql.c /ext/standard basic_functions.c dns.c file.c filestat.c fsock.c ftp_fopen_wrapper.c http_fopen_wrapper.c mail.c syslog.c /main fopen-wrappers.c network.c php_open_temporary_file.c

2001-01-21 Thread Rasmus Lerdorf
rasmus Sun Jan 21 09:26:44 2001 EDT Modified files: /php4 configure.in /php4/ext/mysql/libmysqllibmysql.c /php4/ext/standard basic_functions.c dns.c file.c filestat.c fsock.c ftp_fopen_wrapper.c http_fopen_wrapper.c

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-21 Thread Rasmus Lerdorf
rasmus Sun Jan 21 09:29:25 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for Anderson da Silveira Fortaleza Index: CVSROOT/avail diff -u CVSROOT/avail:1.49 CVSROOT/avail:1.50 --- CVSROOT/avail:1.49 Fri Jan 19

Re: [PHP] solutions to disadvantages when register_globals is off

2001-01-21 Thread Rasmus Lerdorf
For experienced PHP developers having register_globals on should not be a security issue. Injecting arbitrary variables into your symbol table is only a problem if you arbitrarily use such variables without initializing or checking them for validity. I think the main point of concern here is

Re: [PHP] Upgrading to 4.04 question, but won't stick

2001-01-21 Thread Rasmus Lerdorf
We've had 4.01 running since July so I thought I'd upgrade to 4.04 from the tarball last night. Everything went fine w/ the compile, no errors. Install said all OK, Then i went and HUP'd apache but when I run phpinfo() the old module is still loaded. What am I doing wrong? Where should I

[PHP-CVS] cvs: php4 /sapi/apache mod_php4.c

2001-01-21 Thread Rasmus Lerdorf
rasmus Sun Jan 21 17:13:49 2001 EDT Modified files: /php4/sapi/apache mod_php4.c Log: Kill warning Index: php4/sapi/apache/mod_php4.c diff -u php4/sapi/apache/mod_php4.c:1.87 php4/sapi/apache/mod_php4.c:1.88 --- php4/sapi/apache/mod_php4.c:1.87Sun

Re: [PHP] GD = ImagePNG: No transparency

2001-01-21 Thread Rasmus Lerdorf
How many colours in your image? Don't forget that GD can only handle 8-bit colour. -Rasmus On Mon, 22 Jan 2001, Niklas Saers wrote: Hi. I'm afraid I have to say that the transparency in PHP with GD doesn't seem to work. Let me give you an example. The included file, midblob.png, has a

Re: [PHP] PHP conventions or classes

2001-01-22 Thread Rasmus Lerdorf
Does anyone know where I can find information about training classes for php or conventions that are taking place? I'd like to know so I can start attending these functions. We probably should have a page for this information. Here are the upcoming ones I am doing: Linuxworld

Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Rasmus Lerdorf
Are you running PHP as a CGI? On Mon, 22 Jan 2001, Todd Cary wrote: With Apache, $HTTP_SERVER_VARS only has the element, "PHP_SELF". What am I missing in my Apache setup? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What PHP Stands For....

2001-01-22 Thread Rasmus Lerdorf
That is what I have heard as well, "Personal Home page". It has also been come to be known as "People hate perl". Hey now. I'll deny to my grave I ever said that in public. ;) -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-23 Thread Rasmus Lerdorf
rasmus Tue Jan 23 07:56:13 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for the mysql guys Index: CVSROOT/avail diff -u CVSROOT/avail:1.52 CVSROOT/avail:1.53 --- CVSROOT/avail:1.52 Mon Jan 22 15:43:36 2001 +++ CVSROOT/avail

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-24 Thread Rasmus Lerdorf
rasmus Wed Jan 24 09:32:26 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Some karma for Dan Index: CVSROOT/avail diff -u CVSROOT/avail:1.53 CVSROOT/avail:1.54 --- CVSROOT/avail:1.53 Tue Jan 23 07:56:13 2001 +++ CVSROOT/avail Wed

Re: [PHP] licencing php

2001-01-24 Thread Rasmus Lerdorf
This is covered by the LICENSE file that comes with PHP. And yes, you can distribute PHP on a CD-Rom like that as long as you abide by the terms of the license. -Rasmus On Wed, 24 Jan 2001, Miguel Martinez wrote: Hi: We are a web programming company and a custom ask us for those things:

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-24 Thread Rasmus Lerdorf
rasmus Wed Jan 24 11:54:48 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: dev account for Dave Hayden Index: CVSROOT/avail diff -u CVSROOT/avail:1.54 CVSROOT/avail:1.55 --- CVSROOT/avail:1.54 Wed Jan 24 09:32:24 2001 +++

Re: [PHP] PHP - Interrupted Scripts,

2001-01-24 Thread Rasmus Lerdorf
Read this: http://www.php.net/manual/en/features.connection-handling.php -Rasmus On Wed, 24 Jan 2001, [iso-8859-1] Timo Mika Gläßer wrote: Hi, I had this problem over and over again: A script takes a long time to execute and is interrupted in the middle of its action by either a IE-Crash

Re: [PHP] how do you erase quotes from variable?

2001-01-24 Thread Rasmus Lerdorf
I have a variable(s) that hold the string: "name" and I'd like to kill the quotes so it contains: name $new = str_replace('"','',$old); Using a regex as others have suggested is a bad idea for something this trivial. -Rasmus -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] I give - Whats wrong

2001-01-24 Thread Rasmus Lerdorf
You could of course just check $QUERY_STRING As for your error, you a missing a $ in front of retrn at the beginning of that line. -Rasmus On Wed, 24 Jan 2001, Karl J. Stubsjoen wrote: I've tried and tried to figure out what is wrong with this function, but I can't. Could you please have a

Re: [PHP] --with-mysql, yet mysql_errno() is undefined?

2001-01-24 Thread Rasmus Lerdorf
The function is mysql_errno() not mysql_errorno() -Rasmus On Wed, 24 Jan 2001, CC Zona wrote: I use mysql_* functions all the time, PHP was definitely compiled --with-mysql, yet for some reason I'm getting "Fatal error: Call to undefined function: mysql_errorno()" for this one mysql

Re: [PHP] Search for the documentation

2001-01-24 Thread Rasmus Lerdorf
The online manual is searchable. Hence the big "Search" button. But if you don't like that and prefer a Windows-like searchable thing, well then just download that. It is listed right there on: http://www.php.net/docs.php -Rasmus On Thu, 25 Jan 2001, Jamie wrote: I'm one of those ppl

Re: [PHP] Zend hit (Encoder price)

2001-01-25 Thread Rasmus Lerdorf
I never said that obfuscating the code is a requirement for all people. I'd like to know where I said that. It's easy to make me sound like an idiot or worse when you put words in my mouth. I said that for some people it is. BIG difference. That was not how I understood what you wrote. You

Re: [PHP] html table

2001-01-25 Thread Rasmus Lerdorf
How do I get every other column to be a different color (or font ect.)when I'm populating a table from a db(different field counts all the time) If $i is a counter then $i%2 will alternate between 0 and 1 $i%3 would cycles through 0,1 and 2 -Rasmus -- PHP General Mailing List

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-25 Thread Rasmus Lerdorf
rasmus Thu Jan 25 17:42:59 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for Clemens Gutweiler Index: CVSROOT/avail diff -u CVSROOT/avail:1.55 CVSROOT/avail:1.56 --- CVSROOT/avail:1.55 Wed Jan 24 11:54:47 2001 +++

Re: [PHP] Urgent answers needed for FILE UPLOAD problem....

2001-01-26 Thread Rasmus Lerdorf
Because of the way the code is currently written, a file upload ends up in RAM before it gets written to disk. If you want to upload 1Gig files, you need 1Gig of RAM. That's crap, we know, and Jim Winstead has volunteered to fix this. Not sure what the timeline is on it yet though. -Rasmus

Re: [PHP] Flash/PHP

2001-01-26 Thread Rasmus Lerdorf
You can use premade flash movies just as you would in HTML. Therefore everything that is normally available is available in PHP, plus if you want, you get to use the wonderful libswf! :) libswf isn't maintained anymore though. We will soon have the ming library in PHP, but it works already.

Re: [PHP] Using PHP to do centralized site authentication

2001-01-26 Thread Rasmus Lerdorf
Just do: Header("Location: $url"); exit; -Rasmus On Fri, 26 Jan 2001, Aaron D. Turner wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to do something in PHP4.0.4p1 that in the past I've done in mod_perl, but appears to be more difficult. Basically I have some PHP code

Re: [PHP] PHP on FreeBSD 3.2

2001-01-26 Thread Rasmus Lerdorf
Try a snapshot from http://snaps.php.net This should be fixed. -Rasmus On Fri, 26 Jan 2001, Julia A . Case wrote: I'm having some trouble with PHP4 on a FreeBSD 3.2 machine. PHP3 compiles and works fine, but PHP4 gives a floating point error (both as a module and static). PHP4 under

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-26 Thread Rasmus Lerdorf
rasmus Fri Jan 26 18:25:49 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for David Elrom Index: CVSROOT/avail diff -u CVSROOT/avail:1.57 CVSROOT/avail:1.58 --- CVSROOT/avail:1.57 Fri Jan 26 00:38:58 2001 +++

Re: [PHP] debugger_on( ) third time!

2001-01-27 Thread Rasmus Lerdorf
This is the third time I am posting this Can someone tell me the present status of debugger_on( ) function? Does it still exist? the documentation says it does! The documentation is quite clear on this: http://www.php.net/manual/en/debugger.php -Rasmus -- PHP General Mailing List

Re: [PHP] Custom Error 404

2001-01-27 Thread Rasmus Lerdorf
This is a web server question, not a PHP question. You didn't say which web server you are using on NT5, nor which one you are planning to use on Linux. PHP has nothing to do with how this works. On Linux with Apache you will get the following variables when you make a request for

Re: [PHP] Custom Error 404

2001-01-27 Thread Rasmus Lerdorf
As for the Linux machine, it will be running Apache web server. So I'm assuming that the information below is what I need. It looks like all I need is the REDIRECT_QUERY_STRING on Apache. So I will only need to parse the NT string while I am developing the network. Thanks again! The

Re: [PHP] NT5 Sub Domains

2001-01-27 Thread Rasmus Lerdorf
Why don't you just install the Windows version of Apache? That way your development environment will be much closer to your production environment. -Rasmus On Sat, 27 Jan 2001, [ rswfire ] wrote: This is a little off topic, so I apologize, but I was hoping one of the computer gurus here

[PHP-CVS] cvs: CVSROOT / cvsusers gen_acl_file.m4

2001-01-27 Thread Rasmus Lerdorf
rasmus Sat Jan 27 18:09:14 2001 EDT Modified files: /CVSROOTcvsusers gen_acl_file.m4 Log: CVS account for Harald to see if he can do some interesting .NET stuff Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.195 CVSROOT/cvsusers:1.196 ---

[PHP-CVS] cvs: CVSROOT / avail

2001-01-27 Thread Rasmus Lerdorf
rasmus Sat Jan 27 19:23:16 2001 EDT Modified files: /CVSROOTavail Log: Oops, forgot to m4 Index: CVSROOT/avail diff -u CVSROOT/avail:1.59 CVSROOT/avail:1.60 --- CVSROOT/avail:1.59 Sat Jan 27 17:53:55 2001 +++ CVSROOT/avail Sat Jan 27 19:23:16

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-27 Thread Rasmus Lerdorf
rasmus Sat Jan 27 19:36:23 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for Harald Index: CVSROOT/avail diff -u CVSROOT/avail:1.60 CVSROOT/avail:1.61 --- CVSROOT/avail:1.60 Sat Jan 27 19:23:16 2001 +++ CVSROOT/avail Sat

Re: [PHP] Programming the Hard Way?

2001-01-27 Thread Rasmus Lerdorf
Am I programming the hard way? I *always* parse my strings like this... mysql_query("SELECT * FROM table WHERE id='".$id."'"); Could I just do this? mysql_query("SELECT * FROM table WHERE id='$id'"); If so, is this compatable across all platforms and versions of PHP? Yes -- PHP

Re: [PHP] confused about getenv arguements

2001-01-27 Thread Rasmus Lerdorf
Just put ?phpinfo()? in a file and read through it. Note that HTTP_REFERER (1 R) is only set if you click on a link to get to the page. Also note that relying on HTTP_REFERER for anything important is not safe. Anybody can spoof this variable. -Rasmus On Sat, 27 Jan 2001, Noel Akins wrote:

Re: [PHP] IIS and PHP authorization

2001-01-27 Thread Rasmus Lerdorf
There is an ISAPI module. On Sun, 28 Jan 2001, Shane McBride wrote: I thought PHP would only run as CGI on IIS? Right now I'm trying to config Apache. - Original Message - From: "Rasmus Lerdorf" [EMAIL PROTECTED] To: "Shane McBride" [EMAIL PROTECTED] Cc: [EM

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-30 Thread Rasmus Lerdorf
rasmus Tue Jan 30 04:27:25 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Account for Adam Dickmeiss Index: CVSROOT/avail diff -u CVSROOT/avail:1.63 CVSROOT/avail:1.64 --- CVSROOT/avail:1.63 Mon Jan 29 14:28:18 2001 +++

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-30 Thread Rasmus Lerdorf
rasmus Tue Jan 30 04:41:46 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Some karma for the udmsearch folks Index: CVSROOT/avail diff -u CVSROOT/avail:1.64 CVSROOT/avail:1.65 --- CVSROOT/avail:1.64 Tue Jan 30 04:27:24 2001 +++

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-31 Thread Rasmus Lerdorf
rasmus Wed Jan 31 23:22:50 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: A couple of new accounts Index: CVSROOT/avail diff -u CVSROOT/avail:1.67 CVSROOT/avail:1.68 --- CVSROOT/avail:1.67 Wed Jan 31 12:47:48 2001 +++

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-31 Thread Rasmus Lerdorf
rasmus Wed Jan 31 23:27:13 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Hellekin Index: CVSROOT/avail diff -u CVSROOT/avail:1.68 CVSROOT/avail:1.69 --- CVSROOT/avail:1.68 Wed Jan 31 23:22:49 2001 +++

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-01-31 Thread Rasmus Lerdorf
rasmus Wed Jan 31 23:30:16 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Rainer Schaaf Index: CVSROOT/avail diff -u CVSROOT/avail:1.69 CVSROOT/avail:1.70 --- CVSROOT/avail:1.69 Wed Jan 31 23:27:13 2001 +++

Re: [PHP] details on imap functions.

2001-02-01 Thread Rasmus Lerdorf
docs/internal.txt is part of the imap source tarball On Thu, 1 Feb 2001, Larry Hotchkiss wrote: I am looking for a little more detailed information of the imap function of php4. The dos point me to 'docs/internal.txt' but that does not exist on my windows 'play' system. I cant find it

Re: [PHP] dll windows libraries for php.

2001-02-01 Thread Rasmus Lerdorf
virtual() is an apache-specific function. On Thu, 1 Feb 2001, Scott Fletcher wrote: Hi! I installed the IIS and PHP4 on WinNT 4 for testing purpose only. (Tsk!Tsk! I like Unix better!) And they are working great so far. One after another, things that don't work are starting to work

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

2001-02-02 Thread Rasmus Lerdorf
rasmus Fri Feb 2 05:47:02 2001 EDT Modified files: /php4/ext/standard string.c Log: Fix strip_tags to not strip a lone character @ Fix strip_tags to not strip a lone character (Rasmus) Index: php4/ext/standard/string.c diff -u

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-02 Thread Rasmus Lerdorf
rasmus Fri Feb 2 08:31:33 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Kontra Gergely Index: CVSROOT/avail diff -u CVSROOT/avail:1.70 CVSROOT/avail:1.71 --- CVSROOT/avail:1.70 Wed Jan 31 23:30:16 2001 +++

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

2001-02-02 Thread Rasmus Lerdorf
rasmus Fri Feb 2 10:28:48 2001 EDT Modified files: /php4/ext/pspellpspell.c Log: pspell .12 fix @ pspell .12 fix (Hugh Jones) Index: php4/ext/pspell/pspell.c diff -u php4/ext/pspell/pspell.c:1.12 php4/ext/pspell/pspell.c:1.13 ---

  1   2   3   4   5   6   7   8   9   10   >