[PHP] Image handling advice needed

2006-01-18 Thread William Stokes
Hello, I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put to a web page. I'am trying to deside between two o

Re: [PHP] Re: Using GPG in Safe Mode

2006-01-18 Thread M
[EMAIL PROTECTED] wrote: Hi Edwin! Thanks for the tips but my ISP hasn't given me root. I'm very sad to hear gpg from cli won't work under safe mode. Are there any 100% php implementations of GPG I could use? (because I guess that is the only way that is left?) /Emil If you are using gnupg

Re: [PHP] FW: error de php!

2006-01-18 Thread Ahmed Saad
On 1/18/06, Miguel Guirao <[EMAIL PROTECTED]> wrote: > $this->$NumDias = $unixtime2 - $unixtime1; <--- This is the line 44 hmm wasn't it supposed to be $this->NumDias? (with no $ before the propery name) -ahmed

Re: [PHP] Image handling advice needed

2006-01-18 Thread Ahmed Saad
On 1/18/06, William Stokes <[EMAIL PROTECTED]> wrote: > I'am trying to deside between two options. To resize (=scale down) the > images once they are uploaded to server and store the smaller file or upload > and store the original BIG file and scale it to thumbnail once it's viewed. > Any opinnion

Re[2]: [PHP] Validating Radio Buttons in two directions

2006-01-18 Thread Steve Clay
Tuesday, January 17, 2006, 11:33:18 PM, HiFi Tubes wrote: > Thanks to all of you who responded. Yes, I am doing the grid --basically > 100 radio buttons, that is ten comments that must be ranked from 1 to 10. Ugh. If you absolutely can't use Javascript, here's an idea: Present this question by i

Re: [PHP] Image handling advice needed

2006-01-18 Thread Miles Thompson
At 04:10 AM 1/18/2006, William Stokes wrote: Hello, I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put to a w

[PHP] mcrypt

2006-01-18 Thread Duffy, Scott E
Is it possible to set the key length for mcrypt with the cipher Blowfish? Specifically to lets say 128 bits? mcrypt_get_key_size returns int but is it bytes bits? Maybe I could do with openssl? Ideas and thoughts very welcome. Thanks, Scott

Re: [PHP] Image handling advice needed

2006-01-18 Thread Jochem Maas
William Stokes wrote: Hello, I need to build an image 'library'. The library will consist mostly of images taken with digital cameras. Since unedited digicam pics will most likely be too big for web usage they need to be edited automatically so that they can be put to a web page. I'am tryin

RE: [PHP] RE: header data being inserted into message

2006-01-18 Thread ET Support
Hi Richard, Thanks for the response, however I do not want to have to use any special classes or other software... I want to get it working just using the basic php functions, which should be possible as far as I understand the php documentation... if I keep finding that I can't get it working the

[PHP] help me plz

2006-01-18 Thread suresh kumar
hi, i am using 2 combo box one for country & another one for city.when i select country name from combo box their corresponding city names has to be changed in their corresponding combo box.i dont know how 2 implement this.pz give me some idea.its urgent. A.suresh

Re: [PHP] help me plz

2006-01-18 Thread Max Belushkin
If this is on the same web page, your question has nothing to do with PHP - look into, i.e., JavaScript. suresh kumar wrote: hi, i am using 2 combo box one for country & another one for city.when i select country name from combo box their corresponding city names has to be changed in their c

[PHP] help me pllzzzzzz

2006-01-18 Thread suresh kumar
hi, i am having 2 combo box one for city & another one for country,when i select particular country say "india" their corresponding cities will be displayed in city combobox as "delhi,bangalore.",when i select "Australia" thier cities like "perth,brisbane"will be displayed.plz

Re: [PHP] PHP load to high on server

2006-01-18 Thread Adi
Run some tracer apps on your code...could be some wild loops of some sort? Never the less, ZEND debugger with the module should do the jobit will tell you which files/functions etc are runningnice tool to track execution time etc... On 1/18/06, Albert <[EMAIL PROTECTED]> wrote: > > Hi > >

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Jay Blanchard
[snip] i am having 2 combo box one for city & another one for country,when i select particular country say "india" their corresponding cities will be displayed in city combobox as "delhi,bangalore.",when i select "Australia" thier cities like "perth,brisbane"will be displayed.p

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread John Nichel
Jay Blanchard wrote: [snip] i am having 2 combo box one for city & another one for country,when i select particular country say "india" their corresponding cities will be displayed in city combobox as "delhi,bangalore.",when i select "Australia" thier cities like "perth,brisbane

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Dan Parry
g List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1370 (20060118) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] help me pllzzzzzz

