Re: [PHP] Code Review PLEASE !!!

2004-04-05 Thread Jochem Maas
always do serverside - that the only secure option - use clientside (in addition) as a favour to the user to avoid repeated page requested to fill the form in correctly. (or in order to rearrange data before submitting to server) Matthew Oatham wrote: Yes I agree I need some validation, dunno

Re: [PHP] mysql_query problem with multi dim arrays

2004-04-05 Thread Jochem Maas
user curly braces around your arrays in the string e.g: $sql = INSERT INTO x VALUES ({$_SESSION['add']['name']} ; oh, and unless add name are actually constants you should always wrap them in single quotes. (php will covert the non-exstent constant into a string a issue an E_NOTICE + its

[PHP] [solved][PHP] mysql_query problem with multi dim arrays

2004-04-05 Thread Andy B
$sql = INSERT INTO x VALUES ({$_SESSION['add']['name']} ; oh, and unless add name are actually constants you should always wrap them in single quotes. (php will covert the non-exstent constant into a string a issue an E_NOTICE + its overhead) well that got me on the right track...

[PHP] assigning NULL to a variable

2004-04-05 Thread Andy B
how would you assign NULL to a variable if its original value is ? otherwise leave it with its value... the form im working on has a date field called date on the form itself. that date will get turned into $_SESSION[add][date] on the next page... i want it so if the person filling out the form

Re: [PHP] cURL upload meter

2004-04-05 Thread Raditha Dissanayake
By upload meter do you mean a progress bar which can tell a user how much of a large upload has been processed thus far? As far as I understand it PHP cannot access raw POST data so this cannot be done with PHP alone. Thanks for the mention pablo. megaupload does indeed get a little help from

[PHP] PHP has a bug...?

2004-04-05 Thread Stephen Craton
I was making a parabola grapher and I was testing out some values. Part of the script is to take the variable b and multiply it was negative one, then multiply by 2 times a. I entered a test value where a equals 1, b equals 0, and c equals 0. The result told me that -1 times 0 is -0. Here's

Re: [PHP] Problem with script halting

2004-04-05 Thread David Robley
[EMAIL PROTECTED] (Nathan Croker) wrote in news:[EMAIL PROTECTED]: Thank you for your reply. Yes the user has permission to execute chmod since when I access the server using an FTP Client it works perfectly. - Nathan Croker (amazing as a result of one post, I get 6 different spam

Re: [PHP]

2004-04-05 Thread David Robley
[EMAIL PROTECTED] (Nunners) wrote in news:[EMAIL PROTECTED]: I've got a series of functions which return a list in an array. How can I create an empty array? Or do I need to check it's a valid array before I use it? Cheers James This may be helpful:

[PHP] Re: allowed memory size of

2004-04-05 Thread David Robley
[EMAIL PROTECTED] (Mathias brito) wrote in news:[EMAIL PROTECTED]: Hello, I made a script that make a backup of the entire site with the PHPZip lib. It's works well with small sites, but when the size grow, i receive the following message: Fatal error: Allowed memory size of 1048680 bytes

[PHP] detecting type of field from $_POST ?

2004-04-05 Thread adwinwijaya
Hi .. i just wonder, is there any way to detecting the type of field (like textarea, button, radio, etc) from $_REQUEST / $_POST ? I need to detect that all .. because I want to put a script that will remove html tag (with htmlspecialchars() function) ... and the problem happen

Re: [PHP] PHP 4.3.4, Apache w/ mod_ssl Compile Help

2004-04-05 Thread trlists
On 5 Apr 2004 [EMAIL PROTECTED] wrote: When doing apachectl startssl I get: [Mon Apr 5 12:19:53 2004] [warn] Loaded DSO libexec/libphp4.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) Sorry, I just realized there is a

Re: [PHP] detecting type of field from $_POST ?

2004-04-05 Thread Chris Shiflett
--- adwinwijaya [EMAIL PROTECTED] wrote: i just wonder, is there any way to detecting the type of field (like textarea, button, radio, etc) from $_REQUEST / $_POST ? Nope. I need to detect that all .. because I want to put a script that will remove html tag You should filter

<    1   2