Re: [PHP] help on getting rid of \'

2001-07-18 Thread Rasmus Lerdorf
I am working with php and mysql and have the need to write a query like: $sql_statement=mysql_query( select * from table where column='string' ); What comes out is: select * from table where column=\'string\' Only if you pass that variable through a GET/POST/COOKIE operation and you

Re: [PHP] security, receiving html from a form

2001-07-18 Thread Rasmus Lerdorf
For my website I created an updating system in php. Where my staff and I can write articles that then get saved to the server, linked to, etc. I allowed html to be passed from the form because a lot of the staff likes to use html tags in their articles. Which I know is a security issue. I

RE: [PHP] PHP mail() security hole on 4.0.5+

2001-07-19 Thread Rasmus Lerdorf
-Original Message- From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 9:39 AM To: PHP Mailing List Subject: [PHP] PHP mail() security hole on 4.0.5+ http://www.net-security.org/text/bugs/995534103,28541,.shtml Anyone have

Re: [PHP] Variable dump on error

2001-07-19 Thread Rasmus Lerdorf
Read http://php.net/set_error_handler and http://php.net/trigger_error Pay particular attention to the user notes on the set_error_handler() page. -Rasmus On Thu, 19 Jul 2001, Randy Miller wrote: Using mod_perl when an error is encountered, I have a customized error screen that is defined

Re: [PHP] php 4.0.6

2001-07-20 Thread Rasmus Lerdorf
Did you compile php using --with-readline ? On Thu, 19 Jul 2001, Adrian D'Costa wrote: Hi, I am trying to use the socket or readline functions but get a message: call to undefined function readline(). Why? Is this not implemented in 4.0.6. Adrian -- PHP General Mailing List

Re: [PHP] php hosting provider that supports libswf module?

2001-07-20 Thread Rasmus Lerdorf
Does anyone know of a reputable PHP web hosting company that also supports the libswf (i.e. Flash) module? And, specifically, does anyone know if Pair.com does/doesn't? (yes, I'm going to ask them directly as well) Any provider which runs on a sane platform and doesn't disable the dl()

Re: [PHP] testing if var is empty

2001-07-20 Thread Rasmus Lerdorf
http://php.net/empty On Sat, 21 Jul 2001, Justin French wrote: Hi, I'm a semi-newbie, and if I want to check if a variable is set, or contains something, i've been doing it like this: if($var != ) { ... } I'm sure there is a better/safer/smarter/faster/more reliable way? Justin

Re: [PHP] PHP security

2001-07-20 Thread Rasmus Lerdorf
I need to store username and password for mysql in a file to be used by PHP. I am concerned with PHP's security. Can anyone use showsource() to read php source even if they are on a different server or they are spoofing my ip address (hacking)? No, of course not. If I put a file with the

Re: [PHP] Gettin' system enviroment (Urgent, please)

2001-07-20 Thread Rasmus Lerdorf
Check phpinfo() On Sat, 21 Jul 2001, Thiago Locatelli da Silva wrote: Well, this code get the name of the user that is logged in win9x/2k/nt (ASP) Request.ServerVariables(LOGON_USER) and, how can i do it in php? I tryed getenv() and not worked. Please, help me! -- PHP General

Re: [PHP] php 4.0.6

2001-07-21 Thread Rasmus Lerdorf
could be wrong. You will have to do a little bit of digging on your own. -Rasmus Hi, I have now compiled php --with-readline and --with-sockets but I still get the call to undefined function socket() what could be wrong. Adrian On Thu, 19 Jul 2001, Rasmus Lerdorf wrote: Did you

Re: [PHP] auto_prepend_file

2001-07-21 Thread Rasmus Lerdorf
Please read http://www.php.net/manual/en/configuration.php You need to use: php_value auto_prepend_file /usr/local/htdocs/oi2kplus1/phplib/prepend.php -Rasmus I'm trying to get auto_prepend to work on Mandrake 8.0, apache is configured with mod_php4 and mod_vhosts. Where do I add the

Re: [PHP] PHP SSI in armony?

2001-07-21 Thread Rasmus Lerdorf
I want to use both PHP and SSI on the same page. My server requires that SSI files are .shtml. If I set it to also treat .shtml files as php files (like I have done with .htm) then what will happen? Will it get parsed first for php and then for ssi, or the other way round? Or puke

