[PHP] Re: Your application

2003-08-20 Thread rasmus
See the attached file for details -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Your application

2003-08-20 Thread rasmus
See the attached file for details -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Thank you!

2003-08-21 Thread rasmus
Please see the attached file for details. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a piece of PHP history

2001-12-12 Thread rasmus
lm=3r7pgp%24aa1%40ionews.io.org -Rasmus On Wed, 12 Dec 2001, Monte Ohrt wrote: > Google now has 20 years worth of newsgroup archives. Here is a link to > what is probably the first PHP post by Rasmus. > > >http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+author:Ler

Re: [PHP] a piece of PHP history

2001-12-12 Thread rasmus
> And here's the earliest post by Rasmus: > > http://groups.google.com/groups?selm=446%40contact.UUCP Argh! Stop! Having a globally unique name and 20 years of Usenet archives is a bad bad combination. A moronic sig under a stupid question. In my own defense, the Internet w

[PHP] Hokki =)

2004-05-11 Thread rasmus
Looking forward for a response :P pass: 22605 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ILQWPNMPY

2004-01-27 Thread rasmus
The message contains Unicode characters and has been sent as a binary attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Message Error

2005-01-26 Thread rasmus
Encrypted message is available. Attachment: No Virus found F-Secure AntiVirus - www.f-secure.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Rasmus Lerdorf
You cannot do it inside a script as the register_globals magic happens before the script starts executing, so toggling the setting at runtime is too late. -Rasmus On Mon, 25 Nov 2002, Tariq Murtaza wrote: > Dear All, > > I am wondering if anyone shed some light. > i am thinking of s

Re: [PHP] Use PHP for reading binary files created by C software

2002-11-25 Thread Rasmus Lerdorf
php.net/unpack On Sun, 24 Nov 2002, Tim Molendijk wrote: > Hi all, > > I would like to use PHP to read a binary file which contains a structure in > C, such as: > struct simple { > int a; > float b; > }; > with f.e. a = 2 and b = 1.5. > Please notice that this is stored as *binary* data a

Re: [PHP] URL Encode to send as form POSTed Items

2002-11-25 Thread Rasmus Lerdorf
You can't send POST data with a Location redirect. You can do it by connecting directly to port 80 of the remote server and sending the POST data. -R On Mon, 25 Nov 2002, Zac Hillier wrote: > Hi All, > > I would like to know if it's possible to use php to encode form variables as > if they had

Re: [PHP] Setting values of php.ini file at runtime

2002-11-25 Thread Rasmus Lerdorf
Just set register_globals on in the wiki directory. Like this in your httpd.conf: php_admin_flag register_globals on -Rasmus On Mon, 25 Nov 2002, DL Neil wrote: > Excuse me breaking in...somewhat similar problem: > > Have set up a client recently, preaching security persuaded

Re: [PHP] php_value disable_functions sintax?

2002-11-25 Thread Rasmus Lerdorf
do if we allowed you to set it per-dir or per-vhost. -Rasmus On Mon, 25 Nov 2002, Rodolfo Gonzalez wrote: > Hi, > > I'm trying to use disable_functions inside an Apache's VirtualHost, like > this: > > php_value disable_functions basename,chgrp,chmod,phpinfo > >

Re: [PHP] implode()?

2002-11-25 Thread Rasmus Lerdorf
str_replace On Mon, 25 Nov 2002, Jami wrote: > I need help once more. I have a variable that is a string with spaces. What I need >to do is put a "+" sign in the spaces so that the string will print like >"This+is+a+string." I have tried using implode, but I get this error: > > Warning: Bad arg

Re: [PHP] spawing new PHP process

2002-11-26 Thread Rasmus Lerdorf
The correct solution for this particular problem is to just queue the outbound mail and have your MTA deliver them out of band. "man sendmail" -Rasmus On Tue, 26 Nov 2002, ROBERT MCPEAK wrote: > I'm interested in spawing a new PHP process -- if that's the correct termino

Re: [PHP] spawing new PHP process

