Re: [PHP] upload file problem

2008-07-31 Thread Jignesh Thummar
Thanks.. It's fixed... - Jignesh On Thu, Jul 31, 2008 at 6:05 PM, brian <[EMAIL PROTECTED]> wrote: > Jignesh Thummar wrote: >> >> I'm trying to upload the file. It's showing me successfully uploaded. >> But it's not able to move from temp directory to my defined directory >> >> my code: >> >> if

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Chris
brian wrote: > Richard Kurth wrote: >> I want to limit these script two send 100 email and then pause for a >> few seconds and then send another 100 emails and repeat this tell it >> has sent all the emails that are dated for today. This script is runs >> by cron so it is running in the background.

Re: [PHP] accessing variables within objects

2008-07-31 Thread Philip Thompson
On Jul 31, 2008, at 1:49 PM, Jim Lucas wrote: Philip Thompson wrote: On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Richard Kurth
Andrew Ballard wrote: On Thu, Jul 31, 2008 at 4:24 PM, brian <[EMAIL PROTECTED]> wrote: Andrew Ballard wrote: On Thu, Jul 31, 2008 at 1:27 PM, brian <[EMAIL PROTECTED]> wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 4:24 PM, brian <[EMAIL PROTECTED]> wrote: > Andrew Ballard wrote: >> >> On Thu, Jul 31, 2008 at 1:27 PM, brian <[EMAIL PROTECTED]> wrote: >>> >>> Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then sen

[PHP] Site work fine with appserv, but fail over debian :S

