[PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
I'm designing a simple content management system with PHP, and it is going great, except... I do seem to have one problem - I'm trying to use PHP's copy function to upload files through a web browser. It works fine on small files, but times out on large ones, like a 20 MB file I'm sending. I'm

Re: [PHP] Uploading to Apache server from VB

2001-12-05 Thread fred
See my post today about a file upload problem, which includes a complete script to do this (and more). My script works, but times out on very large files, otherwise it is a champ... Fred On Mon, 03 Dec 2001 15:16:09 -0500, Jim wrote: http://www.php.net/manual/en/features.file-upload.php

[PHP] [ ] ..

2001-12-05 Thread
::: ÆĶóÁÖ¶ó ¸ÞÀÏ ¹ß¼Û :::¸ÕÀú »çÀü ¾çÇؾøÀÌ :¸ÞÀÏÀ» º¸³»µå·Á Á˼ÛÇÕ´Ï´Ù. º» ¸ÞÀÏÀº Á¤ÅëºÎ ±Ç°í»çÇ׿¡ ÀÇ°Å Á¦¸ñ¿¡(±¤°í)¶ó Ç¥½ÃµÈ ±¤°í ¸ÞÀÏÀÔ´Ï´Ù. ´õÀÌ»ó ¸ÞÀÏÀ» ¹Þ°í½ÍÁö ¾ÊÀ¸½Ã¸é [¼ö½Å°ÅºÎ]¸¦ ´­·¯ÁÖ¼¼¿ä. Á˼ÛÇÕ´Ï´Ù.

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Sorry, no can do, I can't stand SPAM, and I don't need any more email. Just reply to the newsgroup. I can read it there, and it may help others - that is what newsgroups are for!;-) On Wed, 05 Dec 2001 03:57:05 -0500, Mirek Novak wrote: fix your email to receive answers FIRST! M.N.

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread Mirek Novak
so, RTFM HTH M.N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Now that you've helped me, go and help someone else...please. And yes, I did read the manual and several books on PHP already. Have you? On Wed, 05 Dec 2001 04:09:00 -0500, Mirek Novak wrote: so, RTFM HTH M.N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Now that you've helped me, go and help someone else...please. And yes, I did read the manual and several books on PHP already. Have you? On Wed, 05 Dec 2001 04:09:00 -0500, Mirek Novak wrote: so, RTFM HTH M.N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Now that you've helped me, go and help someone else...please. And yes, I did read the manual and several books on PHP already. Have you? On Wed, 05 Dec 2001 04:09:00 -0500, Mirek Novak wrote: so, RTFM HTH M.N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] sending out an sms

2001-12-05 Thread Wilbert Enserink
hi all, i'm busy studying and gathering info about sending sms messages from my website. Anybody knows any good urls where I can find more info (or scripts) about sending sms to a given telephone number. My knowledge about this subject is about zero. thx. Wilbert -

[PHP] select join table on mysql

2001-12-05 Thread Yamin Prabudy
hi i have to select this : $t2=mysql_db_query($db, SELECT radacct.UserName,sum(radacct.AcctSessionTime) as t1,usergroup.GroupName . from radacct LEFT JOIN usergroup ON radacct.UserName=usergroup.UserName where. usergroup.GroupName='unlimited' AND

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread Mirek Novak
fred wrote: Now that you've helped me, go and help someone else...please. And yes, I did read the manual and several books on PHP already. Have you? and have you seen function set_time_limit() while u were reading the manual?. BTW - this was on the list many times and as u were noting

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Sorry, I don't know where you are coming from. You don't know me, and are assuming things that just aren't true, calling me lazy? Thank you for the info. Now to answer your accusation... I searched the newsgroups all day and never found that function, and scoured php.net. I searched the PHP

[PHP] question on incrementing

2001-12-05 Thread Jordan
I'm trying to increment a variable but either clicking on link or button but I don't want to reload the page. Is there any possible way to pull this off? Thanks, -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] folver view options