2002-11-26 Thread Rasmus Lerdorf
extension in PECL, but both of these should be a last resort. -Rasmus On Tue, 26 Nov 2002, ROBERT MCPEAK wrote: > Rasmus, > > Thanks for you reply. I agree that what you suggest is the correct solution for the >mail delivery scenario I used as an example. > > My example w

Re: [PHP] max file size on uploading files

2002-11-27 Thread Rasmus Lerdorf
downgrade these days. I'd strongly suggest sticking with Apache 1.3.x for the time being. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Red Hat 8 Apache problem - stumped :-(

2002-12-02 Thread Rasmus Lerdorf
Your best bet is to get rid of Apache 2.0 and install an Apache 1.3.x RPM instead. -Rasmus On 2 Dec 2002, Lee P. Reilly wrote: > Hi there, > > This might be better suited for an Apache newsgroup, but I thought I'd > try here first. I installed Apache and PHP on RH8 a few week

Re: [PHP] hiding php

2002-12-02 Thread Rasmus Lerdorf
So change your Apache server string to say IIS instead. Why tell them you are using Apache? On Tue, 3 Dec 2002, Larry Brown wrote: > This should bump up my popularity here...can you run asp on apache? The > reason I ask is that I understand you can use a php option to hide the fact > that you a

Re: [PHP] File Handles?

2002-12-13 Thread Rasmus Lerdorf
They aren't really handles (whatever a handle might be) they are simply copies of the data from the $_FILES array so you can use $imageName instead of $_FILES['photo_file']['name'] everywhere throughout the rest of the script. -Rasmus On Fri, 13 Dec 2002 [EMAIL PROTECTED

Re: [PHP] to php or to perl, that is the question

