[PHP] To copy a file from one server to another server in php

2006-01-02 Thread suma parakala
Hi Can anyone tell me how can we copy one file from one server to another server using PHP Thanks Suma _ Spice up your IM conversations. New, colorful and animated emoticons. Get chatting! http://server1.msn.co.in/SP05/emoticons/

Re: [PHP] To copy a file from one server to another server in php

2006-01-02 Thread Michael Hulse
Hello, On Jan 2, 2006, at 12:27 AM, suma parakala wrote: Hi Can anyone tell me how can we copy one file from one server to another server using PHP Thanks Suma I use this function to grab mp3's from one server and place them on another (transfers 10mb files rather nicely): function

[PHP] XML to PDF

2006-01-02 Thread Binay
Hi ALL My applications requires converting XML file to PDF using PHP. Some surfing on the net revealed that it has to be first transformed to XSLT and then XSL:FO and finally to PDF . But i have no idea as where to start from. Confused and need directions or references to tutorials / resources

Re: [PHP] To copy a file from one server to another server in php

2006-01-02 Thread Michael Hulse
On Jan 2, 2006, at 12:32 AM, Michael Hulse wrote: You could also use cURL: From the cURL manual (in a terminal window type man curl, without the quotes): ... ... -o/--output file Write output to file instead of stdout. If you are using {} or

[PHP] How to check if an object is empty in PHP5

2006-01-02 Thread Mathijs
Hello ppl, How can i check if an Object is empty in PHP5? Becouse empty() doesn't work. Quote: As of PHP 5, objects with no properties are no longer considered empty.. Thx in advanced. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] AT / php / apache question

2006-01-02 Thread david blunkett
Dear PHP users, I am trying to write a php script that allows me to schedule jobs using the at deamon (unix) for execution in the arbitrary future. I have everything working except that the default login shell for apache (nologin) means that the at deamon fails to execute the command. If I

Re: [PHP] AT / php / apache question

2006-01-02 Thread Michael Gross
Hi You could call the script via the http-server with wget (or lynx). david blunkett wrote: Dear PHP users, I am trying to write a php script that allows me to schedule jobs using the at deamon (unix) for execution in the arbitrary future. I have everything working except that the default

Re: [PHP] How to check if an object is empty in PHP5

2006-01-02 Thread Jochem Maas
Mathijs wrote: Hello ppl, How can i check if an Object is empty in PHP5? Becouse empty() doesn't work. Quote: As of PHP 5, objects with no properties are no longer considered empty.. try: class Test {} $obj = new Test; $arr = (array) $obj; var_dump( empty($obj), empty($arr) ); Thx in

[PHP] Reverse destruction

