[PHP] php file/app/dialog to copy folders

2006-10-03 Thread bruce
hi... i'm wondering if anyone has a class/chunk of code to copy a folder to another folder, along with the underlying descendents (files/folders)... i'm considering a file management app, and i'd like to allow the user to select a folder, and then to copy the folder to another folder location...

[PHP] Breaking lines

2006-10-03 Thread Deckard
Hello, I have this code to write three lines in a file (config.php): $stringData = '$hostname = ' . $hostname . '\n' . '$mysql_username = ' . $mysql_username . '\n' . '$mysql_user_password = ' . $mysql_user_password . '\n'; but instead of breaking a line, it appears in the file the string \n

[PHP] web based browser...

2006-10-03 Thread bruce
hi... i'm trying to find a good web based (php) browsing app for handling remote file management functions... i've seen a number of open source apps, but haven't come across any that meet my needs. i'm looking for the ability to: -edit/view/rename/copy/move/delete files

[PHP] test

2006-10-03 Thread bruce
test1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE:[PHP] Client Computer Registration

2006-10-03 Thread Wesley Acheson
They could also be doing something like giving the client an SSH key to download, I've heard of this situation in a bank before. Though it does seem more likely that their just using cookie based authentication - From: Rahul S.

[PHP] web based browser...

2006-10-03 Thread bruce
hi... i'm trying to find a good web based (php) browsing app for handling remote file management functions... i've seen a number of open source apps, but haven't come across any that meet my needs. i'm looking for the ability to: -edit/view/rename/copy/move/delete files

[PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread David Giragosian
Howdy Guys, I have a PHP backup script running as a cronjob that has an exec(mysqldump) line followed a bit later by an exec(tar -cjf) line. The backup script runs against a slave db in the wee hours, and the master gets a continuous stream of inputs at the rate of about 18,720 per day.

[PHP] Breaking lines

2006-10-03 Thread Deckard
Hello, I have this code to write three lines in a file (config.php): $stringData = '$hostname = ' . $hostname . '\n' . '$mysql_username = ' . $mysql_username . '\n' . '$mysql_user_password = ' . $mysql_user_password . '\n'; but instead of breaking a line, it appears in the file the string \n

Re: [PHP] Coding Style Question...

2006-10-03 Thread tedd
At 10:23 AM +0800 10/3/06, Glenn Richmond wrote: I'll probably get strong opposition for these comments, but in my opinion, there's nothing worse than mixing two different lanuages in a single file, not to mention mixing functional code with layout code. Glenn. Glenn: I agree with the

[PHP] Re: Re: Re: Frustrated trying to get help from your site

2006-10-03 Thread David Robley
Michelle Konzack wrote: Am 2006-09-27 17:39:25, schrieb David Robley: 88 tons!! Point us to an image of that please. Currently not availlable but it is an ex Pershing II Transporter from the US-Army manufactured by the german Enterprise MAN. You surely don't mean the tracked vehicle that

[PHP] Breaking lines

2006-10-03 Thread Deckard
Hello, I have this code to write three lines in a file (config.php): $stringData = '$hostname = ' . $hostname . '\n' . '$mysql_username = ' . $mysql_username . '\n' . '$mysql_user_password = ' . $mysql_user_password . '\n'; but instead of breaking a line, it appears in the file the string \n

Re: [PHP] mysql_real_escape_string() question

2006-10-03 Thread Nisse Engström
On Fri, 29 Sep 2006 11:41:34 -0500 (CDT), Richard Lynch wrote: Consider that the user could provide *ANY* string, of any size, of any composition, for their Subject Maybe they POST a worm in Subject, and it has no newlines, but still manages to propogate through Outlook. Or maybe it's

[PHP] php file/app/dialog to copy folders

2006-10-03 Thread bruce
hi... i'm wondering if anyone has a class/chunk of code to copy a folder to another folder, along with the underlying descendents (files/folders)... i'm considering a file management app, and i'd like to allow the user to select a folder, and then to copy the folder to another folder location...

RE: [PHP] Breaking lines

2006-10-03 Thread Jay Blanchard
[snip] How can i make the line break ? [/snip] http://www.php.net/nl2br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Breaking lines

2006-10-03 Thread Brad Bonkoski
Deckard wrote: Hello, I have this code to write three lines in a file (config.php): $stringData = '$hostname = ' . $hostname . '\n' . '$mysql_username = ' . $mysql_username . '\n' . '$mysql_user_password = ' . $mysql_user_password . '\n'; but instead of breaking a line, it appears in the file

[PHP] Re: Breaking lines

2006-10-03 Thread Ben Ramsey
On 10/3/06 8:05 AM, Deckard wrote: $stringData = '$hostname = ' . $hostname . '\n' . '$mysql_username = ' . $mysql_username . '\n' . '$mysql_user_password = ' . $mysql_user_password . '\n'; but instead of breaking a line, it appears in the file the string \n How can i make the line break ?

Re: [PHP] Breaking lines

2006-10-03 Thread Dave Goodchild
double-quote it Best Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- http://www.web-buddha.co.uk

Re: [PHP] RE:[PHP] Client Computer Registration

2006-10-03 Thread Joe Harman
Hey Rahul... I have seen this also... It's sort of neat and annoying all at the same time... I am just wondering if it's just a false sense of security to get more people to use there online banking... although I did read through their FAQs about this and they are saying they have been required

Re: [PHP] Breaking lines / NEW

2006-10-03 Thread Deckard
Hi Brad, Thanks a lot for your answer and the other guys too. It worked. Now i have another doubt: $stringData = '?php' . \n\n . '$hostname = ' . '$hostname' . \n . '$database = wordlife' . \n . '$mysql_username = ' . $mysql_username . \n . '$mysql_user_password = ' .

Re: [PHP] Breaking lines / NEW

2006-10-03 Thread Brad Bonkoski
Deckard wrote: Hi Brad, Thanks a lot for your answer and the other guys too. It worked. Now i have another doubt: $stringData = '?php' . \n\n . '$hostname = ' . '$hostname' . \n . '$database = wordlife' . \n . '$mysql_username = ' . $mysql_username . \n .

Re: [PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread Jon Anderson
David Giragosian wrote: So, Question 1 is: does mysqldump's connection to the slave db exist for the entire script execution time, or just for the length of time of its own execution? I imagine if I used mysql_connect() in the script that it would be for the entire length of the script

Re: [PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread Joe Wollard
1. mysqldump will only keep the connection open for as long as it needs it. Once your calling script is allowed to continue mysqldump has either exited successfully or with an error, but either way the connection should no longer be active. 2. I don't think that would be a good idea. 30

Re: [PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 9:29 am, David Giragosian wrote: So, Question 1 is: does mysqldump's connection to the slave db exist for the entire script execution time, or just for the length of time of its own execution? exec() runs its own little mini-not-quite-shell, so as soon as it ends, the

[PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-03 Thread Balaji A
Hi, in php.ini I have changed the register_global to On. Is it possible to change the global variable _SERVER[HTTP_USER_AGENT]? Thanks in advance.. Thanks Balaji

Re: [PHP] Breaking lines / NEW

2006-10-03 Thread Dave Goodchild
There is no real need to keep flipping in and out of the string like that, just use this: $stringData = \n\n\$'$hostname = '$hostname\n\$$database = wordlife\n\$$mysql_username = $mysql_username\n\$$mysql_user_password = $mysql_user_password\n\n; ...or something similar - use double quotes to

Re: [PHP] Breaking lines

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 7:05 am, Deckard wrote: I have this code to write three lines in a file (config.php): $stringData = '$hostname = ' . $hostname . '\n' . '$mysql_username = ' . $mysql_username . '\n' . '$mysql_user_password = ' . $mysql_user_password . '\n'; but instead of breaking a

Re: [PHP] php file/app/dialog to copy folders

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 12:09 am, bruce wrote: i'm wondering if anyone has a class/chunk of code to copy a folder to another folder, along with the underlying descendents (files/folders)... i'm considering a file management app, and i'd like to allow the user to select a folder, and then to

Re: [PHP] web based browser...

2006-10-03 Thread Richard Lynch
I've used an okay one in the webmasters.com control panel, but am always flummoxed that they didn't give me an ln -s action... So consider this a Feature Request to let me make symlinks in yours. Not that I'll every actually use it, mind you, but *somebody* will thank you for it some day. On

Re: [PHP] Coding Style Question...

2006-10-03 Thread Richard Lynch
On Mon, October 2, 2006 7:32 pm, Tony Di Croce wrote: I am relatively new to PHP... I have about 1.5 years of light PHP work under my belt... Over the past year or so my PHP coding style has evolved significantly and I'm curious as to how experienced programmers write PHP... Basically, here

Re: [PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread David Giragosian
Thank you Jon, Joe, and Richard. I guess I'll leave things as they are and continue to monitor daily. Fortunately, only up to 3 years worth of data needs to be kept live in the master-slave db's, so there is a limit to how much data I will have to cope with. David

Re: [PHP] Breaking lines

2006-10-03 Thread Deckard
Hi Yes, it worked, but there's this strange thing. The output of in to the file is: $stringData = ?php \n\n\$hostname = '$hostname'\n\$database = 'wordlife'\n\$mysql_username = '$mysql_username'\n$mysql_user_password = '$mysql_user_password'\n\n?; is: ?php $hostname = 'localhost' $database =

Re: [PHP] set cookie with non-english

2006-10-03 Thread Richard Lynch
You'll have to read the cookie spec to confirm, but I'm pretty sure it either specifically disallows other charsets, or at least predates the globalization/i18n efforts... IOW, you can't... You COULD just use session_start() and let them have the PHP cookie, and then store whatever string you

Re: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-03 Thread Balaji A
Thanks for the reply rick. I actually want to change the user agent header in the request sent by the client. I want to send a request to the server with different user agent header. Is it possible to change? Thanks Balaji On 10/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: the

RE: [PHP] Client Computer Registration

2006-10-03 Thread Richard Lynch
On Mon, October 2, 2006 4:19 pm, bruce wrote: actually richar, and others... depending on what they're doing, it's quite alot to it. I sincerely doubt that it is, and apologize in advance to Keybank if it is, but I suspect they just plain don't know what they are doing... I certainly wouldn't

[PHP] Remove Spaces from Middle of String

2006-10-03 Thread Kevin Murphy
This works, but I was wondering if this was the best way to accomplish this or not. I'm trying to remove any extra spaces (not whitespace like carriage returns) from the middle of a string mainly for times where people put extra spaces after periods in paragraph.

Re: [PHP] RE:[PHP] Client Computer Registration

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 2:33 am, Wesley Acheson wrote: They could also be doing something like giving the client an SSH key to download, I've heard of this situation in a bank before. Is the key tied to my hardware? At least that stops the virus/Trojan scenario. But not the petty thief who

Re: [PHP] Breaking lines / STILL :(

2006-10-03 Thread Deckard
Hi, Yes, it worked, but there's this strange thing. The output of in to the file is: $stringData = ?php \n\n\$hostname = '$hostname'\n\$database = 'wordlife'\n\$mysql_username = '$mysql_username'\n$mysql_user_password = '$mysql_user_password'\n\n?; is: ?php $hostname = 'localhost' $database

Re: [PHP] Breaking lines

2006-10-03 Thread Richard Lynch
First, you're scaring the [bleep] out of me from a security standpoint writing mysql passwords into files... If you are NOT an expert in this stuff, stop now, please... Next, you are missing the ';' at the end of each line to make valid PHP code. Finally, what you are saying about the password

RE: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-03 Thread Brad Fuller
You can use cURL to send a request and you can set the user agent to whatever you want. http://www.php.net/curl See function: curl_setopt and option: CURLOPT_USERAGENT -Brad -Original Message- From: Balaji A [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 2:05 PM To: [EMAIL

RE: [PHP] Client Computer Registration

2006-10-03 Thread bruce
rich(ard)... not knowing what keybank is doing.. i really can't comment much on their approach... however, if they are creating a unique identifier for the targeted computer, it's not some string/cookie residing in a file on the harddrive... in fact, the unique ID would be based on the physical

Re: [PHP] changing the global variables (_SERVER[HTTP_USER_AGENT])

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 12:43 pm, Balaji A wrote: Hi, in php.ini I have changed the register_global to On. Is it possible to change the global variable _SERVER[HTTP_USER_AGENT]? Thanks in advance.. E. You're not making sense... You want my browser to LIE to your server about what

Re: [PHP] class usage

2006-10-03 Thread Richard Lynch
On Fri, September 29, 2006 1:21 pm, Robert Cummings wrote: #3 In PHP PHP has no namespaces, use classes to improve your chances of avoiding namespace collisions. And I realize Richard will call this the wrong answer, but when you don't have the tools you need, you make use of the ones you do

Re: [PHP] Breaking lines

2006-10-03 Thread Deckard
Hi Richard, Richard Lynch wrote: First, you're scaring the [bleep] out of me from a security standpoint writing mysql passwords into files... It's not that unusual. It's a matter of securing the web server. If you are NOT an expert in this stuff, stop now, please... I'me not an expert, but

Re: [PHP] class usage

2006-10-03 Thread Richard Lynch
My goal was to make you aware that you are on a wide-open path with many branches, most of which lead you to disaster, but several of which are VERY GOOD PATHS to using OOP in a sensible and incredibly beneficial manner. Unfortunately, to get to the GOOD PATHS you have to hop over a couple

Re: [PHP] Rapid application development

2006-10-03 Thread Alexandru E. Ungur
sender: Ahmad Al-Twaijiry date: Sat, Sep 30, 2006 at 08:44:48AM +0300 EOQ Hi Everyone, Hi, I need your feedback in this What is the best RAD (Rapid application development) do you use for PHP to develop an *advance* application in few days or weeks ? I like programming but one this

Re: [PHP] Remove Spaces from Middle of String

2006-10-03 Thread Alexandru E. Ungur
sender: Kevin Murphy date: Tue, Oct 03, 2006 at 11:08:23AM -0700 EOQ This works, but I was wondering if this was the best way to accomplish this or not. I'm trying to remove any extra spaces (not whitespace like carriage returns) from the middle of a string mainly for times where

Re: [PHP] Remove Spaces from Middle of String

2006-10-03 Thread Richard Lynch
If you have this, it's better: $data = preg_replace(/ /, $data); You may want to consider /\\s+/ if you want newlines to be collapsed in as well. If preg_replace is not in your PHP, so you gotta use str_replace, then strstr is better to find the ' ' because it's probably slightly faster than

Re: [PHP] Breaking lines

2006-10-03 Thread Google Kreme
On 03 Oct 2006, at 12:40 , Deckard wrote: Richard Lynch wrote: First, you're scaring the [bleep] out of me from a security standpoint writing mysql passwords into files... It's not that unusual. It might not be unusual, but it's not that bright. It's a matter of securing the web server.

RE: [PHP] Excel Spreadsheet Writer

2006-10-03 Thread Jef Sullivan
OUTSTANDING!!! Thanks for taking the time. However, I am bit confused. Are you telling me that the blank lines are what is causing my problems? Jef From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 12:41 PM To:

RE: [PHP] Rapid application development

2006-10-03 Thread Jesse Castro
I need your feedback in this What is the best RAD (Rapid application development) do you use for PHP to develop an *advance* application in few days or weeks ? I like programming but one this that I hate is the first stage of programming when you start creating the basic code (db

Re: [PHP] Breaking lines - att. Richard Lynch

2006-10-03 Thread Deckard
Hi Richard, Richard Lynch wrote: First, you're scaring the [bleep] out of me from a security standpoint writing mysql passwords into files... I'm curious. What would you do ? No kidding intended. I'm serious. Warm Regards, Deckard -- PHP General Mailing List (http://www.php.net/) To

[PHP] file to blob

2006-10-03 Thread Joshua Capy
Hi, I am relatively new to php and could use a good pointing in the right direction. I have a soap client in NuSoap that I developed for a webservice that I wrote in another language and I need it to be able to send a file in a blob. I can't find an example of how you load a file in

Re: [PHP] Breaking lines - att. Richard Lynch

2006-10-03 Thread Richard Lynch
It's not the writing them into files part... It's the I'm not sure you know what you are doing and maybe you're writing them into files inside the webtree or introducing other gross insecurities part... Hope that helps... On Tue, October 3, 2006 2:39 pm, Deckard wrote: Hi Richard, Richard

Re: [PHP] file to blob

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 2:38 pm, Joshua Capy wrote: I am relatively new to php and could use a good pointing in the right direction. I have a soap client in NuSoap that I developed for a webservice that I wrote in another language and I need it to be able to send a file in a blob. I can't

Re: [PHP] Breaking lines

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 1:40 pm, Deckard wrote: Hi Richard, Richard Lynch wrote: First, you're scaring the [bleep] out of me from a security standpoint writing mysql passwords into files... It's not that unusual. It's a matter of securing the web server. Yes, it *is* unfortunately VERY

Re: [PHP] Breaking lines - att. Richard Lynch

2006-10-03 Thread Dave Goodchild
I tend to store passwords in mysql as hashed values (usually md5), and if I am using scripts to connect to the database name that file (for example) connect.inc and add an .htaccess file to stop user download of any files called *.inc. Or store those files outside the web root in the include

Re: [PHP] Breaking lines

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 1:51 pm, Google Kreme wrote: And yeah, a key is better, but I've not gotten that far. Not really better... See, whatever you do in that general vein of thought, your PHP script ends up needing to get the file. So whatever is in your PHP script, which is readable, just

Re: [PHP] Remove Spaces from Middle of String

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 1:47 pm, Richard Lynch wrote: If you have this, it's better: $data = preg_replace(/ /, $data); D'oh! $data = preg_replace(/ /, , $data); Sorry! -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist.

Re: [PHP] file to blob

2006-10-03 Thread Daniel A. Ramaley
On Tuesday 03 October 2006 14:58, Richard Lynch wrote: On old old Mac OS on which PHP probably doesn't even run, you had the file DATA fork and the file RESOURCE fork where your question would, in theory, make sense... Forks are not widely used much these days, but they still exist. HFS still

RE: [PHP] RE:[PHP] Client Computer Registration

2006-10-03 Thread Kristen G. Thorson
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 2:10 PM To: Wesley Acheson Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] RE:[PHP] Client Computer Registration On Tue, October 3, 2006 2:33 am, Wesley Acheson

[PHP] need loop help

2006-10-03 Thread Charles Kline
hi all. i am trying to modify some old code and struggling a bit with this one: // returns an array of the names in the form post $fields = $_SESSION['case']-getComplaintKeys(); // here is the array returned Array ( [0] = eligibility [1] = payment [2] = service [3] = document [4] = licensing

[PHP] Understanding persistent connections with oci8

2006-10-03 Thread Mendonce, Kiran (STSD)
This is a follow up to the bug (#39029) that I reported earlier which has been repeatedly closed as bogus. The oci8.persistent_timeout setting in the php.ini file is documented as : The maximum length of time (in seconds) that a given process is allowed to maintain an idle persistent connection.

Re: [PHP] Breaking lines

2006-10-03 Thread Google Kreme
On 03 Oct 2006, at 14:16 , Richard Lynch wrote: On Tue, October 3, 2006 1:51 pm, Google Kreme wrote: And yeah, a key is better, but I've not gotten that far. See, whatever you do in that general vein of thought, your PHP script ends up needing to get the file. Well, yes, but at least with a

Re: [PHP] Remove Spaces from Middle of String

2006-10-03 Thread Robert Cummings
On Tue, 2006-10-03 at 15:17 -0500, Richard Lynch wrote: On Tue, October 3, 2006 1:47 pm, Richard Lynch wrote: If you have this, it's better: $data = preg_replace(/ /, $data); D'oh! $data = preg_replace(/ /, , $data); Doesn't work on 3+ spaces in a row ;) $data = preg_replace(/

[PHP] Test

2006-10-03 Thread Sheena Mullally
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Remove Spaces from Middle of String

2006-10-03 Thread Kevin Murphy
Works perfect! Thanks. -- Kevin Murphy Webmaster: Information and Marketing Services Western Nevada Community College www.wncc.edu 775-445-3326 On Oct 3, 2006, at 3:30 PM, Robert Cummings wrote: On Tue, 2006-10-03 at 15:17 -0500, Richard Lynch wrote: On Tue, October 3, 2006 1:47 pm, Richard

Re: [PHP] need loop help

2006-10-03 Thread John Wells
On 10/3/06, Charles Kline [EMAIL PROTECTED] wrote: hi all. i am trying to modify some old code and struggling a bit with this one: // returns an array of the names in the form post $fields = $_SESSION['case']-getComplaintKeys(); First of all this is news to me, I'm not sure how it is that

[PHP] test

2006-10-03 Thread Brad Chow
test

Re: [PHP] web based browser...

2006-10-03 Thread Glenn Richmond
Hi guys. http://sourceforge.net/projects/filebrowser This looked like quite a good one. We've been looking at using an ajax-based file browser ourselves, and this one seemed to be at the top of the list. Cheers, Glenn. Richard Lynch wrote: I've used an okay one in the webmasters.com control

Re: [PHP] set cookie with non-english

2006-10-03 Thread Ahmad Al-Twaijiry
I already made the application with cookies, it's will be very defaucalt to go and replace cookies with session, is it possible to use cookies session in the same time ? ( session_start() setcookie in the same page ?) On 10/3/06, Richard Lynch [EMAIL PROTECTED] wrote: You'll have to read