2002-12-15 Thread Rasmus Lerdorf
e Beef and Pork industries what to have for dinner tonight. -Rasmus On Sun, 15 Dec 2002, David T-G wrote: > Hi, all -- > > I am starting a project that will have a web front end and mysql back end > and handle staff input (eg not general web surfers, though an Internet face > m

Re: [PHP] php setup

2002-12-16 Thread Rasmus Lerdorf
Turn on register_globals in your php.ini file. On Mon, 16 Dec 2002, Edward Peloke wrote: > I recently got a laptop and was in the process this weekend of installing, > php, apache, mysql etc. One thing I noticed is when I ran the code (that > works fine everywhere else) on the laptop, I got erro

Re: [PHP] Undefined Functions

2002-12-22 Thread Rasmus Lerdorf
An undefined function error has nothing to do with where you are calling the function from. It has to do with whether or not you have defined the function you are calling. -Rasmus On Sun, 22 Dec 2002, Beauford.2002 wrote: > Hi, > > I previously asked a question about getting undefined

Re: [PHP] Thumbnail generation

2002-12-22 Thread Rasmus Lerdorf
You are going to have to depend on something. If you don't want to use GD, you are going to need some external mechanism which will have to be available. -Rasmus On Mon, 23 Dec 2002, Centaur zeus wrote: > Hi all , > > i want to generate the thumbnail of an image but I wan

Re: [PHP] Undefined Functions

2002-12-23 Thread Rasmus Lerdorf
Like I said, where you define your function is important, not where you call it. If you are defining and calling it all in the same place, then yes, obviously it makes a difference. -Rasmus On Mon, 23 Dec 2002, Beauford.2002 wrote: > I have a function at the bottom of my script which is cal

Re: [PHP] Undefined Functions

2002-12-23 Thread Rasmus Lerdorf
isn't working. -Rasmus On Mon, 23 Dec 2002, Beauford.2002 wrote: > Then based on the one below that doesn't work, what is the problem with it? > As I said, the functions are at the bottom of the script. The only thing > after them is the closing ?>. I also said that they work

Re: [PHP] Timing mySQL query time.

2002-12-23 Thread Rasmus Lerdorf
Why not just get the query times from the mysql general query log? On Tue, 24 Dec 2002, Noodle Snacks wrote: > Is there a built in php function for mysql that I can use to time the last > query? > > or do I have to take the microtime before and after then substract the first > from the last? > >

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread Rasmus Lerdorf
ferer. If you want to know where something was redirect from, try REDIRECT_URL. -Rasmus On Tue, 24 Dec 2002, John Taylor-Johnston wrote: > John, > CC: a copy of your next posts. I'll be back on Friday. Jingle Bells and all. > Thanks for thinking about it. What about turning on: se

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread Rasmus Lerdorf
Sure, but his phpinfo() does show REDIRECT_* vars as it is the server doing the redirect. An external redirect (HTTP Location header) is not going to show anything as it has nothing to do with the server. -Rasmus On Tue, 24 Dec 2002, John Nichel wrote: > He's looking to see if th

Re: [PHP] What happened with zend engine version 2?

2002-12-24 Thread Rasmus Lerdorf
That was never the plan. It is scheduled for PHP 5 sometime in the next 6-12 months. -Rasmus On Tue, 24 Dec 2002, Erik Franzén wrote: > I believed that PHP V4.3 should include the Zend engine version 2 since > there was two alpha releases for PHP-4.3.0 with Zend engine version 2 &g

Re: [PHP] Creating my own External Module for PHP

2002-12-24 Thread Rasmus Lerdorf
Just run phpize in your directory and then do a ./configure && make If your config.m4 was correct you should now have a modules/foo.so in your dir. -Rasmus On Tue, 24 Dec 2002, Leon Mergen wrote: > Hello, > > I have a little question to which I hope to find an anwser in her

Re: [PHP] include "problem"

2002-12-26 Thread Rasmus Lerdorf
Use a here-doc: echo <<[$data] $titulo ($user) $intro $texto (comentarios=$contador) EOB; -Rasmus On Fri, 27 Dec 2002, Pag wrote: > > Hi, > > i am trying to make my work a little easier when editing the appearance of > a news site i am building. As it is

Re: [PHP] XML-Presentationsystem from the Conf2002

2002-12-27 Thread Rasmus Lerdorf
Check it out of cvs. It is in the pres2 directory. On Fri, 27 Dec 2002, Tobias Schlitt wrote: > Hi folks! > > I saw the nice-looking presentationsystem, written in PHP and using XML, on > the PHP-Conference this year. I liked that very much and think it's must for > every PHP-related presentatio

Re: [PHP] OOP and object references, not copies - how to do?

2002-12-27 Thread Rasmus Lerdorf
PHP can pass references to objects around exactly the same way you pass references to normal variables. -Rasmus On Thu, 26 Dec 2002, Erik Franzén wrote: > Say the you are going to create a simple forum and you want to have a number > of classes: > > Class Sql - handles the DB inter

Re: [PHP] 4.3.0 compile error

2002-12-28 Thread Rasmus Lerdorf
Please include your configure flags. Chances are you need to add --with-zlib On Sat, 28 Dec 2002, Pentothal wrote: > I've tried to compile php 4.3.0 under RedHat 6.2 (libtool-1.4-8) and > I got this compile error: > > /bin/sh libtool --silent --mode=link gcc -export-dynamic -g -O2 > -avoid-versi

Re: [PHP] weird MySQL resource error

2002-12-28 Thread Rasmus Lerdorf
Because you are wiping out your $sponsor variable in that commented-out code. On Sat, 28 Dec 2002, James Brennan wrote: > I am getting a "Warning: mysql_fetch_row(): supplied argument is not a valid > MySQL result resource" error only when the commented-out code bellow > (starting from $id = bb_s

Re: [PHP] rounding...sort of

2002-12-28 Thread Rasmus Lerdorf
Use explode() please On Sun, 29 Dec 2002, Justin French wrote: > php.net/floor > > OR > > list($w,$d) = split('.','4.9'); > echo $w; > ?> > > Justin French > > > > on 28/12/02 8:49 PM, Peter Lavender ([EMAIL PROTECTED]) wrote: > > > Hi everyone, > > > > I have a nubmer: 4.1 but I only want the w

Re: [PHP] install problem

2002-12-30 Thread Rasmus Lerdorf
I don't see any errors there, just a couple of rather harmless warnings. On Mon, 30 Dec 2002, [EMAIL PROTECTED] wrote: > Hello ! > > I have problem with php-4.3.0 i can not install it on my 3 different rh7.0 servers. > > ./configure --prefix=/usr --with-config-file-path=/etc --disable-debug > --e

Re: [PHP] Text repeating problem

2002-12-30 Thread Rasmus Lerdorf
> Anyone seen this before? Any suggestions/things to try? It's driving > me mad... I would strongly suggest using Apache 1.3.x instead of Apache 2. Apache2+PHP simply is nowhere near stable. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] PHP 4.3 & Apache 2

2003-01-01 Thread Rasmus Lerdorf
It is still experimental. On Wed, 1 Jan 2003, Scott Seidl wrote: > Does the new release of PHP 4.3 have official support with Apache 2.x or is > it still considered developmental? > > Thanks > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/un

Re: [PHP] include/require vs performance

2003-01-03 Thread Rasmus Lerdorf
coming from. So if you have a test box and it is fast enough for you, then go with it. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loading Module not in php.ini

2003-01-03 Thread Rasmus Lerdorf
php.net/dl On Fri, 3 Jan 2003, Michael J. Pawlowsky wrote: > > > I doubt that I can do this... but as someone once told me, "There's no such thing >as a stupid question". > I guess they were never on any mailing lists! :-) > > So here it goes > > Is there anyway to load a module without ha

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Rasmus Lerdorf
Why don't you just use $_REQUEST['keyword'] ? On Sat, 4 Jan 2003, Michael J. Pawlowsky wrote: > Well I've been fixing up all my code (and other peoples which is worst) getting >ready to do an upgrade to 4.3. and turning off globals and warnings on. > > I very often move parameters that were once

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Rasmus Lerdorf
Didn't I answer this already? The Windows binary was built without the right #define to enable the GIF support. You will have to wait for the next Windows build before this will work. -Rasmus On Sat, 4 Jan 2003, Adam Plocher wrote: > Michael, thanks for the response.. > > On

RE: [PHP] Is this possible with php?

2003-01-11 Thread Rasmus Lerdorf
You should probably mention that this is called WebFolders in M$-speak and it actually works quite well when combined with the mod_dav and mod_digest Apache modules. -Rasmus On Fri, 10 Jan 2003, Timothy Hitchens (HiTCHO) wrote: > So you want to be able to have a directory that when saved

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
that page or not. By default, a page served up by PHP will not be cached. You can make it cacheable by sending an appropriate cache-control header. However, in this case I think you said that the page was not even a PHP one, just static HTML in which case it should have gotten cached. Have a

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
, as if the > page has been reloaded. Is this a normal effect of setting > register_globals OFF? Is there a way to continue caching? This should in no way be related to register_globals. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making alternate rows of different colour

2003-01-17 Thread Rasmus Lerdorf
ach_row) { echo '$row_data'; } -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Rasmus Lerdorf
1 the benefits are minor, so the motivation for people to put a whole lot of effort into fixing issue #1 is minimal. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Rasmus Lerdorf
On Thu, 23 Jan 2003, Jean-Christian Imbeault wrote: > Rasmus Lerdorf wrote: > > > > Because the server doesn't work very well yet. There are issues in the > > filter api and you can't really uses a threaded mpm as many of the > > 3rd-party libraries that ar

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Rasmus Lerdorf
On Thu, 23 Jan 2003, Jean-Christian Imbeault wrote: > Rasmus Lerdorf wrote: > > > > No, you didn't understand correctly. I specifically said the thread > > safety issues were in 3rd party libraries and not in PHP. > > Sorry, I thought by 3rd party libraries