2006-01-02 Thread Mattias Segerdahl
Is it possible to reverse class __destruct() instead of following the class initiations? It makes more sence to me to close objects in last start first close. ?php class Class1 { function __construct() { echo 'Constructing ' . __CLASS__ . \n; } Function

Re: [PHP] Reverse destruction

2006-01-02 Thread Jochem Maas
Mattias Segerdahl wrote: Is it possible to reverse class __destruct() instead of following the class initiations? It makes more sence to me to close objects in last start first close. why don't you go and read up on request shutdown issues and __destruct() - there is plenty in the archives of

Re: [PHP] Which is faster, a MySQL access, or a set of PHP variables?

2006-01-02 Thread Dave M G
Thank you for the advice. The point was raised, and it's a good one, that if I'm getting content from the database for most pages, then attaining the necessary translations probably won't make a difference. And of course, it is true that at my current levels of hits, the

Re: [PHP] Which is faster, a MySQL access, or a set of PHPvariables?

2006-01-02 Thread Al
Dave M G wrote: Thank you for the advice. The point was raised, and it's a good one, that if I'm getting content from the database for most pages, then attaining the necessary translations probably won't make a difference. And of course, it is true that at my current

Re: [PHP] manipulating constant name as string

2006-01-02 Thread Al
Tom Rogers wrote: Hi, Monday, January 2, 2006, 4:37:17 AM, you wrote: DG Hello DG I am trying to access the constant name as string and not the constant DG contents. For example, DG define('myconst', 'const text 1'); DG $myArray = array() DG myArray['myconst'] = this is it DG etc. DG

[PHP] A curl question

2006-01-02 Thread tedd
Hi: I've asked this question on the [EMAIL PROTECTED] list, but replies were few and didn't address the problem. Whereas, I've seen considerable discussion of curl on this list, so here goes. I am writing a client-side application that uses curl commands to communicate with a php

Re: [PHP] XML to PDF

2006-01-02 Thread Björn Bartels
Hello, Binay [...]. But i have no idea as where to start from. Confused and need directions or references to tutorials / resources which can shade lights on the inputs required. [...] Try out FPDF at www.fpdf.org . It's quite easy to use and it's highly extendable !!! HAPPY NEW YEAR !!

RE: [PHP] A curl question

2006-01-02 Thread ray . hauge
I would suggest using the -d (or --data) flag. That allows you to send POST data. example: exec(curl -d name=Rafael%20Sagulaphone=3320780 http://www.where.com/guest.php) For more information, check the man page for cURL and search for POST within that document. Or check out the PHP Manual for

Re: [PHP] AT / php / apache question

2006-01-02 Thread Curt Zirzow
On Mon, Jan 02, 2006 at 11:19:45AM +, david blunkett wrote: Dear PHP users, I am trying to write a php script that allows me to schedule jobs using the at deamon (unix) for execution in the arbitrary future. I have everything working except that the default login shell for apache

Re: [PHP] A curl question

2006-01-02 Thread Curt Zirzow
On Mon, Jan 02, 2006 at 11:07:33AM -0500, tedd wrote: Hi: I've asked this question on the [EMAIL PROTECTED] list, but replies were few and didn't address the problem. Whereas, I've seen considerable discussion of curl on this list, so here goes. I am writing a client-side application

Re: [PHP] Solaris 10 libnetsnmp build failure

2006-01-02 Thread Curt Zirzow
On Fri, Dec 30, 2005 at 12:56:35AM -0800, Dean wrote: Posted this to php-install with no response. See: http://marc.theaimsgroup.com/?l=php-installm=113579793423896w=2 Hi folks, I am trying to install php-4.4.1 on sparc-solaris 10, but make fails with: /bin/sh

[PHP] watermark png on jpg

2006-01-02 Thread Libit
I have png image with transparent background, and 1 jpg file. I use imageCopyMerge to paste the png image on the jpg image. the result image contain no transparent background mean the png file have white background when its suppose to be transparent what is the simple and best way to make

Re: [PHP] Strange Right-Shift Problem

2006-01-02 Thread Curt Zirzow
On Fri, Dec 30, 2005 at 12:34:35PM -0600, Richard Lynch wrote: On Thu, December 29, 2005 5:37 pm, Michael Gross wrote: Hello I have to migrate a PHP-application to a new Linux-Box. Both the old and the new system are Linux and PHP 5.1.1. (the old one has a Pentium 4, the new one two

[PHP] fread problem

2006-01-02 Thread Mario de Frutos Dieguez
Hi! I have a problem using fread with a XML document. When i read some nodes with a great amount of text it cuts in the same place of the text. There are any limitation of text or something? I have in the php.ini the amount of memory in 256M. Thanks in advance -- PHP General Mailing List

[PHP] Upload with process meter

2006-01-02 Thread Martin Zvarík
Hi, is it possible to upload a file and see the process of uploading (before the file is uploaded, there is something showing from 0% to 100%) using PHP and Javascript ? I saw some applications in Perl and mostly in JAVA, but I also found out something about some extension for PHP, but i

Re: [PHP] A curl question

2006-01-02 Thread tedd
On Mon, Jan 02, 2006 at 11:07:33AM -0500, tedd wrote: Hi: I've asked this question on the [EMAIL PROTECTED] list, but replies were few and didn't address the problem. Whereas, I've seen considerable discussion of curl on this list, so here goes. I am writing a client-side application that

RE: [PHP] A curl question

2006-01-02 Thread tedd
Ray: I would suggest using the -d (or --data) flag. That allows you to send POST data. example: exec(curl -d name=Rafael%20Sagulaphone=3320780 http://www.where.com/guest.php) Yes, I understand -d -- is there a way to use that AND to provide userID and password? Thanks. tedd For more

[PHP] PHP MySQL

2006-01-02 Thread Man-wai Chang
A table with a column big5 char(2) not null primary key. $target-query(delete from canton); for ($ii=0; $ii256; $ii++) { for ($jj=0; $jj256; $jj++) { echo $ii ... $jj . \n; $query=insert into canton ( big5 ) values ( ' . mysql_real_escape_string(chr($ii).chr($jj))

[PHP] New PHP MVC Framework

2006-01-02 Thread Ryan Johnson
We're writing to you to invite you to take a look at our open source software project, Pipeline for PHP. The project is in its very early stages, and so we ask you to know that there will be more to come, and that this is just the first developer preview. However, we can stand behind it in

[PHP] Re: PHP MySQL

2006-01-02 Thread Jerry Kita
Man-wai Chang wrote: A table with a column big5 char(2) not null primary key. $target-query(delete from canton); for ($ii=0; $ii256; $ii++) { for ($jj=0; $jj256; $jj++) { echo $ii ... $jj . \n; $query=insert into canton ( big5 ) values ( ' .

SV: [PHP] Upload with process meter

2006-01-02 Thread Mattias Segerdahl
Martin, There is no native support in php for this today. That said, it's not impossible to do. There are two different approaches you can take. The easy one, is to use PDoru's patch at http://pdoru.from.ro/ The second one, which I experimented with the other week, is to set the wrong enctype,