Re: [PHP] sqlite if query changes to empty on a loop

2007-05-12 Thread Richard Lynch
On Thu, May 10, 2007 2:55 pm, [EMAIL PROTECTED] wrote: > Hello, > > I have a loop on an sqlite query which checks $domain until the status > of > $domain changes and then it deletes $domain. > > However when all the $domain items have been deleted I need the script > to > stop.. regardless of how

Re: [PHP] PHP sorting csv array output

2007-05-12 Thread Richard Lynch
If you are going to sort it by various fields, I'd just throw it into a database... That said, http://php.net/usort should be able to do whatever you want. On Thu, May 10, 2007 2:18 pm, Anna Vester wrote: > Hello all, > > I have a question concerning .CSV array sorting. I have tried googling > fo

[PHP] php can do this

2007-05-12 Thread suresh kumar
Hi, I want to know whether its possible to implement this functionality in PHP and MySQL.. I will allow web users to download one .bat file from my Application. This .bat contains something like this 'c:\\program files\Internet Explorer\iexplore.exe' http://x.com/download.php"

Re: [PHP] PHP & MySQL

2007-05-12 Thread Richard Lynch
On Thu, May 10, 2007 3:42 pm, Jason Pruim wrote: > I know this isn't strictly a PHP question, and I apologize in advance > for that. I'm trying to setup a website for some of my customers that > would allow them to update a database on their schedule, making it > easier for us to have the most up t

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

2007-05-12 Thread Richard Lynch
On Fri, May 11, 2007 9:59 pm, [EMAIL PROTECTED] wrote: > Set ajaxObject.setRequestHeader("User-Agent","SecretName"); in > Javascript and check for it in PHP. Not fool-proof, but the average > person wouldn't be able to get in. Unless the user "View Source" and read your AJAX code... This is not g

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

2007-05-12 Thread Richard Lynch
On Thu, May 10, 2007 10:18 pm, Daevid Vincent wrote: > Like most sites, someone needs to join up to use mine. Errr. To be pedantic, I don't think "most" sites require registration, actually... :-) I'm not saying it's "bad" or anything, just that there's still way more HTML pages out there with f

Re: [PHP] finding next and prev record in mysql

2007-05-12 Thread Richard Lynch
On Thu, May 10, 2007 11:54 pm, Richard Kurth wrote: > How would I find the next id and the prev id in sql statement like the > one > below. The id number is not going to be in order so I can't do a < or > > > limit 1 on the search > > SELECT id FROM contacts WHERE category = '5' AND subcategory = '

Re: [PHP] import dbf files

2007-05-12 Thread Richard Lynch
On Fri, May 11, 2007 8:23 am, Bosky, Dave wrote: > My goal is to be able to import dbf files into MySQL on a nightly > basis. > > Can I enable dbase support by uncomment the dbase extension entry in > the > php.ini file or is there more to it? On Windows, assuming you have the dbase DLL matching y

[PHP] Application support both chinese and english lang

2007-05-12 Thread suresh kumar
Hi, I am developing one application using PHP and MySQL.Right now my application supports English language.i like to integrate chinese language in my application.i like to implement similar to this website. http://www.dynasign.net.cn/dynasign/login.do 'Language' comb

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 r

Re: [PHP] Processing a table of input fields

2007-05-12 Thread Richard Lynch
Use name="attend[]" 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[] and other fields. Note that the checkboxes will ONLY send in keys/values for the checked ones -- You get nothing

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 fo

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 > condi

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, i

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? > > $attend_ary_save .'>'; ?> No. You'll just get "Array" back. You can do a few things: $v1){ foreach($v1 as $k2 => $v2

[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] 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. Click

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. Click ) so that I > > could save that file on my computer. In the example

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. Click ) 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 h

[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. Click ) 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 could send me a pos

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 sol

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 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

[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 kne

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]>

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 descri

[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 wa

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] 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. cajb

[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, bu

[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 conta

[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); '; ?> On your action page, you do this: $attend_ary_save = explode('|', $_POST['str_attend_save']); -- itoctopus - http://www.itoctopus.com "Todd Cary" <[EMAIL PROTECTED]> wrote in mess

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 -- --- http://sperling.co

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 defi

[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 2:0