Re: [PHP] php 4.0.6

2001-07-22 Thread Rasmus Lerdorf
System Linux pcs.pcsadvt.com 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000 i586 unknown Build Date Jul 20 2001 Configure Command './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug'

Re: [PHP] .htaccess

2001-07-24 Thread Rasmus Lerdorf
$REMOTE_USER On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote: If I have a directory protected with an .htaccess file that requires users to log in, is there anyway to determine what username they used in my PHP scripts? --Jon -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] need advice on project...

2001-07-24 Thread Rasmus Lerdorf
Does any one have any good code for creating PDF's on the fly with graphic images? Putting an image in a PDF is trivial: ? $pdf = pdf_new(); pdf_open_file($pdf); pdf_begin_page($pdf, 612, 792); // US-Letter size $x = 5; $y = 792-72; $scale = 0.5; $im = pdf_open_jpeg($pdf, logo.jpg);

Re: [PHP] PHP 4.0.6 on RedHat 6.2: Undefined symbols when usingIMAP?!

2001-07-24 Thread Rasmus Lerdorf
This is driving me nuts. I'm trying to compile PHP 4.0.6 on RedHat 6.2. After I ran ./configure --with-imap make make install, /etc/rc.d/init.d/httpd configtest tells me: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol:

Re: [PHP] PHP Execution Functions

2001-07-24 Thread Rasmus Lerdorf
I'm discovering the joys of PHP as supplied by RH on their 7.1 release. Actually, everything about it is SO much nicer than ASP or pure Perl. (Not to take anything away from either--PHP's just a LOT easier to get hold of!) I'm running PHP as an Apache module (default RedHat installation)

Re: [PHP] cookie help

2001-07-24 Thread Rasmus Lerdorf
in order to prevent my visitors from seeing more than one popup in less than 120 second, I added this to my php page(index.php) -- setcookie(popup,1,time()+120); if ($popup!=1) echo script src=http://www.peel.net/frames/PMNforce.js/script; } - When I reload

Re: [PHP] ereg_replace

2001-07-25 Thread Rasmus Lerdorf
Use the urlencode() function. Or at the very least use str_replace. And by the way, the ereg_replace() you have works fine. You must be doing something silly. -Rasmus On Wed, 25 Jul 2001, Clayton Dukes wrote: Can someone tell me why this doesn't work? $home_street = ereg_replace ( , +

Re: [PHP] Alarm/Timer in PHP??

2001-02-06 Thread Rasmus Lerdorf
Just use the standalone php binary and write yourself a little php script and run it from your cron periodically. -Rasmus On Wed, 7 Feb 2001, GAYTAN BAHAMONDEZ DANIEL EDUARDO wrote: Hi there, I need to do some kind of alarm in php, I have a date(dd-mm-) in mysql and need that

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

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:21:13 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Jin Tae-Young Index: CVSROOT/avail diff -u CVSROOT/avail:1.76 CVSROOT/avail:1.77 --- CVSROOT/avail:1.76 Thu Feb 8 06:17:37 2001 +++

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

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:26:08 2001 EDT Modified files: /CVSROOTcvsusers gen_acl_file.m4 Log: Doc account for Ingmar Heinrich Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.205 CVSROOT/cvsusers:1.206 --- CVSROOT/cvsusers:1.205 Thu Feb 8 06:21:13

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

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:31:48 2001 EDT Modified files: /CVSROOTcvsusers gen_acl_file.m4 Log: PEAR account for Björn Schotte Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.206 CVSROOT/cvsusers:1.207 --- CVSROOT/cvsusers:1.206 Thu Feb 8 06:26:08

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

2001-02-08 Thread Rasmus Lerdorf
rasmus Thu Feb 8 06:45:36 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Change waldschrott to andre Index: CVSROOT/avail diff -u CVSROOT/avail:1.77 CVSROOT/avail:1.78 --- CVSROOT/avail:1.77 Thu Feb 8 06:21:13 2001 +++

Re: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Rasmus Lerdorf
Uh, why? Adding ?asin$asin makes absolutely no sense in an include since included files share the same namespace as the parent file. You can simply do: $asin = 123; include 'book_reviews.php'; And the $asin variable will be accessible to you book_reviews.php script. -Rasmus On Thu, 8 Feb

RE: [PHP] include(blah.php?var=this); doesn't work?!

