[PHP] Copy documents for another site.

2010-07-19 Thread Jordan Jovanov
Hello I create one site like document menage system and nide to take some date information from another site. The problem is a don't have access to date base. The site from who I need to take infomations use .htdacces but I have user and password for enter to site and i look the information.

[PHP] copy() method on objects

2010-04-25 Thread Paul M Foster
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 I strictly want a *copy* of $a stored in $b. In cases like this, I supply

Re: [PHP] copy() method on objects

2010-04-25 Thread Andrew Ballard
On Mon, Apr 26, 2010 at 12:24 AM, Paul M Foster pa...@quillandmouse.com 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

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

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

2009-03-12 Thread Alice Wei
Hi, I have a simple code as shown in the following: ?php //original file $file = http://remote_server/copy/play.txt;; $file2 = http://remote_server/copy/test.jpg;; $file3 = http://remote_server/copy/sample.pdf;; //directory to copy to (must be CHMOD to 777) $copydir = .; $data =

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 aj...@alumni.iu.edu 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

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 aj...@alumni.iu.edu wrote: Warning: file_get_contents

RE: [PHP] Copy Function Errors

2008-07-17 Thread Wei, Alice J.
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: Wednesday, July 16, 2008 2:28 PM To: Wei, Alice J. Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
: 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 To: Robert Cummings Cc: php-general@lists.php.net Subject: RE: [PHP] Copy Function Errors ---8

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

RE: [PHP] Copy Function Errors

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

RE: [PHP] Copy Function Errors

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

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

[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 access log of the server:

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;;

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 access log of the

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/test/$id/.tar;;

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 one time or

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/.tar;;

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 to allow my file be copied

RE: [PHP] Copy Function Errors

2008-07-16 Thread bruce
:[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 To: Robert Cummings Cc: php-general

RE: [PHP] Copy Function Errors

2008-07-16 Thread Wei, Alice J.
] 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 Is there something I could do here to allow my

Re: [PHP] php + copy file

2008-04-02 Thread Chris
$carpeta = subidos; // nombre de la carpeta ya creada. chmool 777 (todos los permisos) copy($_FILES['file']['tmp_name'] , $carpeta . '/' . $_FILE ['file']['name']); copied straight from my reply to the same question on php-db It's $_FILES not $_FILE (an 's' on the

[PHP] php + copy file

2008-04-02 Thread Emiliano Boragina
Hello I have the next code: -- archive_a_subir.php -- form action=archivo_subir.php method=post enctype=multipart/form-data input type=file name=file input type=submit value=ADJUNTAR ARCHIVO /form In archive_subir.php: ?

[PHP] Copy Network Share W/ Diff. Creds To Local Folder?

2008-02-21 Thread Jason Paschal
I'm building a web app on a windows server for a company. an aspect of that requires grabbing a sound file from a network share, which i attempted with a windows copy command via exec(), but PHP needs to be able to pass the authentication credentials. runas requires password interactivity, and

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

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

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

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 also

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

2006-09-12 Thread R B
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 argument in . I recive a similar message if i use:

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 argument

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: *Warning*:

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]

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

[PHP] Copy of image - smaller

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

Re: [PHP] Copy of image - smaller

