Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jochem Maas
Paul Scott schreef: On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: Paul Scott schreef: there seems to be some misunderstanding ... a design pattern is not a component (or anything else of substance) but merely a conceptual strategy used to tackle a problem ... ever find yourself writing c

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 9:40 AM, David Giragosian <[EMAIL PROTECTED]> wrote: > On 2/27/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Wed, Feb 27, 2008 at 6:46 AM, skylark <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > What design patterns do you usually use? > > > > > >This o

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread David Giragosian
On 2/27/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Feb 27, 2008 at 6:46 AM, skylark <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > What design patterns do you usually use? > > >This one: > >http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php > Somebody been thinkin

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Aschwin Wesselius
Daniel Brown wrote: On Wed, Feb 27, 2008 at 6:46 AM, skylark <[EMAIL PROTECTED]> wrote: Hi all, What design patterns do you usually use? This one: http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php It's maybe off-topic, but I like a slightly humorous note once

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 6:46 AM, skylark <[EMAIL PROTECTED]> wrote: > Hi all, > > What design patterns do you usually use? This one: http://www.vam.ac.uk/vastatic/microsites/1486_couture/create.php -- Daniel P. Brown Senior Unix Geek -- PHP General Mailing List (http://www.php.

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Paul Scott
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: > Paul Scott schreef: > there seems to be some misunderstanding ... a design pattern is not > a component (or anything else of substance) but merely a conceptual > strategy used to tackle a problem ... ever find yourself writing code > that's c

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Ray Hauge
Richard Heyes wrote: What design patterns do you usually use? Whatever solves the problem. Factory is quite a common one. MVC is another. I have a story to kind of touch on what Jochem said about you just don't know the name yet. Just recently I was tasked with creating a new in-house CRM

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Jochem Maas
Paul Scott schreef: On Wed, 2008-02-27 at 19:50 +0800, skylark wrote: What design patterns do you usually use? I am not sure that you are understanding what a design pattern is. It is not a piece of software or a thing to use, but it is a set of repeatable components that you use in whatever a

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Zoltán Németh
2008. 02. 27, szerda keltezéssel 19.50-kor skylark ezt írta: > Hi guys, > > What design patterns do you usually use? > whichever seems fit to the situation ;) for me its most often singleton, registry, factory, activerecord and you could also read the thread about these last week... greets Zol

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Paul Scott
On Wed, 2008-02-27 at 19:50 +0800, skylark wrote: > What design patterns do you usually use? I am not sure that you are understanding what a design pattern is. It is not a piece of software or a thing to use, but it is a set of repeatable components that you use in whatever app you are writing.

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Richard Heyes
What design patterns do you usually use? Whatever solves the problem. Factory is quite a common one. MVC is another. -- Richard Heyes http://www.phpguru.org Free PHP and Javascript code -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What design patterns do you usually use?

2008-02-27 Thread skylark
Hi guys, What design patterns do you usually use? -- Regards, Shelley

[PHP] What design patterns do you usually use?