2001-12-05 Thread Caspar Kennerdale
I have just installed mandrake something that is annoying me with KDE is that the default view within the file manager is with icons. Is is possible to have the tree or detailed view as the default. I briefly looked at the prefences and could find it anywhere Thanks -- PHP General Mailing

[PHP] Re: semaphores not automatically releasing at end of script

2001-12-05 Thread Thomas
The following code fails after the first call: if(!($lock_id = sem_get(2501)) || !sem_acquire($lock_id)) die('failed to get semaphore') ..do something, error triggers exit;.. sem_release($lock_id) But having sem_release right after acquire makes everything work ok. I use FreeBSD and see there

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
After all of this, and you give me the wrong answer. If you read the PHP manual, you will see that set_time_limit falls defaults to max_execution_time, which I already have set to 2400, so your answer is irrelevant. That is not controlling HTTP_KEEP_ALIVE, which is defaulting to 300 seconds

Re: [PHP] Mac OSX and MySQL

2001-12-05 Thread Stefan Rusterholz
As soon as the mysqld is running (and PHP also of course), you can use phpMyAdmin to set up new tables. If you are not experienced in CLI it's a nice way to go avoiding the CLI as far as possible (IMHO). Get a look at those pages: www.macosx.org www.stepwise.com best regards Stefan Rusterholz,

[PHP] remote directorylisting

2001-12-05 Thread Håkon Grønning
Does anybody know how to list a remote directory to get all the filenames into for example an array? This is easily done on your local server by: $handle=opendir('./images/'); while (($file = readdir($handle))!==false) { $filelist[] = $file; } closedir($handle); However, opendir and

[PHP] Please

2001-12-05 Thread fazer
UNSUBSCRIBE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] MsSQL question

2001-12-05 Thread Valentin V. Petruchek
Hello world! I'm using php 4.0.6 to work with MsSQL (FreeBSD 4.4, Apache 1.3.20). How should i compile php to enable mssql functions? Thanks Zliy pes, http://www.zliypes.com.ua -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Please

2001-12-05 Thread Stefan Rusterholz
did you ever read that f 4 lines at bottom of each mail??? quoteTo unsubscribe, e-mail: [EMAIL PROTECTED] /quote first think, then do Stefan Rusterholz, [EMAIL PROTECTED] -- interaktion gmbh Stefan Rusterholz Zürichbergstrasse 17 8032 Zürich

RE: [PHP] question on incrementing

2001-12-05 Thread Jon Farmer
I'm trying to increment a variable but either clicking on link or button but I don't want to reload the page. Is there any possible way to pull this off? It would have to be a session or cookie variable for a start. Also you would have to refresh A page inorder to do this so the way i would go

Re: [PHP] MsSQL question

2001-12-05 Thread Jon Farmer
Hello world! I'm using php 4.0.6 to work with MsSQL (FreeBSD 4.4, Apache 1.3.20). How should i compile php to enable mssql functions? Exactly as described here: http://www.php.net/manual/en/ref.mssql.php RTFM -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763

[PHP] RE:mad .... again jpeg files...

2001-12-05 Thread Miguel Loureiro
Valentim said: Try to specify absolute path to the jpeg - possible php do not look up for jpeg in current folder... (or use './image.jpg')- but the image.jpg created had file size=0 Johan Holst Nielsen said: Try to remove all html, and instead make a ImageJPEG($img); You should then

[PHP] looping and incrementing

2001-12-05 Thread Jordan
I guess I didn't state my question very well in my previous post question on incrementing. This is the situation. I'm building a shopping cart... Right now I'm passing a variable $itemnumber from the catalog page to the cart page. $itemnumber is an array and every time a product is added to

Re: [PHP] Dynamically created dropdowns

