Re: [PHP] ampersands in href's

2005-06-04 Thread Leon Poon
The simplest way to make sure everything work well regardless of what the values are: ? $url = somepage.php?var1=.urlencode($var1).var2=.urlencode($var2); echo a href=\.htmlspecialchars($url).\; ? htmlspecialchars() changes characters '', '', ''', '', '' into the HTML equivilant. And yup, you

Re: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-22 Thread Leon Poon
I think he wants mirror, sort of... I will do this if I were you: Select the server wif the most bandwidth. Call this the master. The other 2 are slaves. To sync files: == Enable network file system server on the 2 slaves. Export the htdocs directories. Setup the master to mount the

Re: [PHP] Forms on PHP

2005-01-11 Thread Leon Poon
Refer to the following line numbers: 01 ?php 02 // Start of PHP code - Extract values from form. 03 /* Other values read */ 04 $n=$_POST['n']; 05 06 // Pass the data from the form to lightcurve_csharp 07 $command=./lightcurve_csharp $a $i $e $lomega $bomega $lambda $n; 08

Re: [PHP] sorting mysql results

2005-01-10 Thread Leon Poon
Sort when querying from database: SELECT name, type FROM some_table ORDER BY type ASC, name ASC - Original Message - From: Sebastian [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, January 11, 2005 5:38 AM Subject: [PHP] sorting mysql results I have a list of rows in the

Re: [PHP] PHP form POST question

2005-01-09 Thread Leon Poon
When you access /foo, the server will redirect the client to /foo/ (because it is a directory). At the redirected page, the post data will not be sent again by the browser thus there are no _POST values. Try using action=/foo/. That may work. - Original Message - From: James (IFMS)