Paul M Foster wrote:
[snip]
There are cases where I strictly want a *copy* of $a stored in $b. In
cases like this, I supply $a's class with a copy() method, and call it
like this:
$b = $a->copy();
Is this reasonable, or do people have a better/more correct way to do
this?
Paul
http:
On Mon, Apr 26, 2010 at 12:24 AM, Paul M Foster wrote:
> Here is some code:
>
> $a = new my_object;
> $b = $a;
>
> My understanding of this operation under PHP 5+ is that $b will now be
> essentially a "reference" to $a, *not* a *copy* of the $a object. Is
> this correct?
>
> There are cases where
> Date: Thu, 12 Mar 2009 14:55:52 -0400
> Subject: Re: [PHP] Copy Non-Text file from One Server to Another Issues
> From: danbr...@php.net
> To: aj...@alumni.iu.edu
> CC: php-general@lists.php.net
>
> On Thu, Mar 12, 2009 at 14:51, Alice Wei wrote:
> >
> > War
On Thu, Mar 12, 2009 at 14:51, Alice Wei wrote:
>
> Warning: file_get_contents() expects parameter 1 to be string, resource
> given in C:\Inetpub\wwwroot\test\hello.php on line
> 18
Freshman mistake.
$file2 = fopen($copydir . "/play.txt", "w+");
You're trying to read a data stream i
You need to test using regular FTP, SFTP goes over SSH, while the PHP
script your trying to use is making use of regular old FTP. Make sure
that the linux machine has the ports open for FTP and that you have an
FTP server running on it (SSH is not one).
Wei, Alice J. wrote:
> It sounds to me like
-
From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2008 7:50 AM
To: Sam Stelfox
Cc: php-general@lists.php.net
Subject: RE: [PHP] Copy Function Errors
It sounds to me like your problem is now about the authentication. By
default most linux distributions do not give apache a password
and a little more about what you're trying to do in
transferring the files...
-Original Message-
From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2008 7:50 AM
To: Sam Stelfox
Cc: php-general@lists.php.net
Subject: RE: [PHP] Copy Function Errors
It sounds to me
It sounds to me like your problem is now about the authentication. By
default most linux distributions do not give apache a password. I
personally think using apache would be a bad idea. How about creating a
user on the linux box your trying to put the files on to make it's
primary group apache (ma
ly written to $local_file\n";
> } else {
> echo "There was a problem\n";
> }
>
> // close the connection
> ftp_close($conn_id);
>
> Thanks in advance.
>
> Alice
>
> -Original Message-
> From: Boyd, Todd M. [mailto:[EMAIL PROTECTED]
&
al_file, $server_file, FTP_BINARY)) {
echo "Successfully written to $local_file\n";
} else {
echo "There was a problem\n";
}
// close the connection
ftp_close($conn_id);
Thanks in advance.
Alice
-Original Message-
From: Boyd, Todd M. [mailto:[EMAIL PROTECTED]
Sent:
et
Subject: RE: [PHP] Copy Function Errors
> -Original Message-
> From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2008 3:46 PM
> To: Robert Cummings
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Copy Function Errors
---8<--- snip
oyd, Todd M. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2008 2:28 PM
To: Wei, Alice J.
Cc: php-general@lists.php.net
Subject: RE: [PHP] Copy Function Errors
> -Original Message-
> From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2008 3:46 PM
&g
> -Original Message-
> From: Wei, Alice J. [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 16, 2008 3:46 PM
> To: Robert Cummings
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Copy Function Errors
---8<--- snip
> > Is there something I could do here
On Wed, 2008-07-16 at 16:45 -0400, Wei, Alice J. wrote:
> > Hi,
> >
> > I have a snippet of code here:
> >
> > shell_exec("tar cvf /var/www/html/test/$id/data.tar
> > /var/www/html/test/$id/data");
> >
> > $file1="http:/www.mysite.com/test/$id/data.tar";
> > $file2="http://www.mysite2.com/test/$id
On Wed, 2008-07-16 at 16:53 -0400, Daniel Brown wrote:
> On Wed, Jul 16, 2008 at 4:45 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
> >
> > Is there something I have missed here?
>
> Are you considered a "special student" at the University?
Now, now, no need to be mean. We were all noobs at on
On Wed, Jul 16, 2008 at 4:45 PM, Wei, Alice J. <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I have a snippet of code here:
>>
>> shell_exec("tar cvf /var/www/html/test/$id/data.tar
>> /var/www/html/test/$id/data");
>>
>> $file1="http:/www.mysite.com/test/$id/data.tar";
>> $file2="http://www.mysite2.com
> Hi,
>
> I have a snippet of code here:
>
> shell_exec("tar cvf /var/www/html/test/$id/data.tar
> /var/www/html/test/$id/data");
>
> $file1="http:/www.mysite.com/test/$id/data.tar";
> $file2="http://www.mysite2.com/test/$id/.tar";;
>
> copy($file1,$file2);
>
> I got the following error in the acc
On Wed, 2008-07-16 at 15:58 -0400, Wei, Alice J. wrote:
> Hi,
>
> I have a snippet of code here:
>
> shell_exec("tar cvf /var/www/html/test/$id/data.tar
> /var/www/html/test/$id/data");
>
> $file1="http:/www.mysite.com/test/$id/data.tar";
> $file2="http://www.mysite2.com/test/$id/.tar";;
>
> c
t
Subject: Re: [PHP] copy file from server to shared network folder
While I don't claim to understand the Windows security model, or lack
thereof, when you 2x click on something in Windows, you are you.
When php does exec() php is *NOT* you.
PHP is running with the permissions of the U
While I don't claim to understand the Windows security model, or lack
thereof, when you 2x click on something in Windows, you are you.
When php does exec() php is *NOT* you.
PHP is running with the permissions of the User setting in httpd.conf,
whatever that means under Windows.
What it means to
Hi,
Friday, April 20, 2007, 2:04:14 PM, you wrote:
HH> Hi everyone,
HH> I can't seem to be able to copy a txt file from the server over to a network
HH> drive.
HH> Server is apache on winxp and the remote PC is also running XP.
HH> Remote folder is shared with all read/write rights enabled.
HH> I
i'm just going to guess. check your settings if it allows to open external
files, especifically allowed to fopen url.
http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
hth,
john
On 9/13/06, R B <[EMAIL PROTECTED]> wrote:
I think it's a security https problem.
I was reading
I think it's a security https problem.
I was reading that with IIS, you can't use fopen in a https server... I
think i have this problem also with copy...
Some ideas?
On 9/12/06, R B <[EMAIL PROTECTED]> wrote:
It's not a syntaxis problem.
On 9/12/06, Robert Cummings <[EMAIL PROTECTED]> w
It's not a syntaxis problem.
On 9/12/06, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
> Hello,
>
> I need to copy, open or manipulate a gif images that is hosted in a
https
> server.
>
> But when i try to do this, i recive a warning like this:
>
> *Wa
On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
> Hello,
>
> I need to copy, open or manipulate a gif images that is hosted in a https
> server.
>
> But when i try to do this, i recive a warning like this:
>
> *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream:
> Invalid ar
On Mon, May 15, 2006 7:09 pm, Alberto Ferrer wrote:
> For that i recomend detect the MIME, my 2 cents:
>
> function image_get_info($image) {
> $details = array();
> $data = @getimagesize($image);
> if (is_array($data)){
> $types = array(
> '1' => 'GIF',
> '2' => 'JPEG',
> '3'
For that i recomend detect the MIME, my 2 cents:
function image_get_info($image) {
$details = array();
$data = @getimagesize($image);
if (is_array($data)){
$types = array(
'1' => 'GIF',
'2' => 'JPEG',
'3' => 'PNG',
'4' => 'SWF',
'5' => 'PSD',
'6' => 'BMP',
'7' => 'TIFF'
I'd make a wild guess that the FTP stuff isn't working...
Your biggest mistake is a total lack of error-handling...
On Mon, May 15, 2006 2:03 am, Gustav Wiberg wrote:
> Hi there!
>
> When I upload a picture from a form, then I want to create a copy with
> a
> smaller image.
> For example: I u
- Original Message -
From: "Rabin Vincent" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Cc: "PHP General"
Sent: Monday, May 15, 2006 1:35 PM
Subject: Re: [PHP] Copy of image -> smaller
On 5/15/06, Gustav Wiberg <[EMAIL
- Original Message -
From: "Chris" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Cc: "PHP General"
Sent: Monday, May 15, 2006 9:42 AM
Subject: Re: [PHP] Copy of image -> smaller
Gustav Wiberg wrote:
Hi there!
When I
On 5/15/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote:
[snip]
//What should/could I do here?
//
//Set new width and height
//
$new_width = 100;
$new_height = 200;
$tmp_image=imagecreatefromjpeg($toPath . $mfileAdd);
$width = image
Gustav Wiberg wrote:
Hi there!
When I upload a picture from a form, then I want to create a copy with a
smaller image.
For example: I upload a picture with dimensions 200x150 name 4.jpg. I
also want a copy of this image but with the dimensions 100x75 pixels.
I've tried this below, but I'm mis
From: "Sascha Braun" <[EMAIL PROTECTED]>
To: "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Monday, May 15, 2006 9:18 AM
Subject: Re: [PHP] Copy of image -> smaller
I dont have the code you need handy at the moment, but please take a look
at
imagemagick.org and th
Laurent,
Laurent Vanstaen wrote:
>> If so, what makes you think it's writable in the first place?
>
> 'Cause I work for this ISP
So you don't have specs then I guess, since you're asking in a public
forum! Have you considered using a HTTP PUT request (using cURL)?
php.net/curl
$curl = cu
>> If so, what makes you think it's writable in the first place?
>
> 'Cause I work for this ISP
So you don't have specs then I guess, since you're asking in a public forum
!
Bingo :)
Shitty product bought on the shelf from a third party, no specs, no doc ...
Have you considered using
Laurent Vanstaen wrote:
>
>> Hello,
>>
>> on 01/27/2006 05:59 AM Laurent Vanstaen said the following:
>> > I see your point. Here in my case the server I want to copy a file on
>> > has 192.168.1.1 for IP address and thus cannot be found from outside
a
>> > LAN, so the security problem is not
Laurent,
Laurent Vanstaen wrote:
>
>> Hello,
>>
>> on 01/27/2006 05:59 AM Laurent Vanstaen said the following:
>> > I see your point. Here in my case the server I want to copy a file on
>> > has 192.168.1.1 for IP address and thus cannot be found from outside a
>> > LAN, so the security problem i
Hello,
on 01/27/2006 11:07 AM Laurent Vanstaen said the following:
>> > I see your point. Here in my case the server I want to copy a file on
>> > has 192.168.1.1 for IP address and thus cannot be found from outside a
>> > LAN, so the security problem is not that much important. But I agree
>> > w
Hello,
on 01/27/2006 05:59 AM Laurent Vanstaen said the following:
> I see your point. Here in my case the server I want to copy a file on
> has 192.168.1.1 for IP address and thus cannot be found from outside a
> LAN, so the security problem is not that much important. But I agree
> with you a
Hello,
on 01/27/2006 05:59 AM Laurent Vanstaen said the following:
> I see your point. Here in my case the server I want to copy a file on
> has 192.168.1.1 for IP address and thus cannot be found from outside a
> LAN, so the security problem is not that much important. But I agree
> with you and
> Hi all,
> I'm trying to copy a file from my PHP server to another server (a
> home
> gateway, called a LiveBox). I've used this code :
>
> $livebox = "192.168.1.1";
> ...
> ...
> ...
> $crontab_livebox = "http://".$livebox."/cgi-bin/newCrontab";;
> if (!copy($crontab_temp_name, $crontab_live
On Thu, January 26, 2006 9:28 am, Laurent Vanstaen wrote:
> Hi all,
> I'm trying to copy a file from my PHP server to another server (a
> home
> gateway, called a LiveBox). I've used this code :
>
> $livebox = "192.168.1.1";
> ...
> ...
> ...
> $crontab_livebox = "http://".$livebox."/cgi-bin/newC
Wouldn't something like rsync be better suited for this?
I only ask because I've run something like this before...
Matt Darby
Richard Davey wrote:
Hello Matt,
Saturday, July 16, 2005, 3:04:29 AM, you wrote:
MP> I am writing a script that will read a file from a remote server
MP> and write it
Hello Matt,
Saturday, July 16, 2005, 3:04:29 AM, you wrote:
MP> I am writing a script that will read a file from a remote server
MP> and write it to the local server. It works fine except when large
MP> files are attempted. It times out and gives the error that the
MP> maximum execution time has
George Pitcher wrote:
I never managed to get this working with IIS. I could with Apache (win)
though, after making sure that Apache was logged in as the administrator.
George
Thus proving that this is a permissions issue, not a PHP issue!
Mikey
--
PHP General Mailing List (http://www.php.n
I never managed to get this working with IIS. I could with Apache (win)
though, after making sure that Apache was logged in as the administrator.
George
> -Original Message-
> From: Mikey [mailto:[EMAIL PROTECTED]
> Sent: 1 June 2005 7:54 pm
> To: php
> Subject: Re: [PHP]
Jeff McKeon wrote:
That won't work. I don't want the users mapping a drive on their local
machine. I tried mapping it on the server running the IIS and doing as
you suggest, but it doesn't work.
Jeff
Have you made sure that the IUSR account that IIS is running has has got
the right permi
nesday, June 01, 2005 10:04 PM
> To: php
> Subject: Re: [PHP] Copy to network share
>
>
> its on my local machine, in your case it will your w2k box.
>
> clive
>
> Jeff McKeon wrote:
> > Is that drive mapped on your local machine or on the web server?
> >
&g
Subject: Re: [PHP] Copy to network share
sorry I ment to send to email to the list
I tried the code bellow on my windows machine. I have a
mapped network
drive on my windows machine (i: drive) that links to a samba
share (my
htdocs directory on my linux dev machine). It worked fine.
echo
Is that drive mapped on your local machine or on the web server?
Jeff
> -Original Message-
> From: Clive Zagno [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 01, 2005 8:31 PM
> To: Jeff McKeon; php
> Subject: Re: [PHP] Copy to network share
>
>
> sorry I
ilto:[EMAIL PROTECTED]
> Sent: Wednesday, June 01, 2005 9:34 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Copy to network share
>
>
> On Wednesday 01 June 2005 14:42, Jeff McKeon wrote:
> >
> > $dirhandle = opendir(server\\share);
> > Readd
ay, June 01, 2005 8:19 PM
To: Jeff McKeon
Subject: Re: [PHP] Copy to network share
Hi
jave you tried creating a mapped network drive on windows?
clive
Jeff McKeon wrote:
I've got PHP 4.3 running on a Win2k IIS 5.0 web server. I need to
upload a file and then copy it to a samba share (
On Wednesday 01 June 2005 14:42, Jeff McKeon wrote:
>
> $dirhandle = opendir(server\\share);
> Readdir($dirhandle);
>
> Chdir(server//share);
>
> Chdir(server\\share);
>
> Warning: chdir(): No such file or directory (errno 2)
>
> Is what I'm trying to do possible and if so, how?
You s
On Sat, May 28, 2005 2:58 am, Reto said:
> Hi list,
>
> I'm sending mails with PEAR::Mail / PEAR::Mail_Mime or with PHPMailer
> (http://phpmailer.sf.net). The final solution will implemented depending
> on which implementation better fits my needs.
>
> Anyway, and that is the problem, after sending
Hi again,
Anyway, and that is the problem, after sending the mail I want to save a
copy of the mail in an IMAP folder called "Sent".
Just found the imap_append() which will solve the problem.
If someone has experience with mail_append() in conjunction with PEAR
Mail_Mime I would be please if
Wiberg wrote:
Hi there!
How do I copy a file from an URL to my server?
I url fopen wrappers is NOT enabled, and I'm not allowed to do that.
http://www.php.net/curl
or
use wget via system, exec, etc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
Wiberg wrote:
Hi there!
How do I copy a file from an URL to my server?
I url fopen wrappers is NOT enabled, and I'm not allowed to do that.
do you have access to the cURL extension in your php build?
www.php.net/curl
if you do then you should be able to use to do what you want, might
take a bit of
At 08:52 AM 2/3/2005, you wrote:
I just need to make a duplicate copy of a mySQL database (I have to
reinstall some web software and I am afraid it will overwrite the existing
database, so i would like to make a backup of it)...
Any classes, scripts, etc out there to do this?
This is more o
Russell P Jones wrote:
I just need to make a duplicate copy of a mySQL database (I have to
reinstall some web software and I am afraid it will overwrite the existing
database, so i would like to make a backup of it)...
Any classes, scripts, etc out there to do this?
oh for gods sake, do you not thi
> I just need to make a duplicate copy of a mySQL database (I
> have to reinstall some web software and I am afraid it will
> overwrite the existing database, so i would like to make a
> backup of it)...
>
> Any classes, scripts, etc out there to do this?
>
> Russ
Try RTFM for mySQL, section
Solution to the problem:
instead of trying to write it to "/image/filename" I write it to
"../image/filename", that solves my problem :)
/Peter
"Peter Lauri" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Thank you. Now I am getting somewhere, but I get this error-msg now, I d
Thank you. Now I am getting somewhere, but I get this error-msg now, I do
not understand the content of it. Have tried to read about the Auth in PHP
but I did not get any information to solve the problem:
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script
whose uid is 113
Hello Garth,
Tuesday, November 16, 2004, 2:42:31 PM, you wrote:
GHS> Which event handler of the button should I use and hoe should I construct
GHS> the function?
This is a JavaScript question. Please post to a JavaScript mailing
list.
Best regards,
Richard Davey
--
http://www.launchcode.co.u
On Tue, 2004-11-16 at 16:42 +0200, Garth Hapgood - Strickland wrote:
> I have a button which I want to add a function to, so that when it is
> clicked, the data from one will be copied to another
>
> Which event handler of the button should I use and hoe should I construct
> the function?
>
> G
> I have a button which I want to add a function to, so that when it is
> clicked, the data from one will be copied to another
>
> Which event handler of the button should I use and hoe should I construct
> the function?
onclick. This is not really a php question. do some googleing for javasc
[snip]
I have a button which I want to add a function to, so that when it is
clicked, the data from one will be copied to another
Which event handler of the button should I use and hoe should I
construct
the function?
[/snip]
Both textareas on the same page? Want to do the copy without making a
On Tue, 16 Nov 2004 16:42:31 +0200, Garth Hapgood - Strickland
<[EMAIL PROTECTED]> wrote:
> I have a button which I want to add a function to, so that when it is
> clicked, the data from one will be copied to another
>
> Which event handler of the button should I use and hoe should I construct
>
On Tuesday 16 November 2004 21:58, Peter Lauri wrote:
> Is there anyone that see any errors in the problem? I have checked severeal
> manuals and this is how it should be.
Funny, the example(s) in the manual look quite different. Try the ones in the
manual, when you get them working then modify
On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote:
> Best groupmember,
>
> I am implementing a script to upload a file to my webserver. I am using this
> form that I copied from a working application:
>
[ snipped ]
> To handle the form I am using this script...
>
> if($File) {
> if(copy($Fi
Hello Peter,
Tuesday, November 16, 2004, 1:58:48 PM, you wrote:
PL> if($File) {
PL> if(copy($File, $File_name)) {
PL>echo 'The image was not uploaded!';
PL> } else {
PL>echo 'The file was not uploaded!';
PL> }
PL> }
PL> It does not even enter the if($File) part (checked it witch e
On Fri, 2004-10-22 at 14:55, Jay Blanchard wrote:
> [snip]
> I am using COPY for PostgreSQL and having problems...
> [/snip]
>
> So, is this a PHP problem, or a PostgreSQL problem?
If I took the file it is trying to COPY into PostgreSQL and psql to
bring it in on the server directly, no issues.
On Fri, 22 Oct 2004 14:34:39 -0400, Robert Fitzpatrick
<[EMAIL PROTECTED]> wrote:
> I am using COPY for PostgreSQL and having problems now that the incoming
> file contains more than approx 1500 lines. Is this an issue anyone is
> aware of? Lot's of files over 1000 lines have worked fine, but after
Jay Blanchard wrote:
[snip]
Why does it matter??? Just answer the ding-dang question. ;)
[/snip]
Easy there Kemosabe', someone might mistake you for someone who wants to
help!
*goes back to lurking*
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List
[snip]
Why does it matter??? Just answer the ding-dang question. ;)
[/snip]
Easy there Kemosabe', someone might mistake you for someone who wants to
help!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
I am using COPY for PostgreSQL and having problems...
[/snip]
So, is this a PHP problem, or a PostgreSQL problem?
Why does it matter??? Just answer the ding-dang question. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing L
[snip]
I am using COPY for PostgreSQL and having problems...
[/snip]
So, is this a PHP problem, or a PostgreSQL problem?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: "Gronquist, Jim M" <[EMAIL PROTECTED]>
> I've set up dev and prod webservers. Users can go into the dev webserver
> content and edit it. The content is in a mysql database. I have a button
> on the webpage that says push content live. When the button is pushed I
> want it to run a php script
examples. phpbuilder.com also
> has a good article on them.
>
> ---John Holmes...
>
> - Original Message -
> From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 17, 2003 2:54 PM
> Subject: Re: [PHP] co
John Taylor-Johnston wrote:
Captn John,
What the difference? I recognise the code from my attempts at Perl. What's the diff
between ^ and *? Is there a doc I can read up more on?
;) Swabbie John
"Cpt John W. Holmes" wrote:
What about
eregi("TI(.*)¶",$line,$m)
might want to use
eregi("TI([^¶
"John Taylor-Johnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 2:54 PM
Subject: Re: [PHP] copy ...
> Captn John,
> What the difference? I recognise the code from my attempts at Perl. What's
the diff between ^ and *? Is the
t to use
>
> eregi("TI([^¶]*)¶",$line,$m)
>
> so it's not greedy.
>
> ---John Holmes...
>
> - Original Message -
> From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]&g
TED]>
Sent: Monday, March 17, 2003 2:31 PM
Subject: Re: [PHP] copy ...
> Perl, I will never touch again :) Find occurence of "TI:" and "¶" in the
string $textarea and extract it only. The problem is the user may have
entered \r\n. Therefore making \n out of the question
Perl, I will never touch again :) Find occurence of "TI:" and "¶" in the string
$textarea and extract it only. The problem is the user may have entered \r\n.
Therefore making \n out of the question to use as my end marker.
John
Marek Kilimajer wrote:
> I have a strong feeling that POSIX regexs
I have a strong feeling that POSIX regexs cannot do multiline, try using
perl-compatible, or make a loop to read the textarea content line by line
John Taylor-Johnston wrote:
I need to process the contents of
SU: something ... blah blah¶
TI: Title ... asasa asasas asas¶
AU: author field ... as
On Mon, 17 Feb 2003 01:59:43 +0800, Jason Wong <[EMAIL PROTECTED]>
wrote:
On Sunday 16 February 2003 23:48, Malcolm wrote:
I'm having trouble with copy. I have this script that I got from
php.net
but I can't figure out how to set the path. Right now it doesn't
complain
but no files are copi
On Sunday 16 February 2003 23:48, Malcolm wrote:
> I'm having trouble with copy. I have this script that I got from php.net
> but I can't figure out how to set the path. Right now it doesn't complain
> but no files are copied. I'm trying to use a dynamically set directory to
> do this, I have
No, you can use ftp functions.
Evandro Sestrem wrote:
Hi,
Can I use the copy function to copy a file to a remote computer?
Ex:
// copy a file from my computer to a remote computer
copy('c:\teste.txt', '200.xxx.xx.xx/temp/teste.txt')
How can I do it?
Thanks in advance,
Evandro Sestrem
$str = "foo foo";
$str_copy = $str; // a copy of $str
Unless of course you want to return a portion of a string, a certain word, a
modified string, etc etc, in which case you'd need to check out all the
string functions in the manual, and tell us what you wanna do.
Justin
on 22/08/02 1:32 AM,
You want to copy a string to do what with it? This answer to this would
help all of us help you.
~ Matthew
-Original Message-
From: Oskar Hermansson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 11:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] copy a string
Hello!
Is ther
1) You probably need to move the file from the temporary directory to
somewhere in your own personal directory hierarchy.
2) http://php.net/move_uploaded_file
miguel
On Sun, 19 May 2002, arnaud gonzales wrote:
> Hi all,
> I' m trying to copy an uploaded file:
>
> if(!empty($fichier)) {
[EMAIL PROTECTED] (Chris) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
> I found this on the web one day, though I've never used it or played
> around with it. It does make the code a pain to read though if it
> does anything close to the sample on the page. Plus, its free.
>
> http:/
I found this on the web one day, though I've never used it or played around
with it. It does make the code a pain to read though if it does anything
close to the sample on the page. Plus, its free.
http://pobs.mywalhalla.net
-Chris
At 01:35 PM 5/7/2002 +, Udo Giacomozzi wrote:
>Hi!
>
>H
Look at the Zend Encoder. It's not free, but there is a free trial available.
http://www.zend.com/store/products/zend-encoder.php
> -Original Message-
> From: Udo Giacomozzi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 07, 2002 9:36 AM
> Subject: [PHP] copy protection
> Has somebody
Carlos,
I may misunderstand you but surely the easiest way to copy a file from
one computer to another is by ftp? Log into a shell on computer 1, ftp
to computer 2 and transfer whatever files you want. This may be by a
simple script and does not need php (did I say that?).
On the other hand,
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 2:17 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] Copy *.*
>
>
> You'll probably have the most success using the system() function to execute
> the xcopy command. You shou
Does xcopy support long file names?
-Original Message-
From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 2:17 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Copy *.*
You'll probably have the most success using the system() functi
You'll probably have the most success using the system() function to execute
the xcopy command. You shouldn't need to rewrite xcopy in php, seems like
overkill.
See: http://www.php.net/manual/en/function.system.php
Here's the result of C:\>xcopy /?
XCOPY source [destination] [/A | /M] [/D[:dat
To traverse a directory tree check out PEAR's Filesystem related utilites File_Find
and in particular File_Find::maptree
http://pear.php.net/manual/en/packages.file.find.php
cheers,
--thalis
On Sun, 17 Mar 2002, jtjohnston wrote:
> Windows :)
> John
>
> [EMAIL PROTECTED] wrote:
>
> > At 17
Windows :)
John
[EMAIL PROTECTED] wrote:
> At 17.03.2002 03:10, you wrote:
> >
> >Does anyone know of another snippet any place where I can copy *.*
> >(files and all sub-directories) from one drive to another? In other
> >words, a "backing-up" function. The snippet I got from
> >http://www.php
At 17.03.2002 03:10, you wrote:
>
>Does anyone know of another snippet any place where I can copy *.*
>(files and all sub-directories) from one drive to another? In other
>words, a "backing-up" function. The snippet I got from
>http://www.php.net/manual/en/function.copy.php has been a disaster.
>
1 - 100 of 112 matches
Mail list logo