2001-12-05 Thread Michael Egan
Michael, Many thanks for your help. I've opted for the 'straight PHP' route and, in the process, saved myself a lot of time pointlessly trying to see if JavaScript could read from the database. Michael Egan Michael Hall wrote: You can certainly do what you want in straight PHP if you

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread Mirek Novak
fred wrote: After all of this, and you give me the wrong answer. If you read the PHP manual, you will see that set_time_limit falls defaults to max_execution_time, which I already have set to 2400, so your answer is irrelevant. That is not controlling HTTP_KEEP_ALIVE, which is defaulting

Re: [PHP] MsSQL question

2001-12-05 Thread Valentin V. Petruchek
Thanks, i've looked in previously downloaded manual and 've found nothing ;) - Original Message - From: Jon Farmer [EMAIL PROTECTED] To: [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 11:55 AM Subject: Re: [PHP] MsSQL question Hello world! I'm using php

Re: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread liljim
Hello, The example Jack gave you will clear up spaces well, though to get both newlines and spaces into one: $input = preg_replace(/([ ]|\n){1,}/, \\1, $input); James Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... $text = preg_replace('|\s+|','

[PHP] How does one use gd/php _with_ freetype?

2001-12-05 Thread MDowling
Everything compiles; phpinfo() says that freetype is compiled in; ldd libphp4.so indicates that freetype is dynamically linked; nm libphp4.so indicates that freetype and gd symbols are included. Yet we cannot produce arial fonts. I'm told this works with Windows, so I'm inclined to look for

[PHP] Dynamic PHP

2001-12-05 Thread Chris Hemmings
Hello! I'm sure I read this somewhere but I'm just not so sure now. Can you produce PHP code in a PHP page and then run it. Kind of like this: ?php $mycode=echo'Hello';; # Something here to execute $mycode ? Is the above possible?? Thanks! Chris. -- PHP General Mailing List

[PHP] problem with session_start

2001-12-05 Thread Roy Kaldung
Hello, after execution of session_start, the browser (IE) tries to save the document instead of viewing the pdf-file. After removing the line with session_start() all works fine. configuration: Linux(2.4.2), Apache 1.3.22, PHP 4.0.6, PDFlib 4.0.1. Any thoughts? Bye Roy ?php //get

Re: [PHP] Dynamic PHP

2001-12-05 Thread Pavel Jartsev
Chris Hemmings wrote: Hello! I'm sure I read this somewhere but I'm just not so sure now. Can you produce PHP code in a PHP page and then run it. Kind of like this: ?php $mycode=echo'Hello';; # Something here to execute $mycode ? Maybe U need this function:

[PHP] Re: Classes within classes (Should I do this?)

2001-12-05 Thread Yasuo Ohgaki
Cameron Just wrote: Hi, Is this a bad thing to do have a class stored within another class? I would also like to store an array of another class within a class. It seems to work apart from the fact that I can't reference an array of class directly. ie $test_array[0]-get(); This

Re: [PHP] Partial answer to FOLLOW UP on column names not liked by odbc/php/access

2001-12-05 Thread Pavel Jartsev
mweb wrote: OOPS... of couse the query below doesn't work, it doesn't have the table name (see below however) ISQL_exec_String = Insert Into (Artista, Opera, Label, Anno, Nazione, CDNow, Autore, AutoreNome, Genere, GenereCustom, SulWeb, Autorizzato, Unico, VALUES ('prova2', 'inedita',

[PHP] mail function

2001-12-05 Thread Gregory Jon Welling/Parts Trading Inc.
Is it possible to use php's mail function to send an html formated email (one of your pages or a newsletter, whatever...)? If so, how? GW

RE: [PHP] mail function

2001-12-05 Thread Jon Haworth
Yes it is. A good place to start is with the manual (http://www.php.net/mail), where you will find an explanation of how to do it. Cheers Jon -Original Message- From: Gregory Jon Welling/Parts Trading Inc. [mailto:[EMAIL PROTECTED]] Sent: 05 December 2001 11:07 To: [EMAIL PROTECTED]

[PHP] Re: mail function

2001-12-05 Thread Johan
Is it possible to use php's mail function to send an html formated email (one of your pages or a newsletter, whatever...)? If so, how? yes... Make a header called etc. Content-type: text/html Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: Large file uploads timeout - ouch!

2001-12-05 Thread The Big Roach
I've had the same problem. I'll get back to you with what I know. Just give me some time - I'm late for work! Fred [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm designing a simple content management system with PHP, and it is going great, except... I do

[PHP] Re: remote directorylisting

2001-12-05 Thread lallous
Well, This is not really possible, unless the server itself allows you to do the listing. One way and after the last condition you can use fopen(sever.com/dir_to_list/) then fread() it and then parse the content in order to get filename, date, ... Håkon grønning [EMAIL PROTECTED] wrote in

[PHP] format output from exe()

2001-12-05 Thread Daniel Masur
how can i format the output from: $who = passthru(system(who)); echo $who; it doesnt put breakes behind each line, so all the stuff iss just one line till the browsers to short... anybody can help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] headers

2001-12-05 Thread Wilbert Enserink
Hi all, my q: The results of a form are being POSTed to a php script. There I play around with the inputted variables. Now I want to post them again to a new script. I know I should use header(location:http://www.xxx.yyy/somepage.php) But how do I construct the header which is used to post

Re: [PHP] headers

2001-12-05 Thread George Pitcher
I'm a newbie but how about: header(location: http://www.xxx.yyy/somepage.php?var1=$var1) and so on. And location: needs a space after it! George _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP

Re: [PHP] format output from exe()

2001-12-05 Thread Tyler Longren
Hello, I did this once with ping: exec(ping -c $count $host, $result); for ($i=0; $i count($result); $i++) { $data .= $result[$i]br; } print $data; That might work for ya. Good luck, Tyler Longren - Original Message - From: Daniel Masur [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] Re: headers

2001-12-05 Thread Julio Nobrega Trabalhando
header(Location: example.php?var=$value); etc... Or sessions... -- Julio Nobrega Don't eat the yellow snow. Wilbert Enserink [EMAIL PROTECTED] wrote in message 00e101c17d86$a2c391a0$[EMAIL PROTECTED]">news:00e101c17d86$a2c391a0$[EMAIL PROTECTED]... Hi all, my q: The results of a form

RE: [PHP] format output from exe()

2001-12-05 Thread Peter Johansson M (PAC)
Daniel Masur wrote: how can i format the output from: $who = passthru(system(who)); echo $who; it doesnt put breakes behind each line, so all the stuff iss just one line till the browsers to short... Try this: echo pre$who/pre; Or substitute those newlines with the equivalent

Re: [PHP] headers

2001-12-05 Thread Wilbert Enserink
that's more like a GET method. I prefer the POST method in my case (GPC-order). But thx for the input! - Original Message - From: George Pitcher [EMAIL PROTECTED] To: Wilbert Enserink [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 1:18 PM Subject: Re: [PHP]

Re: [PHP] headers

2001-12-05 Thread Mirek Novak
http://www.w3.org/Protocols/rfc2616/rfc2616.txt can help, IMHO M.N. atleast, I think, you must somehow announce , that you are using POST method ...? -- Wilbert Enserink wrote: Hi all, my q: The results of a form are being POSTed to a php script. There I play around with the inputted

[PHP] PHP and wml problem

2001-12-05 Thread antoine_maitre
Hello, I have a problem with my php files. Here's how it goes: I use Sablotron (a php extension) to parse my XML file in order to view the result on a wap browser. The parsing goes well and the result is good but the browser does not understand that it's a WML file. If I copy the result of

[PHP] Re: PHP and wml problem

2001-12-05 Thread Roko Roic
Does anybody have a solution? Send wnl heades before displaying results header('Content-type: text/vnd.wap.wml'); Cheers Roko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] headers

2001-12-05 Thread Mirek Novak
Try this ... http://lwest.free.fr/doc/php/lib/index.php3?page=net_http_clientlang=en - complete HTTP class M.N. -- Wilbert Enserink wrote: Hi all, my q: The results of a form are being POSTed to a php script. There I play around with the inputted variables. Now I want to post them again to

[PHP] Referer Question

2001-12-05 Thread George E. Papadakis
Hi, Say I have an image called in a page which is actually a PHP script (A banner image for example). Is there any variable I could use to detect where the the one that entered the page and ran the php script came from? I guess it's something like the referer of HTTP_referer or something. I

[PHP] Re: Large file uploads timeout - ouch!

2001-12-05 Thread The Big Roach
Don't know if you're still there... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Referer Question

2001-12-05 Thread Hidulf
you can call the predefined variable in PHP $HTTP_REFERER will return the address of the previous page. $REQUEST_URI will return the URI of current page. is those something you need? -- Hidulf http://www.hidulf.com George E. Papadakis [EMAIL PROTECTED] wrote in message

Re: [PHP] Mass Mailing

2001-12-05 Thread Michael Cronström
Hi again, These scripts get there email-info from a database. How many mails send per action depends on the max_execution_time set by your provider. Each send mail is marked in the database so if the process stops to early you can continue with the rest and unmarked. Web inventor Michael

[PHP] undefined function: mysql_pconnect()

2001-12-05 Thread josep
Debian 2.2 + PHP4 apache module + mysql Trying my first php program (guestbook) I get: Fatal error: Call to undefined function: mysql_pconnect() in /home/jupshoes/public_html/guest/index.php on line 27 thanks Josep. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] undefined function: mysql_pconnect()

2001-12-05 Thread Anthony Washington
are u running at least php 4.0.0? try to use mysql_connect() instead. -- Anthony Washington ([EMAIL PROTECTED]) http://www.shell42.com http://www.comwebhosting.com On Wed, 5 Dec 2001, josep wrote: Debian 2.2 + PHP4 apache module + mysql Trying my first php program (guestbook) I get:

[PHP] FreeBSD 4.3, PHP 4.0.6 unixODBC -- Undefined Symbol

2001-12-05 Thread Joe Koenig
I had previously attempted to get the Openlink ODBC drivers work with iodbc and PHP. I was having no luck and turned to easysoft's solution, which includes unixODBC. I re-configured PHP (removing the config.cache file) and used --with-unixODBC=path/to/unixODBC instead of

Re: [PHP] format output from exe()

2001-12-05 Thread Daniel Masur
worked wunderfull. thx Tyler Longren [EMAIL PROTECTED] schrieb im Newsbeitrag 005101c17d89$42085b40$0101a8c0@Longren">news:005101c17d89$42085b40$0101a8c0@Longren... Hello, I did this once with ping: exec(ping -c $count $host, $result); for ($i=0; $i count($result); $i++) { $data .=

Re: [PHP] headers

2001-12-05 Thread Stefan Rusterholz
Try this: http://phpclasses.upperdesign.com/browse.html/package/375 It let's you easily post an array of variables to another page. To do it manually take a look at the function fsockopen(). If you have the need for a modified variant which is able to handle multiple identically named fields

RE: [PHP] Column name not liked by PHP/ODBC and Access

2001-12-05 Thread Brinkman, Theodore
Don't know if you've tried it, but typically, you put square brackets '[]' around a table or field name that ODBC doesn't like. (i.e.: it has a space in it, it has a name which is a reserved word in SQL, etc...) - Theo -Original Message- From: Jim [mailto:[EMAIL PROTECTED]]

RE: [PHP] FreeBSD 4.3, PHP 4.0.6 unixODBC -- Undefined Symbol

2001-12-05 Thread Andrew Hill
Joe, What is the problem you were having with OpenLink and iODBC under BSD? If threading errors, you can simply download the non-threaded version of the SDK and drivers from our site. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com

Re: [PHP] FreeBSD 4.3, PHP 4.0.6 unixODBC -- Undefined Symbol

2001-12-05 Thread Joe Koenig
I played with this a little bit more, added --with-iodbc back into my configure line, and all went well, except ona phpinfo() page, it lists iodbc as my odbc library which won't help because I need to use unixODBC for the easysoft driver to work. Any ideas on what might be causing this? Or how

[PHP] Class in PHP

2001-12-05 Thread Wee Chua
Hi all, How many extension of subclass can PHP have? Can I extend subclass to more different subclass? Thanks, Calvin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Mass Mailing

2001-12-05 Thread Michael Cronström
Nop! At 16:36 05/12/01, you wrote: Michael, I'm designing a membership mail-out service right now - and wanting db 'recorded delivery'. Are your scripts available in one of the online script-libraries? Please advise, =dn - Original Message - From: Michael Cronström [EMAIL PROTECTED]

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread Jack Dempsey
true...he didn't mention newlines though so i left those out...also, since PHP 4.0.4 $n [meaning $1], being the preferred one. you also don't need double quotes and since + means 1 or more, i'd save myself some typing $input = preg_replace('/(\s|\n)+/',$1,$input); of course since you're now

[PHP] Re: select join table on mysql

2001-12-05 Thread Fred
The most common couse of this problem is that your query generated an mysql error. To find out what the error is use this instead: $t2=mysql_db_query($db, SELECT radacct.UserName,sum(radacct.AcctSessionTime) as t1,usergroup.GroupName . from radacct LEFT JOIN usergroup ON

[PHP] serialize object session_auto_start

2001-12-05 Thread Matthieu Brunet
Hi, I'm trying to save an object in the session, with the serialize and uunserialize fonction. But i got an error message wich say me that i must define the class before the session start. But my session start automaticly. So I can't include my class before the session start. I'm looking for a

[PHP] Strange bug

2001-12-05 Thread Ernesto
Hi, I was having some problems with my PHP files (the first 3 HTML lines missing and Netscape trying to save the page to disk instead of showing it). So, I telnet'd my web server and manually issued a GET as follows: GET /anglers/index.php HTTP/1.1 And this was the response: HTTP/1.0 200

[PHP] delete array item and resort

2001-12-05 Thread Mike Krisher
what is the easiest way to delete an array element and then resort the array so the elements receive the correct numbering. I was thinking something like this: $itemArray = array(red,blue,yellow); delete($itemArray[1]); so key 0 is still red but key 2 is still yellow but is remembered to

Re: [PHP] Dumped OK, Restore NOT

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 08:02 am, you wrote: Little problem with MySQL 3.23.46 under Windows ME. I This would be an excellent question for the MySQL mailing list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] delete array item and resort

2001-12-05 Thread Jim
$array = array(a,b,c); print_r($array); unset($array[1]); print_r($array); $array = array_values($array); print_r($array); -- produces Array ( [0] = a [1] = b [2] = c ) Array ( [0] = a [2] = c ) Array ( [0] = a [1] = c ) Jim what is the easiest way to delete an array element and

[PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber
I've read the manual notes for ini_set, so I have a feeling the answer to my question is no, but I'd like to make sure. I have no control over my ISP's php.ini file, but the fact that they have session.auto_start set to 1 in php.ini is causing me problems. Is there any way to override this?

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Jim
How about another ISP? I've read the manual notes for ini_set, so I have a feeling the answer to my question is no, but I'd like to make sure. I have no control over my ISP's php.ini file, but the fact that they have session.auto_start set to 1 in php.ini is causing me problems. Is there any

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov
Try this http://www.google.com/search?hl=enq=%22.htaccess%22+%22override%22+%22php%22+%22settings%22spell=1 Regards, Anrey Hristov - Original Message - From: Kurt Lieber [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 7:06 PM Subject: [PHP] possible to

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Andrey Hristov
I think that I found the solution: http://www.zend.com/manual/configuration.php Regards - Original Message - From: Andrey Hristov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 7:04 PM Subject: Re: [PHP] possible to override

RE: [PHP] Dumped OK, Restore NOT

2001-12-05 Thread Nicolas Guilhot
Maybe you can try to launch the sql dump file from the SQL shell, not directly from the command line. I think it will give you more feedback about what is going on. Go to the directory where you have your smarts.sql file. Just type mysql smarts And in the SQL shell type \. smarts.sql If you are

[PHP] Re: mysql update query

2001-12-05 Thread Richard Creech - DreamRiver.com
Greg, You must specify the tablename :) Like this: UPDATE myTableName ... or mysql UPDATE persondata SET age=age+1; For the official syntax visit mysql language reference at http://www.mysql.com at http://www.mysql.com/doc/U/P/UPDATE.html Kind Regards, Richard Creech [EMAIL PROTECTED]

[PHP] Qukc days to time() conversion?

2001-12-05 Thread Jeff Lewis
I am prompting users for a number of days and then wanting to pull items from a database older than the number of days. All dates are stored as timestamps in the database so wondering how I can come up witht he required timestamp to compare with? (for for example 30 days). I have a

Re: [PHP] Qukc days to time() conversion?

2001-12-05 Thread Andrey Hristov
Read this : http://www.mysql.com/doc/D/a/Date_calculations.html Regards, Andrey Hristov - Original Message - From: Jeff Lewis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 7:19 PM Subject: [PHP] Qukc days to time() conversion? I am prompting users for a

Re: [PHP] possible to override session.auto_start in php.ini

2001-12-05 Thread Kurt Lieber
That worked! Thanks! For those who may be interested, I added the following lines to my .htaccess file: # change some php.ini settings IfModule mod_php4.c php_flag session.auto_start off /IfModule Also, this obviously only works with Apache with PHP running as a module. Not sure if there's

RE: [PHP] PHP newbie alert

2001-12-05 Thread Jonathan Wheat
I use PHP Coder (http://www.phpide.de ) which has been changed to Maguma PHP4EE Studio. http://www.maguma.com/english/welcome.html There's a Light and a Pro version. The Light version is free -Jon -Original Message- From: shaun murphy [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Re: How can I uncompress zlib data in the browser?

2001-12-05 Thread Brian Duke
Thanks! It seems to work when I put this at the very top of my php file: ob_start(ob_gzhandler); When I do a tcpdump on port 80, I see a small amount of garbage with that statement and huge amount of text without it. The text displays correctly in my browser either way, so it looks like it

[PHP] How do I pass variables from a PHP script to an HTML document?

2001-12-05 Thread Don
Hi, I currently have a form that calls a PHP script when submit is pressed. Within the PHP script, I wish to call a custom confirmation screen. I do so by issuing the following command: Header(Location: . $form[redirect]); Now, I wanted my form variables passed from the PHP script to my

Re: [PHP] How do I pass variables from a PHP script to an HTMLdocument?

2001-12-05 Thread Jim
Why don't you try sessions? They make this sort of thing easy by letting you store all the data in $form and making it available on subsequent requests to this or other scripts. http://php.net/sessions Jim Hi, I currently have a form that calls a PHP script when submit is pressed. Within

Re: [PHP] How do I pass variables from a PHP script to an HTML document?

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 10:00 am, you wrote: Alternatively, is there another way to pass variables from a PHP script to a HTML form where I won't run into this limit? I'm not seeing why you have to redirect the user just to get a custom response. If you can instead use an include();

[PHP] Is php safe for e-commerce applications?

2001-12-05 Thread George Whiffen
What a scary day, and it just gets worse 1. A user finds their account balance is displayed incorrectly on one of my live e-commerce sites. 2. I discover that floor() intermittently gives the wrong answer i.e. print floor(10*(8.20 - 0.20)); Answer : 79 print floor(10*(8.10 - 0.10));

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread fred
Did you read my post? I did all of that *before* I posted my question. Anyone else have a suggestion? TIA Fred On Wed, 05 Dec 2001 05:16:38 -0500, Mirek Novak wrote: fred wrote: After all of this, and you give me the wrong answer. If you read the PHP manual, you will see that

[PHP] md5 decrypt

2001-12-05 Thread Dan McCullough
Is there away to take a md5 encrypted password and decrypt it and give that to the client, if they fogot their password. = dan mccullough Theres no such thing as a problem unless the servers are on fire!

[PHP] Recursive Threading with PHP and MySQL.

2001-12-05 Thread Alawi
I want to know how can i do that Recursive loop to get categories as example can any body help me by give my tutorial or any thing to understand this techniqe

Re: [PHP] What is causing duplicate keys?

2001-12-05 Thread Jim
You should specify the column names to prevent this from happening. Such as ... INSERT INTO rcensioni (col1,col2,etc) VALUES ('value','value','etc...') Just make sure you don't specify the column that is autonumbering. Jim Hello, Always struggling on my php-odbc-MS access project, I

Re: [PHP] md5 decrypt

2001-12-05 Thread John S. Huggins
On Wed, 5 Dec 2001, Dan McCullough wrote: -Is there away to take a md5 encrypted password and decrypt it and give that to the client, if they -fogot their password. No. - -= -dan mccullough - -Theres no such thing as a problem unless

Re: [PHP] Minimum Apache CD-ROM root

2001-12-05 Thread Valter Santos
running apache from a distro CD mm! I suppose you can't :( why you don't build a static version of your PHP application??? it's far easy... there are some utilities for done it :) do a search in google cheers, Valter Santos - Original Message - From: John Monfort

Re: [PHP] md5 decrypt

2001-12-05 Thread Jeff Lewis
I'm pretty sure you can't. You would have to set up an area where they can have their password reset and the new password emailed to their email address. Jeff - Original Message - From: Dan McCullough [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Wednesday, December 05,

Re: [PHP] md5 decrypt

2001-12-05 Thread Steve Werby
Dan McCullough [EMAIL PROTECTED] wrote: Is there away to take a md5 encrypted password and decrypt it and give that to the client, if they fogot their password. Short answer is no, long answer below. I just answered this on another list 10 minutes ago so I'm pasting in part of my reply

[PHP] xml header

2001-12-05 Thread bill
What is the proper header to send when presenting dynamic xml pages to the browser? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread Jack Dempsey
actually it does... james' solution will work but I forgot to mention a \s is whitespace, not a space, therefore it will get tabs, newlines, and spaces. look at http://www.cs.tut.fi/~jkorpela/perl/regexp.html \s matches any whitespace character (space, tab, newline) therefore my suggestion

RE: [PHP] Is php safe for e-commerce applications?

2001-12-05 Thread Jason Lotito
Reading the Bug report, it was mentioned if you want precision mathmatics, use BCMath http://www.php.net/manual/en/ref.bc.php That will give you the precision you are looking for. Jason Lotito [EMAIL PROTECTED] www.NewbieNetwork.net -Original Message- From: George Whiffen

Re: [PHP] Is php safe for e-commerce applications?

2001-12-05 Thread Jim
Would sprintf() handle your needs? This seems to work correctly... $val = sprintf(%.0f,(10*(8.20-0.20))); produces a string $val equal to 80. Is this too geeky? Jimtronic What a scary day, and it just gets worse 1. A user finds their account balance is displayed incorrectly on one

Re: [PHP] Class in PHP

2001-12-05 Thread andreas
On Wed, 5 Dec 2001 10:41:53 -0500 Wee Chua [EMAIL PROTECTED] wrote: Hi all, How many extension of subclass can PHP have? Can I extend subclass to more different subclass? Do you mean how deep a inheritance you can have? e.g. A \ B | \ C D | \ E F

  1   2   >