Re: [PHP] copy() method on objects

2010-04-25 Thread richard gray
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:

Re: [PHP] copy() method on objects

2010-04-25 Thread Andrew Ballard
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

RE: [PHP] Copy Non-Text file from One Server to Another Issues

2009-03-12 Thread Alice Wei
> 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

Re: [PHP] Copy Non-Text file from One Server to Another Issues

2009-03-12 Thread Daniel Brown
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

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
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

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
- 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

RE: [PHP] Copy Function Errors

2008-07-17 Thread bruce
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

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
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

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
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] &

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
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:

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
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

RE: [PHP] Copy Function Errors

2008-07-16 Thread bruce
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

RE: [PHP] Copy Function Errors

2008-07-16 Thread Boyd, Todd M.
> -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

RE: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
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

Re: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
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

Re: [PHP] Copy Function Errors

2008-07-16 Thread Daniel Brown
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

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
> 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

Re: [PHP] Copy Function Errors

2008-07-16 Thread Robert Cummings
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

RE: [PHP] copy file from server to shared network folder

2007-04-24 Thread Haig (Home)
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

Re: [PHP] copy file from server to shared network folder

2007-04-20 Thread Richard Lynch
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

Re: [PHP] copy file from server to shared network folder

2007-04-19 Thread Tom Rogers
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

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread J R
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

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
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

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread R B
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

Re: [PHP] copy, open, or manipulate an image hosted in a https server

2006-09-12 Thread Robert Cummings
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

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Richard Lynch
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'

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Alberto Ferrer
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'

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Richard Lynch
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

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Gustav Wiberg
- 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

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Gustav Wiberg
- 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

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Rabin Vincent
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

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Chris
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

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Gustav Wiberg
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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread David Grant
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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread Laurent Vanstaen
>> 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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread Laurent Vanstaen
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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread David Grant
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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread Manuel Lemos
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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread Laurent Vanstaen
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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread Manuel Lemos
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

Re: [PHP] copy problem with HTTP wrapper

2006-01-27 Thread Laurent Vanstaen
> 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

Re: [PHP] copy problem with HTTP wrapper

2006-01-26 Thread Richard Lynch
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

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Darby
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

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Richard Davey
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

Re: [PHP] Copy to network share

2005-06-01 Thread Mikey
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

RE: [PHP] Copy to network share

2005-06-01 Thread George Pitcher
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]

Re: [PHP] Copy to network share

2005-06-01 Thread Mikey
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

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
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

Re: [PHP] Copy to network share

2005-06-01 Thread Clive Zagno
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

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
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

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
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

Re: [PHP] Copy to network share

2005-06-01 Thread Clive Zagno
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 (

Re: [PHP] Copy to network share

2005-06-01 Thread Andy Pieters
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

Re: [PHP] Copy sent mail in a mailbox folder

2005-05-30 Thread Richard Lynch
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

Re: [PHP] Copy sent mail in a mailbox folder PS

2005-05-28 Thread Reto
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

Re: [PHP] Copy?

2005-02-23 Thread Burhan Khalid
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

Re: [PHP] Copy?

2005-02-23 Thread Jochem Maas
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

Re: [PHP] Copy mySQL database...

2005-02-03 Thread Steve Buehler
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

Re: [PHP] Copy mySQL database...

2005-02-03 Thread Jochem Maas
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

RE: [PHP] Copy mySQL database...

2005-02-03 Thread Mikey
> 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

Re: [PHP] copy() not working

2004-12-05 Thread Peter Lauri
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

Re: [PHP] copy() not working

2004-11-16 Thread Peter Lauri
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

Re: [PHP] copy function?

2004-11-16 Thread Richard Davey
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

Re: [PHP] copy function?

2004-11-16 Thread Robby Russell
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

Re: [PHP] copy function?

2004-11-16 Thread Matt M.
> 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

RE: [PHP] copy function?

2004-11-16 Thread Jay Blanchard
[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

Re: [PHP] copy function?

2004-11-16 Thread Greg Donald
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 >

Re: [PHP] copy() not working

2004-11-16 Thread Jason Wong
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

Re: [PHP] copy() not working

2004-11-16 Thread Burhan Khalid
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

Re: [PHP] copy() not working

2004-11-16 Thread Richard Davey
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

RE: [PHP] COPY with PostgreSQL

2004-10-22 Thread Robert Fitzpatrick
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.

Re: [PHP] COPY with PostgreSQL

2004-10-22 Thread Greg Donald
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

Re: [PHP] COPY with PostgreSQL

2004-10-22 Thread John Nichel
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

RE: [PHP] COPY with PostgreSQL

2004-10-22 Thread Jay Blanchard
[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

Re: [PHP] COPY with PostgreSQL

2004-10-22 Thread John Nichel
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

RE: [PHP] COPY with PostgreSQL

2004-10-22 Thread Jay Blanchard
[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

Re: [PHP] copy tables

2003-10-15 Thread CPT John W. Holmes
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

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
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

Re: [PHP] copy ...

2003-03-17 Thread Erik Price
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([^¶

Re: [PHP] copy ...

2003-03-17 Thread CPT John W. Holmes
"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

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
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

Re: [PHP] copy ...

2003-03-17 Thread CPT John W. Holmes
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

Re: [PHP] copy ...

2003-03-17 Thread John Taylor-Johnston
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

Re: [PHP] copy ...

2003-03-17 Thread Marek Kilimajer
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

Re: [PHP] copy *.* troubles

2003-02-16 Thread Malcolm
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

Re: [PHP] copy *.* troubles

2003-02-16 Thread Jason Wong
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

Re: [PHP] Copy question

2002-12-05 Thread Marek Kilimajer
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

Re: [PHP] copy a string

2002-08-21 Thread Justin French
$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,

RE: [PHP] copy a string

2002-08-21 Thread MET
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

Re: [PHP] copy after upload pblm (?path?)

2002-05-19 Thread Miguel Cruz
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)) {

Re: [PHP] copy protection

2002-05-07 Thread Udo Giacomozzi
[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:/

Re: [PHP] copy protection

2002-05-07 Thread Chris
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

RE: [PHP] copy protection

2002-05-07 Thread Matt Schroebel
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

Re: [PHP] Copy image from a website to another?

2002-04-15 Thread Chris Hewitt
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,

Re: [PHP] Copy *.*

2002-03-19 Thread scott furt
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

RE: [PHP] Copy *.*

2002-03-18 Thread Martin Towell
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

RE: [PHP] Copy *.*

2002-03-18 Thread Robert V. Zwink
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

Re: [PHP] Copy *.*

2002-03-17 Thread Thalis A. Kalfigopoulos
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

Re: [PHP] Copy *.*

2002-03-17 Thread jtjohnston
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

Re: [PHP] Copy *.*

2002-03-17 Thread heinisch
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   2   >