Re: [PHP] PHP5 - Apache 2.0.44 - perchild mpm

2003-01-23 Thread Rasmus Lerdorf
> Will this combination work? > It would be great if we could use this combination for testing only > til the big brothers apache and php work fine with perchild. Perchild alone doesn't work at this point, so no, perchild+PHP won't work. -Rasmus -- PHP General

Re: [PHP] testing for negative numbers

2003-02-06 Thread Rasmus Lerdorf
if ($myArray["id"] < 0) echo "Negative"; else echo "Positive"; Prints "Negative" as expected. -Rasmus On Thu, 6 Feb 2003, Robert Samuel White wrote: > I realize this should be about the simplest thing in the world to do, > but for this reason

Re[2]: [PHP] compiling php 4.3.0 with gd

2003-02-06 Thread Rasmus Lerdorf
onfigure: error: libjpeg.(a|so) not found Somehow I doubt your jpeg library is somewhere under /usr/local/bin -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Rasmus Lerdorf
On Tue, 18 Feb 2003, Jason k Larson wrote: > use: > --with-mysql=/usr/lib/mysql No, in almost all cases it is wrong to have "lib" or "include" in a --with path. (including this time) -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Rasmus Lerdorf
paths. -Rasmus On Tue, 18 Feb 2003, PathFinder Software wrote: > Now I get a Config file error. > > apxs:Error: Config file /etc/httpd/conf/httpd.conf not found > make[1]: *** [install-sapi] Error 1 > make[1]: Leaving directory `/var/mnt/System/php-4.2.3' > make: *** [ins

Re: [PHP] Good grief

2003-02-18 Thread Rasmus Lerdorf
What is $list supposed to be? You probably want just $db and $table there. -Rasmus On Wed, 19 Feb 2003, John Taylor-Johnston wrote: > Yawn of frustration. > > $dbtable = "ccl.ccl_main"; > > list($db,$table) = explode(".",$dbtable); > echo $dbtable.&#x

[PHP] Re: [PHP-DEV] Re: [PHP] Threading

2003-02-18 Thread Rasmus Lerdorf
On Tue, 18 Feb 2003, Greg Donald wrote: > On Tue, 18 Feb 2003, Bruce Miller wrote: > > >Will PHP allow multiple-thread execution? > > PHP4 does not have thread support. Well, except for pear/PECL/threads, of course. -Rasmus -- PHP General Mailing List (http://www.php.ne

Re: [PHP] upgrade to 4.3.0 nearly doubled execution time

2003-02-22 Thread Rasmus Lerdorf
down. -Rasmus On Sat, 22 Feb 2003, Jason k Larson wrote: > I'm betting this is related... > > I upgraded to 4.3.0 on my production linux servers and began to have > serious socket connection issues. Rolling back to 4.2.3 cleared > everything up. I also saw an increase in sc

Re: [PHP] Checking for HTTP:// at the start of a string and more////

2003-02-28 Thread Rasmus Lerdorf
You don't need a regular expression. Look at the substr() function. -Rasmus On Sat, 1 Mar 2003, Philip J. Newman wrote: > I would like to check for HTTP:// at the start of a string and for at least > 1 . and a / at the end of a string. > > I have tried ereg, but the documen

[PHP] Re: IS there a way.

2003-02-28 Thread Rasmus Lerdorf
The industrial strength way to do this is to use the curl functions. See php.net/curl. You can alternatively just fsockopen yourself and issue the request and see what the first line of the response is. (by the way, a slightly shorter .sig would be appreciated) -Rasmus On Sat, 1 Mar 2003

Re: [PHP] Is PHP Reinstall required?

2003-02-26 Thread Rasmus Lerdorf
Just install the apache-devel package which is where the apxs tool lives. -Rasmus On Thu, 27 Feb 2003, Patrick LOK wrote: > I have to uninstall my Apache 2.0.x that came along with RedHat 8.0 because > the httpd (rpm) in RH8.0 does not have Apache apxs (why dont they include > it). &g

Re: [PHP] 'make' PHP4.3.1 returns the use of function`tempnam' isdangerous --- WHY?