2008-07-31 Thread Kazabe
hi. Im implementing a website, making the develop and testing using appserv. All work perfectly. But when i upload the site to my linux webserver some pages cant be displayed. The page dont display any error, but dont show information. The problem is only when i load the info from a table o

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread brian
Andrew Ballard wrote: On Thu, Jul 31, 2008 at 1:27 PM, brian <[EMAIL PROTECTED]> wrote: Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Rahul S. Johari
On Jul 31, 2008, at 3:10 PM, Boyd, Todd M. wrote: -Original Message- From: Rahul S. Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 2:06 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 3:04 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Micah Gersten [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 31, 2008 1:59 PM >> To: PHP General list >> Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! >> >> Wha

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 1:27 PM, brian <[EMAIL PROTECTED]> wrote: > Richard Kurth wrote: >> >> I want to limit these script two send 100 email and then pause for a few >> seconds and then send another 100 emails and repeat this tell it has sent >> all the emails that are dated for today. This scrip

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Micah Gersten [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 2:08 PM > To: Boyd, Todd M. > Cc: PHP General list > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > You're right. Same principles apply though. > > Thank you, >

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Rahul S. Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 2:06 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- > SOLVED!! > > > Did IT Haha ... just as you wer

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Micah Gersten
You're right. Same principles apply though. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Boyd, Todd M. wrote: > *cough* > > ...pretty sure he wrote "county", guys. ;) > > > Todd Boyd > Web Programmer > -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Rahul S. Johari
Did IT Haha ... just as you were probably writing in & sending this mail. I pretty much used your theory and actually did look around under http://www.w3schools.com/ajax/ to get the relevant AJAX information. Works like a charm. Pretty much using an onChange=grabCountiesfromAnotherPHPpa

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Micah Gersten [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 1:59 PM > To: PHP General list > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > What I usually do is default to the most common country and show the > associated s

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Micah Gersten
What I usually do is default to the most common country and show the associated states. You can change the states if they change the country. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Andrew Ballard wrote: > On Thu, Jul 31, 2008 at 12:40 PM, Rahul S. Jo

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Micah Gersten
Maybe you should try this library. It comes with examples and is fairly easy to implement. http://xajaxproject.org/ Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Rahul S. Johari wrote: > > In theory your solution sounds extremely feasible & perhaps the > a

Re: [PHP] accessing variables within objects

2008-07-31 Thread Jim Lucas
Philip Thompson wrote: On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set error_reporting(E_ALL); I see messages like Noti

Re: [PHP] accessing variables within objects

2008-07-31 Thread Micah Gersten
Sorry about that, I forgot you got that link already. Here's an answer for you: I use overloading to dynamically call a function in another object if the current object does not have it. It helps because PHP does not support multiple inheritance. Thank you, Micah Gersten onShore Networks Interna

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 2:31 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Rahul S. Johari [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 31, 2008 12:27 PM >> To: Boyd, Todd M. >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] Dynamic Select Lists - 1st

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 12:40 PM, Rahul S. Johari <[EMAIL PROTECTED]> wrote: > Ave, > > What I have is two Select (Drop-Down) lists (State & County) and I'm > populating them from a mySQL table. What I want is when the user selects the > State from the State List, the County List should only pull o

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Rahul S. Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 12:27 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > > On Jul 31, 2008, at 12:55 PM, Boyd, Todd M. wrot

Re: [PHP] Re: Windows date("Y/m/d H:i:s") performance

2008-07-31 Thread Richard Lynch
PHP 5.2.6 with Xdebug 2.0.3 here... Aha! Turning off Xdebug "fixes" it... Weird. Or maybe "normal" for Xdebug? I'll take this up with Derick and co on Xdebug list next, if anybody wants to follow... On Wed, July 30, 2008 11:36 am, Andrew Ballard wrote: > On Wed, Jul 30, 2008 at 12:19 PM, Rich

Re: [PHP] PHP email

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 7:46 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Hi, > > Can someone tell me what the address is to change my @php.net redirect? > Thanks. It's on the Master system. I'll send you the direct link to edit your profile in a Google chat. -- Better prices on dedicat

Re: [PHP] strange string evaluation

2008-07-31 Thread brian
Marten Lehmann wrote: Hello, with PHP 5.0.x this two lines of code returned "{TEST}": $var = "TEST"; print "\{$var}"; But with PHP 5.2.x, the same code returns "\{TEST}" If I remove the backslash: $var = "TEST"; print "{$var}"; then just "TEST" is return (without any brackets). What is the

Re: [PHP] Get Remote-Image

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 1:21 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > > Sorry Brown... maybe http://php.net/de/copy > > Since there weren't any English words in his post I figured going directly > to the Deutsch translation was best Yeah, I understand but what I mean is that, the l

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-31 Thread brian
Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs by cron so it is running in the background. How would I do this

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Rahul S. Johari
On Jul 31, 2008, at 12:55 PM, Boyd, Todd M. wrote: -Original Message- From: Rahul S. Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 11:40 AM To: php-general@lists.php.net Subject: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! Ave, What I have is two Select (D

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Daniel Brown wrote: On Thu, Jul 31, 2008 at 11:14 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: No, http://us2.php.net/manual/de/function.copy.php What do you mean, "no," McKenzie? ;-P If you use the short method, it redirects properly. Putting him through us2 and specifying transl

Re: [PHP] upload file problem

2008-07-31 Thread brian
Jignesh Thummar wrote: I'm trying to upload the file. It's showing me successfully uploaded. But it's not able to move from temp directory to my defined directory my code: if (is_uploaded_file($_FILES['myfile']['tmp_name'])) { move_uploaded_file($_FILES['myfile']['tmp_name'], $myfilename);

Re: [PHP] accessing variables within objects

2008-07-31 Thread Philip Thompson
On Jul 31, 2008, at 11:48 AM, Micah Gersten wrote: Here's the PHP doc page. Let us know if you have more questions: http://us3.php.net/manual/en/language.oop5.overloading.php Yeah, I got the link the first time and read the page. But I was looking for a little bit more explanation... Thank

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Rahul S. Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 11:40 AM > To: php-general@lists.php.net > Subject: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > Ave, > > What I have is two Select (Drop-Down) lists (State & County) and

Re: [PHP] upload file problem

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar <[EMAIL PROTECTED]> wrote: > I'm trying to upload the file. It's showing me successfully uploaded. > But it's not able to move from temp directory to my defined directory > > my code: > > if (is_uploaded_file($_FILES['myfile']['tmp_name'])) { > mo

Re: [PHP] accessing variables within objects

2008-07-31 Thread Micah Gersten
Here's the PHP doc page. Let us know if you have more questions: http://us3.php.net/manual/en/language.oop5.overloading.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Philip Thompson wrote: > On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: > >> Marten Lehm

Re: [PHP] upload file problem

2008-07-31 Thread Micah Gersten
Maybe check the return value of the function: http://us3.php.net/manual/en/function.move-uploaded-file.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jignesh Thummar wrote: > I'm trying to upload the file. It's showing me successfully uploaded. > But it'

[PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Rahul S. Johari
Ave, What I have is two Select (Drop-Down) lists (State & County) and I'm populating them from a mySQL table. What I want is when the user selects the State from the State List, the County List should only pull out counties associated with that State. Now I know that you can create such a

Re: [PHP] Php CLI Parser not working

2008-07-31 Thread JJB
Did you check what Jim suggested, as well, about short_open_tags? If your scripts use PHP tags like this: Yes, that was the problem - it was Off in: /etc/php5/cli/php.ini we had checked the one in: ./etc/php5/apache2/php.ini and it was On there so we thought something else w

Re: [PHP] Get Remote-Image

2008-07-31 Thread Daniel Brown
On Thu, Jul 31, 2008 at 11:14 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > > No, > > http://us2.php.net/manual/de/function.copy.php What do you mean, "no," McKenzie? ;-P If you use the short method, it redirects properly. Putting him through us2 and specifying translation is going to

Re: [PHP] strange string evaluation

2008-07-31 Thread Robert Cummings
On Thu, 2008-07-31 at 17:54 +0200, Marten Lehmann wrote: > Hello, > > with PHP 5.0.x this two lines of code returned "{TEST}": > > $var = "TEST"; > print "\{$var}"; > > But with PHP 5.2.x, the same code returns "\{TEST}" > > If I remove the backslash: > > $var = "TEST"; > print "{$var}"; > >

[PHP] strange string evaluation

2008-07-31 Thread Marten Lehmann
Hello, with PHP 5.0.x this two lines of code returned "{TEST}": $var = "TEST"; print "\{$var}"; But with PHP 5.2.x, the same code returns "\{TEST}" If I remove the backslash: $var = "TEST"; print "{$var}"; then just "TEST" is return (without any brackets). What is the recommended way for PH

Re: [PHP] Creating new site

2008-07-31 Thread Richard Heyes
> Cake is licensed under the MIT license which is about as permissible as you > can get. Any Open Source code is permissable as long you don't tell anyone... :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Daniel Brown wrote: On Wed, Jul 30, 2008 at 9:50 PM, Konrad Priemer <[EMAIL PROTECTED]> wrote: kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht geregelt ein Image "on-the-fly" von einem Remote-Host per fsockopen auf meinen Server zu ziehen. Irgendwo hab ich da voll die Block

Re: [PHP] Get Remote-Image

2008-07-31 Thread Shawn McKenzie
Richard Heyes wrote: Gutentag, I'm staring at the screen thinking "Huh...?". He didn't even apologize for his English! -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] accessing variables within objects

2008-07-31 Thread Philip Thompson
On Jul 30, 2008, at 1:29 PM, Jim Lucas wrote: Marten Lehmann wrote: Hello, I'm using some php-classes which worked fine with php-5.0.4. Now I tried to upgrade to php-5.2.6, but the classes give a lot of errors. If I set error_reporting(E_ALL); I see messages like Notice: Undefined property

Re: [PHP] Creating new site

2008-07-31 Thread Shawn McKenzie
Cake is licensed under the MIT license which is about as permissible as you can get. -Shawn Raido wrote: I have investigated some frameworks.. Zend and Codeiginiter but I haven't done any testing/exercises. They seem to make things much more simple/faster yes...but I'm not sure how much time

Re: [PHP] upload file problem

2008-07-31 Thread Jignesh Thummar
it's writable. On Thu, Jul 31, 2008 at 3:37 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar > <[EMAIL PROTECTED]> wrote: >> I'm trying to upload the file. It's showing me successfully uploaded. >> But it's not able to move from temp directory to my de

Re: [PHP] upload file problem

2008-07-31 Thread Eric Butera
On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar <[EMAIL PROTECTED]> wrote: > I'm trying to upload the file. It's showing me successfully uploaded. > But it's not able to move from temp directory to my defined directory > > my code: > > if (is_uploaded_file($_FILES['myfile']['tmp_name'])) { > mo

[PHP] upload file problem

2008-07-31 Thread Jignesh Thummar
I'm trying to upload the file. It's showing me successfully uploaded. But it's not able to move from temp directory to my defined directory my code: if (is_uploaded_file($_FILES['myfile']['tmp_name'])) { move_uploaded_file($_FILES['myfile']['tmp_name'], $myfilename); echo "File ". $_FILES['

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-07-31 Thread Eric Butera
On Wed, Jul 30, 2008 at 7:03 PM, mike <[EMAIL PROTECTED]> wrote: > On 7/30/08, Stephen <[EMAIL PROTECTED]> wrote: > >> But I wonder, is there any reason to use single quotes? > > extremely minor performance gains, afaik. > > probably moreso when doing $foo["bar"] and $foo['bar'] > > but i believe i

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-07-31 Thread Eric Butera
On Wed, Jul 30, 2008 at 6:51 PM, Stephen <[EMAIL PROTECTED]> wrote: > I have traditionally used double quotes going back to my PASCAL days. > > I see many PHP examples using single quotes, and I began to adopt that > convention. > > Even updating existing code. > > And I broke some stuff that was d

Re: [PHP] Using $_GET for POST

2008-07-31 Thread Dan Shirah
> > if ( ! (isset($_GET['x']) && $_GET['x'] == 20) ) > { > // Do something by returning an error > } > > Can this ever be correct when the form looks like: > > > > > > ? I sometimes do things similar to this. I normally use it when I am opening a new page vi

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-07-31 Thread Richard Heyes
Single quotes do still recognise \' and \\ though, for getting a single quote and backslash. IIRC (which isn't likely) they're the only two. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-07-31 Thread Dan Shirah
Thanks for the nice explanation, Dan! On 7/30/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Wed, Jul 30, 2008 at 6:51 PM, Stephen <[EMAIL PROTECTED]> wrote: > > I have traditionally used double quotes going back to my PASCAL days. > > > > I see many PHP examples using single quotes, and I beg

[PHP] PHP email

2008-07-31 Thread Richard Heyes
Hi, Can someone tell me what the address is to change my @php.net redirect? Thanks. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Remote-Image

2008-07-31 Thread Richard Heyes
> Gutentag, I'm staring at the screen thinking "Huh...?". -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Remote-Image

2008-07-31 Thread Aschwin Wesselius
Konrad Priemer wrote: Moin, kann mir mal wer auf die Sprünge helfen, ich bekomme es gerade nicht geregelt ein Image "on-the-fly" von einem Remote-Host per fsockopen auf meinen Server zu ziehen. Irgendwo hab ich da voll die Blockade ;) Mein "nichtfunktionierender" Versuch: ...

Re: [PHP] Creating new site

2008-07-31 Thread Jason Norwood-Young
On Thu, 2008-07-31 at 09:57 +, Raido wrote: > I have investigated some frameworks.. Zend and Codeiginiter but I > haven't done any testing/exercises. They seem to make things much more > simple/faster yes...but I'm not sure how much time it will take to get > know one of them(or CakePHP). A