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 > wrote: > > > On Sat, 2010-08-07 at 10:22 +0800, lainm

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 wrote: > On Sat, 2010-08-07 at 10:22 +0800, lainme wrote: > > Hi, I recently compiled a portable portable web ser

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 yo

[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] 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 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 may be nothing directly-re

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

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

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 16:18, Bill Guion 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 "neithe

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 compare

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

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 unde

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] 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 (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 wrote: While it may not be obvious, the statement: > 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

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

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

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Andrew Ballard
On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote: > While it may not be obvious, the statement: > > > > 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. For > example, your HTML wo

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 13:31, tedd 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 about > more

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"); >> >>

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:05 PM -0700 8/5/10, Michael Shadle wrote: Leave the single quotes for parameters, indexes, code, not attributes - $.02 Agreed. "Render unto Caesar (HTML) the things that are Caesar's and unto God (PHP -- Lord forgive me) the things that are God's." In other words, when writing code in

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 " And elsewhere on the page it follows: > echo ' Not acceptable and sloppy. Be consistent in your coding style. In general, HTML attributes should be surrounded by do

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
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 recode in the latter style, should they not look

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 t

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread Richard Quadling
On 6 August 2010 07:34, Peter Lind wrote: > On 6 August 2010 04:10, Rick Dwyer 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