2003-03-02 Thread Rasmus Lerdorf
> When I tried to 'make' PHP-4.3.1, it returns warning message and died. I am > using RH8.0 + Apache 2.0.44 It didn't die, that is simply the end of the build. Warnings aren't fatal. (Please do not cc all the lists) -Rasmus -- PHP General Mailing List (http://ww

Re: [PHP] short_open_tags = On

2003-03-04 Thread Rasmus Lerdorf
you are mixing XHTML or XML with PHP you could run into some difficulties. Nothing that is all that hard to get around. I tend to always use short_tags myself and simply echo ""; if I need to output an xml revision tag, for example. -Rasmus On Tue, 4 Mar 2003, Keith Mastin wrote

Re: [PHP] php forgetting variables very easily

2003-03-04 Thread Rasmus Lerdorf
> Ok, this works fine for me. However it doesn't seem > to work when main.php and new.php have html in them. You are doing something wrong then. Show us a simple example that doesn't work. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] RedHat 8.0 MySQL Problem

2003-03-04 Thread Rasmus Lerdorf
service, you really need to upgrade your web server to Apache 1.3.27. -Rasmus On Tue, 4 Mar 2003, Darren Young wrote: > I have an app that runs just fine on RedHat 7.2 with compiled Apache and > PHP along with MySQL binaries installed from MySQL's site. I have a new > machine runn

