php-general Digest 13 May 2007 04:03:13 -0000 Issue 4788

2007-05-12 Thread php-general-digest-help
php-general Digest 13 May 2007 04:03:13 - Issue 4788 Topics (messages 254854 through 254861): Re: What is the best way to protect the PHP page that returns the AJAX data? [solved] 254854 by: Robert Cummings Tag Cloud revisited 254855 by: tedd Re: Do you use any framework

[PHP] Unsuscribe !!!!!

2007-05-12 Thread yeoh sock yee
Please unsuscribe me from receving all the PHP email! Thanks Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ -- PHP

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-12 Thread Micky Hulse
Hi Eric! Thanks for your reply. :) Eric Butera wrote: If at all possible you're going to want to use PHP5 if you're doing ...snip... of those problems have been alleviated. Gosh! I wish I could use PHP5... Unfortunately the hosting company I am using has not upgraded. I can not wait to start

[PHP] Re: Unsuscribe !!!!!

2007-05-12 Thread Man-wai Chang
yeoh sock yee wrote: Please unsuscribe me from receving all the PHP email! Which list? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.10) Linux 2.6.21.1 ^ ^ 17:07:01 up 14 days

Re: [PHP] PHP on the AS400 (now i5)

2007-05-12 Thread Michelle Konzack
Hi Mark, Am 2007-05-10 21:16:18, schrieb Mark Allen: Just curious if anybody else is using Zend's PHP port on an AS400/iSeries/i5? - END OF REPLIED MESSAGE - With OS400 or Linux? If Linux, you can run the powerpc architckture where you

Re: [PHP] getting $_ENV variables

2007-05-12 Thread tedd
At 11:54 AM +0100 5/10/07, C.R.Vegelin wrote: All I want is to check the $_ENV['OS'] within PHP scripts. If all you want to do is to find out what the user's OS is, try this: $_SERVER('HTTP_USER_AGENT') Do print_r($_SERVER) to see all it contains. Cheers, tedd -- ---

[PHP] Re: Passing an array as a hidden variable

2007-05-12 Thread itoctopus
hmmm, anyways, to do that you can just join the array using $str_attend_save = implode('|', $attend_ary_save); ? echo 'input type=hidden name=str_attend_save value=' . $str_attend_save .''; ? On your action page, you do this: $attend_ary_save = explode('|', $_POST['str_attend_save']); --

[PHP] Re: cloning $this php5

2007-05-12 Thread itoctopus
I don't think the clone function works on $this. -- itoctopus - http://www.itoctopus.com blackwater dev [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a method within an class that should make a copy of itself, do some stuff on the copy and return it. The object contains

[PHP] Re: self:: vs this

2007-05-12 Thread itoctopus
self:: static functions $this- non static functions -- itoctopus - http://www.itoctopus.com Mariano Guadagnini [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never

[PHP] Do you use any framework in your applications?

2007-05-12 Thread cajbecu
Hello, I was wondering if some of you use any framework in your application. If you do that, can you post the name of the framework and advantages/disadvantages of it? 2 weeks ago I started to learn symfony framework (www.symfony-project.com) wich apears to be a good and reliable framework.

Re: [PHP] Do you use any framework in your applications?

2007-05-12 Thread Dave Goodchild
It's a personal thing. I use Code Igniter (codeigniter.com), which is fast, lightweight, has a great community and excellent documentation, as well as some very good video tutorials. It pales in comparison with Ruby On Rails, of course, but that's another thread on another list...

[PHP] Re: Do you use any framework in your applications?

2007-05-12 Thread itoctopus
I'm currently using Ruby on Rails. As for PHP, all the frameworks I ever worked with were developed in-house. I've tinkered a bit with CakePHP and it looked very good. -- itoctopus - http://www.itoctopus.com cajbecu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I was

Re: [PHP] Re: Unsuscribe !!!!! [List Command Reminders]

2007-05-12 Thread Daniel Brown
A reminder on how to unsubscribe, get help, et cetera --- Administrative commands for the php-general list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: For help and a

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-12 Thread Robert Cummings
On Fri, 2007-05-11 at 22:12 -0700, [EMAIL PROTECTED] wrote: I don't see you giving a solution. The solution is the same as for any session in which you want to protect data. It hardly needs covering yet again. Read the archives. Cheers, Rob. On 5/11/07, Robert Cummings [EMAIL PROTECTED]

[PHP] Tag Cloud revisited

