RE: [PHP] BUG: require_once() or die(); = fatal error

2003-11-29 Thread Rasmus Lerdorf
. Not a critical bug or a show stopper, but I do still feel it is a bug. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 8:55 PM To: Daevid Vincent Cc: [EMAIL PROTECTED] Subject: Re: [PHP] BUG: require_once() or die

Re: [PHP] The clock issue in this forum!

2003-11-28 Thread Rasmus Lerdorf
Why are you sorting your email on the sender's timestamp and not the arrival timestamp in your mailbox? Or is this really another thing Outlook can't figure out? -Rasmus On Thu, 27 Nov 2003, Kim Steinhaug wrote: Im using Outlook Express reading theese messages and I think the newsreader

RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Rasmus Lerdorf
Just to add an authoritative answer here. Mucking up the reply-to header is simply wrong. I don't really care what arguments you come up with, it makes no technical sense. The list has been configured this way for years and years and believe me, it is the safest and most flexible configuration.

RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Rasmus Lerdorf
On Wed, 26 Nov 2003, Dave G wrote: Just to add an authoritative answer here. Mucking up the reply-to header is simply wrong. I don't really care what arguments you come up with... This seems to describe the tone of the debate. The idea of an authority on a matter that is incapable of

RE: [PHP] Add Reply-To to this list(s)

2003-11-26 Thread Rasmus Lerdorf
On Wed, 26 Nov 2003, Nigel Jones wrote: You have missed in my opinion the most important thing, many do NOT want to throw money down the drain because their Client Doesn't support mailing lists ok. IMHO we'd be better off having a PHP Forum on php.net and scrub the Mailing List altogether.

Re: [PHP] PHP Java extension--hopeless?

2003-11-26 Thread Rasmus Lerdorf
On Wed, 26 Nov 2003, Kelly Hallman wrote: I am trying to find help or information on running the Java extension with PHP under Apache on Redhat Linux using a Sun JVM. I am aware that the PHP documentation says that the Java extension is experimental. I am also aware that people say the ISAPI

Re: [PHP] Problem with mail() function and exec

