[PHP] best way to turn a text file into tables in PHP

2002-09-09 Thread Peter
Hi, I have 'test_file.txt' with the contents: label1label2label3comments name1 name2 name3 name4 name5 name6This is a comment ... How can I turn this into a table using PHP? Thanks, -Peter -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] best way to turn a text file into tables in PHP

2002-09-09 Thread Justin French
So, you have a text file with tab delimited values, one row per line yes? --- TABLE ? $file = 'path/to/your/file.txt'; $fp = fopen ($file,r); $row = 0; while ($myrow = fgetcsv ($fp, 1000, \t)) { echo TR; foreach($myrow as $k = $v) { if($row == 0) { $v = B{$v}/B; }

Re: [PHP] Upgrading PHP on Redhat

2002-09-09 Thread ing.Martin Prásek
- Original Message - From: David Yee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 08, 2002 10:59 PM Subject: [PHP] Upgrading PHP on Redhat Hi all. What's the correct procedure to upgrade PHP (in this case 4.0.6) on a Red Hat system? Usually I just get the PHP

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

2002-09-09 Thread M
Justin French wrote: An extremely basic chat would be a frame or iframe which has a meta tag refresh (or javascript refresh) of a plain HTML page every 10-20 seconds. As far as the flash stuff goes, have a look at macromedia.com or the 1000's of flash sites... I'm positive you'll find some

RE: [PHP] imagecopyresized problems

2002-09-09 Thread joakim . andersson
Hi, imagejpeg($dst_img); This actually outputs the image, so your result is not unexpected. Try this instead: imagejpeg($dst_img, /path/and/filename/to/newfile.jpg); Regards Joakim Andersson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Fw: combine 2 integer

2002-09-09 Thread Meltem Demirkus
Hi, I want to add one integer to the end of another , which function can I use?.. thanks meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] combine 2 integer

2002-09-09 Thread Meltem Demirkus
Hi, I want to add one integer to the end of another , which function can I use?.. thanks meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] combine 2 integer

2002-09-09 Thread mhe
I'm not shure what you mean, but is it something like this... $var1 = $var1 + $var2; regards Martin Hjort Eriksen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] combine 2 integer

2002-09-09 Thread Zak Greant
On September 9, 2002 03:38, Meltem Demirkus wrote: Hi, I want to add one integer to the end of another , which function can I use?.. Hi Meltem, You can use the concatenation operator (.) ? echo 2 . 4; ? Cheers! --zak -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] combine 2 integer

2002-09-09 Thread Marek Kilimajer
$string = $int1 . $int2 Meltem Demirkus wrote: Hi, I want to add one integer to the end of another , which function can I use?.. thanks meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] combine 2 integer

2002-09-09 Thread Scott Houseman
Hi there. You could join the two using a period(.) this will concatenate the two strings. $a = 1; $b = 2; $together = $a.$b; // $together == '12' regards -|Scott -Original Message- From: Meltem Demirkus [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 11:39 AM To:

Re: [PHP] checkbox question

2002-09-09 Thread Marek Kilimajer
If you cannot use square brackets, get the values yourself from $_SERVER['QUERY_STRING'] Alex Shi wrote: How to ontain data from a group of checkbox using same name? For example, in a form there're 6 checkboxes and all named as Interesting_Area. I know if put a pairs of square brackets at the

[PHP] file upload 2 MB

2002-09-09 Thread andy
Hi there, I am trying to configure php inside the httpd.conf to allow file uploads inside a special directory with more than 2 MB. Somehow the syntax is wrong, since I do get the errormsg that there are 2 arguments required. Here is the code: # special settings for webmailer Directory

[PHP] Load / Stress Testing

2002-09-09 Thread Dan Hardiker
Hi All, I have a CPU intensive PHP application, and would like to stress test it to find out the number of concurrent connections I can have before the response rate from my script is 5 seconds or more. The tests will initally take place over a 100mbs LAN. The following are in use: PHP 4.2.3

[PHP] select box

