php-general Digest 14 Jun 2011 11:37:50 -0000 Issue 7357

2011-06-14 Thread php-general-digest-help
php-general Digest 14 Jun 2011 11:37:50 - Issue 7357 Topics (messages 313507 through 313511): Suggestion needed: Internet store script 313507 by: Andre Polykanine Re: Getting File Owner Name 313508 by: Kranthi Krishna Re: Class not used as an object (Scope Resolution

php-general Digest 15 Jun 2011 00:25:12 -0000 Issue 7358

2011-06-14 Thread php-general-digest-help
php-general Digest 15 Jun 2011 00:25:12 - Issue 7358 Topics (messages 313512 through 313540): Re: Ftp upload 313512 by: admin.buskirkgraphics.com 313513 by: Andre Polykanine 313515 by: admin.buskirkgraphics.com 313519 by: Eli Orr (Office) 313522 by:

[PHP] Cwtc

2011-06-14 Thread scarabs-l
Dear user php-general@lists.php.net, Your account has been used to send a huge amount of junk e-mail messages during this week. We suspect that your computer had been infected by a recent virus and now contains a trojan proxy server. We recommend that you follow our instructions in order to

[PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
Hi everyone, I would like to have a possibility to upload really large files to the website. As we all know, the post_max_size parameter is set to 8Mb by default. However, I see that the ftp_put() function has a local filepath parameter. And the question is: how can I retrieve the local

RE: [PHP] Ftp upload

2011-06-14 Thread admin
Andre, I have checked the $_POST, and THE $_FILES. I am pretty sure the actual path is not passed. Now you can find the path on the server in the tmp_name of the $_FILES array. I have read a few DOM related issue concerning the PATH of the file uploaded in mulitpart/form-data. Microsoft:

Re: [PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
Hi Richard, Thanks a lot! So can I let them upload, say, a 700 Mb file via POST or should I consider connecting to FTP? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook:

Re: [PHP] date.timezone set and still getting strict warnings.

2011-06-14 Thread Tamara Temple
On Jun 13, 2011, at 4:17 PM, Daniel Brown wrote: On Mon, Jun 13, 2011 at 16:25, Tamara Temple tamouse.li...@gmail.com wrote: I have date.timezone set, as shown in the phpinfo() output: portfolio:Downloads tamara$ php -r 'phpinfo();' | grep 'timezone' Default timezone = America/Chicago

RE: [PHP] Ftp upload

2011-06-14 Thread admin
Andre, Anything over 7 MB to me should be done with FTP. You have a lot of issues with file corruption, length of upload, and bandwidth on each end. But you have to remember, I am crazy in the head. I think that customer satisfaction is key!!! Richard L. Buskirk -Original

Re: [PHP] date.timezone set and still getting strict warnings.

2011-06-14 Thread Shawn McKenzie
On 06/14/2011 09:35 AM, Tamara Temple wrote: On Jun 13, 2011, at 4:17 PM, Daniel Brown wrote: On Mon, Jun 13, 2011 at 16:25, Tamara Temple tamouse.li...@gmail.com wrote: I have date.timezone set, as shown in the phpinfo() output: portfolio:Downloads tamara$ php -r 'phpinfo();' | grep

Re: [PHP] Cwtc

2011-06-14 Thread Daniel Brown
On Tue, Jun 14, 2011 at 04:00, scarab...@crcvms.unl.edu wrote: Dear user php-general@lists.php.net, Your account has been used to send a huge amount of junk e-mail messages during this week. We suspect that your computer had been infected by a recent virus and now contains a trojan proxy

Re: [PHP] date.timezone set and still getting strict warnings.

2011-06-14 Thread Daniel Brown
On Tue, Jun 14, 2011 at 10:35, Tamara Temple tamouse.li...@gmail.com wrote: Ok, first off, are you telling me the CLI and the Web versions reference different php.ini files? I thought they both used /etc/php.ini... Depends on the compile-time arguments and such. You can also have local

Re: [PHP] Ftp upload

2011-06-14 Thread Eli Orr (Office)
Dear Experts, Can you please advise how can I detect a string if it is UTF-8 or now and how can I if possible convert a string to a utf-8 ? Here's the string I got from client - client sends it via POST with urlencode and does apply UTF-8 encoding on the string. Here's the string I got:

Re: [PHP] Cwtc

2011-06-14 Thread Dan Joseph
On Tue, Jun 14, 2011 at 10:58 AM, Daniel Brown danbr...@php.net wrote: On Tue, Jun 14, 2011 at 04:00, scarab...@crcvms.unl.edu wrote: Dear user php-general@lists.php.net, Your account has been used to send a huge amount of junk e-mail messages during this week. We suspect that your

[PHP] Extracting data from exec() call

2011-06-14 Thread Ashley M. Kirchner
I'm trying to extract data coming from an exec() call. The exec() call is performing an ncdump on a netCDF file: ?php $filename = mlab.20110101.cdf; exec(/usr/bin/ncdump -l 2048 -v wmax .$filename, $output); echo ---\n; print_r($output); echo ---\n; ?

Re: [PHP] Ftp upload

2011-06-14 Thread Andre Polykanine
Hi Richard, So, say, they make audiobooks or movies and they want them to be available as (paid) download. How should they upload it so they would be in the catalog? -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian)

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Shawn McKenzie
On 06/14/2011 12:35 PM, Ashley M. Kirchner wrote: I'm trying to extract data coming from an exec() call. The exec() call is performing an ncdump on a netCDF file: ?php $filename = mlab.20110101.cdf; exec(/usr/bin/ncdump -l 2048 -v wmax .$filename, $output); echo

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Shawn McKenzie
On 06/14/2011 01:03 PM, Shawn McKenzie wrote: $wmax = explode(', ', $output[count($output)-1]); Should be -2 :( $wmax = explode(', ', $output[count($output)-2]); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Ashley M. Kirchner
On 6/14/2011 12:03 PM, Shawn McKenzie wrote: --or to search for wmax = if($array = preg_grep('/^ wmax = $/', $output)) { $wmax = explode(', ', $array[0]); } array_shift($wmax); print_r($wmax); May need some more error checking. Yeah, error checking ... Can't search for '/^ wmax

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Shawn McKenzie
On 06/14/2011 01:30 PM, Ashley M. Kirchner wrote: if ($array = preg_grep('/^ wmax = /', $output)) { $array = array_values($array); $wmax = explode(', ', $array[0]); } Sorry, didn't have a way to test when I posted. So you've posted two different expected outputs and I

[PHP] Convert a PDF to a PNG?

2011-06-14 Thread Brian Dunning
My server has GD but NOT ImageMagick. Can I convert a PDF doc to a PNG? I have the PDFs stored as a files and I need to save an identical PNG alongside each. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread Richard Quadling
On 14 June 2011 21:37, Brian Dunning br...@briandunning.com wrote: My server has GD but NOT ImageMagick. Can I convert a PDF doc to a PNG? I have the PDFs stored as a files and I need to save an identical PNG alongside each. I do that using an external tool pdf2png. For me, I use Cygwin.

Re: [PHP] Ftp upload

2011-06-14 Thread Tamara Temple
On Jun 14, 2011, at 12:59 PM, Andre Polykanine wrote: So, say, they make audiobooks or movies and they want them to be available as (paid) download. How should they upload it so they would be in the catalog? If it's really large data like that, and they have a lot of it, maybe

Re: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread Brian Dunning
The server does not have that software installed either. :-( On Jun 14, 2011, at 1:53 PM, Richard Quadling wrote: I do that using an external tool pdf2png. For me, I use Cygwin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread Richard Quadling
On 14 June 2011 22:30, Brian Dunning br...@briandunning.com wrote: The server does not have that software installed either.  :-( On Jun 14, 2011, at 1:53 PM, Richard Quadling wrote: I do that using an external tool pdf2png. For me, I use Cygwin. Can you see what pdf tools ARE installed?

Re: [PHP] Ftp upload

2011-06-14 Thread Richard Quadling
On 14 June 2011 22:27, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 14, 2011, at 12:59 PM, Andre Polykanine wrote: So,  say,  they  make  audiobooks  or  movies and they want them to be available   as   (paid)  download.  How  should they upload it so they would be in the catalog? If

Re: [PHP] Re: Extracting data from exec() call

2011-06-14 Thread Tamara Temple
On Jun 14, 2011, at 1:30 PM, Ashley M. Kirchner wrote: On 6/14/2011 12:03 PM, Shawn McKenzie wrote: --or to search for wmax = if($array = preg_grep('/^ wmax = $/', $output)) { $wmax = explode(', ', $array[0]); } array_shift($wmax); print_r($wmax); May need some more error checking.

Re: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread Tamara Temple
On Jun 14, 2011, at 3:37 PM, Brian Dunning wrote: My server has GD but NOT ImageMagick. Can I convert a PDF doc to a PNG? I have the PDFs stored as a files and I need to save an identical PNG alongside each. Could you install a copy of ImageMagick in a user/hosted directory? -- PHP

Re: [PHP] Ftp upload

2011-06-14 Thread Tamara Temple
On Jun 14, 2011, at 4:42 PM, Richard Quadling wrote: On 14 June 2011 22:27, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 14, 2011, at 12:59 PM, Andre Polykanine wrote: So, say, they make audiobooks or movies and they want them to be available as (paid) download. How

RE: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread admin
Will they allow you to recompile PHP http://www.php.net/manual/en/imagick.installation.php Richard L. Buskirk -Original Message- From: Tamara Temple [mailto:tamouse.li...@gmail.com] Sent: Tuesday, June 14, 2011 6:18 PM To: PHP-General List Subject: Re: [PHP] Convert a PDF to a PNG?

Re: [PHP] Ftp upload

2011-06-14 Thread Richard Quadling
On 14 June 2011 23:20, Tamara Temple tamouse.li...@gmail.com wrote: Did I just give away my age? Yes. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread Brian Dunning
The PDFs are text only (white text on transparent background). I made them using the FPDF, which was tedious to set up but works great. I've since learned that I need PNG images, not PDFs. I know that I could rebuild them using GD, but it's a lot of strings of text wrapping and formatting and

Re: [PHP] Convert a PDF to a PNG?

2011-06-14 Thread Tamara Temple
On Jun 14, 2011, at 5:48 PM, Brian Dunning wrote: The PDFs are text only (white text on transparent background). I made them using the FPDF, which was tedious to set up but works great. I've since learned that I need PNG images, not PDFs. I know that I could rebuild them using GD, but

Re: [PHP] Ftp upload

2011-06-14 Thread Marc Guay
I bought a 1GB external hard drive for $1000. Did I just choke on my lunch? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Ftp upload

2011-06-14 Thread admin
LOL yeah. Since I can buy a 2 terabyte external hard drive and caddy for less than $300. At Best Buy. Richard L. Buskirk... -Original Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent: Tuesday, June 14, 2011 8:25 PM To: PHP General Subject: Re: [PHP] Ftp upload I bought a 1GB

Re: [PHP] Ftp upload

2011-06-14 Thread Melinda Smith
Marc, I've got a bridge to sell you... On Tue, Jun 14, 2011 at 6:03 PM, ad...@buskirkgraphics.com wrote: LOL yeah. Since I can buy a 2 terabyte external hard drive and caddy for less than $300. At Best Buy. Richard L. Buskirk... -Original Message- From: Marc Guay