2006-01-18 Thread Duffy, Scott E
PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1370 (20060118) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.ne

RE: [PHP] RE: header data being inserted into message

2006-01-18 Thread ET Support
That did not work, however what does seem to work is changing all my \r\n to just \n ... which I found after going over the php docs again at http://www.php.net/manual/en/function.mail.php ... "Note: If messages are not received, try using a LF (\n) only. Some poor quality Unix mail transfer agent

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Jochem Maas
suresh kumar wrote: hi, i am having 2 combo box one for city & another one for country,when i select particular country say "india" their corresponding cities will be displayed in city combobox as "delhi,bangalore.",when i select "Australia" thier cities like "perth,brisbane..

Re: [PHP] PHP load to high on server

2006-01-18 Thread Jochem Maas
Adi wrote: Run some tracer apps on your code...could be some wild loops of some sort? Never the less, ZEND debugger with the module should do the jobit will tell you which files/functions etc are runningnice tool to track execution time etc... On 1/18/06, Albert <[EMAIL PROTECTED]> wrote

RE: [PHP] PHP Cache (was PHP load to high on server)

2006-01-18 Thread Albert
I wrote: > I am running SuSE 9.2 (Kernel 2.6.8-24-default) with Apache 2.0.50 and PHP > 4.3.8 (as an Apache module) on a Celeron 900 with 304MB RAM. This machine > is used for testing. We have made some changes to our PHP application and > now the machine is having trouble serving the pages. Apac

RE: [PHP] PHP load to high on server

2006-01-18 Thread Stefan Moldoveanu
Hello, The same problem I've had on a FreeBSD 4.11 box, running Apache 1.3.3 and PHP 4.3.5. From time to time, httpd went to 90%+ (I supposed it was a memory leak or smth). After upgrading Apache to 1.3.4 and PHP to 4.4.2, everything smoothed down and we got no more 90+% httpd, even on heavy

Re: [PHP] PHP Cache (was PHP load to high on server)