Re: [PHP] cookie secure argument?

2003-03-04 Thread Rasmus Lerdorf
Means the cookie will only be sent over an HTTPS connection. On Wed, 5 Mar 2003, Hans Prins wrote: > Can anyone tell me what the secure argument in the setcookie() function > does? > > setcookie ( string name [, string value [, int expire [, string path [, > string domain [, int secure]) > >

Re: [PHP] 2 PHP 4.2.2 issues: server keeps working after clientdisconnects, session_start() blocks until other session scripts complete

2003-03-05 Thread Rasmus Lerdorf
ss indicator during your processing then it would work. > 2)session_start() blocks This sounds odd. session_start() should not be blocking. What sort of backend datastore are you using for your sessions? -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP static module on Apache 2.0 HPUX 11

2003-03-10 Thread Rasmus Lerdorf
> (All the help on php.net about HP has does not address this issue. Also, > there is not docs on how to install PHP/APACHE2.0 as static.) That's because we do not support a static build for Apache2. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Threading objects

2003-03-12 Thread Rasmus Lerdorf
> All I'm really asking is how do you initiate threading with PHP? > A small example would be nice You don't. This is a web scripting language, not Java. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] open_basedir

2003-03-12 Thread Rasmus Lerdorf
open_basedir is not user-configurable. That would sort of defeat its purpose. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] open_basedir

2003-03-12 Thread Rasmus Lerdorf
ither the php.ini file or the httpd.conf. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Threading objects

2003-03-12 Thread Rasmus Lerdorf
So your problem has nothing to do with threading. What you need an an asynchronous way to connect to multiple sockets and deal with responses as they become available. See php.net/socket_select -Rasmus On Thu, 13 Mar 2003, Kris wrote: > Is it possible to some how thread a php script th

Re: [PHP] Apache 2.0 and PHP

2003-03-14 Thread Rasmus Lerdorf
e reason for this Warning? The combination is simply not production-quality yet. It has not had the attention and Q&A that Apache1/PHP has had, and there are also known issues, especially on UNIX with the combination. -Rasmus -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] PHP 5 and Zend Optimizer/Accelator

2003-07-02 Thread Rasmus Lerdorf
Nope, no plans. On Wed, 2 Jul 2003, [-^-!-%- wrote: > > > Are there any plans to bundle PHP 5 with Zend Optimizer/Accelerator? > (whichever you need to view Zend Encoded files) > > Will it have any support for encrypted files (like those created by Zend > Encoder) ? > > > > =P e p i e D e s i g

RE: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Rasmus Lerdorf
hreaded Apache2. For now, I really see no reason not to simply use Apache1 if you want a robust, fast and stable web server. -Rasmus On Fri, 4 Jul 2003, Ow Mun Heng wrote: > Does anyone have any idea or could give me an idea why php & apache 2.0 is > not 'good' together? >

Re: [PHP] include/require inside of function

2003-07-04 Thread Rasmus Lerdorf
ach($arr as $var=>$val) $GLOBALS[$var] = $val; } -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Snarl, hiss, growl (frustration)

