[PHP] imagecopyresize???????

2010-04-05 Thread Karl DeSaulniers
Hello List, I am new here, and I am hoping this will be a quick and easy for someone to help me with. I am trying to create an upload form that lets a user upload a product photo to the server. In the process of this upload, I want to take the file they are uploading and create two images to

Re: [PHP] Updating HTML on page

2010-04-05 Thread Paul M Foster
On Mon, Apr 05, 2010 at 09:29:26PM -0600, Ashley M. Kirchner wrote: > Hrm, been looking at it for a while now and I can feel a headache coming up. > I think I need to have one PHP script that does the processing, and another > that the user pulls up in their browser. That one "pings" the processo

Re: [PHP] include path in httpd.conf

2010-04-05 Thread ad
Ash, Nice call. .htaccess was not being processed at all which led me to a cname configuration error for the sub domain. Thanks!. On 4/5/2010 8:27 PM, Ashley Sheridan wrote: On Mon, 2010-04-05 at 19:40 -0400, ad wrote: I have several virtual hosts on a dedicated server. In a IFmodule mod_

RE: [PHP] Updating HTML on page

2010-04-05 Thread Ashley M. Kirchner
Hrm, been looking at it for a while now and I can feel a headache coming up. I think I need to have one PHP script that does the processing, and another that the user pulls up in their browser. That one "pings" the processor every so often to get updated data. Yes? Am I way off here? > -Ori

Re: [PHP] Updating HTML on page

2010-04-05 Thread TG
The only way to do it with PHP alone would be to control the output buffering and I've found that to be inconsistant in quality and predictability with different browsers even web servers. I'm sure there's an art to getting that all working well with various technologies that are involved in t

[PHP] Updating HTML on page

2010-04-05 Thread Ashley M. Kirchner
I have a PHP script that queries a DB to get a list of image names. Then it processes each name and generate thumbnails and what not. What I want to do is have a page called (through the browser) which updates as the PHP process in the background is working. So when you first pull up the page it

Re: [PHP] convert a string into an array

2010-04-05 Thread Nilesh Govindarajan
On 04/05/10 19:39, Ashley Sheridan wrote: On Mon, 2010-04-05 at 05:53 +0100, Nathan Rixham wrote: you sure you're only smoking cigarettes? has to be one of the most random replies to any php thread I've ever seen - awesome! regards Rene Veerman wrote: yea i'm not the only one with those typ

Re: [PHP] include path in httpd.conf

2010-04-05 Thread Ashley Sheridan
On Mon, 2010-04-05 at 19:40 -0400, ad wrote: > I have several virtual hosts on a dedicated server. > In a IFmodule mod_php5c container in an httpd.conf include file I have > the following to create a unique include path for each virtual host: > > IfModule mod_php5.c> > php_value include_path

[PHP] include path in httpd.conf

2010-04-05 Thread ad
I have several virtual hosts on a dedicated server. In a IFmodule mod_php5c container in an httpd.conf include file I have the following to create a unique include path for each virtual host: IfModule mod_php5.c> php_value include_path ".:/home/virtual/site#/path/to/include" php_admin_flag saf

Re: [PHP] Logical reason for strtotime('east') and strtotime('west') returning valid results?

2010-04-05 Thread Kevin Kinsey
Colin Guthrie wrote: For example, I discovered that some words (or strings beginning with those words) will return false positives: e.g.: [co...@jimmy Search (working)]$ php -r 'var_dump(strtotime("east"));' int(1270514111) [co...@jimmy Search (working)]$ php -r 'var_dump(strtotime("west"));'

[PHP] Logical reason for strtotime('east') and strtotime('west') returning valid results?

2010-04-05 Thread Colin Guthrie
Hi, Long time no speak! As part of a quick filter I'm writing I try to interpret free text strings as dates and textual data. Sometimes, this goes wrong. For example, I discovered that some words (or strings beginning with those words) will return false positives: e.g.: [co...@jimmy Search (

[PHP] Re: problems with utf-8 conversion

2010-04-05 Thread sudhir patil
Thanks Nathan, i tried with utf8_encode, that doesn't help. Yes both content-type & metatag are set to utf-8. When i try utf-8 converted csv everything shows up properly. Issue is when i try to change encoding in php, special characters are messed up. Character that i am facing problem with is

[PHP] Re: problems with utf-8 conversion

2010-04-05 Thread Nathan Rixham
sudhir patil wrote: > I have csv file with special characters, stored in default > encoding(ISO-8859-1). I am convert file contents(string) to UTF-8using iconv. > This doesn't convert special characters properly, shows broken on fronted. > Page encoding & meta tag are properly set to utf-8. > >

Re: [PHP] Re: Constructor usage

2010-04-05 Thread Peter Pei
On Sun, 04 Apr 2010 17:46:19 -0600, Nathan Rixham wrote: Larry Garfield wrote: Hi folks. Somewhat philosophical question here. I have heard, although not confirmed, that the trend in the Java world in the past several years has been away from constructors. That is, rather than this:

[PHP] problems with utf-8 conversion

2010-04-05 Thread sudhir patil
I have csv file with special characters, stored in default encoding(ISO-8859-1). I am convert file contents(string) to UTF-8using iconv. This doesn't convert special characters properly, shows broken on fronted. Page encoding & meta tag are properly set to utf-8. Characters are shown properly

Re: [PHP] convert a string into an array

2010-04-05 Thread Ashley Sheridan
On Mon, 2010-04-05 at 05:53 +0100, Nathan Rixham wrote: > you sure you're only smoking cigarettes? > > has to be one of the most random replies to any php thread I've ever > seen - awesome! > > regards > > Rene Veerman wrote: > > yea i'm not the only one with those type of problems. sometimes t

RE: [PHP] Howto send command over ssh using sockets

2010-04-05 Thread Bob McConnell
From: Radek Krejca > I am trying send command to remote host over ssh with sockets. But > I need to set up username/password. I am trying to modify this script > (from www.php.net - function fsockopen), but I dont know, where set > username/password because I got this message: > Bad protocol versi

[PHP] unsigned chars

2010-04-05 Thread donald sullivan
Hello, is it possible to return unsigned chars from an extension? I have looked and cant find anything on it, or maybe i am looking for the wrong keywords. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Howto send command over ssh using sockets

2010-04-05 Thread Radek KrejĨa
Hello, thank you for response, more in you text: Instead of ssh, you could use telnet to connect to the Cisco router (which incidentally runs on port 23, but is likely to be disabled on I want to use my script against FreeBSD router and against RouterOS so I need ssh. I can use system function