[PHP] empty php.ini

2002-09-02 Thread timo stamm
Hi, I am new to PHP. I am running the module version 4.2.2 from Marc Lyanage (entropy.ch) on OS X 10.1 and noticed that my /usr/local/lib/php.ini is empty!? Is there a way -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: posting form values doesn't work

2002-09-03 Thread timo stamm
Hi Øystein, PHP is interpreted on the server side, JS on the client side. I guess thats what you need to realize. Try starting with less complex stuff and just concentrate on one language at a time, in the beginning. Timo Am Montag den, 2. September 2002, um 17:49, schrieb Øystein

Re: [PHP] Safe_Mode problem....

2002-09-03 Thread timo stamm
Hi Jim, I had the very same strange issue with a cfg var not changing. It worked after using ini_restore(). (I played around with ini_set() before. Did you as well?) I am not sure if it has anything to do with it. It sounds pretty illogical. But PHP ignoring a setting in php.ini sounds

Re: [PHP] RE : include interpreted php file

2002-09-03 Thread timo stamm
all: I just noticed that I was not replying to the list, but to the posting email adresses. I just switched to another email client and was not aware of this. My apologies :-( --- You, could it be that you want to do the following?: ?php // primary php $foo = $_REQUEST[foo] //

Re: [PHP] mysql string comparison not working

2002-09-03 Thread timo stamm
Hi David, in PHP, you can not access associative arrays with index numbers (and your mysql row arrays will be of the associative kind). But Chris posted a kludge recently: //snip Just for kicks ... here's something pretty ugly (I'd never use it), but neat if you're interested (or somehow

Re: [PHP] sorting array question

2002-09-04 Thread timo stamm
Hi Javier, I think parsing the listing into a multidemensional array is the answer. But actually, I do not yet know how that would look like in PHP. But I can give you an example of how it is done in ActionScript (Ecmascript). file_arr[n] = [name, date] Now you can sort file_arr by

Re: [PHP] continuation to the ftp story

2002-09-04 Thread timo stamm
Hi Victor, the error code (you are currently suppressing) should give you some directions. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limit in a loop function to prevent server load

2002-09-04 Thread timo stamm
Hi Electroteque, Am Dienstag den, 3. September 2002, um 10:14, schrieb Bas Jobsen: hi there i was wondering if there was a way to limit the ammount of items in a loop to execute sleep then execute the rest of the items to prevent server load ? for($i=0;...) {

Re: [PHP] Help with inserting Flash into MySQL database

2002-09-05 Thread timo stamm
Hi Mitja, If I understand this right, the SWF file has to be a SWF file. To make it work like you want, you need a script that - writes the SWF from the db to a SWF file on the server, - returns HTML with object/embed tags and the path to the SWF file. Timo -- PHP General Mailing List

Re: [PHP] multiple keywords in search boxes

2002-09-05 Thread timo stamm
Hi Jason, have a look at Richard Lynchs reply posted at Sat, 31. Aug. 2002 03:08:39 Europe/Berlin with subject [PHP] Re: performing searches with random entries Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with inserting values into database through php

2002-09-07 Thread timo stamm
Hi Olli, I think the query string is missing an ; Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gmdate()

2002-09-07 Thread timo stamm
Huh? I think date() will return different values, but gmdate() will not, since it returns GM time. Lallous, maybe it is something about summertime/wintertime? Timo Am Freitag den, 6. September 2002, um 16:36, schrieb Naintara Jain: lets say, ServerOne has TimeZone GMT+2 ServerTwo has

Re: [PHP] Calculating Totals from table columns without a second query to the DB

2002-09-07 Thread timo stamm
Hi Jay, MySQL deserves some more respect. It's language is quite potent. Have you had a look on COUNT()? It is suited well for... well, counting. I would like to be able to sum up a collumns values already in MySQL. The following query will sum up all values of the column 'id': SELECT

Re: [PHP] generating variable names

2002-09-08 Thread timo stamm
Hi Kevin, I find it a bit awkward to mix variables and arrays in a pseudo array. But I guess you have reasons... Anyhow, maybe this is what you want: $variable1=one; $variable2=two; $variable3 = array(); $variable3[0]=three; $variable4 = array(); $variable4[0]=four; $j=1;

Re: [PHP] contact list re-ordering (php/mySQL CMS design)

2002-09-08 Thread timo stamm
Hi speedfreak, uh, clients. Can't they just send the checks an be content? :-) I have yet not done a user-sorted list in PHP/MySQL (I am using PHP since a week, now :-). But I think the following database setup should allow you to do it: id content above below 1 lala

Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread timo stamm
Hi Mig, to create something that behaves more like a true chat, you need an active client side. For example, you could let a frame with the PHP be reloaded in a short interval. To create a real chat, you need a socket connection. The best solution would be Flash (which has great functions

Re: [PHP] How to program very basic chat on PHP?

2002-09-09 Thread timo stamm
Hi Mig, you have to look for the XMLSocket (data will be transported in XML documents). It is available since Flash 5. But building a socket deamon on the server appears to be not that easy. The easiest way should be to use Pearl if you are unfamiliar with C. Timo timo stamm wrote: Hi

Re: [PHP] PHP Source files

2002-09-09 Thread timo stamm
Hi Adam, Am Montag den, 9. September 2002, um 18:45, schrieb Adam Voigt: The code in the braces will never be executed because $a will always be ateast $b if not greater (assuming $c has a value) which means that it couldn't be greater, however it could be = if $c was 0. $c could also have

Re: [PHP] Web Client - How to open applications by their own.

2002-09-09 Thread timo stamm
Hi Okar, the client decides what to do with incoming data in regard of the MIME type. Usually, there is a list of MIME type and corresponding action in the clients browser, and you can't change it from the server. Timo Regardless the nature of the attachment, things are happening

Re: [PHP] Calculating Totals from table columns without a second query to the DB

2002-09-09 Thread timo stamm
Hi Jay, you suggestion does not make any difference. The problem is that idsum seems to be destroyed for every row! Is there any other access method on a query that works properly or do I have to live with different results of the very same query asked directly in MySQL and asked through

Re: [PHP] Upload Progress

2002-09-09 Thread timo stamm
Regarding the idea of using a socket connection with Flash: It's not possible. You neither have file access with Flash (at least not from the browser plugin), nor access to a low level of the data to send it packet-wise. It would be nice if the POST method did handle more details (total

Re: [PHP] Upload Progress

2002-09-09 Thread timo stamm
Regarding the idea of using a socket connection with Flash: It's not possible. You neither have file access with Flash (at least not from the browser plugin), nor access to a low level of the data to send it packet-wise. It would be nice if the POST method did handle more details (total

Re: [PHP] Problems with filesize() and large files

2002-09-09 Thread timo stamm
Hi Kurt, not pretty, but what about using the CLI tool ls with an exec() call? Timo Am Dienstag den, 10. September 2002, um 00:07, schrieb Kurt Glazemakers: Hi, I need the filesize in PHP for very large files, over 2 Gigabyte. The problem is that the integer returns the size in byte

Re: [PHP] dropdown Newbie question

2002-09-10 Thread timo stamm
Hi Mario, you can set error_reporting to E_ALL to give you more hints to bugs and to produce clean code. You are having two problems. The first was related to your form and has been addressed by Yasin. The second is that you have autoglobals off. That means you have to use

Re: [PHP] Compiling as BOTH DSO and CGI under apache.

2002-09-10 Thread timo stamm
Hi Dan, I am not able to answer your question directly, but maybe you could simply use the CLI command 'chown' to change the owner of the files? Timo Am Dienstag den, 10. September 2002, um 03:35, schrieb [EMAIL PROTECTED]: I need to build php as a CGI for some scripts that need to run

Re: [PHP] Server date and time

2002-09-10 Thread timo stamm
Hi Christian, Assuming that you use MySQL: Read up 6.2.2.2 The DATETIME, DATE, and TIMESTAMP Types in the MySQL manual. Hint: Add a column to hold the timestamps. Timo Am Dienstag den, 10. September 2002, um 18:08, schrieb Christian Ista: When a use insert the row in a table, I'd like to

Re: [PHP] dropdown Newbie question

2002-09-10 Thread timo stamm
Hi Mario, you can set error_reporting to E_ALL to give you more hints to bugs and to produce clean code. You are having two problems. The first was related to your form and has been addressed by Yasin. The second is that you have autoglobals off. That means you have to use

Re: Fw: [PHP] Re:[PHP]question

2002-09-11 Thread timo stamm
Hi Meltem, the second one was a better description of your problem. Attached is the most convenient approach can come up with for this problem. It is not optimized, but should be easy to understand. Timo ?php $submitted = isset($_REQUEST['a']); // submitting data or just retrieving

Re: [PHP] PHP and Flash

2002-09-18 Thread timo stamm
Or let Flash take over the active part. You can retrieve data from PHP scripts in Flash and build dynamic menus, for example. Pretty much everything is possible. Timo Am Mittwoch den, 18. September 2002, um 06:11, schrieb Rasmus Lerdorf: php.net/ming On Wed, 18 Sep 2002, [EMAIL