2008-02-27 Thread skylark
Hi all, What design patterns do you usually use? -- Regards, Shelley

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-20 Thread TS
^ PEOPLE From: Nathan Nobbe [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 1:51 PM To: TS Cc: php-general@lists.php.net Subject: Re: [PHP] What community software package gets your vote? PHPfox etc... On Tue, Feb 19, 2008 at 9:41 PM, TS <[EMAIL PROTECTED]> wrote:

Re: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-20 Thread Nathan Nobbe
On Tue, Feb 19, 2008 at 9:41 PM, TS <[EMAIL PROTECTED]> wrote: > Hello everyone. I'm not sure what the budget is but, obviously inexpensive > would be nice. Someone turned me on to PHPfox. Yet I don't have any others > to compare it to. If you all would be so kind as to put a shout out and > vote

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-20 Thread Warren Vail
nt to deal with this, you want to stay away from community sites, or find some way to make the communities very private. My 2 cents, Warren Vail > -Original Message- > From: TS [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 19, 2008 6:42 PM > To: php-general@lists.php.ne

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread TS
m: Wolf [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 20, 2008 12:25 AM To: TS Subject: RE: [PHP] What community software package gets your vote? PHPfox etc... One thing to do is google the package name and see what hits are returned... My search for phpfox returned a page of hits that was fi

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread Paul Scott
On Tue, 2008-02-19 at 23:21 -0500, TS wrote: > On Feb 19, 2008 8:41 PM, TS <[EMAIL PROTECTED]> wrote: > > Hello everyone. I'm not sure what the budget is but, obviously inexpensive > > would be nice. Someone turned me on to PHPfox. Yet I don't have any others > > to compare it to. If you all woul

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread TS
or your comment. -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 9:51 PM To: php-general@lists.php.net Subject: Re: [PHP] What community software package gets your vote? PHPfox etc... On Feb 19, 2008 8:41 PM, TS <[EMAIL PROTECTED]> wrote:

Re: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread Greg Donald
On Feb 19, 2008 8:41 PM, TS <[EMAIL PROTECTED]> wrote: > Hello everyone. I'm not sure what the budget is but, obviously inexpensive > would be nice. Someone turned me on to PHPfox. Yet I don't have any others > to compare it to. If you all would be so kind as to put a shout out and vote > on your f

[PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread TS
Hello everyone. I'm not sure what the budget is but, obviously inexpensive would be nice. Someone turned me on to PHPfox. Yet I don't have any others to compare it to. If you all would be so kind as to put a shout out and vote on your favorite, I'd be very grateful. Extendability would also be nic

RE: [PHP] What to do when flush() doesn't?

2007-11-11 Thread admin
ob_flush();Flush(); works for me. -Original Message- From: Jon Westcot [mailto:[EMAIL PROTECTED] Sent: Sunday, November 11, 2007 5:31 AM To: PHP General Subject: [PHP] What to do when flush() doesn't? Hi all: I am trying to get information from a rather long-running PHP scri

[PHP] What to do when flush() doesn't?

2007-11-11 Thread Jon Westcot
Hi all: I am trying to get information from a rather long-running PHP script to send out messages to the client as things are being processed. In reading the manual, it seemed that using flush() was the ideal command for this. Well, it doesn't seem to be working for me. I've even tried s

Re: [PHP] what is better way to write the query

2007-11-05 Thread Shafiq Rehman
Hi, If possible, write your inserts queries in a text file and use LOAD DATA for bulk inserts. -- Keep Smiling Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385 On 11/2/07, Andrew Ballard <[EMAIL PROTECTED]> wrote: > > On Nov 2, 2007 10:41 AM, afan pasalic <[

Re: [PHP] what is better way to write the query

2007-11-02 Thread Andrew Ballard
On Nov 2, 2007 10:41 AM, afan pasalic <[EMAIL PROTECTED]> wrote: > ...is there any suggestion for the process of inserting up to 5K records at > the time ... Is it possible to save your data to a text file and then use one of MySQL's built-in import queries? (I know in some situations it isn't an

Re: [PHP] what is better way to write the query

2007-11-02 Thread afan pasalic
Stut wrote: > Jim Lucas wrote: >> afan pasalic wrote: >>> hi, >>> it's maybe more question for mysql list, but since php is involved >>> too... :-) >>> I have php script that inserts into mysql table couple hundreds of >>> records. >>> usually, it looks like: >>> >> // 1st record >>> $query = "INSE

Re: [PHP] what is better way to write the query

2007-11-02 Thread Stut
afan pasalic wrote: Stut wrote: afan pasalic wrote: Stut wrote: Jim Lucas wrote: afan pasalic wrote: hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: I would

Re: [PHP] what is better way to write the query

2007-11-02 Thread afan pasalic
Stut wrote: > afan pasalic wrote: >> Stut wrote: >>> Jim Lucas wrote: afan pasalic wrote: > hi, > it's maybe more question for mysql list, but since php is involved > too... :-) > I have php script that inserts into mysql table couple hundreds of > records. > usually, i

Re: [PHP] what is better way to write the query

2007-11-02 Thread Stut
afan pasalic wrote: Stut wrote: Jim Lucas wrote: afan pasalic wrote: hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: I would perform multiple inserts @ a time.

Re: [PHP] what is better way to write the query

2007-11-02 Thread Stut
Jim Lucas wrote: afan pasalic wrote: hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: I would perform multiple inserts @ a time. This way you save yourself s

Re: [PHP] what is better way to write the query

2007-11-02 Thread Jim Lucas
afan pasalic wrote: hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: I would perform multiple inserts @ a time. This way you save yourself some time by not havin

Re: [PHP] what is better way to write the query

2007-11-02 Thread afan pasalic
let me write the questions again: what is the difference between these two queries? is there any situation when it's better to use first vs. second solution? is there any suggestion for the process of inserting up to 5K records at the time or this number is so small to consider any "optimization"?

[PHP] what is better way to write the query

2007-11-02 Thread afan pasalic
hi, it's maybe more question for mysql list, but since php is involved too... :-) I have php script that inserts into mysql table couple hundreds of records. usually, it looks like: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is the point of prepare?

2007-10-29 Thread mlists
On Mon, 2007-10-29 at 10:06 +, Hulf wrote: > Hi, > > Begining using the php5 mysql functions and want to know what is the point of > preparing/binding the data before I insert it? > > $prep = $mysqli->prepare ("INSERT INTO cd (cdid,title,artist) VALUES > ('0',?,?)"); > $prep->bind_param ('2

Re: [PHP] what is the point of prepare?

2007-10-29 Thread Jeremy Mcentire
If you're making just one insert; it's probably not the best approach. However, if you're inserting multiple rows, benchmarks have shown that preparing a statement and binding the params is faster. Also, with mysqli, you can strictly define types for fields and remove the step of validati

Re: [PHP] what is the point of prepare?

2007-10-29 Thread Per Jessen
Hulf wrote: > Begining using the php5 mysql functions and want to know what is the > point of preparing/binding the data before I insert it? > > $prep = $mysqli->prepare ("INSERT INTO cd (cdid,title,artist) VALUES > ('0',?,?)"); $prep->bind_param ('22',$title,$artist); It's a performance measure

[PHP] what is the point of prepare?

2007-10-29 Thread Hulf
Hi, Begining using the php5 mysql functions and want to know what is the point of preparing/binding the data before I insert it? $prep = $mysqli->prepare ("INSERT INTO cd (cdid,title,artist) VALUES ('0',?,?)"); $prep->bind_param ('22',$title,$artist); Ta, R.

Re: [PHP] what is my dns ip address

2007-09-03 Thread Olav Mørkrid
yeah but i assume this assumes you are on a unix machine and have administrator rights. it would be nice to be able to look up ip addresses swiftly and automatically on any machine and any operating system running php. On 03/09/07, Per Jessen <[EMAIL PROTECTED]> wrote: > Olav Mørkrid wrote: > > >

Re: [PHP] what is my dns ip address

2007-09-03 Thread Per Jessen
Olav Mørkrid wrote: > the source of the problem is gethostbyaddr(). it seems to have a 4,5 > second timeout, so some lookups time out after 4,5 seconds, while most > of them are resolved in < 0.1 second; a radically performance > difference. You can change the timeout be amending the options stat

Re: [PHP] what is my dns ip address

2007-09-02 Thread Olav Mørkrid
the source of the problem is gethostbyaddr(). it seems to have a 4,5 second timeout, so some lookups time out after 4,5 seconds, while most of them are resolved in < 0.1 second; a radically performance difference. the user written gethostbyaddr_timeout() on the gethostbyaddr man page overcomes thi

Re: [PHP] what is my dns ip address

2007-09-02 Thread Richard Heyes
Stut wrote: Richard Heyes wrote: Or read the contents of /etc/resolv.conf Faster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there. Yes they are. The DNS resolver has just one place to look, and that's /etc/resolv.conf. The DNS resolver?

Re: [PHP] what is my dns ip address

2007-09-02 Thread Stut
Richard Heyes wrote: Or read the contents of /etc/resolv.conf Faster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there. Yes they are. The DNS resolver has just one place to look, and that's /etc/resolv.conf. The DNS resolver? What? If DNS

Re: [PHP] what is my dns ip address

2007-09-02 Thread Richard Heyes
Or read the contents of /etc/resolv.conf Faster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there. Yes they are. The DNS resolver has just one place to look, and that's /etc/resolv.conf. The DNS resolver? What? If DNS servers are assigned

Re: [PHP] what is my dns ip address

2007-09-02 Thread Per Jessen
Richard Heyes wrote: >> Or read the contents of /etc/resolv.conf > > Faster for static DNS servers, but if you're using DHCP assigned > servers, they aren't likely to be in there. > Yes they are. The DNS resolver has just one place to look, and that's /etc/resolv.conf. /Per Jessen, Zürich

Re: [PHP] [EMAIL PROTECTED]: Re: [PHP] what is my dns ip address]

2007-09-01 Thread Richard Heyes
Robert Degen wrote: Or read the contents of /etc/resolv.conf I'm not familiar with, but does any MS product have any comparable file? There is a hosts file, but no resolv.conf or equivalent AFAIK. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and

[PHP] [EMAIL PROTECTED]: Re: [PHP] what is my dns ip address]

2007-09-01 Thread Robert Degen
>> Or read the contents of /etc/resolv.conf I'm not familiar with, but does any MS product have any comparable file? I remember a "host(s)" ... file somewhere below system32\etc\... but is there any resolv.conf ? I got no win machine here with me, so I can't look it up :-) > Faster for static

Re: [PHP] what is my dns ip address

2007-09-01 Thread Richard Heyes
Or read the contents of /etc/resolv.conf Faster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online

Re: [PHP] what is my dns ip address

2007-09-01 Thread Per Jessen
Richard Heyes wrote: > Olav Mørkrid wrote: >> is there a function in php that will return the ip address of the dns >> server on the system? >> >> eg. >> >> $dns_ip = get_dns_ip_address(); > > > Don't know of a specific command that returns them, but you could > parse the output of nslookup an

Re: [PHP] what is my dns ip address

2007-09-01 Thread Richard Heyes
Olav Mørkrid wrote: is there a function in php that will return the ip address of the dns server on the system? eg. $dns_ip = get_dns_ip_address(); Don't know of a specific command that returns them, but you could parse the output of nslookup and cache the results. -- Richard Heyes +44 (0

[PHP] what is my dns ip address

2007-09-01 Thread Olav Mørkrid
is there a function in php that will return the ip address of the dns server on the system? eg. $dns_ip = get_dns_ip_address(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what trick is this? How to do it?

2007-07-07 Thread Man-wai Chang
http://xsojix.imeem.com/music/1zyLl7y9/lost_my_music/ How did he/she do it? I meant the modal login window... -- @~@ Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux 2.6.21.5 ^ ^ 1

Re: [PHP] What can cause session_destroy to fail? -- thanks!

2007-06-12 Thread Mattias Thorslund
Richard Lynch wrote: > On Mon, June 11, 2007 8:36 pm, Mattias Thorslund wrote: > >> One of my clients just received a PHP warning that session_destroy() >> failed. Using the default session handler (with tmp files), what are >> the >> most likely things that can cause session_destroy() to return

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Richard Lynch
On Mon, June 11, 2007 8:36 pm, Mattias Thorslund wrote: > One of my clients just received a PHP warning that session_destroy() > failed. Using the default session handler (with tmp files), what are > the > most likely things that can cause session_destroy() to return false? > > Thanks for any sugge

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Mattias Thorslund
Jim Lucas wrote: > Mattias Thorslund wrote: >> Jim Lucas wrote: >>> Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can ca

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Jim Lucas
Mattias Thorslund wrote: Jim Lucas wrote: Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Mattias Thorslund
Jim Lucas wrote: > Mattias Thorslund wrote: >> Hi, >> >> One of my clients just received a PHP warning that session_destroy() >> failed. Using the default session handler (with tmp files), what are the >> most likely things that can cause session_destroy() to return false? >> >> Thanks for any sugg

Re: [PHP] What can cause session_destroy to fail?

2007-06-11 Thread Jim Lucas
Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for any suggestions. Mattias The session was

[PHP] What can cause session_destroy to fail?

2007-06-11 Thread Mattias Thorslund
Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for any suggestions. Mattias -- PHP General Mailing List (http://www.php

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

2007-05-13 Thread Stut
Richard Lynch wrote: 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 cod

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] 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] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread heavyccasey
I don't see you giving a solution. On 5/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-05-11 at 19:59 -0700, [EMAIL PROTECTED] wrote: > Set ajaxObject.setRequestHeader("User-Agent","SecretName"); in > Javascript and check for it in PHP. Not fool-proof, but the average > person wo

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

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 19:59 -0700, [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. Bleh, do it right. Don't settle for half-assed solutions that rely

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

2007-05-11 Thread heavyccasey
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. On 5/11/07, clive <[EMAIL PROTECTED]> wrote: Robert Cummings wrote: > A Guru would have spent 60 seconds testing to see if the ses

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

2007-05-11 Thread Eric Butera
On 5/10/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: I'm a PHP guru Then this question shouldn't have been asked. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 10:33 -0300, Rangel Reale wrote: > That was only an example, the question is, how do I protect possibly > sensitive data sent by AJAX, so one user can't access other user's data? > > Is the anwser just "don't do this with AJAX"? No, do what you would normally do. Filter acc

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

2007-05-11 Thread Rangel Reale
ROTECTED]> To: "Rangel Reale" <[EMAIL PROTECTED]> Cc: Sent: Friday, May 11, 2007 10:13 AM Subject: Re: [PHP] What is the best way to protect the PHP page thatreturns the AJAX data? On Fri, 2007-05-11 at 09:01 -0300, Rangel Reale wrote: I would also like to know how people are de

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

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 09:01 -0300, Rangel Reale wrote: > I would also like to know how people are dealing with this, how to you make > sure people don't steal your data, sometimes it can be something simple like > state names, but sometimes it can be your entire user/email database, who > knows?

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

2007-05-11 Thread Rangel Reale
dumb user like this wouldn't know how to enter a mailing list :P Thanks, Rangel - Original Message - From: "Daevid Vincent" <[EMAIL PROTECTED]> To: Sent: Friday, May 11, 2007 12:18 AM Subject: [PHP] What is the best way to protect the PHP page that returns the

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

2007-05-11 Thread clive
Robert Cummings wrote: A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting to the list :B /me was thinking the same -- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission or reading of thi

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

2007-05-10 Thread Crayon Shin Chan
On Friday 11 May 2007 12:45, Robert Cummings wrote: > On Thu, 2007-05-10 at 21:23 -0700, Daevid Vincent wrote: > > Thanks for the suggestion and concern. Fear not, I'm a PHP Guru as > > mentioned. > > A Guru would have spent 60 seconds testing to see if the > session_start() scenario worked BEFORE

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

2007-05-10 Thread Robert Cummings
On Thu, 2007-05-10 at 21:23 -0700, Daevid Vincent wrote: > Thanks for the suggestion and concern. Fear not, I'm a PHP Guru as mentioned. A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting to the list :B Cheers, Rob. -- .---

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

2007-05-10 Thread Daevid Vincent
essage- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 10, 2007 8:28 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] What is the best way to protect the PHP > page that returns the AJAX data? > > That's a hu

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

2007-05-10 Thread heavyccasey
That's a humongous, humongous security risk there. What if someone goes http://example.com/gimmedata.php?query=DROP DATABASE hi? Unless I misunderstood. A better way would be in the script: switch ($_GET['query']) { case "fetch": $dbquery = 'SELECT stuff FROM stuff'; break; case "eatsnacks": $d

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

2007-05-10 Thread Daevid Vincent
Like most sites, someone needs to join up to use mine. I'm using a wee-bit-o-AJAX to pull some results from a database and display them dynamically. For the AJAX to work, it has to hit a script that's accessible from the htdocs tree right? Effectively it's just a (JavaScript initiated) GET U

Re: [PHP] What does "<<<" mean?

2007-05-03 Thread itoctopus
never ever used it... I also voted! -- itoctopus - http://www.itoctopus.com "Philip Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: > >> On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: >>> Hello, folks. >>> I rember I'

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Daniel Brown
No, to my knowledge, even PHP3 (I honestly don't remember if it was in PHP/FI, but I don't think so) allowed you to use the same name for multiple heredoc's. It just works like the for/next concept in BASIC for this = this to that (do something), next this. Meaning that as soon as the con

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Daniel Brown
On 5/2/07, Richard Lynch <[EMAIL PROTECTED]> wrote: Cool! They fixed http://php.net/<<< to go to the strings page! Just wish it jumped to the anchor as well... :-) I'm greedy. :-) :-) :-) I'll say you are! Next you'll want all of the links on the site to point to the correct spots! -- Da

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:18 pm, Paul Novitski wrote: > When I first started using PHP I thought that each heredoc label had > to be unique. Turns out that's not true, and now I use the simple > shorthand: > > $sResult = <<<_ > Some text. > _; I suspect earlier versions of PHP required unique labe

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 3:41 pm, Micky Hulse wrote: > Daniel Brown wrote: >>Actually, that should be directed at the OP who said that. I was >> able >> to bring up the heredoc, too. ;-P > > Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( Cool! They fixed http://php.net/<<< to

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:44 pm, Greg Donald wrote: > On 4/30/07, Greg Donald <[EMAIL PROTECTED]> wrote: >> All parts of a heredoc statement do not have to be right justified, >> only the closing line. > > I meant my other right, the one on my left. Sorry. You don't *HAVE* to left-justify the re

Re: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 7:19 pm, Richard Davey wrote: > Greg Donald wrote: > >> On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: >>> > echo <<>> > BROWSER: $_SERVER[HTTP_USER_AGENT] >>> > EOF; >>> >>> Isn't that form (sans quote marks) deprecated and frowned upon? >> >> > >> error_reporting( E_

RE: [PHP] What does "<<<" mean?

2007-05-02 Thread Richard Lynch
On Mon, April 30, 2007 6:33 pm, Daevid Vincent wrote: >> echo "BROWSER: " . $_SERVER['HTTP_USER_AGENT'] . "\n"; > > I've always had problems with heredoc when I try using arrays like > that. I > will either pull them into a straight $foo, or use the ${} thing. It probably won't do 2-D arrays, but

Re: [PHP] What does "<<<" mean?

2007-05-01 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, mov

Re: [PHP] What does "<<<" mean?

2007-05-01 Thread Greg Donald
On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Greg Donald wrote: > Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) Django is very under-developed compared to Rails. There's not a Javascript library in sight and the developers have a "do it yo

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Larry Garfield
On Monday 30 April 2007, Greg Donald wrote: > Sounds like you got MVC-itis. PHP can't really help with that since > it's a templating language. > > Try Rubyonrails, it's the best cure for the MVC itch. Except that it's a PAC framework, not MVC, like the vast majority of web apps frameworks out

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Greg Donald wrote: Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) -- Wishlists: Switch: BCC?: My: -- PHP General Mailing Li

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Robert Cummings
On Mon, 2007-04-30 at 19:42 -0500, Greg Donald wrote: > On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: > > I'm not dissing heredoc syntax, it has its uses (now and again) but it's > > far from "clean", especially when embedded deep in classes > > Classes? PHP is the absolute worst language

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Greg Donald <[EMAIL PROTECTED]> wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Richard Davey <[EMAIL PROTECTED]> wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, move on to ruby or pytho

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated and frowned upon? I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from "clean", especiall

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Paul Novitski
At 4/30/2007 03:38 PM, Philip Thompson wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ I'm interested in knowing if this i

RE: [PHP] What does "<<<" mean?

2007-04-30 Thread Brian Seymour
Heredoc is truly a great thing. You'll learn to love heredoc whenever you have tons of stuff you need to print instead of escaping php. A great example is output that comes from classes, where you can't break the class into multiple code blocks. Just don't forget that heredoc end part has to be on

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated and frowned upon? http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What does "<<<" mean?

2007-04-30 Thread Daevid Vincent
> echo "BROWSER: " . $_SERVER['HTTP_USER_AGENT'] . "\n"; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. > echo << BROWSER: $_SERVER[HTTP_USER_AGENT] > EOF; Isn't that form (sans quote marks) deprecated

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ If you're not using it y

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Philip Thompson
On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: On 4/30/07, Nick Gorbikoff <[EMAIL PROTECTED]> wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. <<< END some code END What

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Daniel Brown
No need to apologize at all, Micky! On 4/30/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: >Actually, that should be directed at the OP who said that. I was able > to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wi

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wishlists: Switch: BCC?:

<    1   2   3   4   5   6   7   8   9   10   >