2001-02-08 Thread Rasmus Lerdorf
Adding ?asin=$asin doesn't make much sense but do it like this: include('book_reviews.php?asin=' . $asin); Which makes just as little sense. Included files share the same namespace as the file doing the including. You don't pass arguments to included files. -Rasmus -- PHP General

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

2001-02-09 Thread Rasmus Lerdorf
rasmus Fri Feb 9 07:28:23 2001 EDT Modified files: /php4/ext/standard datetime.c file.c Log: What the heck is CUT? Assume someone meant UTC here. And fix a warning. Index: php4/ext/standard/datetime.c diff -u php4/ext/standard/datetime.c:1.65

Re: [PHP-CVS] cvs: php3 / php3.ini-dist

2001-02-11 Thread Rasmus Lerdorf
Hrm.. When was this changed in PHP 3? It used to be on by default. And it is on by default in PHP 4. -Rasmus On Sat, 10 Feb 2001, Jim Winstead wrote: jimw Sat Feb 10 11:43:58 2001 EDT Modified files: /php3 php3.ini-dist Log: we claim php3.ini documents the

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

2001-02-11 Thread Rasmus Lerdorf
rasmus Sun Feb 11 01:43:28 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Emiliano Heyns (Midgard Project) Index: CVSROOT/avail diff -u CVSROOT/avail:1.79 CVSROOT/avail:1.80 --- CVSROOT/avail:1.79 Fri Feb 9

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

2001-02-11 Thread Rasmus Lerdorf
rasmus Sun Feb 11 05:31:21 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for Emile Index: CVSROOT/avail diff -u CVSROOT/avail:1.80 CVSROOT/avail:1.81 --- CVSROOT/avail:1.80 Sun Feb 11 01:43:27 2001 +++ CVSROOT/avail Sun

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

2001-02-11 Thread Rasmus Lerdorf
rasmus Sun Feb 11 12:50:36 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for David Guerizec Index: CVSROOT/avail diff -u CVSROOT/avail:1.81 CVSROOT/avail:1.82 --- CVSROOT/avail:1.81 Sun Feb 11 05:31:20 2001 +++

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

2001-02-12 Thread Rasmus Lerdorf
rasmus Mon Feb 12 03:43:45 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Alan Knowles Index: CVSROOT/avail diff -u CVSROOT/avail:1.82 CVSROOT/avail:1.83 --- CVSROOT/avail:1.82 Sun Feb 11 12:50:35 2001 +++

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

2001-02-12 Thread Rasmus Lerdorf
rasmus Mon Feb 12 04:05:12 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Switch mgddavid to davidg Index: CVSROOT/avail diff -u CVSROOT/avail:1.84 CVSROOT/avail:1.85 --- CVSROOT/avail:1.84 Mon Feb 12 03:46:24 2001 +++

[PHP] Re: [PHP-INST] Cannot get PHP w/GD to compile with Apache on RH

2001-02-12 Thread Rasmus Lerdorf
You should be using: --with-jpeg-dir=/usr Also make sure that you don't have the old gd.h from gd-1.3 lying around. ie. locate gd.h and make sure you only have one. rpm -qa | grep gd -Rasmus On Mon, 12 Feb 2001, Greg Kopp wrote: I am having trouble getting PHP, GD and apache compiled. I

Re: [PHP] adding lib files...

2001-02-14 Thread Rasmus Lerdorf
No, you can't just add random .so libraries directly like that. You will have to write a PHP extension that maps the API implemented by your library to a set of user-callable PHP functions. The ext/ext_skel script gets you on your way towards writing such an extension, but you need to be an

Re: [PHP] PHP globals aren't really globals

2001-02-14 Thread Rasmus Lerdorf
I've been programming in C all my life, and now I just started developing in PHP and I'm really enjoying it, it has all the missing improvements that C needed to be more user-likely. But one thin I can't get, how can PHP call a variabel global, if it isn't global. A global var, is a var

Re: [PHP] PHP globals aren't really globals

2001-02-14 Thread Rasmus Lerdorf
I believe you use globals $var to ACCESS a global variable, not to define. That's correct. To be perfectly correct here, what you are doing is creating a reference to the global variable. Think of it as an alias to the same variable as the global variable. global $foo; would be

Re: [PHP] Count of multi-dimensional array