2002-09-09 Thread Meltem Demirkus
Hi, Can I put the selected option of select box later by using php? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: file upload 2 MB

2002-09-09 Thread Erwin
Andy wrote: Hi there, I am trying to configure php inside the httpd.conf to allow file uploads inside a special directory with more than 2 MB. Somehow the syntax is wrong, since I do get the errormsg that there are 2 arguments required. Here is the code: # special settings for webmailer

[PHP] date question

2002-09-09 Thread Meltem Demirkus
Hi, Is there any function which returns the day , month or year of a date ? thanks meltem -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: date question

2002-09-09 Thread Erwin
Meltem Demirkus wrote: Hi, Is there any function which returns the day , month or year of a date ? You need two functions actually ;-)) use the date() function to generate the day, month or year from a timestamp use the strtotime() function to generate a timestamp from a date For example

Re: [PHP] Upload Progress

2002-09-09 Thread Luke Welling
Jed Verity [EMAIL PROTECTED] wrote: There really isn't a great solution for this, that I know of. It's one of the few things that makes an argument for ASP over PHP, as far as I'm concerned (if you have the luxury of choosing). How is this an argument for ASP? HTTP has no way of tracking

Re: [PHP] file upload 2 MB

2002-09-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I have not tested this but I think the correct syntax is: php_value upload_max_filesize 50M If the above doesn't work my next bet would be: php_admin_value upload_max_filesize 50M Hope that helps! ~Pauly On Monday 09 September 2002 07:04 am,

Re: [PHP] Upload Progress

2002-09-09 Thread Erwin
How is this an argument for ASP? HTTP has no way of tracking file upload progress, no matter what scripting language you are using. Asp has some nice upload components (ATL/COM), which handle the upload progress. Therefor they will be able to put nice upload dialogs to the user. On the other

RE: [PHP] date question

2002-09-09 Thread Rudolf Visagie
Hi Meltem, The PHP manual is at http://www.php.net/manual/en (mirror sites as well). -Original Message- From: Meltem Demirkus [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 1:30 PM To: [EMAIL PROTECTED] Subject: [PHP] date question Hi, Is there any function which

[PHP] POST form variables not being sent to destination page

2002-09-09 Thread Howard Roscoe
Hi all, I'm assuming this is an installation error, hence the posting to this group. I've got an html form but when I use the POST method the form variables don't make it to the destination page, when I use the GET method, there's no problem. I've uploaded the test pages to our web servers and

[PHP] Re: checkbox question

2002-09-09 Thread Craig Donnelly
Why cant you use square brackets?? call all your checkboxes the following: interesting_area[] Then post it to whatever page, now all the checkboxes that were checked are held in a array (interesting_area) To see what is contained in the array, do the following: ?php echo pre;

[PHP] Re: select box

2002-09-09 Thread Craig Donnelly
Can you be a bit more clearer with your question? Meltem Demirkus [EMAIL PROTECTED] wrote in message 011c01c257f0$c4499780$5583@hiborya">news:011c01c257f0$c4499780$5583@hiborya... Hi, Can I put the selected option of select box later by using php? thanks -- PHP General

Re: [PHP] Load / Stress Testing

2002-09-09 Thread Leonid Mamtchenkov
Dear Dan Hardiker, Once you wrote about [PHP] Load / Stress Testing: DH I have a CPU intensive PHP application, and would like to stress test it DH to find out the number of concurrent connections I can have before the DH response rate from my script is 5 seconds or more. DH DH The tests will

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

2002-09-09 Thread Jay Blanchard
[snip] 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 idsum:=(IFNULL(idsum, id)+id), id FROM yourtable; Now a question to the PHP/MySQL experienced: Why does this type of query not work in combination

RE: [PHP] Troubles Inserting into MYSQL