2006-05-15 Thread Gustav Wiberg
: 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 the convert -size 120x80 in.jpg -resize 120x80 out.jpg

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

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 =

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 php-general@lists.php.net Sent: Monday, May 15, 2006 9:42 AM Subject: Re: [PHP] Copy of image - smaller Gustav Wiberg wrote: Hi there! When I upload a picture from a form, then I

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 php-general@lists.php.net Sent: Monday, May 15, 2006 1:35 PM Subject: Re: [PHP] Copy of image - smaller On 5/15/06, Gustav Wiberg [EMAIL PROTECTED] wrote: [snip] //What

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 upload

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
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' = 'PNG',

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_livebox)) { echo

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 see

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 and

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 with you and

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 is not that much

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 that much

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 a

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 =

[PHP] copy problem with HTTP wrapper

2006-01-26 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_livebox)) { echo br

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/newCrontab;; if

[PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Palermo
I am writing a script that will read a file from a remote server and write it to the local server. It works fine except when large files are attempted. It times out and gives the error that the maximum execution time has been reached and the file will only be partially copied to the local

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 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[2]: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Richard Davey
Hello Matt, Saturday, July 16, 2005, 3:31:26 AM, you wrote: MP I don't have access to edit the php.ini settings. Is there anyway to MP copy part of the file, then copy the rest where it left off? [ Note: Please reply to the mailing list - not to me personally ] The suggestion I gave you

[PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
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 (share level security) on a linux box across the network. I can $dirhandle = opendir(server\\share); Readdir($dirhandle); With no problem but I can't changed to the that dir

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 should put

Re: [PHP] Copy to network share

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

RE: [PHP] Copy to network share

2005-06-01 Thread Jeff McKeon
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); Readdir($dirhandle); Chdir(server//share); Chdir(server

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 ment to send to email to the list

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
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? Jeff -Original Message- From: Clive Zagno [mailto:[EMAIL

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

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] Copy to network

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

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 the

[PHP] Copy sent mail in a mailbox folder

2005-05-28 Thread Reto
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 the mail I want to save a copy of the mail in

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: SV: SV: SV: [PHP] Copy? - What am I doing wrong???

2005-02-25 Thread Jochem Maas
Wiberg wrote: Hi there! fgtcvs works fine, but there's another problem now... I run updates to the db for each row (every row is unique) and must be updated. If I run the script with 2 rows then my site couldn't open the database from another location. Is this MySQL-specific or PHP-specific?

Re: SV: SV: SV: [PHP] Copy? - What am I doing wrong???

2005-02-25 Thread Richard Lynch
Jochem Maas wrote: Wiberg wrote: Hi there! fgtcvs works fine, but there's another problem now... I run updates to the db for each row (every row is unique) and must be updated. If I run the script with 2 rows then my site couldn't open the database from another location. Is this

SV: SV: SV: SV: [PHP] Copy? - What am I doing wrong???

2005-02-25 Thread Wiberg
List Ämne: Re: SV: SV: SV: [PHP] Copy? - What am I doing wrong??? Jochem Maas wrote: Wiberg wrote: Hi there! fgtcvs works fine, but there's another problem now... I run updates to the db for each row (every row is unique) and must be updated. If I run the script with 2 rows then my

[PHP] Copy?

2005-02-23 Thread Wiberg
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. /G @varupiraten.se -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2005-02-10 -- PHP

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?

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:

[PHP] Copy mySQL database...

2005-02-03 Thread Russell P Jones
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 -- PHP General Mailing List

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 5.6.1

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

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

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 do not

[PHP] copy() not working

2004-11-16 Thread Peter Lauri
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: echo 'form action=imageadmin.php method=POST enctype=multipart/form-data'; echo 'input type=file name=Filebrinput type=submit name=submit value=Upload

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)) { PLecho 'The image was not uploaded!'; PL } else { PLecho 'The file was not uploaded!'; PL } PL } PL It does not even enter the if($File) part (checked it witch echos).

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($File,

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

[PHP] copy function?

2004-11-16 Thread Garth Hapgood - Strickland
I have a button which I want to add a function to, so that when it is clicked, the data from one textarea will be copied to another textarea Which event handler of the button should I use and hoe should I construct the function? Garth -- PHP General Mailing List (http://www.php.net/) To

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 textarea will be copied to another textarea Which event handler of the button should I use and hoe should I

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 textarea will be copied to another textarea 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

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 textarea will be copied to another textarea 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

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 textarea will be copied to another textarea Which event handler of the button should I use and hoe should I construct the

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.uk

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

[PHP] COPY with PostgreSQL

2004-10-22 Thread Robert Fitzpatrick
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 getting a file over 1800 I began having problems. I have broke the file down to a

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 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

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] 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 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 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.

[PHP] Max Filesize for PHP copy

2004-04-06 Thread Ashley
I posted this in the Netware PHP newsgroup, but have not gotten a response. Hopefully I will get something here. I was using a script to copy a file from one location to another. It was working great (but was only testing with small files under 1MB) and then when I tried uploading a file

[PHP] copy function

2003-12-18 Thread Omar
Is there a way to copy a file from 1 server to a different one? I have this code in a win 2k server, and i try to copy the file to a win NT server: if (is_file($file_att)) if (copy($file_att,'\servername\folder\'.$file_name)) echo succesful; else echo failure; It gives me this

  1   2   >