2001-02-17 Thread Rasmus Lerdorf
count($myarray) will give you 3 On Sat, 17 Feb 2001, bill wrote: How can i get the count of a multi-dimensional array? if I have $myarray[0][chicken] $myarray[0][fish] $myarray[0][meat] $myarray[1][fries] $myarray[1][chips] $myarray[2][coke] $myarray[2][pepsi] $myarray[2][rootbeer]

Re: [PHP] swflib

2001-02-17 Thread Rasmus Lerdorf
Attempting to use this in PHP causes Apache to segfault. Is there anywhere I can download the source and make sure it's linked against my libs properly? The source for what? PHP? Sure, click on the Downloads button on www.php.net. For libswf, nope. Use ming instead.

Re: [PHP] exit signal Floating point exception(8)

2001-02-18 Thread Rasmus Lerdorf
Upgrade to the latest tarball from snaps.php.net On Sun, 18 Feb 2001, Charles Peters wrote: Geetings and Salutations- I am experiencing a similar problem, but only on two similarly configured FreeBSD 4.0-Stable servers. Here are the details... We are running php-4.0.1p12, and it is

Re: [PHP] exit signal Floating point exception(8)

2001-02-18 Thread Rasmus Lerdorf
Yes On Sun, 18 Feb 2001, Charles Peters wrote: Thanks Rasmus, I appreciate your quick response. I would imagine that there was a know issue involving this bug and the version of php that I was using? Charles --- Rasmus Lerdorf [EMAIL PROTECTED] wrote: Upgrade to the latest tarball

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:37:33 2001 EDT Modified files: /CVSROOTcvsusers gen_acl_file.m4 Log: doc account for Dmitry Tkatchenko Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.215 CVSROOT/cvsusers:1.216 --- CVSROOT/cvsusers:1.215 Thu Feb 15

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:40:02 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Lucas Rocha Index: CVSROOT/avail diff -u CVSROOT/avail:1.88 CVSROOT/avail:1.89 --- CVSROOT/avail:1.88 Tue Feb 20 10:23:17 2001 +++

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:47:54 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc accounts for Juhyon Kim and Luiz Augusto Gonçalves Flores Index: CVSROOT/avail diff -u CVSROOT/avail:1.90 CVSROOT/avail:1.91 --- CVSROOT/avail:1.90 Thu

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:51:03 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Ernani Joppert Pontes Martins Index: CVSROOT/avail diff -u CVSROOT/avail:1.91 CVSROOT/avail:1.92 --- CVSROOT/avail:1.91 Thu Feb 22 10:47:54

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:53:52 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Arne Blankerts Index: CVSROOT/avail diff -u CVSROOT/avail:1.92 CVSROOT/avail:1.93 --- CVSROOT/avail:1.92 Thu Feb 22 10:51:03 2001 +++

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:56:53 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Carlos Eduardo Vargas Miranda Index: CVSROOT/avail diff -u CVSROOT/avail:1.93 CVSROOT/avail:1.94 --- CVSROOT/avail:1.93 Thu Feb 22 10:53:51

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 10:59:40 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Adonias Malosso Index: CVSROOT/avail diff -u CVSROOT/avail:1.94 CVSROOT/avail:1.95 --- CVSROOT/avail:1.94 Thu Feb 22 10:56:52 2001 +++

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

2001-02-22 Thread Rasmus Lerdorf
rasmus Thu Feb 22 11:01:21 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Jaemin Byon Index: CVSROOT/avail diff -u CVSROOT/avail:1.95 CVSROOT/avail:1.96 --- CVSROOT/avail:1.95 Thu Feb 22 10:59:40 2001 +++

Re: [PHP] Explode a variable into each character

2001-02-23 Thread Rasmus Lerdorf
I have a string of 1034 and I want to have an array that has each number in an element.(ex: num[0] = 1, num[1] = 0, num[2] = 3 num[3] = 4) Is there a way to explode a string by each character? Just convert it to a string: ie. $foo = (string)$num; echo $foo[1]; -Rasmus -- PHP General

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

2001-02-23 Thread Rasmus Lerdorf
rasmus Fri Feb 23 18:50:13 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: More karma for Jesus Index: CVSROOT/avail diff -u CVSROOT/avail:1.98 CVSROOT/avail:1.99 --- CVSROOT/avail:1.98 Thu Feb 22 11:18:10 2001 +++ CVSROOT/avail Fri

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