2003-11-26 Thread Rasmus Lerdorf
Do you have /bin/sh inside your jail? On Thu, 27 Nov 2003, th3 th1nk3r wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a great problem. I hava an apache 1.3.28 + php 4.3.3 installation into a chroot jail in my Linux box. Into the jail I have installed postfix (with his

Re: [PHP] BUG: require_once() or die(); = fatal error

2003-11-26 Thread Rasmus Lerdorf
This code doesn't make much sense. By definition, if require cannot open a file it throws a fatal error, so you would never hit the or case anyway. Hence there is no return code from require and you can't write code like this. If you want to test the return code you need to use 'include'

Re: [PHP] Invalid Library??

2003-11-26 Thread Rasmus Lerdorf
Your steps look ok. Try a make clean and rebuild your mysql.so and see if that fixes it. If not, consider just compiling it in statically. Do you have a requirement for a shared mysql.so for some reason? Also, note that Apache 2.x + PHP is still not a recommended platform for PHP. If you use

Re: [PHP] Help with fread()

2003-11-26 Thread Rasmus Lerdorf
Why not just fread($pagehandle,32768) ? On Wed, 26 Nov 2003, Nick Wilson wrote: Hi all, I'm using the code below to open webpages and read them into a variable. I got the example from the manual but am confused as to how to limit how much of the page to read. Ideally, I just want to read

Re: [PHP] Variable

2003-11-26 Thread Rasmus Lerdorf
I couldn't parse this question. How about posting a code snippet? On Thu, 27 Nov 2003, Jorge Infante Osorio. wrote: Hi every one. I am new in this List. My problem is: I determinate the value of a variable in the botton of one page, and I want to use it in the middle of the page,

Re: [PHP] read session data without starting session

2003-11-26 Thread Rasmus Lerdorf
I don't really understand why you are looping through things there. A simple unserialize() on everything after the session_name| part will work just fine on arrays and everything else as well. -Rasmus On Wed, 26 Nov 2003, Andrew Warner wrote: I have a script that browses a sessions table and

[PHP] Korean mbstring settings?

2003-10-22 Thread Rasmus Lerdorf
Any Korean users using --with-mbstring=kr ? What do your mbstring.* settings in your php.ini file look like? I am assuming you don't need any output encoding translation but are you using input encoding translation? Or if you aren't using mbstring at all, but iconv or something else, I'd like

Re: [PHP] addslashes() vs. magic_quotes_gpc

2003-10-19 Thread Rasmus Lerdorf
If you are doing both addslashes() and have magic_quotes_gpc turned on, then yes, you are double-escaping things. From a performance-perspective I doubt you could measure much difference, but I suppose doing it through magic_quotes_gpc would be faster assuming you need to escape all your GPC

Re: [PHP] PHP output|Buffer, PLEASE ADVISE

2003-09-21 Thread Rasmus Lerdorf
On Sun, 21 Sep 2003, nabil wrote: In general , when you open an html file , the browser start to display and draw the tables, then start to display the pictures (on slow internet connection).. but when you make your html code inside an php the output will be different, it will buffer

Re: [PHP] session_start() || shell access problem......

2003-09-21 Thread Rasmus Lerdorf
On Sun, 21 Sep 2003, CF High wrote: Well, is there a way to pass params to file_to_be_executed in command line? For example: ? $my_param = 'my_include_path'; $text = `usr/local/bin/php /path/to/my/php/page.php`; ? Somehow I need $my_param to be passed to page.php (the file to

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

2003-07-04 Thread Rasmus Lerdorf
Apache2 has a number of different modes it can work in. These modes are called MPM's. The default MPM is called Worker which is a multithreaded model. PHP, mod_perl, mod_python, and any other similar technology which links directly into the httpd processes will need to be perfectly threadsafe

Re: [PHP] include/require inside of function

2003-07-04 Thread Rasmus Lerdorf
On Fri, 4 Jul 2003, Aric Caley wrote: Is there anyway to include a file inside of a function and have the included stuff be global? For instance if I defined a class or a function in that include file, I want to be able to use that class outside of the function. On the documentation for

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

2003-07-04 Thread Rasmus Lerdorf
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) fread(...); Note however that you have a nasty race condition in your script. If you get concurrent hits they will all read the same counter

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) fread(...); The cast isn't necessary

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

