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...
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
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
test1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.
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
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.
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
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
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
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
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
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...
[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
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
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 ?
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
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
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 = ' .
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 .
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
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
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
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
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
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
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
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
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
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
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 =
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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.
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:
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
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
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
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
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
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
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
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
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.
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
-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
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
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.
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
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(/
test
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
test
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
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
70 matches
Mail list logo