2001-02-24 Thread Rasmus Lerdorf
rasmus Sat Feb 24 02:20:38 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Midgard cvs account for Alexander Bokovoy Index: CVSROOT/avail diff -u CVSROOT/avail:1.99 CVSROOT/avail:1.100 --- CVSROOT/avail:1.99 Fri Feb 23 18:50:13

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

2001-02-26 Thread Rasmus Lerdorf
rasmus Mon Feb 26 11:34:09 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Julio Cesar Carvalho Rocha Index: CVSROOT/avail diff -u CVSROOT/avail:1.103 CVSROOT/avail:1.104 --- CVSROOT/avail:1.103 Sun Feb 25 16:25:35

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

2001-03-01 Thread Rasmus Lerdorf
rasmus Thu Mar 1 18:46:21 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Add a couple of doc accounts Index: CVSROOT/avail diff -u CVSROOT/avail:1.105 CVSROOT/avail:1.106 --- CVSROOT/avail:1.105 Tue Feb 27 06:56:43 2001 +++

Re: [PHP] Help - I can't create jpegs with GD

2001-03-01 Thread Rasmus Lerdorf
They probably didn't build jpeg support into their gd library. On Thu, 1 Mar 2001, Cherie Benoit wrote: I can't create or manipulate jpegs, but pngs work fine. I am using a hosting service. They installed GD 1.8.4 with jpeg support a few days ago, but I'm thinking they did it wrong. I'm

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

2001-04-03 Thread Rasmus Lerdorf
rasmus Tue Apr 3 18:42:03 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: dev account for David Reid Index: CVSROOT/avail diff -u CVSROOT/avail:1.130 CVSROOT/avail:1.131 --- CVSROOT/avail:1.130 Tue Apr 3 12:07:22 2001 +++

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

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 08:25:44 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS Account for David Benson (Thies-approved) Index: CVSROOT/avail diff -u CVSROOT/avail:1.131 CVSROOT/avail:1.132 --- CVSROOT/avail:1.131 Tue Apr 3

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

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 09:01:32 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: GTK CVS account for Joe Stump Index: CVSROOT/avail diff -u CVSROOT/avail:1.132 CVSROOT/avail:1.133 --- CVSROOT/avail:1.132 Wed Apr 4 08:25:44 2001 +++

Re: [PHP] Monthly Drawing Winner!

2001-04-04 Thread Rasmus Lerdorf
Done. Anything from mail.thecasino.com and thecasino.com is now blocked. -Rasmus On Wed, 4 Apr 2001, TV Karthick Kumar wrote: Can't we just get rid of this spam: [EMAIL PROTECTED] and not allow to continue. I am sure the list master (in php.net) can do it, for the sake of the list. Hope

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

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 09:08:41 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Dev account for Brendan W. McAdams to work on CCVS Index: CVSROOT/avail diff -u CVSROOT/avail:1.133 CVSROOT/avail:1.134 --- CVSROOT/avail:1.133 Wed Apr 4

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

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 09:12:21 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Gavin Sherry Index: CVSROOT/avail diff -u CVSROOT/avail:1.134 CVSROOT/avail:1.135 --- CVSROOT/avail:1.134 Wed Apr 4 09:08:40 2001 +++

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

2001-04-04 Thread Rasmus Lerdorf
rasmus Wed Apr 4 09:15:56 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Djalma Carneiro Index: CVSROOT/avail diff -u CVSROOT/avail:1.135 CVSROOT/avail:1.136 --- CVSROOT/avail:1.135 Wed Apr 4 09:12:21 2001 +++

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

2001-04-05 Thread Rasmus Lerdorf
rasmus Thu Apr 5 08:26:26 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for Sean Preston Index: CVSROOT/avail diff -u CVSROOT/avail:1.136 CVSROOT/avail:1.137 --- CVSROOT/avail:1.136 Wed Apr 4 09:15:56 2001 +++

Re: [PHP] ftp_get: possible security hole?

2001-04-05 Thread Rasmus Lerdorf
It seems to me that ftp_get() is a potential security hole, or maybe we've just got it misconfigured on our system. When a script calls ftp_get() and transfers a file, the new file on the local system (e.g. the box running php) is owned by the webserver. Now this would make sense if the

Re: [PHP] text string in a gif