2007-05-12 Thread tedd
Richard: Sorry to get back to this so late, but I had some other pressing matters. Thanks to Tedd for answering the question I asked, I think, even though I was asking the wrong question. :-) No problem, but you did ask the right question. You touched on something I think you intuitively

Re: [PHP] Do you use any framework in your applications?

2007-05-12 Thread Brice
On 5/12/07, cajbecu [EMAIL PROTECTED] wrote: Hello, I was wondering if some of you use any framework in your application. If you do that, can you post the name of the framework and advantages/disadvantages of it? 2 weeks ago I started to learn symfony framework (www.symfony-project.com) wich

Re: [PHP] getting $_ENV variables

2007-05-12 Thread Richard Davey
tedd wrote: At 11:54 AM +0100 5/10/07, C.R.Vegelin wrote: All I want is to check the $_ENV['OS'] within PHP scripts. If all you want to do is to find out what the user's OS is, try this: $_SERVER('HTTP_USER_AGENT') Do print_r($_SERVER) to see all it contains. He wanted to tell the OS of

Re: [PHP] Do you use any framework in your applications?

2007-05-12 Thread Greg Donald
On 5/12/07, cajbecu [EMAIL PROTECTED] wrote: I was wondering if some of you use any framework in your application. Rubyonrails - Best of breed for MVC-ness. I love the built-in Javascript libraries. Django - Really nice for building highly scalable database driven web apps. Python is a

[PHP] Question

2007-05-12 Thread Dusan Novakovic
Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the example I wrote file.txt file opens in browser, which I don`t want to happen. I would be very grateful if someone

Re: [PHP] Question

2007-05-12 Thread Richard Lynch
On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the example I wrote file.txt file opens in browser, which I

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a href=file.txtClick/a ) so that I could save that file on my computer. In the

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sun, 2007-05-13 at 00:24 -0400, Robert Cummings wrote: On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: Hi! I need a script which will run pop-up menu with the Save As button when I click on a link (e.g. a

[PHP] Re: Tag Cloud revisited

2007-05-12 Thread Richard Lynch
On Sat, May 12, 2007 11:46 am, tedd wrote: Sorry to get back to this so late, but I had some other pressing matters. No worries. It's not like I'm likely to disappear from here anytime soon :-) Thanks to Tedd for answering the question I asked, I think, even though I was asking the wrong

Re: [PHP] Passing an array as a hidden variable

2007-05-12 Thread Richard Lynch
On Fri, May 11, 2007 11:53 pm, Todd Cary wrote: When I use the following syntax, the 2 dimensional array loses it's contents. Can an array be passed this way? ? echo 'input type=hidden name=attend_ary_save value=' . $attend_ary_save .''; ? No. You'll just get Array back. You can do a

Re: [PHP] Question

2007-05-12 Thread Richard Lynch
On Sat, May 12, 2007 11:40 pm, Robert Cummings wrote: BTW Richard, my Opera browser (9.10 linux) opened up this link as a page containing text: http://l-i-e.com/blogger/download.php?filename=iwant.xyz If Opera IGNORES the RFC-mandated application/octet-stream as forcing a download, it's

Re: [PHP] Function Declared in Included File Not Being Found

2007-05-12 Thread Richard Lynch
On Fri, May 11, 2007 3:43 pm, Chris wrote: Hello, According to the PHP manual on functions (http://www.php.net/manual/ en/language.functions.php): In PHP 3, functions must be defined before they are referenced. No such requirement exists since PHP 4. Except when a function is conditionally

Re: [PHP] Function Declared in Included File Not Being Found

2007-05-12 Thread Richard Lynch
On Fri, May 11, 2007 6:15 pm, jekillen wrote: One reason I believe is that including a file in an included file will not work. file a includes file b wnich includes file c, code in file c will not register. (if I remember the manual correctly) I dunno what you were reading, but almost for

Re: [PHP] Processing a table of input fields

2007-05-12 Thread Richard Lynch
Use name=attend[?php echo $user_id?] This will simplify life immensely on the processing side where you can just iterate through $_POST['attend'] as an array and have the $user_id. Ditto for the pay[?php echo $user_id?] and other fields. Note that the checkboxes will ONLY send in keys/values

Re: [PHP] Re: self:: vs this

2007-05-12 Thread Richard Lynch
On Fri, May 11, 2007 12:28 pm, Eric Butera wrote: On 5/11/07, M.Sokolewicz [EMAIL PROTECTED] wrote: statically: Class Foo { static $a = 1; static function Bar() { self::a++; } } Use self:: only when you don't have an actual instance handy, is a general rule, I think...