php-general Digest 7 Aug 2010 02:22:49 -0000 Issue 6883

2010-08-06 Thread php-general-digest-help
php-general Digest 7 Aug 2010 02:22:49 - Issue 6883 Topics (messages 307344 through 307359): Protecting PHP scripts called via AJAX from evil 307344 by: Marc Guay 307345 by: Ashley Sheridan 307346 by: Joshua Kehn 307348 by: tedd 307349 by: Marc Guay

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Peter Lind
On 6 August 2010 04:10, Rick Dwyer rpdw...@earthlink.net wrote: Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation on. Something that confuses me is how the code on the page is

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 07:34, Peter Lind peter.e.l...@gmail.com wrote: On 6 August 2010 04:10, Rick Dwyer rpdw...@earthlink.net wrote: Hi List. I've mentioned before that I am both just beginning to learn PHP AND I have inherited a number of pages that I'm trying to clean up the w3c validation

Re: [PHP] PHP The Anthem

2010-08-06 Thread tedd
At 4:57 PM -0700 8/5/10, Daevid Vincent wrote: http://www.youtube.com/watch?v=S8zhmiS-1kw http://shiflett.org/blog/2010/aug/php-anthem ...some people have way too much time. ;-) I agree. I don't have time to do nonsense and don't understand how people who are successful can waste time like

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 11:00 PM -0400 8/5/10, Paul M Foster wrote: On Thu, Aug 05, 2010 at 10:10:26PM -0400, Rick Dwyer wrote: echo table border='1'tr And elsewhere on the page it follows: echo 'table border=1tr Not acceptable and sloppy. Be consistent in your coding style. In general, HTML

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Floyd Resler
On Aug 6, 2010, at 8:08 AM, tedd wrote: At 10:10 PM -0400 8/5/10, Rick Dwyer wrote: 2nd question, in the 3 [2] lines below: $checkstat = select field from table where fieldid = $field_id; $result1 = @mysql_query($checkstat,$connection) or die(Couldn't execute query); If I were to

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 13:31, tedd tedd.sperl...@gmail.com wrote: I have a grammar question for the group. I said above: neither CSS, PHP, or any web language exist in a vacuum. Is the word neither appropriate in this sentence? Normally, two items can be compared by neither  or nor, but what

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Andrew Ballard
On Fri, Aug 6, 2010 at 8:31 AM, tedd tedd.sperl...@gmail.com wrote: While it may not be obvious, the statement: table border=1 is flawed (IMO). The best way to handle this is to define a class (or id) for the table in a css file and then set the border (i.e., styling) to whatever you want.

[PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Marc Guay
Hi folks, I'm looking for a straightforward way to protect PHP files which are called via AJAX from being called from outside my application. Currently, someone could forseeably open the console and watch the javascript post variables to a public file (actions/delete_thing.php) and then use this

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Ashley Sheridan
On Fri, 2010-08-06 at 09:41 -0400, Marc Guay wrote: Hi folks, I'm looking for a straightforward way to protect PHP files which are called via AJAX from being called from outside my application. Currently, someone could forseeably open the console and watch the javascript post variables to

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 9:41 AM, Marc Guay wrote: Hi folks, I'm looking for a straightforward way to protect PHP files which are called via AJAX from being called from outside my application. Currently, someone could forseeably open the console and watch the javascript post variables to a

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:09 AM -0400 8/6/10, Andrew Ballard wrote: On Fri, Aug 6, 2010 at 8:31 AM, tedd tedd.sperl...@gmail.com wrote: While it may not be obvious, the statement: table border=1 is flawed (IMO). The best way to handle this is to define a class (or id) for the table in a css file and then

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread tedd
At 9:41 AM -0400 8/6/10, Marc Guay wrote: Hi folks, I'm looking for a straightforward way to protect PHP files which are called via AJAX from being called from outside my application. Currently, someone could forseeably open the console and watch the javascript post variables to a public file

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread Marc Guay
Thanks everyone. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP The Anthem

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 7:27 AM, tedd wrote: At 4:57 PM -0700 8/5/10, Daevid Vincent wrote: http://www.youtube.com/watch?v=S8zhmiS-1kw http://shiflett.org/blog/2010/aug/php-anthem ...some people have way too much time. ;-) I agree. I don't have time to do nonsense and don't understand how

Re: [PHP] PHP The Anthem

2010-08-06 Thread tedd
At 10:30 AM -0400 8/6/10, Joshua Kehn wrote: On Aug 6, 2010, at 7:27 AM, tedd wrote: There is something wrong with having a little fun? Regards, -Josh Yes, it's a waste of time -- humbug! Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP The Anthem

2010-08-06 Thread Joshua Kehn
On Aug 6, 2010, at 11:12 AM, tedd wrote: At 10:30 AM -0400 8/6/10, Joshua Kehn wrote: On Aug 6, 2010, at 7:27 AM, tedd wrote: There is something wrong with having a little fun? Regards, -Josh Yes, it's a waste of time -- humbug! Cheers, tedd -- ---

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Bill Guion
At 8:31 AM -0400 08/06/10, tedd wrote: Cheers, tedd PS: Considering that this is Friday. I have a grammar question for the group. I said above: neither CSS, PHP, or any web language exist in a vacuum. Is the word neither appropriate in this sentence? Normally, two items can be compared

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 16:18, Bill Guion bgu...@comcast.net wrote: At 8:31 AM -0400 08/06/10, tedd wrote: Cheers, tedd PS: Considering that this is Friday. I have a grammar question for the group. I said above: neither CSS, PHP, or any web language exist in a vacuum. Is the word neither

[PHP] how do you upload to a 3rd-party remote server?

2010-08-06 Thread Govinda
Hi All I am working on a page which will write out a file (using another server-side language) and then that file will get uploaded nightly to someone else's FTP directory, on a 3rd party remote server. As I start to contemplate that last part about auto-uploading to someone else's FTP

Re: [PHP] how do you upload to a 3rd-party remote server?

2010-08-06 Thread shiplu
You have to maintain a queue if I understand it properly. PHP page will send request on one end of queue. And the server side cron will process from other end. Cron will upload it to ftp. Now you can implement a queue using database table or you can just use a file. Shiplu Mokadd.im My talks,

Re: [PHP] how do you upload to a 3rd-party remote server?

2010-08-06 Thread Govinda
You have to maintain a queue if I understand it properly. PHP page will send request on one end of queue. And the server side cron will process from other end. Cron will upload it to ftp. Now you can implement a queue using database table or you can just use a file. can you elaborate? This

Re: [PHP] how do you upload to a 3rd-party remote server?

2010-08-06 Thread Daniel P. Brown
On Fri, Aug 6, 2010 at 19:53, Govinda govinda.webdnat...@gmail.com wrote: can you elaborate?  This kind of thing is all new to me.  I need to see some sample code to even start to get an idea. Hopefully Tedd will notice this thread. He's the man when it comes to sample code. While there

[PHP] question about compiling a portable web server for linux

2010-08-06 Thread lainme
Hi, I recently compiled a portable portable web server for linux, using lighttpd and php. But it seems that php can only run on machine with the same glibc version compiled it. How can I solve the problem?

Re: [PHP] question about compiling a portable web server for linux

2010-08-06 Thread Ashley Sheridan
On Sat, 2010-08-07 at 10:22 +0800, lainme wrote: Hi, I recently compiled a portable portable web server for linux, using lighttpd and php. But it seems that php can only run on machine with the same glibc version compiled it. How can I solve the problem? It's not a PHP problem. If you

Re: [PHP] question about compiling a portable web server for linux

2010-08-06 Thread lainme
thanks for the reply. I know it is not a PHP problem. And I want to know whether it is possible to make it architecture independent. On Sat, Aug 7, 2010 at 10:38 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2010-08-07 at 10:22 +0800, lainme wrote: Hi, I recently compiled a

Re: [PHP] question about compiling a portable web server for linux

2010-08-06 Thread Ashley Sheridan
On Sat, 2010-08-07 at 10:43 +0800, lainme wrote: thanks for the reply. I know it is not a PHP problem. And I want to know whether it is possible to make it architecture independent. On Sat, Aug 7, 2010 at 10:38 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Sat, 2010-08-07 at