2001-04-07 Thread Rasmus Lerdorf
urldecode($string) On Sat, 7 Apr 2001, Victor wrote: Hello friends, For those who are not allergic to newbie questions: I want to make a button for a web page from a background gif and a string. Till here nothing unusual. I used the example from the php manual and it works like a breeze.

Re: [PHP] possible to get the fully qualified path name for fileupdloads?

2001-04-07 Thread Rasmus Lerdorf
I'm doing file uploads through PHP and now have a need to retrieve and store the original fully qualified directory path name used for the upload. For example if the user copied image file sample.jpg from c:\temp I need to retrieve and store the c:\temp\ in addition to the sample.jpg that I

Re: [PHP] uninstalling PHP4

2001-04-08 Thread Rasmus Lerdorf
I just uninstalled MySQL, now how do i uninstall PHP4, I installed it from a .tar file. Just remove the LoadModule line from your httpd.conf assuming you built PHP as a DSO. If you compiled it into your Apache as a static module you will need to recompile Apache. -Rasmus -- PHP General

RE: [PHP] uninstalling PHP4

2001-04-08 Thread Rasmus Lerdorf
httpd -l If php shows up in your list it is static. Or, check phpinfo() and see if the configure line you used was --with-apxs (DSO) or --with-apache (static) -Rasmus On Sun, 8 Apr 2001, David Loszewski wrote: how do I tell? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL

Re: [PHP] Apache latest + PHP latest + GD latest + Freetype latest+ Jpeg latest

2001-04-08 Thread Rasmus Lerdorf
It doesn't, but you don't need Freetype support in GD in order to get GD+Freetype support. PHP takes a vanilla GD library and adds Freetype support itself (assuming you have the Freetype lib, of course). -Rasmus On Mon, 9 Apr 2001, trogers wrote: Hi I don't think gd uses freetype by default

Re: [PHP] Real Problem: Accessing Array In A Class

2001-04-09 Thread Rasmus Lerdorf
Don't put complex variables inside quoted strings like that. Simply break out of your quoted string and do: print "blah blah blah " . $this-arrayname['value'] . " blah"; -Rasmus On Mon, 9 Apr 2001, DELAP, SCOTT F (SBCSI) wrote: I've been trying to figure this out for a day or so now.

Re: [PHP] @Listing - causing pasre error

2001-04-10 Thread Rasmus Lerdorf
I want to write to a given file using the code below. Somehow I get the parse error. I thnk it has something to do with --- @Listing Is this a setting in my php.ini which is wrong or is the code maybe wrong (I copied it out of a php text book.) What is this @Listing thing supposed to

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

2001-04-10 Thread Rasmus Lerdorf
rasmus Tue Apr 10 09:00:19 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Fix Kevin's password and add some karma Index: CVSROOT/avail diff -u CVSROOT/avail:1.142 CVSROOT/avail:1.143 --- CVSROOT/avail:1.142 Mon Apr 9 13:32:31 2001 +++

[PHP-CVS] cvs: CVSROOT / cvsusers

2001-04-10 Thread Rasmus Lerdorf
rasmus Tue Apr 10 09:16:17 2001 EDT Modified files: /CVSROOTcvsusers Log: Fix email address Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.253 CVSROOT/cvsusers:1.254 --- CVSROOT/cvsusers:1.253 Mon Apr 9 13:32:31 2001 +++ CVSROOT/cvsusers

[PHP-CVS] cvs: CVSROOT / loginfo

2001-04-10 Thread Rasmus Lerdorf
rasmus Tue Apr 10 09:31:01 2001 EDT Modified files: /CVSROOTloginfo Log: Fix email address for pear commits Index: CVSROOT/loginfo diff -u CVSROOT/loginfo:1.40 CVSROOT/loginfo:1.41 --- CVSROOT/loginfo:1.40Tue Feb 27 06:56:43 2001 +++

Re: [PHP] Multiple Includes vs. One Long Include (Functions)

2006-08-10 Thread Rasmus Lerdorf
Kevin Murphy wrote: I was just wondering if there was any thought one way or another on the best practice for doing this. Lets say I have 10 functions that I want to reuse on my site. Not every page needs every function. So I move the function to an external page and then require it for the

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Rasmus Lerdorf
IE doesn't actually support XHTML, so if your primary target for something is IE, you really shouldn't be using XHTML. Even IE7 doesn't fully support it. Setting the charset in the response header like you did is the best approach. You can do it for all your pages in your php.ini file with:

Re: [PHP] Parsing RSS

2006-08-12 Thread Rasmus Lerdorf
John Taylor-Johnston wrote: Is there something already created to open an rss file, parse it, and include() the useful stuff into an html file? Not all my students have an rss reader. http://jtjohnston.ca/jtjohnston.rss RSS is just XML. Use SimpleXML to map it to a PHP object and just print

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-13 Thread Rasmus Lerdorf
tedd wrote: At 6:48 PM -0700 8/12/06, Rasmus Lerdorf wrote: By the way, everyone should be setting a charset. If you don't set it, IE will look at the first 4k of the body of the page and take a wild guess. -Rasmus -Rasmus: Ok, but why doesn't w3c use it? http://validator.w3.org

Re: [PHP] auto_globals_jit breaks $_SERVER var

2006-08-14 Thread Rasmus Lerdorf
Artzi, Yoav (Yoav) wrote: I have the following in my php.ini: register_globals = Off register_long_arrays = Off register_argc_argv = Off auto_globals_jit = On The following PHP code prints nothing: ?php $webroot = $_SERVER['DOCUMENT_ROOT']; $server = $_SERVER[HOST];

Re: [PHP] Re: Where to download APC for windows?

2006-08-23 Thread Rasmus Lerdorf
It's a pecl extension, so it is with all the other pecl extensions for Windows at http://pecl4win.php.net/ -Rasmus steve wrote: Yeah, sorry, it is missing from a test version of PHP 5.2. In the test version, it is not available, nor is it on snaps. Likely doesn't work. On 8/23/06, Alex

[PHP] Yahoo! HackDay

2006-09-22 Thread Rasmus Lerdorf
For any of you folks in the Bay Area, don't miss the open Hack Day at Yahoo next Friday/Saturday. It is completely free and the density of web experts will be higher than at most conferences. More info on it at the following links: http://yuiblog.com/blog/2006/09/22/yahoo-devday-schedule/

Re: [PHP] LAMP benchmarking tool

2006-09-27 Thread Rasmus Lerdorf
Joseph Cheng wrote: Is anyone using a reliable Linux/Apache/MySQL/PHP benchmarking suite? There are benchmark software for individual pieces but I hope there is one tool or several small tools that act together to give a picture of how long a request takes from entering Apache, to PHP, to MySQL

Re: [PHP] Parsing serialized PHP arrays in C

2006-10-21 Thread Rasmus Lerdorf
Kevin Wilcox wrote: I have a feeling this may be the wrong group to ask this question, but I thought that if it is, someone can point me in the right direction. I'm working on a application written in C that needs to parse and understand php arrays that have been serialized and stored in a

Re: [PHP] How does the Zend engine behave?

2006-10-27 Thread Rasmus Lerdorf
Sean Pringle wrote: The Caching systems such as Zend Cache (not the Optimizer), MMCache, APC, etc are expressly designed to store the tokenized version of the PHP script to be executed. Note that their REAL performance savings is actually in loading from the hard drive into RAM, not actually

Re: [PHP] Non-blocking sockets

2006-10-27 Thread Rasmus Lerdorf
Jochem Maas wrote: Eric wrote: Stut wrote: Eric wrote: When I create a socket/stream that connects to a news sever and try to recv data from the socket when there is nothing there (Like if the server sends one line and I call recv twice) the socket freezes. I assume this is because using

Re: [PHP] PHP Memory Allocation (checked via TOP)