2003-07-04 Thread Rasmus Lerdorf
On Fri, 4 Jul 2003, Robert Cummings wrote: Undoubtedly the above will work as we both know, the output will be 123; however, if you look at the original code in question, there is no \n tailing the output written to the counter file and thus the increment works fine (unless of course when he

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

2003-07-04 Thread Rasmus Lerdorf
On Fri, 4 Jul 2003, Kyle Babich wrote: FYI there were no newlines involved in my program. (go back to the message and read the code) How did you create the file in the first place? Most editors will automatically add a carriage return. Even if you had your code create it, if afterwards you

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

2003-07-04 Thread Rasmus Lerdorf
On Fri, 4 Jul 2003, Jeff Schwartz wrote: OK, so Apache 2 is out. Is there any reason not to go with RH 9.0? Any known problems? It should be fine. Linux is pretty much Linux. The biggest differences between distros and distro versions are at the GUI level and in the set of applications they

RE: [PHP] php5 and mysql licences

2003-06-30 Thread Rasmus Lerdorf
On Mon, 30 Jun 2003, Dan Joseph wrote: Is the mysql client library going to be put back in for future betas? Or are we mis-reading the change log and its still there? There will always be MySQL support in PHP of one kind or another. The only change in PHP5 is that we are no longer

Re: [PHP] php-general as REPLY TO

2003-06-30 Thread Rasmus Lerdorf
Guys, this will not change. Look back through the archives. It has been discussed a couple of times. If you don't like it, unsubscribe. Sorry to be blunt, but this is a waste of bandwidth. Keep in mind that many people post without being subscribed to the list, so only sending a reply to the

Re: [PHP] Yahoo Stuff.

2003-06-30 Thread Rasmus Lerdorf
Someone had subscribed [EMAIL PROTECTED] to php-general. I got rid of it. -Rasmus On Mon, 30 Jun 2003, Jeremy Thibeaux wrote: I am getting the same message, but I hadn't made the connection. Is anyone else seeing this? Jeremy --- Daryl Meese [EMAIL PROTECTED] wrote: Does anyone know

Re: [PHP] php-general as REPLY TO

2003-06-30 Thread Rasmus Lerdorf
On Mon, 30 Jun 2003, John Manko wrote: Keep in mind that many people post without being subscribed to the list, This is false. In fact, I tried sending a message to the list from another account that wasn't subscribed, and I got a reply stating the following: Because you are not

RE: [PHP] 'Cannot send Headers' Problem!! MOre..

2003-06-28 Thread Rasmus Lerdorf
First, where is your header call? And when you do a view source on the page with the error, what do you see before that error is shown? -Rasmus On Sat, 28 Jun 2003, PHPSpooky wrote: Glory! Well so far all solutions have failed.. I gave the include functions as the first line of my

Re: [PHP] PHP Certification

2003-06-26 Thread Rasmus Lerdorf
On Thu, 26 Jun 2003, Oscar F wrote: Does anybody know of any plans for an official certification path for PHP?. Are they launching something like that anytime soon?. Just curious. Who are they ? Do you mean the developers of PHP in general? Nope, no chance. We write code, we do not manage

Re: [PHP] 4.3.2 -- does connection_status() actually work?

2003-06-12 Thread Rasmus Lerdorf
On Thu, 12 Jun 2003, Per Jessen wrote: Shouldn't the following work - or rather why doesn't it : ignore_user_abort(0); for( $i=100; $i; $i-- ) { if ( connection_status() ) exit(0); print blurp.br/; flush();

Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
Apache-1.3.x with whatever version of PHP you want. -Rasmus On Tue, 10 Jun 2003, Billy wrote: Thx a lot John. Red Hat 8.0 is bundled with Apache 2 + php 4.2 if i needed to use Red Hat 8.0, except upgrading both program to the latest version (which as u saidnot recommended) , any

Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
On Mon, 9 Jun 2003, Michael A Smith wrote: Get Apache 1.3.27 (I think). and PHP. Follow the instructions on the PHP site! I found that those are the only one's I could get to work. Any PHP version using --with-apxs=/usr/local/apache I couldn't get to work. Also take a look at what you'll need

Re: [PHP] post data?

2003-06-09 Thread Rasmus Lerdorf
Well, this is how millions of people build PHP. It works pretty well. -Rasmus On Mon, 9 Jun 2003, Michael A Smith wrote: Yes I know, but I've never been able to get it to work. I just followed the instructions on the PHP site. -Michael On Mon, 2003-06-09 at 10:34, Rasmus Lerdorf wrote

Re: [PHP] Downloading PHP

2003-06-07 Thread Rasmus Lerdorf
Try a different mirror. On Sat, 7 Jun 2003 [EMAIL PROTECTED] wrote: Hello All, I have a problem with downloading new PHP 4.3.2. Whenever I try to download it from whichever mirror I got a HTTP 404 error. Could someone tell why? Thanks Milan -- PHP General

Re: [PHP] Include Bug?

2003-06-06 Thread Rasmus Lerdorf
Uh, http://www.walkereffects.com/test/include.php is not a full path name, that is a URL. That will make an HTTP request to your web server for /test/include.php which will of course get parsed by PHP and you will only get the parsed output which means you won't see any variables or any PHP tags

RE: [PHP] Re: Using register_globals

2003-06-05 Thread Rasmus Lerdorf
On Wed, 4 Jun 2003, Jay Blanchard wrote: [snip] Have register globals set to ON is one way of leaving your script open to being exploitable. [/snip] Please explain this, how does it make it more exploitable? I think that this is only true if the code is sloppy. Correct, if you properly

Re: [PHP] Re: Using register_globals

2003-06-05 Thread Rasmus Lerdorf
On Wed, 4 Jun 2003, Leif K-Brooks wrote: It's true that register_globals being on only makes sloppy code more insecure. Most people aren't going to write perfect code, though. It's incredibly annoying to have to unset every variable that shouldn't be from an outside source. Even if you do

RE: [PHP] Re: Using register_globals

2003-06-05 Thread Rasmus Lerdorf
On Wed, 4 Jun 2003, Jay Blanchard wrote: [snip] On Wed, 4 Jun 2003, Jay Blanchard wrote: [snip] Have register globals set to ON is one way of leaving your script open to being exploitable. [/snip] Please explain this, how does it make it more exploitable? I think that this is only

Re: [PHP] $_POST array

2003-06-02 Thread Rasmus Lerdorf
You should read this section of the manual: http://us2.php.net/manual/en/language.types.string.php Scroll down the the Variable parsing title and read from there and all will be clear. -Rasmus On Sun, 1 Jun 2003, Steven Farrier wrote: I have tried using $_POST array variables in the

Re: [PHP] PHP and POP3

2003-06-02 Thread Rasmus Lerdorf
Sure, all the imap_* functions in PHP also work for POP3. Read through http://php.net/imap On Sun, 1 Jun 2003, Erich Kolb wrote: I am somwhat aware of the ability to access email using php and IMAP, but is it at all possible to download email via pop3? -- PHP General Mailing List

Re: [PHP] Add Up Prices in Array

2003-06-01 Thread Rasmus Lerdorf
If they are coming out of your database, why not get your database to do it for you by calling SUM() in your query? On Sun, 1 Jun 2003, Ralph wrote: I'm querying prices off a database then storing these in an array, I want to add these up to get the grand total, how would I go about adding up

Re: [PHP] mirror search is going to google !!!

2003-06-01 Thread Rasmus Lerdorf
We are reworking our local search code. It was killing the server. Pointed it at Google temporarily. -Rasmus On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote: the idiot mirror search is going to google instead and not giving me results

Re: [PHP] RE: connection_aborted was [PHP] trikky authenticationquestion

2003-06-01 Thread Rasmus Lerdorf
On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote: how can i get this to work ?? if (connection_aborted()) $this-db-query(UPDATE users SET logged_in=0 WHERE userID=$this-userID); Did you read the connection handling chapter in the manual?

Re: [PHP] OOP question

2003-06-01 Thread Rasmus Lerdorf
On Sat, 1 Jun 2003, Jackson Miller wrote: Is it possible to reference two instances of an object at once with a single variable name while retaining the ability to reference the objects seperately? No chance. Well, you could hack it with some really fancy object overloading, but in general,

Re: [PHP] Shipping Rates

2003-06-01 Thread Rasmus Lerdorf
Better approach in what sense? From a performance perspective you are not going to beat a specific set of if conditions unless there is an distinct formula you can apply. I will assume there is no simple mathematical relationship for your full set of data and what you are really looking for is a

RE: [PHP] RE: connection_aborted was [PHP] trikky authenticationquestion

2003-06-01 Thread Rasmus Lerdorf
-query(UPDATE users SET logged_in=0 WHERE userID=$this-userID); if i close the browser its not setting the fiel to 0 meaning they are logged out -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2003 5:46 PM To: [EMAIL PROTECTED] Cc: [EMAIL

Re: [PHP] Sessions can be dangerous

2003-05-31 Thread Rasmus Lerdorf
On Fri, 30 May 2003, George Whiffen wrote: 1. Heterogeneous Code Environments php session data is not easily accessible from non-php code e.g. Perl/C/ASP etc. In contrast, either client-stored data e.g. cookies, hidden posts, get variables, or data stored in a structured database table,

Re: [PHP] making sense of time(), date() and strtotime()

2003-05-30 Thread Rasmus Lerdorf
If you have your date components split up already the way you do, you should be using mktime(). Next you have to determine which timezone your information is from. If you consider your month/day/year values to be GMT values, then use gmmktime() to generate your timestamp. Otherwise, make sure

RE: [PHP] Variables don't pass... *sniff*

2003-05-30 Thread Rasmus Lerdorf
On Thu, 29 May 2003, Wendell Brown wrote: On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS] wrote: Well, how about references, then? (And me, personally, I'd use isset() rather than is_array().) if (isset($_POST)): $POST = $_POST; else: $POST =

[PHP] Dealing with spam on the list - please read

2003-05-29 Thread Rasmus Lerdorf
Folks, occasionally the odd spam message is going to slip through our various safeguards and spam will go out on the PHP lists. We are working on improving things on our end to reduce the amount that slip through, but we also need your help with the following: 1. Do not respond to the list

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_PROTOCOL. I'm using PHP 4.3.1 as

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 ! Z what i want is to write something in PHP which does

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 then

RE: [PHP] Force no Cache

2003-04-05 Thread Rasmus Lerdorf
On Sat, 5 Apr 2003, John W. Holmes wrote: header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); header('Expires: Mon,26 Jul 1980 05:00:00 GMT'); Kind of a follow on question to this. If you use a method like this on public web pages, does anyone know if it'll

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Rasmus Lerdorf
PORT is not always 80 using HTTP (not HTTPS). So this way is not really secure. Alex Rasmus Lerdorf [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I usually just use $_SERVER['SERVER_PORT'] -Rasmus On Sat, 5 Apr 2003, Alexander Weber wrote: Unfortunally

Re: [PHP] HTTP or HTTPS

2003-04-05 Thread Rasmus Lerdorf
there is another way? JScript, xml or anything other? Thanx so far, Alex Rasmus Lerdorf [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Presumably you know the HTTPS port on your server. Anything not SSL is going to be straight HTTP. The point here is that SSL happens a layer

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 triggers

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

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 2003,

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

2003-04-04 Thread Rasmus Lerdorf
You are getting completely mixed up. Simplifying your example: function foo() { echo foo; } $a = TD.foo()./TD; Will you agree that this is bogus code? foo() is not going to return anything, so the resulting value of $a is going to be TD/TD. Correct? But while that assignment

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 like a stupid question,

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 runs

Re: [PHP] Re: parse_str()

2003-04-02 Thread Rasmus Lerdorf
Jose [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I might be wrong here, but with the code below I would expect $_GET to be filled and the script to output the next line: ?php $example_string = 'action=kickitem=me'; parse_str($example_string); var_dump($_GET);

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 or

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 posts... that was

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 the header() call

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] Getting false positive on strpos ... despite doublecheck...HELP!

2003-03-17 Thread Rasmus Lerdorf
case strpos($line,#date:) == 0 strpos($line,#date:) !== false: You can just do a === 0 check here, you don't need the second check to make sure it isn't false. However, that's not really how you use a switch expression anyway. The expressions in the case statement should be

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. -Rasmus -- PHP General

Re: [PHP] Apache 2.0 and PHP

2003-03-14 Thread Rasmus Lerdorf
On Fri, 14 Mar 2003, Michael Aaron wrote: Sorry if this has been answered before but I can not find it anywhere: Why does the PHP docs. state: Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows. What is the reason for this Warning? The

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
My host currently has open_basedir() enabled, and unfortunately, they don't know how to disable it :p I'd like open_basedir() disabled because it would make my life easier, I can hide certain files underneath the web root. So I've done some quick research. I'm looking at the ini_set()

Re: [PHP] open_basedir

2003-03-12 Thread Rasmus Lerdorf
On Wed, 12 Mar 2003, Alex wrote: the php.ini file is also not user configurable. I think i found the place in my own php.ini file though where the open_basedir value would be changed though :/ Right, by design, open_basedir can only be changed by the administrator by modifying either the

Re: [PHP] Threading objects

2003-03-12 Thread Rasmus Lerdorf
. Thanks Kris - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Kris [EMAIL PROTECTED] Cc: W. Enserink [EMAIL PROTECTED]; PHP List [EMAIL PROTECTED] Sent: Thursday, March 13, 2003 1:04 AM Subject: Re: [PHP] Threading objects All I'm really asking is how do you

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, visit:

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
Hello all, I have 2 questions that have come up because I have several long reports that can take 1-2 minutes to run. These are run from any web client thru our linux - apache - php - mysql system. 1)server keeps working after client disconnects If a php script is running and it may take

Re: [PHP] short_open_tags = On

2003-03-04 Thread Rasmus Lerdorf
No, there are no security implications. In fact, it is arguably more secure to have short tags enabled as it is then less likely for someone to accidentally expose their PHP source code since everything between ? and ? will be parsed by PHP. However, keep in mind that XHTML and XML also uses

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:

Re: [PHP] RedHat 8.0 MySQL Problem

2003-03-04 Thread Rasmus Lerdorf
Have you actually enabled the MySQL extension? You should have a line in your php.ini that says: extension=mysql.so By the way, the Apache that comes with RH8 when combined with PHP does not give you a production-quality solution. So if you are running this thing for any sort of important

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]) thx

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://www.php.net/) To unsubscribe,

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 documentation is not too clear

[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). I need apxs

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

2003-02-22 Thread Rasmus Lerdorf
Yes, I have noticed some performance issues as well, but we need to nail it down better before we can start really going after this. Could we call on the collective masses of php-general users to run some benchmark tests? Just build yourselves a libphp4.so for both 4.2.x and 4.3.x and switch the

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
Did you move things around after installing Apache? The apxs program needs to know where these various Apache files are. Somehow your apxs is out of synch with where your files actually are. Either re-install using whatever mechanism you use or edit your apxs script and teach it about your

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.'br'.$list[$db].'br'.$list[$table].'hr'; echo

[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.net/) To unsubscribe, visit:

Re: [PHP] testing for negative numbers

2003-02-06 Thread Rasmus Lerdorf
Please provide a complete test script. Are you perhaps not realizing that array indices along with all variables in PHP are case sensitive? $row[ID] and $row[id] are not the same thing. The trivial test of your example: $myArray[id] = -2; if ($myArray[id] 0) echo Negative;

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

2003-02-06 Thread Rasmus Lerdorf
I know that is what it means and I do know where libjpeg.so and libjpeg.a are on the server. I also have pointed the configuration to where they are with this --with-jpeg-dir=/usr/local/bin but no mater what I do it still can not find them.and keeps giving me the error configure: error:

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 Mailing List (http://www.php.net/)

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

2003-01-22 Thread Rasmus Lerdorf
Henry wrote: what issues for example? I do know I can successful install php in module with apache2.0.43 without error messages, also execution was successful can you tell me what issues did you see? A successful install means nothing. My question is basically, does Apache2 work with

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 are commonly linked into PHP are simply

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 you meant libraries that PHP is dependent upon

Re: [PHP] Making alternate rows of different colour

2003-01-17 Thread Rasmus Lerdorf
I put the output of the database query in a table. It works fine. Now I have a need to make the alternate rows of a different color. Can someone please help me with the code? $cols = array('#ff','#00ff00'); $i = 0; while(your_loop_to_output_each_row) { echo 'tr

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
Thanks for your response but I don't think this is what I was asking; could be wrong though. I re-read your post and, of course, you are right. I mis-read it! I have heard of this Back button and data missing and I'm sure its come up before, but I don't remember the answer. I can only

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
I'm using I.E. 6. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my form has been cleared, i.e.., as if the page has been

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 to it

<    1   2   3   4   5   6   7   8   9   10   >