2003-07-04 Thread Rasmus Lerdorf
abase and an atomic count=count+1 query. -Rasmus On Fri, 4 Jul 2003, Kyle Babich wrote: > No, because if i did that the counter would increment no matter what the > IP address is. The way I have it the counter will only increment if it > is a new ip address to the site. I just fixed i

Re: [PHP] Snarl, hiss, growl (frustration)

2003-07-04 Thread Rasmus Lerdorf
On Fri, 4 Jul 2003, Robert Cummings wrote: > On Fri, 2003-07-04 at 12:44, Rasmus Lerdorf wrote: > > The difference is that you are getting a string from the file and not > > casting it to an integer. You could also have fixed it by doing: > > > > $counter = (int) fre

Re: [PHP] Snarl, hiss, growl (frustration)

2003-07-04 Thread Rasmus Lerdorf
ent works fine (unless of course when he created the file to begin > he had a newline - something I did not do in my test :) which is exactly what it looked like he did since he said that switching to $counter+=1; fixed it for him which would force it to be an integer. -Rasmus -- PHP General Ma

Re: [PHP] Snarl, hiss, growl (frustration)

2003-07-04 Thread Rasmus Lerdorf
ds you ever edited and saved the file with an editor, you would have gotten one in there. The proof of this is that your code didn't work. If the file really only had a number in it, then $counter++ would have worked. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-04 Thread Rasmus Lerdorf
ations they provide. If you are going to use it as a web server and you install known good versions of Apache and PHP, then you have taken RH9 out of the loop for your critical components and it should be fine. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] upload file size corruption?