2002-09-09 Thread Jay Blanchard
[snip] if ($update_type == update_Williams) { mysql_query(INSERT INTO events ('user', 'detaildesc', 'index', 'reference', 'date_added') VALUES (\'$cookiewho\', \'$add_Williams\',\'\',\'$row_num\',\'$last_update\'), $sql4) or die (could not do update); } [/snip] Try this if

[PHP] PHP web mail forward feature

2002-09-09 Thread Santosh Pasi
Hi, I need suggestion regarding handling multipart/mixed mail with attachment and embedded image, I need to forward this mail using php, what can be best and safe way !!! Is there any class, example on the net !!! Thanks in advance Regards, Santosh Pasi -- PHP General Mailing List

Re: [PHP] help me regarding redirecting a page

2002-09-09 Thread Support @ Fourthrealm.com
Anjali, Use a BUTTON type element, and some javascript: INPUT TYPE=button VALUE=Cancel Return to menu ONCLICK=self.location=menu.ihtml' Peter At 01:57 PM 9/8/2002 -0700, you wrote: hello, i dont know how to redirect a page... i mean i want to have the effect of submit button without

[PHP] Re: POST form variables not being sent to destination page

2002-09-09 Thread @ Edwin
Hi there, I don't really see any "serious" problem in your code except that your opening body tag is in the wrong place :). Since I don't have php/apache running on my XP I cannot really tell if this is an installation problem. Anyway, I have php/apache (4.2.2/1.3.26) on Linux and

Re: [PHP] POST form variables not being sent to destination page

2002-09-09 Thread @ Edwin
Hi there, I don't really see any "serious" problem in your code except that your opening body tag is in the wrong place :). Since I don't have php/apache running on my XP I cannot really tell if this is an installation problem. Anyway, I have php/apache (4.2.2/1.3.26) on Linux and

RE: [PHP] Troubles Inserting into MYSQL

2002-09-09 Thread bbonkosk
If you read: http://www.php.net/manual/en/function.mysql-query.php You will see what $sql4 can be. My guess would be he is connected to 2 or more different databases, and this is specifiying which one to execute the query on. -Brad [snip] if ($update_type == update_Williams) {

Re: [PHP] select box

2002-09-09 Thread Support @ Fourthrealm.com
If you want to put the SELECTED option into your select list while you are building the page, use an if statement in the option... ... something like this: OPTION VALUE=1 ?php if ($this==$that) {echo SELECTED; } ? Option 1 OPTION VALUE=2 ?php if ($this==$that2) {echo SELECTED; } ? Option 2

[PHP] Re: POST form variables not being sent to destination page

2002-09-09 Thread Erwin
I've got an html form but when I use the POST method the form variables don't make it to the destination page, when I use the GET method, there's no problem. I've uploaded the test pages to our web servers and the POST and GET methods both work fine, therefore I'm assuming it's a problem

[PHP] Session problem

2002-09-09 Thread John Wards
I am having problems with my sessions. This function registered my username password and userid in the session no problem. function login_chk($username, $password){ global $user_id; $user_res = mysql_query(SELECT * FROM fan_users WHERE name = '$username' and password ='$password') or die(Line

Re: [PHP] Session problem

2002-09-09 Thread John Wards
h I dunno why but if I returned $data from my function and registered it out side the function it works fine and yes my session_start() is above my function John I am having problems with my sessions. This function registered my username password and userid in the session no problem.

[PHP] Weird fileupload problem

2002-09-09 Thread Trond Arve Nordheim
Hi! I'm working on a simple file upload form here, where the user can upload large zip files containing images to be added to the selected image gallery... However, uploading large files seems to be a little problem.. Whenever I upload large files (the file I'm experimenting with is about 8MB)

[PHP] Moduli per sablot

2002-09-09 Thread Agnoletto Christian
I need the sablot extension Can someone send me the dll file? sablot.dll LIBEXPAT.dll Thank's I can't log in Internet so please send me by email -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checkbox question

2002-09-09 Thread Alex Shi
Thanks for your reply! I tested $_SERVER['QUERY_STRING']. Seems like it only return the string for get method but not for post. Any idea? Alex Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you cannot use square brackets, get the values

php-general Digest 9 Sep 2002 14:31:11 -0000 Issue 1575

2002-09-09 Thread php-general-digest-help
php-general Digest 9 Sep 2002 14:31:11 - Issue 1575 Topics (messages 115697 through 115744): Re: How to program very basic chat on PHP? 115697 by: M 115698 by: Justin French 115708 by: M Problems with GD 2.0.1 115699 by: Ville Mattila Re: turn

[PHP] help with installation

2002-09-09 Thread R'twick Niceorgaw
Sure I'm missing some thing silly here but its monday morning :) I have just installed php 4.2.3 with apache 1.3.26. I have all loadmodule/addmodule as well as AddType x-httpd-php .php directives present in httpd.conf. http://myhost/server-info shows I have php module loaded. But, when I browse

Re: [PHP] Weird fileupload problem

2002-09-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, First of all, you can *not* set the upload size via .htaccess. You have to set it in httpd.conf or php.ini. And you need to use php_value instead of php_flag. Directory /dir/    php_value upload_max_filesize 8M /Directory btw, this was

RE: [PHP] help with installation

2002-09-09 Thread Matt Schroebel
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 10:32 AM Subject: [PHP] help with installation Sure I'm missing some thing silly here but its monday morning :) I have just installed php 4.2.3 with apache 1.3.26. I have all loadmodule/addmodule as well

Re: [PHP] help with installation

2002-09-09 Thread R'twick Niceorgaw
I'm sorry. but that's what I have in the config file. I just wrote it wronge here. Here's my complete php related configuration IfDefine PHP4 LoadModule php4_moduleextramodules/libphp4.so /IfDefine IfDefine PHP4 AddModule mod_php4.c /IfDefine AddType aplication/x-httpd-php .php

Re: [PHP] Session problem

2002-09-09 Thread @ Edwin
I think this one worked because if($count ==1){ $user_data = mysql_fetch_row($user_res); $user_id = $user_data[0]; // --- of this if(!session_is_registered(user_id)) session_register(user_id); if(!session_is_registered(username))

Re: [PHP] Load / Stress Testing

2002-09-09 Thread Chris Hewitt
Dan Hardiker wrote: Ive thought of writting a load testing script, but Im not after reinventing the wheel. Dan, Apache comes with ab for this sort of testing. man ab for details. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] help with installation

2002-09-09 Thread @ Edwin
Of course, you restarted Apache? Also, try leaving this out --- IfDefine PHP4/IfDefine and just write LoadModule php4_moduleextramodules/libphp4.so (Applies to AddModule as well...) And make sure that the extramodules folder does exists! - E On Monday, September 09, 2002 11:43 PM

Re: [PHP] Weird fileupload problem

2002-09-09 Thread Trond Arve Nordheim
On Mon, Sep 09, 2002 at 10:29:04AM -0400, Paul Nicholson wrote: Hey, First of all, you can *not* set the upload size via .htaccess. You have to set it in httpd.conf or php.ini. And you need to use php_value instead of php_flag. Directory /dir/    php_value upload_max_filesize 8M

Re: [PHP] Calling info from mySQL inside flash

2002-09-09 Thread Thomas Edison Jr.
THANKS A TON!!! --- Brad Bonkoski [EMAIL PROTECTED] wrote: How about giving this page a look over: http://www.macromedia.com/desdev/topics/php.html Here's an article especially for using PHP and MySQL with Flash MX http://www.macromedia.com/desdev/mx/flash/articles/flashmx_php.html HTH

[PHP] Re: POST form variables not being sent to destination page

2002-09-09 Thread Howard Roscoe
Hi Erwin, Thanks for the reply but it turned out to be a slightly odd installation bug. On the PHP Bug board, I managed to find that it was to do with the Apache configuration settings, namely, you should put AddType application/x-httpd-php .php .php3 instead of; FilesMatch \.php$

Re: [PHP] Weird fileupload problem

2002-09-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, http://php.net/manual/en/features.file-upload.php hmm.the max_file_size won't do anything - you should remove it. The post_max_size should be larger than the upload_max_filesize you might just to check memory limit..that has to be

[PHP] IMAP - Moving messages between folders

2002-09-09 Thread N. Pari Purna Chand
Hi all imap gurus out there, I have sruggling for quite some time to get the imap_mail_move() function to work. Imap server : Courier IMAP PHP Version : 4.1.2 ? ... $connectstring = $usr_inmailserver. / . $usr_accessmethod . : . $usr_inmailport; $mbox = imap_open({ . $connectstring .

Re: [PHP] \n to BR Problem

2002-09-09 Thread yasin inat
try this function nltobr() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: date question

2002-09-09 Thread yasin inat
oradaki bir gun kavramini biraz daha açarsan yardim edebilirim - umarim - timestamp mi yoksa baska -daha özel bir- formatta mi ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: select box

2002-09-09 Thread yasin inat
evet koyabilirsin degerini bastan verdigin bir degiskenle : ? $selected=SELECTED; ? select option name=bla blabla bla option?=$selected ?display first /select her defasindaselected olan degisecekse ... ? $selected=option selecteddisplay first or.$baskadegisken; ?

[PHP] PHP + Flash Die??????

2002-09-09 Thread Wilfredo I. Pachón López
Hello every body: I'm creating a web aplication that allow modify dinamically a Flash movie with data extracted from a data base. I download PHP 4.2.3 and the libswf library from sgi... and compile PHP with swf, aparently this work: the configure step is done without problems, too make and

Re: [PHP] about whitespace

2002-09-09 Thread yasin inat
http://www.php.net/manual/en/function.trim.php for the beginning of string use ltrim() vice versa rtrim() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Source files

2002-09-09 Thread OrangeHairedBoy
I'm wondering if anyone knows where I can find information about how PHP parser processes commands like: $a=$b+$c; if ($b $a) {} (Ones with operators) I've downloaded the source code, but I'm having much luck narrowing down my search. Can anyone help me?? Thanks! -- PHP General Mailing

[PHP] RE: A straightforward user login coding

2002-09-09 Thread YC Nyon
I been searching for a user authentication codes all night but got no where with the results. Therefore, if someone can tell me where to find 1. a user authentication using Mysql 2. don't use cookies. 3. also a logout script. my os is windows. TIA Nyon -- PHP General Mailing List

Re: [PHP] RE: A straightforward user login coding

2002-09-09 Thread Adam Williams
search google for using PHP sessions and you will print the session ID into the URL. Adam On Tue, 10 Sep 2002, YC Nyon wrote: I been searching for a user authentication codes all night but got no where with the results. Therefore, if someone can tell me where to find

Re: [PHP] PHP Source files

2002-09-09 Thread Adam Voigt
Umm, maybe I'm confused, but here's an answer, not sure if it's right: 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. Adam Voigt [EMAIL

RE: [PHP] PHP Source files

2002-09-09 Thread Matt Schroebel
From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:41 PM Subject: [PHP] PHP Source files I'm wondering if anyone knows where I can find information about how PHP parser processes commands like: $a=$b+$c; if ($b $a) {} (Ones with operators)

RE: [PHP] RE: A straightforward user login coding

2002-09-09 Thread Steve Bradwell
Hey there, This is a page I wrote that does that with sessions, sorry its a little messy but it should help you with the general idea. HTH, Steve. //Copy the below into a php file and change all the variables and sql statement to reflect your own data. ? session_start(); if(isset($level))

Re: [PHP] PHP Source files

2002-09-09 Thread OrangeHairedBoy
No, but that's ok... What am looking to learn is HOW php makes those kind of expressiong work. I know how to write php intematly, but I'd like to know where in the downloadable PHP source code it processes these statements. Any help on that?? Lewis Adam Voigt [EMAIL PROTECTED] wrote in

Re: [PHP] PHP Source files

2002-09-09 Thread OrangeHairedBoy
I know how to use these statements. What I'd like to know is how the PHP parser makes it happen. Where in the downloadble PHP source code is the C code that actually reads the statement, figures out what needs to happen, and makes it happen? Can you help me on this? Lewis Matt Schroebel

Re: [PHP] PHP Source files

2002-09-09 Thread Adam Voigt
Oh, ok, I was wondering cause I thought the question was fairly basic, as for where in the actual source code to PHP expressions are processed I have no idea. I bet they know in the php-dev mailing list though, you might want to try there. Adam Voigt [EMAIL PROTECTED] On Mon, 2002-09-09 at

Re: [PHP] PHP Source files

2002-09-09 Thread OrangeHairedBoy
Hey, that's a starting point!!! :) Thanks Adam Voigt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Oh, ok, I was wondering cause I thought the question was fairly basic, as for where in the actual source code to PHP expressions are processed I have no idea.

RE: [PHP] Upload Progress

2002-09-09 Thread Jay Blanchard
[snip] There really isn't a great solution for this, that I know of. It's one of the few things that makes an argument for ASP over PHP, as far as I'm concerned (if you have the luxury of choosing). Below is what I did once to try to get around the problem. It worked *okay*. [/snip] How does

Re: [PHP] Upload Progress

2002-09-09 Thread Jed Verity
You're right about it costing more money. But we had one server handling a bunch of uploads, most of them over 25 MB, and 99% being instigated by very impatient, not very technical, people. People who kept canceling and canceling, despite our directions, because they thought it was stuck or

[PHP] RE: Session seams to be clearing randomly

2002-09-09 Thread David Cramblett
Hello, I am having trouble with my session clearing after a few clicks around the application. The session is started in a header which is loaded first on every page in my application and I can not isolate the clearing to one page or link, it seams to be random. I can click maybe 10 - 20

Re: [PHP] RE: Session seams to be clearing randomly

2002-09-09 Thread David Cramblett
Additionally, I forgot to mention that the session file is still viewable in the tmp directory after the session clears. David David Cramblett wrote: Hello, I am having trouble with my session clearing after a few clicks around the application. The session is started in a header

RE: [PHP] Upload Progress

2002-09-09 Thread David Buerer
Ya' know guys i'm sitting here thinking about this problem because I have the same problem on one of my sites. A bunch of inpatient stupid users whom are click happy when they get impatient. Event a 100K upload can take to long! I don't like the ASP idea. It's really not a good solution. I'm

RE: [PHP] RE: Session seams to be clearing randomly

2002-09-09 Thread David Buerer
I would bet money on the fact that one of your pages doesn't have a session start in it. Or there is a link which which requires resets the browser and initiates the creation of new session. I've had some problems before with javascript and top.window.location redirections that when set to

[Fwd: Re: [PHP] RE: Session seams to be clearing randomly]

2002-09-09 Thread David Cramblett
David B, Thanks for suggestions, but this is a very basic app, again it has only three php scripts which it runs and all three load (include) the exact same header file which starts the session. Also, again, when clicking on the links, which basically just switch between the three php

Re: [PHP] Upload Progress

2002-09-09 Thread Paul Roberts
why not just get creative, pop up a window on submit with an animated gif of a dot moving back and forth or similar and an uploading message and then close it when the page reloads. most of these things on have nothing to do with progress of what's really happening in my experience. Paul

Re: [PHP] Upload Progress

2002-09-09 Thread Paul Roberts
your problem is nothing seems to happen when they click the submit button, you can use JavaScript to prevent re-submission, change the text on the submit button or you could even pop up a window on submit with an animated gif of a dot moving back and forth or similar and an uploading message

[PHP] Output Buffering issues with 4.1.2

2002-09-09 Thread Ron Dyck
I seem to have some trouble with a script using the output buffering functions on a server running v4.1.2. Everything works fine on the box with 4.2.2. Is this an issue with 4.1.2? === Ron Dyck WebbTech www.webbtech.net [EMAIL PROTECTED] -- PHP

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

2002-09-09 Thread Okar
I m using the following attachment handling code in my web client ? // supposing that: // $encoding = 'BASE64'; // $pid = attachment's pid; // $file = attachment's file name; // $size = $object-bytes; // $type = $object-type; // $subtype = $object-subtype; //... $attch =

[PHP] Variable Assignment

2002-09-09 Thread Kicenko, Frank
Hi, I apologize for asking this question as it must have been asked many times before but I can't find it in any of the archives.. What I would like to do is setup forms in javascript and then on a submit to assign these variables to PHP variables. I know how to assign PHP to javascript with

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

[PHP] Error when going to PHP page

2002-09-09 Thread FlipinMonkeyPie
I started off, with my php program in c:/PHP and it worked fine, but i wanted to rearrange aa few things, so i moved it to c:/usr/php, i edited my apache config files to the new dir, when i go to a php file, it says 404 cannot find file, even if i go to the directory index and click on it, it

[PHP] Problems with filesize() and large files

2002-09-09 Thread 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 as an integer. If the integer is too big, it returns an negative value. Is it possible to extend the integer to 64 bit ? Or any other solution, to solve this problem

[PHP] update: Error when going to PHP page

2002-09-09 Thread FlipinMonkeyPie
I was able to get it to work, thanks anyways

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

2002-09-09 Thread Evan Nemerson
Just figure out what the limits of 32-bit integers are. It might be enough to do something like $num = INT_MAX + abs( INT_MIN - filesize(bigFile) ); I'm not sure if that's the right math, but I hope you get the idea. If memory serves, what's happening is that the 32nd bit (which represents the

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

2002-09-09 Thread Kurt Glazemakers
Yep, I was thinking about a similar solution, but if the file exceeds the 4 Gigabyte limit, the solution won't help anymore. And it wil be a matter of time to exceed this limit. But I'm afraid there is no other solution for this. Kurt -Original Message- From: Evan Nemerson

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

[PHP] debug apache dump on windows

2002-09-09 Thread screen
Where should I post to find information on how to debug an apache crash on windows using the latest 4.3.0-dev snapshot? -lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable Assignment

2002-09-09 Thread Tom Rogers
Hi, Tuesday, September 10, 2002, 7:08:27 AM, you wrote: KF Hi, KF I apologize for asking this question as it must have been asked many times KF before but I can't find it in any of the archives.. KF What I would like to do is setup forms in javascript and then on a submit to KF assign these

[PHP] Problem with session handling with frameset.

2002-09-09 Thread Jiaqing Wang
Hello, Everyone, I'm having some problem with the session handling in my code, it's kind of hard to explain the whole problem but let me try. I currently have a login page login.php which will take user input for userid and passwd and check them against my backend PostgreSQL database, after the

Re: [PHP] Upload Progress

2002-09-09 Thread joshua
A bunch of inpatient stupid users whom are click happy when they get impatient. impatient, not very technical, people. People who kept canceling and canceling, despite our directions, because they thought it was stuck or frozen or taking too long. the simplest and most elegant work around

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

2002-09-09 Thread php
Hi all, I need to build php as a CGI for some scripts that need to run as the user (image gallery scripts, where safe mode isn't enough to write to user directories, I need the files written AS a user, and chmodding the directory 6777 is just nuts.). To this end I figure I can add a new mime

[PHP] Simple Progress Bar (was Upload Progress)

2002-09-09 Thread Jacob Miller
Well, for lack of a better solution (and mainly lack of time to invent one) I decided to go with a simple indeterminate progress bar. I've already found more uses for this than just uploading files and thought some of you might have a use for it in your scripts which take a while to complete.

[PHP] Simple Progress Bar (was Upload Progress) (2nd Try)

2002-09-09 Thread Jacob Miller
Well, for lack of a better solution (and mainly lack of time to invent one) I decided to go with a simple indeterminate progress bar. I've already found more uses for this than just uploading files and thought some of you might have a use for it in your scripts which take a while to complete.

Re: [PHP] Problem with session handling with frameset.

2002-09-09 Thread Justin French
on 10/09/02 1:01 PM, Jiaqing Wang ([EMAIL PROTECTED]) wrote: Hello, Everyone, I'm having some problem with the session handling in my code, it's kind of hard to explain the whole problem but let me try. I currently have a login page login.php which will take user input for userid and passwd

  1   2   >