2006-10-31 Thread Rasmus Lerdorf
$str is 10 bytes then you repeat it 200 times That gives you 2000 bytes. That's 20M not 10M -Rasmus Cabbar Duzayak wrote: Hi, I have written a simple test program to see how php allocates memory. Test code allocates ~10 Meg of RAM in an array within a loop till it runs out of

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Rasmus Lerdorf
Daevid Vincent wrote: -Original Message- From: Ed Lazor [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 12:05 PM Cc: Daevid Vincent; PHP General Subject: Re: [PHP] Microsoft Partners With Zend ps... I wonder if .NET will ever support PHP *GRIN* I guess that's

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: The only slight negative as far as you are concerned could be that they may divert some Zend resources to work on Windows issues that aren't interesting to you. But consider that there are 1133 people with PHP cvs accounts. Only 11 work for Zend, and out of those 11

Re: [PHP] Viruses

2006-11-02 Thread Rasmus Lerdorf
Beauford wrote: Does the PHP list not monitor spam or filter out viruses? I am getting a lot of this junk coming through the list. I am also getting some directly to this address, but obviously that is out of the lists control. We filter 1000's of spam messages every day. But a few do get

Re: [PHP] ChangeLog PHP 5.2.0 - Fileupload

2006-11-04 Thread Rasmus Lerdorf
Christian Heinrich wrote: Hey all, I've just examined the latest Change-Log for Version 5.2.0 (see http://www.php.net/ChangeLog-5.php for details). Seems to be fine, but I couldn't figure out one point. The changelog talks about Added RFC1867 fileupload processing hook. (Stefan E.)

Re: [PHP] image commands (again)

2006-11-05 Thread Rasmus Lerdorf
Google Kreme wrote: On 05 Nov 2006, at 15:31 , Ron Piggott (PHP) wrote: Content-type: image/ the browser expects only the image to output to the screen and no HTML As if should. Save the image in a temporary location and then send html that include and img ... / tag You don't need to

Re: [PHP] mime with php4.4.4 does not work anymore

2006-12-30 Thread Rasmus Lerdorf
Roger Thomas wrote: I have been serving my community with Invision Power Board (IPB) v1.3.1 Final. Things are working well with PHP 4.3.8 and Apache 1.3.29. Yesterday I just upgraded to PHP4.4.4 and I have problems with Excel and Word attachments with IPB. Whenever I click on those

Re: [PHP] php 5 and register_globals=off gives lotsa errors

2006-12-30 Thread Rasmus Lerdorf
You did more than just turn register_globals off. You also changed your error warning level. You have turned notices on. Set the same error warning level in your PHP 4 setup and you will see exactly the same messages. To be notice-free, your code should look like this: $action =

Re: [PHP] Best way to manage open slots for download

2006-12-31 Thread Rasmus Lerdorf
Aras wrote: First of all, Happy New Year for everyone in the list. I wish 2007 brings all us happiness, health and peace. I want to read your advises at a point i am stuck within, i have an application that serves downloads to clients. For some reason i am limiting total open slot for some

Re: [PHP] Reducing size of htm output

2005-05-06 Thread Rasmus Lerdorf
Prathaban Mookiah wrote: Is it true that ob_start(ob_gzhandler) can cause problems on IE 5.5+? Since IE any-version is on the client side, it shouldn't cause any problems to ob_start(), in that case any other PHP function. That's not true. ob_gzhandler is extremely browser-dependant

Re: [PHP] Sending htm as it's being generated

2005-05-08 Thread Rasmus Lerdorf
http://au.php.net/flush Kirsten wrote: How do I make the browser to display data as it being generated? I've noticed some websites do this with cgi. For example: html head titleXXX/title /head body % $i = 0; while (true){ echo p . $i++ . /p; sleep(1); } % /body /html

Re: [PHP] PHP Applications?

2005-05-18 Thread Rasmus Lerdorf
Evert | Rooftop wrote: Chris Shiflett wrote: Danny Brow wrote: Zend sells a compiler to speed up your PHP code. Since it's compiled, it also does not contain the source code in readable form. You should visit the Zend website. Any free ones? http://pecl.php.net/package/APC APC won't work for

Re: [PHP] PHP Applications?

2005-05-18 Thread Rasmus Lerdorf
I can't say for sure, but I'm betting that APC doesn't support the version of PHP that you are trying to use. Specifically, I don't think it supports PHP5+ Correct, APC is currently PHP4 only. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Responses in my email.

2005-05-19 Thread Rasmus Lerdorf
Rob Agar wrote: From: Rory Browne This is primarly a mailing list. Not a news group. The whole idea of a mailing list is that you get every message mailed to you. uh, I think the OP is complaining about the emails that *don't* go via the list, because this list is set up so that hitting

Re: [PHP] System Call Troubles

2005-05-19 Thread Rasmus Lerdorf
Michael Stearne wrote: I am having the strangest problem using system() or exec() or any variation. None of them work on the Fedora Core 3 system that was just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default installation for Fedora Core 3. Everything in PHP works as

<    5   6   7   8   9   10   11   12   13   14   >