2003-03-16 Thread Rasmus Lerdorf
> I am going nuts reinstalling over and over again on different computers > and keep getting this error. I am using 2.0.40 http (I know > experimental, but don't tell me that :) ) Why not? Since this is the problem. Upgrade to Apache 1.3.27 and everything will be fine. -Ra

Re: [PHP] Getting false positive on strpos ... despite doublecheck...HELP!

2003-03-17 Thread Rasmus Lerdorf
t;\r\n"," "); echo "Link: "; echo "http://".trim($print)."\" target=\"_new\" class=\"ylwlink\">".trim($print)."\n"; continue; } if(substr($line,0,9)=='#comment:') {

Re: [PHP] Getting false positive on strpos ... despite doublecheck...HELP!

2003-03-18 Thread Rasmus Lerdorf
> Do they cause the same behaviour as an if ... elseif structure??? Yes, continue simply discards the rest of the statements inside a loop and goes to the next iteration. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Rasmus Lerdorf
Well, check the error. Get rid of the header() call and just look at the output. On Thu, 27 Mar 2003, Reuben D. Budiardja wrote: > > Hello, > I have a script that creates image using the gd library that is bundled with > the latest php-4.0.3 on Redhat Linux / Apache as apache mod. Everything

Re: [PHP] imagejpeg gives error

2003-03-27 Thread Rasmus Lerdorf
Do you have libjpeg installed? You might need to add --with-jpeg-dir=/usr assuming your libjpeg is in /usr/lib, for example. -Rasmus On Thu, 27 Mar 2003, Reuben D. Budiardja wrote: > On Thursday 27 March 2003 10:42 pm, Rasmus Lerdorf wrote: > > Well, check the error. Get rid of t

Re: [PHP] Apache vs. IIS

2003-03-28 Thread Rasmus Lerdorf
It's not as fun when you have this same guy sending that exact same message to multiple developer lists. Don't worry though, there won't be more of them coming through on the php lists. -Rasmus On Fri, 28 Mar 2003, Kevin Stone wrote: > As much as I disaprove of off topic

Re: [PHP] GNU & Open Source

2003-03-30 Thread Rasmus Lerdorf
This is a list for questions about PHP. Look in the titlebar of your browser when you go to www.php.net to see what the acronym stands for. Beyond that, please take this stuff somewhere else. -Rasmus On Sun, 30 Mar 2003, John Taylor-Johnston wrote: > Where does PHP.net stand? Is it GNU

Re: [PHP] Re: parse_str()

2003-04-02 Thread Rasmus Lerdorf
the workaround? Your assumption is way wrong. $_GET will only contain data that actually passed through a GET-method request. Decoding a URL-encoded string doesn't suddenly make it GET data. It will simply create entries in your global symbol table, or alternatively you can pass a second

Re: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Rasmus Lerdorf
There isn't. On Fri, 4 Apr 2003, Jason Smith wrote: > Hi, > > Need some information as I cant seem to find it in the manual or online. > > We are running apache 2.0.39 on redhat 7.3 and would like to run PHP on > the same server. > I am having trouble finding out if there is a stable version that

Re: [PHP] custom error handling + fopen

2003-04-04 Thread Rasmus Lerdorf
You can't really separate them. In your error handler you can check what type of error it was and treat them differently. On Sat, 5 Apr 2003, Dan Rossi wrote: > hi guys i have a custom error handler setup within a class , i can trigger > it with trigger_error , also i am sending my ustom trigger

Re: [PHP] Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Rasmus Lerdorf
I don't see a parse error, but the order of things is not going to be what you want because it is going to run the function and thus do the echo inside alarmLightYMD() before it does the outermost echo. If it had done anything else it would really have been a bug. -Rasmus On Fri, 4 Apr

RE: [PHP] custom error handling + fopen

2003-04-04 Thread Rasmus Lerdorf
I am not sure if you are asking me a question or not here. But no, like I said, when you set a custom error handler, that error handler is going to get called for all catchable errors. -Rasmus On Sat, 5 Apr 2003, Dan Rossi wrote: > apolgies sorry i removed a check for E_WARNING > >

RE: [PHP] Re: Found a bug in 4.2.3 re: and echo vs.

2003-04-04 Thread Rasmus Lerdorf
echo "",foo(),""; The comma syntax for echo is basically a shortcut for executing echo multiple times. The above is equivalent to writing: echo ""; echo foo(); echo ""; In this case things will be output in the correct order as

Re: [PHP] Running scripts in non-php file

2003-04-04 Thread Rasmus Lerdorf
That should be all you need. Make sure that something isn't re-assigning those extensions later on in your conf file. Perhaps you changed the wrong addtype? Liek a commented out one? -Rasmus On Fri, 4 Apr 2003, Tom Tsongas wrote: > Hi folks. > > This will probably sound

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Rasmus Lerdorf
I usually just use $_SERVER['SERVER_PORT'] -Rasmus On Sat, 5 Apr 2003, Alexander Weber wrote: > Unfortunally is not set. It's like the variable does not exist, because when > I extract the varaible $_SERVER with foreach I don't get HTTPS as key, only > SERVER_PROT

Re: [PHP] Apache SetHandler

2003-04-05 Thread Rasmus Lerdorf
This can be done using the apache_hooks sapi module. Look in sapi/apache_hooks in the 4.3 sources for details. -Rasmus On Sat, 5 Apr 2003, Zoff wrote: > Tom Rogers wrote: > > Hi, > > > > Saturday, April 5, 2003, 6:29:50 AM, you wrote: > > Z> Hi ! > > > &g

Re: [PHP] Force no Cache

2003-04-05 Thread Rasmus Lerdorf
header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); header('Expires: Mon,26 Jul 1980 05:00:00 GMT'); On Sat, 5 Apr 2003, [iso-8859-1] Davíð Örn Jóhannsson wrote: > Is there any way in php to disable the users cache so that every time > you reload you fetch the newest

Re: [PHP] If else.. display no picture..

2003-04-05 Thread Rasmus Lerdorf
I would help if you told us which line the error was on On Sat, 5 Apr 2003 [EMAIL PROTECTED] wrote: > Hi, > > I'm trying to do the following.. When $stadpict is filled in it must display the > picture (only the path to the picture is stored in Mysql). But when the string > ($stadpict) is empty

  1   2   3   4   5   6   7   8   9   10   >