[PHP] Sending the results of a query without using a file

2007-05-02 Thread Todd Cary
Some shared servers do not allow the creation of a file, so I am looking for a way to take the results of a query (MySQL), create a CSV output and have it in a sendable format for the user without creating a file. Many thanks Todd -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sending the results of a query without using a file

2007-05-02 Thread Kevin Waterson
This one time, at band camp, Todd Cary [EMAIL PROTECTED] wrote: Some shared servers do not allow the creation of a file, so I am looking for a way to take the results of a query (MySQL), create a CSV output and have it in a sendable format for the user without creating a file. sendable to

[PHP] Split string

2007-05-02 Thread Lester Caine
Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a second. It's the 'first either space or comma' that

Re: [PHP] Sending the results of a query without using a file

2007-05-02 Thread clive
Todd Cary wrote: Some shared servers do not allow the creation of a file, so I am looking for a way to take the results of a query (MySQL), create a CSV output and have it in a sendable format for the user without creating a file. are you sure, then how could you say ftp the files to the

Re: [PHP] Split string

2007-05-02 Thread Fredrik Thunberg
Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a second. It's the 'first either

RE: [PHP] PHP Command line script

2007-05-02 Thread Peter Lauri
Check the error from mysqli: http://fi.php.net/manual/en/function.mysqli-error.php Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: Nathaniel Hall [mailto:[EMAIL

Re: [PHP] Sending the results of a query without using a file

2007-05-02 Thread Tijnema !
On 5/2/07, clive [EMAIL PROTECTED] wrote: Todd Cary wrote: Some shared servers do not allow the creation of a file, so I am looking for a way to take the results of a query (MySQL), create a CSV output and have it in a sendable format for the user without creating a file. are you sure, then

Re: [PHP] Split string

2007-05-02 Thread Lester Caine
Fredrik Thunberg wrote: Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a second.

Re: [PHP] Split string

2007-05-02 Thread Stut
Fredrik Thunberg wrote: Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a second.

Re: [PHP] Split string

2007-05-02 Thread Stut
Stut wrote: Alternatively you could use split to break the string into the two parts, which is probably more efficient... list($part1, $part2) = split('[ ,]', $myString); Oops, this should have a third parameter... list($part1, $part2) = split('[ ,]', $myString, 2); -Stut -- PHP General

[PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread list3
I need to do some socket work on a production machine that is constantly busy so I don't dare re-compile php. Anybody know if it's possible to load the socket functions dynamically, maybe as if they were in a module? Alternatively, would it be possible to compile PHP without apache and with

[PHP] Extract and verify SSL signature form x509 certificate.

2007-05-02 Thread D.EIiM - Lluís Pàmies i Juarez
I've a x509 certificate from my CA self-signed: $res_ca_cert=openssl_csr_sign($res_ca_csr,NULL,$res_ca_key,365); Then, I've an user certificate signed by the CA: $res_usr_cert=openssl_csr_sign($txt_usr_csr,$txt_ca_cert,$res_ca_key,1); Exists in the PHP API any function to check if the user

[PHP] Re: Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Man-wai Chang
[EMAIL PROTECTED] wrote: I need to do some socket work on a production machine that is constantly busy so I don't dare re-compile php. Anybody know if it's possible to load the socket functions dynamically, maybe as if they were in a module? I think both Fedora Core and Ubuntu do it. Check out

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Oliver Block
Am Mittwoch, 2. Mai 2007 13:29 schrieb [EMAIL PROTECTED]: I need to do some socket work on a production machine that is constantly busy so I don't dare re-compile php. Anybody know if it's possible to load the socket functions dynamically, maybe as if they were in a module? It's possible if

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Oliver Block
Am Mittwoch, 2. Mai 2007 14:36 schrieb Oliver Block: --with-socket=shared Actually it should be --enable-sockets=shared Regards, Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Deviation? Distribution? OT?

2007-05-02 Thread tedd
At 4:42 PM -0500 5/1/07, Richard Lynch wrote: Little help here? Richard: Let me estate the problem. From your dB of things (the population), you're going to pull out the top 100 most popular items and then divide them into five groups using labels t1 through t5. Considering that it's css

[PHP] [X-POST] Fastest way to dump this huge table

2007-05-02 Thread Brian Dunning
I have a huge MySQL table, 2.1 million records, 200MB. Once a week I need to dump it in CSV format and zip the file. This is not on my server, and it's in production, so I don't want to risk testing different methods and possibly hanging up their server for a period of time, so I wanted to

[PHP] RE: [X-POST] Fastest way to dump this huge table

2007-05-02 Thread Jay Blanchard
[snip] I have a huge MySQL table, 2.1 million records, 200MB. Once a week I need to dump it in CSV format and zip the file. This is not on my server, and it's in production, so I don't want to risk testing different methods and possibly hanging up their server for a period of time, so I

Re: [PHP] [X-POST] Fastest way to dump this huge table

2007-05-02 Thread Richard Davey
Brian Dunning wrote: I have a huge MySQL table, 2.1 million records, 200MB. Once a week I need to dump it in CSV format and zip the file. This is not on my server, and it's in production, so I don't want to risk testing different methods and possibly hanging up their server for a period of

Re: [PHP] [X-POST] Fastest way to dump this huge table

2007-05-02 Thread David Giragosian
On 5/2/07, Richard Davey [EMAIL PROTECTED] wrote: Brian Dunning wrote: I have a huge MySQL table, 2.1 million records, 200MB. Once a week I need to dump it in CSV format and zip the file. This is not on my server, and it's in production, so I don't want to risk testing different methods

Re: [PHP] [X-POST] Fastest way to dump this huge table

2007-05-02 Thread clive
I'd say give some attention to the zip method you use. or better yet rsync the file, send only what has changed. -- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission or reading of this email. However, many were excited and some may

[PHP] Re: About resource of popen

2007-05-02 Thread Fernando chucre
Somebody? help me!! :D 2007/4/30, Fernando chucre [EMAIL PROTECTED]: Hello all, I make a script for read and interprete the stdout of cmd `ip monitor`. And I use signal_handler, the script is like this: ? declare(ticks = 1); pcntl_signal(SIGHUP,sig_handler,false); $fh = popen('ip

[PHP] PHP's ldap_sasl_bind tries to authenticate with KRB5CCNAME other than the one provided by mod_auth_kerb

2007-05-02 Thread gil ran
Hi. I am using Apache-2.2.2 with mod_auth_kerb-5.3, php-5.2.1, openldap-2.3.27 cyrus-sasl-2.1.21 and heindal-0.7.2 on a Linux-from-scratch based system. The problem I'm presenting is probably a PHP issue or an Apache issue, or a mod_auth_kerb issue. I could not understand which one causes the

[PHP] excel macro into php

2007-05-02 Thread Anton Krall
Guys.. I have a problem and I was wondering if somebody with good php knowledge could help. I have this excel macro that converts number currency (mexican) into a string and I was wondering if somebody could help translating it to php... Her eis the macro, if you could help, I would really

[PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Rahul S. Johari
Ave, Here¹s the thing, I¹ve got an Array which has it¹s own set of Keys = Values. I¹m using foreach() to read the Keys = Values like this: function pr1($var) { foreach ($var as $k = $v) { echo ³$k = $v²; } I need to INSERT the Values from this

RE: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Brad Fuller
Rahul S. Johari wrote: Ave, Here¹s the thing, I¹ve got an Array which has it¹s own set of Keys = Values. I¹m using foreach() to read the Keys = Values like this: function pr1($var) { foreach ($var as $k = $v) { echo ³$k = $v²; } I need to

Re: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread David Giragosian
On 5/2/07, Rahul S. Johari [EMAIL PROTECTED] wrote: Ave, Here¹s the thing, I¹ve got an Array which has it¹s own set of Keys = Values. I¹m using foreach() to read the Keys = Values like this: function pr1($var) { foreach ($var as $k = $v) { echo ³$k = $v²;

[PHP] Re: [X-POST] Fastest way to dump this huge table

2007-05-02 Thread Colin Guthrie
clive wrote: I'd say give some attention to the zip method you use. or better yet rsync the file, send only what has changed. Good advice but may not work as well with extended insert syntax which results in smaller dump files and much faster import too. I guess with CSV it could work well

RE: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Jim Moseby
$sql = INSERT INTO table (f1, f2, f3, . implode(,, array_keys($pr1)) .) VALUES ('abc', '123', '456', . implode(,, array_values($pr1)) .); HTH, Brad Might not work if the array values need to be enclosed in quotes. I would build the query string in a foreach loop and

Re: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Rahul Sitaram Johari
Ave, I was just about to post when I saw your message. I think what you're saying is exactly what is happening. The values have Spaces and stuff so Quotes are Required - cannot have values not enclosed in Quotes. Other then that it was actually working. Is there a way to enclose in Quotes using

[PHP] Re: Split string

2007-05-02 Thread Al
Look at split() and explode(). Lester Caine wrote: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a

RE: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Brad Fuller
Jim Moseby wrote: $sql = INSERT INTO table (f1, f2, f3, . implode(,, array_keys($pr1)) .) VALUES ('abc', '123', '456', . implode(,, array_values($pr1)) .); HTH, Brad Might not work if the array values need to be enclosed in quotes. I would build the query string in a

Re: [PHP] INSERT Array Values into mySQL Table - SOLVED!

2007-05-02 Thread Rahul Sitaram Johari
WORKS Like A Charm!! :) Thanks. On 5/2/07 12:14 PM, Brad Fuller [EMAIL PROTECTED] wrote: Jim Moseby wrote: $sql = INSERT INTO table (f1, f2, f3, . implode(,, array_keys($pr1)) .) VALUES ('abc', '123', '456', . implode(,, array_values($pr1)) .); HTH, Brad Might not work if the

Re: [PHP] PHP Command line script

2007-05-02 Thread Nathaniel Hall
Greg Donald wrote: On 5/1/07, Nathaniel Hall [EMAIL PROTECTED] wrote: I am attempting to run a script that will run from the command line nightly to update a field in a database. I already created a script that would access the database and insert most of the information when a webpage is

[PHP] Bounce composition

2007-05-02 Thread Richard Lynch
Does anybody have or know of a good simple PHP script that can take an email as an input, and compose a Bounce email as output? I need something that does just that, without a huge framework or a zillion other features... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Discussion of bug #39062

2007-05-02 Thread Bill Moran
http://bugs.php.net/bug.php?id=39062 I'm requesting that this bug be reopened and reconsidered. I'm completely befuddled by the handling of this bug. The message text suggests a workaround, then the bug is marked bogus. If the bug is bogus, why is there a workaround required? Additionally,

Re: [PHP] Discussion of bug #39062

2007-05-02 Thread Robert Cummings
On Wed, 2007-05-02 at 14:14 -0400, Bill Moran wrote: http://bugs.php.net/bug.php?id=39062 I'm requesting that this bug be reopened and reconsidered. I'm completely befuddled by the handling of this bug. The message text suggests a workaround, then the bug is marked bogus. If the bug is

RE: [PHP] Discussion of bug #39062

2007-05-02 Thread Daevid Vincent
While I'm not using this particular function, I do agree with you, it's kinda sucky that they just dismissed their broken-ass method. It should return -2G..2G as advertised and as all other POSIX systems do. And you are also correct about the work around that is erroneous too. IMHO, this is a

RE: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 11:03 am, Jim Moseby wrote: $sql = INSERT INTO table (f1, f2, f3, . implode(,, array_keys($pr1)) .) VALUES ('abc', '123', '456', . implode(,, array_values($pr1)) .); HTH, Brad Might not work if the array values need to be enclosed in quotes. I would

Re: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 10:42 am, Rahul S. Johari wrote: Here¹s the thing, I¹ve got an Array which has it¹s own set of Keys = Values. I¹m using foreach() to read the Keys = Values like this: //note added arguments! function pr1($var, $var2, $var3) { foreach ($var as $k = $v) {

Re: [PHP] PHP's ldap_sasl_bind tries to authenticate with KRB5CCNAME other than the one provided by mod_auth_kerb

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 9:41 am, gil ran wrote: I am using Apache-2.2.2 with mod_auth_kerb-5.3, php-5.2.1, openldap-2.3.27 cyrus-sasl-2.1.21 and heindal-0.7.2 on a Linux-from-scratch based system. The problem I'm presenting is probably a PHP issue or an Apache issue, or a mod_auth_kerb issue. I

Re: [PHP] Discussion of bug #39062

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 1:14 pm, Bill Moran wrote: http://bugs.php.net/bug.php?id=39062 I'm requesting that this bug be reopened and reconsidered. I'm completely befuddled by the handling of this bug. The message text suggests a workaround, then the bug is marked bogus. If the bug is bogus,

Re: [PHP] [X-POST] Fastest way to dump this huge table

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 8:54 am, Brian Dunning wrote: I have a huge MySQL table, 2.1 million records, 200MB. Once a week I need to dump it in CSV format and zip the file. You could run mysql_dump once by hand and test just how bad it is, and be ready to kill -9 it if the server gets hurt... But,

[PHP] MySQL change-tracking

2007-05-02 Thread Richard Lynch
I have this simple database and I'm going to have a handful of people editing it... I'd like to track each and every edit with username, and, ideally, provide myself an easy Undo if I decide [bleep] is an idiot and shouldn't have done that. Now, I'm not real concerned about the relational

Re: [PHP] Sockets as a module or a separate PHP CLI instance?

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 6:29 am, [EMAIL PROTECTED] wrote: I need to do some socket work on a production machine that is constantly busy so I don't dare re-compile php. Anybody know if it's possible to load the socket functions dynamically, maybe as if they were in a module? If you can do

Re: [PHP] Split string

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 3:55 am, Lester Caine wrote: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a

Re: [PHP] Bounce composition

2007-05-02 Thread Oliver Block
Am Mittwoch, 2. Mai 2007 20:11 schrieb Richard Lynch: Does anybody have or know of a good simple PHP script that can take an email as an input, and compose a Bounce email as output? I need something that does just that, without a huge framework or a zillion other features... please try this:

Re: [PHP] Split string

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 4:55 am, Lester Caine wrote: Fredrik Thunberg wrote: Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one

Re: [PHP] Sending the results of a query without using a file

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 2:17 am, Todd Cary wrote: Some shared servers do not allow the creation of a file, so I am looking for a way to take the results of a query (MySQL), create a CSV output and have it in a sendable format for the user without creating a file. $result = mysql_query(select *

Re: [PHP] Deviation? Distribution? OT?

2007-05-02 Thread Richard Lynch
On Tue, May 1, 2007 4:48 pm, Daniel Brown wrote: I don't think I'm quite following why you wouldn't just want to break it up into groups of 20 Because in the real world, it's not an even distribution of popularity. There are only 1 or 2 Legends, and a handful of Rock Stars, and a

Re: [PHP] Deviation? Distribution? OT?

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 7:55 am, tedd wrote: Let me estate the problem. From your dB of things (the population), you're going to pull out the top 100 most popular items and then divide them into five groups using labels t1 through t5. Considering that it's css guy asking for this, he's probably

Re: [PHP] PHP Command line script

2007-05-02 Thread Richard Lynch
On Tue, May 1, 2007 3:13 pm, Nathaniel Hall wrote: ?php $mysqli = new mysqli('localhost', 'root', 'abc123', 'mydb'); if (mysqli_connect_errno()) { echo Unable to connect to database.\n; exit; } else { $login =

Re: [PHP] resize image and store it to DB

2007-05-02 Thread Richard Lynch
On Tue, May 1, 2007 5:54 am, Alain Roger wrote: else // both $width and $height are smaller than max, so we need to zoom Zooming an image is RARELY satisfactory in appearance... I'd say just leave it alone, personally. $escaped = pg_escape_bytea($thumb); // does not work and it's normal

Re: [PHP] newbie needs help

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 3:37 pm, Ben Clapp wrote: I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date(m, mktime()), but i want to set up a date range for it to show up. Ex. 4-13 to 5-13 each year. How can I do that?

RE: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 6:33 pm, Daevid Vincent wrote: echo BROWSER: . $_SERVER['HTTP_USER_AGENT'] . \n; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. It probably won't do 2-D arrays, but 1-D

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:19 pm, Richard Davey wrote: Greg Donald wrote: On 4/30/07, Daevid Vincent [EMAIL PROTECTED] wrote: echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:44 pm, Greg Donald wrote: On 4/30/07, Greg Donald [EMAIL PROTECTED] wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. You don't *HAVE* to left-justify the rest

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 3:41 pm, Micky Hulse wrote: Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( Cool! They fixed http://php.net/ to go to the

Re: [PHP] What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:18 pm, Paul Novitski wrote: When I first started using PHP I thought that each heredoc label had to be unique. Turns out that's not true, and now I use the simple shorthand: $sResult = _ Some text. _; I suspect earlier versions of PHP required unique labels... At

Re: [PHP] What does mean?

2007-05-02 Thread Daniel Brown
On 5/2/07, Richard Lynch [EMAIL PROTECTED] wrote: Cool! They fixed http://php.net/ to go to the strings page! Just wish it jumped to the anchor as well... :-) I'm greedy. :-) :-) :-) I'll say you are! Next you'll want all of the links on the site to point to the correct spots! -- Daniel

Re: [PHP] What does mean?

2007-05-02 Thread Daniel Brown
No, to my knowledge, even PHP3 (I honestly don't remember if it was in PHP/FI, but I don't think so) allowed you to use the same name for multiple heredoc's. It just works like the for/next concept in BASIC for this = this to that (do something), next this. Meaning that as soon as the

Re: [PHP] Re: What does mean?

2007-05-02 Thread Richard Lynch
On Tue, May 1, 2007 12:55 pm, Robert Cummings wrote: Are there perhaps editors that would DISPLAY multi-line quoted strings indented to the correct level without inserting extra spaces? Some editors wrap lines to the correct level, which is also much more readable, so what I'm thinking of is

Re: [PHP] [X-POST] Fastest way to dump this huge table

2007-05-02 Thread Brian Dunning
Thanks to everyone who answered, think I've got enough info now to handle it. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] sloppy use of constants as strings. WAS: What does mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 9:05 pm, Daevid Vincent wrote: echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Why would cleaner, perfectly

Re: [PHP] Split string

2007-05-02 Thread Stut
Richard Lynch wrote: On Wed, May 2, 2007 4:55 am, Lester Caine wrote: Fredrik Thunberg wrote: Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space

Re: [PHP] newbie needs help

2007-05-02 Thread Ben Clapp
Thank you, someone had sent me some code that worked on Friday Ben Richard Lynch wrote: On Mon, April 30, 2007 3:37 pm, Ben Clapp wrote: I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date(m, mktime()), but i want

Re: [PHP] PHP + COM (IE Button COM Server)

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 1:46 pm, Iqbal Naved wrote: Anybody has implemented a IE button COM server in PHP ? I have found a python implementation for this in pywin32 package. My objective is to add a button in ie which will on click save the url in the address bar. I am attatching the

Re: [PHP] Re: About resource of popen

2007-05-02 Thread Richard Lynch
What's in sig_handler function body, as it relates to $fh and/or exiting the script?... I probably won't know the answer, but I'm pretty sure nobody else will either without that info. On Wed, May 2, 2007 9:43 am, Fernando chucre wrote: Somebody? help me!! :D 2007/4/30, Fernando chucre

Re: [PHP] Run a script apart from request

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 9:55 am, Brad Fuller wrote: I am developing a program that does some intensive data processing, and is triggered from a page hit and/or a SOAP request. The processing takes on average 30 seconds to 1 minute, which is OK for a web page (I can use set_time_limit(0) and

Re: [PHP] Split string

2007-05-02 Thread Jim Lucas
Stut wrote: Richard Lynch wrote: On Wed, May 2, 2007 4:55 am, Lester Caine wrote: Fredrik Thunberg wrote: Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to

Re: [PHP] PHP MySQL - Field Title

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 12:47 am, Christian Haensel wrote: Good Morning guys and girls As I am rather lazy, I don't wanna do a data readout on my MySQL table in the following way with mysql_fetch_assoc() $data_item1=$data['xitem1']; $data_item2=$data['yitem2]; I am

RE: [PHP] MySQL change-tracking

2007-05-02 Thread Brad Fuller
Richard Lynch wrote: I have this simple database and I'm going to have a handful of people editing it... I'd like to track each and every edit with username, and, ideally, provide myself an easy Undo if I decide [bleep] is an idiot and shouldn't have done that. Now, I'm not real

Re: [PHP] Changing Session Timeout

2007-05-02 Thread Richard Lynch
On Sun, April 29, 2007 11:50 pm, Aaron Axelsen wrote: I did some more investigating, and tracked down the problem. Apparently, even though i was setting a separate save_path inside the default save path the garbage collector was still picking up the sessions in that directory. I moved the

Re: [PHP] Delete first line of a csv file if it is the headers

2007-05-02 Thread Richard Lynch
Do one, and only one, fgetcsv() before you entere the loop? Or, if only SOME people add the header lines to their CSV file, check if one of the numeric fields is actually numeric, and skip any bad lines. You could even keep a counter going of which line you are on, and give an error message if

Re: [PHP] FW: I really need help

2007-05-02 Thread Richard Lynch
On Sun, April 29, 2007 6:29 pm, Stephen Hernandez wrote: These were the values I had to change which I guess is where the problem is. I was supposed to change host to the name of the computer where MySQL is installed. But I do not know what name I should put, the name of my site is

Re: [PHP] uploads

2007-05-02 Thread Richard Lynch
On Sun, April 29, 2007 4:35 pm, jekillen wrote: can someone point me to a system for cleaning uploaded files; embedded php scripts in image files, viruses etc, shell escape chars, anything that would be hazardous? The idea is when a file is uploaded, as soon as it gets to the server it is

Re: [PHP] small picture into thumbnail

2007-05-02 Thread Richard Lynch
On Sun, April 29, 2007 11:15 am, Alain Roger wrote: I would like to know how i can display small sized picture in my web application ? I mean in my database, picture can have max. 500 Kb, however as on 1 PHP page i will display 20 pictures at once, i do not want to force end users to

Re: [PHP] PHP 6: Mysql with iso-8859-1 chars outputting utf-8: Could not convert binary string to Unicode string

2007-05-02 Thread Richard Lynch
This is a question from a guy who does NOT really do Unicode very well... If everything else in your entire system is iso-8859-1 (aka Latin1) why are you making your output be utf-8? Seems to me that that is where the conversion is probably taking place... On Sun, April 29, 2007 11:07 am,

Re: [PHP] Running processes in windows

2007-05-02 Thread Richard Lynch
On Sun, April 29, 2007 7:54 am, Nathan Wallis wrote: I have an application in windows that I am running with a PHP page using exec (start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a

Re: [PHP] Split string

2007-05-02 Thread Edward Vermillion
On May 2, 2007, at 4:10 PM, Stut wrote: Richard Lynch wrote: On Wed, May 2, 2007 4:55 am, Lester Caine wrote: Fredrik Thunberg wrote: Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I

Re: [PHP] problem with shared object file

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 6:15 pm, Tijnema ! wrote: You have exactly the same problem as i have. My shared hosting has safe_mode off en dl on, so i could load them :) But i don't have access to write to the php.ini file. Maybe we should create such workaround as you provided? Some script that

RE: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 5:10 pm, Brad Sumrall wrote: But! I am now noticing that the main page provides cookies called _utma _utmb _utmc _utmz Hmmm Actually, they each have an extra underscore on front, I think. __utma etc. These are from some non-PHP session/cookie

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 5:31 pm, Micky Hulse wrote: Brad Sumrall wrote: But! I am now noticing that the main page provides cookies called _utma _utmb _utmc _utmz Hmmm Wha? Never thought of that. It looks like wordwrap() may not be what I am looking for (though, still

Re: [PHP] problem with shared object file

2007-05-02 Thread Tijnema !
On 5/3/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, April 28, 2007 6:15 pm, Tijnema ! wrote: You have exactly the same problem as i have. My shared hosting has safe_mode off en dl on, so i could load them :) But i don't have access to write to the php.ini file. Maybe we should create

RE: [PHP] phpbb / sessionid nightmare

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 4:46 pm, Brad Sumrall wrote: The cookie it's self says PHPSESSID=26b7974a5d71c7d0bfebbf71750dac7b Path=/ Host=www.domain.com When I go to the jacked up page, I pickup this one PHPSESSID=a787e077dd18ed18cb824f664d38315d Path=/ Host=domain.com As I recall, it depends

RE: [PHP] MySQL change-tracking

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 4:32 pm, Brad Fuller wrote: Richard Lynch wrote: I have this simple database and I'm going to have a handful of people editing it... I'd like to track each and every edit with username, and, ideally, provide myself an easy Undo if I decide [bleep] is an idiot and

Re: [PHP] Split string

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 4:10 pm, Stut wrote: Richard Lynch wrote: On Wed, May 2, 2007 4:55 am, Lester Caine wrote: Fredrik Thunberg wrote: Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I

Re: [PHP] Object-oriented $_REQUEST?

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 3:54 pm, js wrote: For me, PHP's issetting or emptying $_GET, $_POST or $_REQUEST is cumbersome. want it to be more easy and comfortable. I could say I want a JSP's HttpServletRequest for PHP.

Re: [PHP] PHP 6: Mysql with iso-8859-1 chars outputting utf-8: Could not convert binary string to Unicode string

2007-05-02 Thread Rangel Reale
You are right, I really don't know Unicode very much! :P What I was trying to understand was, because unicode.runtime_encoding = iso-8859-1, I tought that all internal operations were done in this encoding, and only when outputting (unicode.output_encoding = utf-8) data would be converted to

RE: [PHP] phpbb / sessionid nightmare

2007-05-02 Thread Richard Lynch
On Sun, April 29, 2007 11:28 pm, Brad Sumrall wrote: Wait, you might be on to something! Phpbb is set to ./domain That's just plain wrong... There should be no '/' in there at all... Shows us the exact line of code from phpbb that does this. And show us the line[s] of code where you set

RE: [PHP] phpbb / sessionid nightmare

2007-05-02 Thread Richard Lynch
On Sat, April 28, 2007 5:51 pm, Brad Sumrall wrote: I understand where you are going with the mysql injection. It would appear as though the entire session is being dictated by this _utmX session which I have never seen before. It would appear as though the /index.php sets this java bases

Re: [PHP] problem with shared object file

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 5:10 pm, Tijnema ! wrote: On 5/3/07, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, April 28, 2007 6:15 pm, Tijnema ! wrote: You have exactly the same problem as i have. My shared hosting has safe_mode off en dl on, so i could load them :) But i don't have access to

Re: [PHP] Bounce composition

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 2:57 pm, Oliver Block wrote: Am Mittwoch, 2. Mai 2007 20:11 schrieb Richard Lynch: Does anybody have or know of a good simple PHP script that can take an email as an input, and compose a Bounce email as output? I need something that does just that, without a huge

Re: [PHP] PHP 6: Mysql with iso-8859-1 chars outputting utf-8: Could not convert binary string to Unicode string

2007-05-02 Thread Richard Lynch
On Wed, May 2, 2007 5:32 pm, Rangel Reale wrote: You are right, I really don't know Unicode very much! :P What I was trying to understand was, because unicode.runtime_encoding = iso-8859-1, I tought that all internal operations were done in this encoding, and only when outputting

Re: [PHP] Re: What does mean?

2007-05-02 Thread Edward Vermillion
On May 2, 2007, at 3:59 PM, Richard Lynch wrote: [snip] One think you could consider to avoid the ugliness is to put the heredoc into a one-use function or in an incldue file that doesn't have enough indenting for it to look ugly in the first place. :-) That's what I do with 'em, and

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Micky Hulse
Hey Richard! Thanks for the reply. I was hoping someone would re-visit my questions. Richard Lynch wrote: I can GUARANTEE that PHP's wordwrap did NOT issue those cookies. Oh, for sure. I understand that. I guess what I was trying to say/ask was this: 1. wordwrap() is a little different

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Micky Hulse
Hi Richard! Thanks again for your help on this one. ;) Richard Lynch wrote: These are from some non-PHP session/cookie management setup, I believe. Ahhh, very interesting! Thanks for the clarification. :) Call me paranoid. Better that than spammed! :D PS Still haven't figured out why

Re: [PHP] Bounce composition

2007-05-02 Thread Travis Doherty
Richard Lynch wrote: On Wed, May 2, 2007 2:57 pm, Oliver Block wrote: Am Mittwoch, 2. Mai 2007 20:11 schrieb Richard Lynch: Does anybody have or know of a good simple PHP script that can take an email as an input, and compose a Bounce email as output? I need something that does just

[PHP] A problem with passing $_GET in an url

2007-05-02 Thread Davis Chan
Hi! New to this newsgroup and is debugging a strange behaviour in a site under development. The developement platform is a Linux box running Fedora Core 6, Apache 2.2.3-5 and php-5.1.6-3. Here is the general flow of that particular part of the site: php generated form ---(data submitted by

Re: [PHP] PHP's ldap_sasl_bind tries to authenticate with KRB5CCNAME other than the one provided by mod_auth_kerb

2007-05-02 Thread gil ran
On 5/2/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, May 2, 2007 9:41 am, gil ran wrote: I am using Apache-2.2.2 with mod_auth_kerb-5.3, php-5.2.1, openldap-2.3.27 cyrus-sasl-2.1.21 and heindal-0.7.2 on a Linux-from-scratch based system. The problem I'm presenting is probably a PHP

  1   2   >