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 w

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

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 the

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 s

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: http://uk.php.net/manual/en/la

[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

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

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 sep

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 filt

RE: [PHP] can I get at screen size ?

2004-04-05 Thread Tyler Replogle
hey, yes it would take 2 steps i made a script like this before so i know, i stpent much time looking for it, but php doesn't get info like that because it is running on the server and not the computer or viewer's computer From: E.H.Terwiel <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To:

Re: [PHP] Regular Expressions

2004-04-05 Thread Matt Palermo
What exactly does this do: /< (?<=p|br) [^>]+ >/x It may work, I just want to understand what it's looking for. Thanks, Matt "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Matt Palermo ([EMAIL PROTECTED]): > > I have a page where I am stripping the ht

[PHP] How to...

2004-04-05 Thread Vicente Werner
I've already a php function that outputs a file from a folder outside the www path to a page, but I can't find a way to do this and then close the window where it was outed. Any 1 can point me in the right direction? Thanks, Vicente -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] How to Request?

2004-04-05 Thread Labunski
I'll try to explain.. For example I have a link: "index.php?fd=car" then the Request part looks like this: if(isset($_REQUEST['fd'])){ $dir = ($_REQUEST['fd']); } But for example I have a link "index.php?fd=car&c=green".. How to Request more then one variable if I want to get something like th

[PHP] Re: Reusing MySQL Connections - Can it be done?

2004-04-05 Thread Aidan Lister
http://pear.php.net/package/db "Monty" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to use fewer resources and processes when making database > connections in my scripts, so, upon the first call to make a DB connection, > I store the Link Resource ID in a constant vari

<    1   2