2006-01-18 Thread Jochem Maas
on your *nix cmdline type this: pear install apc (if you don't have pear installed then you should fix that first ;-) now read here about how to use it: http://php.net/apc I love it even though it crashes when caching the opcodes of certain class files (php5 files that make use

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Anas Mughal
You need to build JavaScript logic for that. Try searching on JavaScript developer sites and mailing lists. This has nothing to do with PHP -- unless you are dynamically building the JavaScript. -- Anas Mughal On 1/18/06, suresh kumar <[EMAIL PROTECTED]> wrote: > > hi, >i am having 2 comb

RE: [PHP] PHP Cache (was PHP load to high on server)

2006-01-18 Thread Stefan Moldoveanu
http://eaccelerator.net/HomeUk Actually, is the former mmCache with a new team of developers and some impovements. The last known version of mmCache I've played with one week ago core dumped the httpd on ./apachectl stop. The last stable version of eAccelerator (0.9.3, I think) works like a cha

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Robert Cummings
On Wed, 2006-01-18 at 11:11, John Nichel wrote: > Jay Blanchard wrote: > > [snip] > >i am having 2 combo box one for city & another one > > for country,when i select particular country say > > "india" their corresponding cities will be displayed > > in city combobox as "delhi,bangalore

[PHP] parse string

2006-01-18 Thread Ron Eggler (Paykiosks)
Hi, I need to parse a String like pasted below for all information (values) those are included like 'var=value'. How can I do that? Are there any XML-parsing functions available those'd fit for that job? I've ust found that one (http://ca.php.net/simplexml) but it seems like i could use it only fo

[PHP] Drop down directory structure list box

2006-01-18 Thread Sugrue, Sean
Does anyone know what the best way to list a directory dialog box or directory drop down list in Php? The script I'm writing has a form that asks the user where his files are and I don't want the user to have to remember the whole directory path in order to type it. Sean -- PHP General Mailing

Re: [PHP] Drop down directory structure list box

2006-01-18 Thread Sumeet
Sugrue, Sean wrote: Does anyone know what the best way to list a directory dialog box or directory drop down list in Php? The script I'm writing has a form that asks the user where his files are and I don't want the user to have to remember the whole directory path in order to type it. Sean

RE: [PHP] Drop down directory structure list box

2006-01-18 Thread Jay Blanchard
[snip] >Does anyone know what the best way to list a directory dialog box or >directory drop down list in >Php? The script I'm writing has a form that asks the user where his >files are and I don't want the >user to have to remember the whole directory path in order to type it. > >Sean > > > u

[PHP] URL -> stream context

2006-01-18 Thread Richard Lynch
So I've been poring over the docs for the new stream stuff, and it looks pretty nifty, except... I'd really like to be able to just hand a URL to PHP like: http://php.net/manual/en/ref.stream.php And let PHP figure out how to create a stream context out of that, and which port to use, and how to

Re: [PHP] help me pllzzzzzz

2006-01-18 Thread Richard Correia
Whatever Suresh, I know as a beginer you are facing this problems. I would suggest that you check standalone htm version of php document. The dynamic combo script can be located at http://www.weberdev.com/get_example.php3?count=4074&mode=text This site has 1000s of FREE ready to use PHP,My

[PHP] Interesting problem in PHP and Squirrelmail

2006-01-18 Thread Mark
I am working on an XML serializer module for PHP. It will allow session information to be stored as XML in the database. While this sounds like self promotion, and it probably is a bit, it is needed to make sense of why I am doing this. Anyway, the XML stream is so that I can use PHP session data

Re: [PHP] Interesting problem in PHP and Squirrelmail

2006-01-18 Thread Robert Cummings
On Wed, 2006-01-18 at 15:36, Mark wrote: > > [-- CLIPPED --] > > Here's a point of debate, should this sort of behavior be allowed? If it is > allowable, how does one support it in any sort of serialized methodology? I > have a few ideas but none very pretty. I'm pretty sure it causes problems > in

Re: [PHP] Interesting problem in PHP and Squirrelmail

2006-01-18 Thread Robert Cummings
On Wed, 2006-01-18 at 15:44, Robert Cummings wrote: > > Yes it should be allowed, Actualy was just thinking about how I didn't allow this in JavaScript... you might want to make it an option as a second parameter to recurse. I know in JavaScript any DOM element references the entire DOM tree and y

Re: [PHP] Interesting problem in PHP and Squirrelmail

2006-01-18 Thread Mark
Robert Cummings wrote: > On Wed, 2006-01-18 at 15:36, Mark wrote: >> >> [-- CLIPPED --] >> >> Here's a point of debate, should this sort of behavior be allowed? If it >> is allowable, how does one support it in any sort of serialized >> methodology? I have a few ideas but none very pretty. I'm pre

[PHP] SimpleXML

2006-01-18 Thread Jay Paulson
I'm a noob when it comes to parsing an XML file. I have a really simple file that I'm getting back from a SOAP service that I need to parse. I figure SimpleXML would be great! However, I'm having problems getting the name attribute for each column element. The XML is below along with the code I

Re: [PHP] Interesting problem in PHP and Squirrelmail

2006-01-18 Thread Richard Lynch
On Wed, January 18, 2006 2:36 pm, Mark wrote: > Here's a point of debate, should this sort of behavior be allowed? Of course it should be allowed! It's a standard computer science technique! There are entire branches of mathematics / science devoted to recursive graph theory. Whole *BOOKS* writ

RE: [PHP] Drop down directory structure list box

2006-01-18 Thread Richard Lynch
On Wed, January 18, 2006 1:21 pm, Jay Blanchard wrote: > [snip] >>Does anyone know what the best way to list a directory dialog box or >>directory drop down list in >>Php? Files on the desktop, or up on the server? >> The script I'm writing has a form that asks the user where his >>files are and

[PHP] RE: parse string

2006-01-18 Thread ET Support
Hi Ron, Not aware of an existing function for that task... but - since it looks like all the value are strictly in quotes (="value") - if you know all the 'var's ahead of time (such as 'carrier') then you could extract the data fairly easily going through the data line by line checking with strpos

Re: [PHP] parse string

2006-01-18 Thread Richard Lynch
Simple XML *should* give you all the info somewhere in its data structures. If not, there are at least 2 or 3 other XML parsers that have been built s extensions to PHP over the years. Plus there is at least one XML parser in PEAR, and probably one or more in PECL. A quick search on http://php.n

Re: [PHP] Image handling advice needed

2006-01-18 Thread Richard Lynch
On Wed, January 18, 2006 2:10 am, William Stokes wrote: > I need to build an image 'library'. The library will consist mostly of > images taken with digital cameras. Since unedited digicam pics will > most > likely be too big for web usage they need to be edited automatically > so that > they can b

Re: [PHP] SimpleXML

2006-01-18 Thread Richard Lynch
On Wed, January 18, 2006 3:49 pm, Jay Paulson wrote: > I'm a noob when it comes to parsing an XML file. I have a really > simple > file that I'm getting back from a SOAP service that I need to parse. > I > figure SimpleXML would be great! However, I'm having problems getting > the > name attribut

Re: [PHP] PHP load to high on server

2006-01-18 Thread Richard Lynch
On Tue, January 17, 2006 11:18 pm, Albert wrote: > The page having the heaviest load uses 5 simultaneous sessions - they > refresh every 5 seconds. Even with just one connection there are 16 > Apache > threads running all occupying between 5 and 20% of CPU. Are you saying that you have a page that

RE: [PHP] PHP Cache (was PHP load to high on server)

2006-01-18 Thread Richard Lynch
On Wed, January 18, 2006 9:37 am, Albert wrote: > For this I wanted to use mmCache (actually I want to use Zend > Performance > Suite but first I need to prove that it is worth $ 1000 per CPU and > from the > stats on the mmCache site mmCache is faster...) but it seems that the > mmCache project ha

Re: [PHP] mcrypt

2006-01-18 Thread Richard Lynch
On Tue, January 17, 2006 7:05 pm, [EMAIL PROTECTED] wrote: > Since I'm running php under safe mode and the gpglib extension is not > installed in php at my isp gpg seems to be unavalible for me. Are > there anything else I can use with public/private keys that is as > safe/solid/hard to crack as gp

Re: [PHP] Interesting problem in PHP and Squirrelmail

2006-01-18 Thread Robert Cummings
On Wed, 2006-01-18 at 16:20, Mark wrote: > Robert Cummings wrote: > > > > The implementation is slightly more difficult than what I've just > > described, but simple enough :) > > It's truly ugly, don't you think? Actually I find it quite elegant, but maybe that's just me :) Cheers, Rob. -- .-

[PHP] Re: PHP 4.4.2 released!

2006-01-18 Thread Chuck Anderson
Derick Rethans wrote: Hello! The PHP Development Team would like to announce the immediate release of PHP 4.4.2. This is a maintenance release that addresses a number of minor security problems and fixes a few regressions that shown up in PHP 4.4.1. All users of PHP 4 are recommended to upgr

[PHP] creating new class from wrapper class (OOP question)

2006-01-18 Thread Henrik Gemal
In a image gallery I have to class'es: class GPicFilePicture extends GPicFileType class GPicFileMovie extends GPicFileType both of them are based on: abstract class GPicFileType In my code I need to create a new GPicFilePicture. To avoid duplicated code I've create a wrapper class: class GPic

Re: [PHP] Validating Radio Buttons in two directions

2006-01-18 Thread tedd
HiFi: Thanks so much Tedd for the JavaScript. I will keep that snippet for use and study to improve my JS skills. Unfortunately I should have said that I need to stay away from JS in case the users have shut that down in their browsers. I know I can detect that and have them turn it on but I

[PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-18 Thread Daevid Vincent
I have a gentoo server that doesn't save/restore the CLASS portion of a session, but it does retain other $_SESSION values. This code works fine on a debian box. WORKING BOX: [EMAIL PROTECTED]:/lockdown# php --version PHP 5.0.3 (cli) (built: Jan 5 2006 13:18:18) Copyright (c) 1997-2004 The PHP Gr

Re: [PHP] help me plz

2006-01-18 Thread Robert Graham
suresh kumar wrote: hi, i am using 2 combo box one for country & another one for city.when i select country name from combo box their corresponding city names has to be changed in their corresponding combo box.i dont know how 2 implement this.pz give me some idea.its urgent.

Re: [PHP] PHP Cache (was PHP load to high on server)

2006-01-18 Thread Ruben Rubio Rey
Did u tried memcached? http://www.danga.com/memcached/ Albert wrote: I wrote: I am running SuSE 9.2 (Kernel 2.6.8-24-default) with Apache 2.0.50 and PHP 4.3.8 (as an Apache module) on a Celeron 900 with 304MB RAM. This machine is used for testing. We have made some changes to our PHP appl