Re: [PHP] SQL query to array?

2006-04-25 Thread Joe Wollard
Will, Seems to me like you've just done it! Here's another way of doing it that will utilize mysql_fetch_assoc() to allow your query to dictate the elements of the array. Keep in mind, I haven't tested this, but since I'm not entirely sure what you are asking the list, I'll offer it anyway ;-)

Re: [PHP] SQL query to array?

2006-04-25 Thread Richard Lynch
On Wed, April 26, 2006 1:39 am, William Stokes wrote: > Can someone please help me to put the results of a query to an array. There are only a few thousand tutorials on this on the 'net... > Never > done this before: > > $sql = "SELECT sortteri,jouk_id,jouk_nimi FROM x_table ORDER BY > sortteri >

Re: [PHP] SQL query to array?

2006-04-25 Thread Jim Lucas
William Stokes wrote: Hello, Can someone please help me to put the results of a query to an array. Never done this before: $sql = "SELECT sortteri,jouk_id,jouk_nimi FROM x_table ORDER BY sortteri ASC"; $result = mysql_query($sql); $num = mysql_num_rows($result); $cur = 1; //create empty ar

Re: [PHP] need help to put input text value into url

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 6:19 pm, Patrick Aljord wrote: > I have a form like this: > > > > > > while this is working fine, I would like the url of search.php to be > something like search.php?q="value+of+search_text" > eg, if I enter "php rules" in my text box, the url should be > http://myfakepa

Re: [PHP] Protecting index.php

2006-04-25 Thread Richard Lynch
On Wed, April 26, 2006 12:53 am, P. Guethlein wrote: > if(isset($_GET['d'])){setcookie('disp',$_GET['d'],time()+(60*60*24*60));$_COOKIE['disp']=$_GET['d'];} I suppose this isn't so terribly awful, since experienced users can forge their Cookies as easily as GET, but as a matter of principle, you

Re: [PHP] Re: Serveral forms in a page.

2006-04-25 Thread William Stokes
it was just a question "?" "Stut" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: >> Mulkku? > > 'Cause insulting us is the way to convince this list to answer your > irrelevant questions? Seriously tho, if I may, go join an HTML/Javascript > list for these que

[PHP] SQL query to array?

2006-04-25 Thread William Stokes
Hello, Can someone please help me to put the results of a query to an array. Never done this before: $sql = "SELECT sortteri,jouk_id,jouk_nimi FROM x_table ORDER BY sortteri ASC"; $result = mysql_query($sql); $num = mysql_num_rows($result); $cur = 1; //create empty array that contains an array

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 9:55 pm, D. Dante Lorenso wrote: > Richard Lynch wrote: > that > the replies I've gotten from this list so far suggest that internals > of > PHP development are seriously opposed to such a feature? They may or may not be opposed to attempting to use server-side technology to

Re: [PHP] Protecting index.php

2006-04-25 Thread chris smith
On 4/26/06, P. Guethlein <[EMAIL PROTECTED]> wrote: > > Initial index.php file: > > if(isset($_GET['d'])){setcookie('disp',$_GET['d'],time()+(60*60*24*60));$_COOKIE['disp']=$_GET['d'];} > include_once('writemenus.php'); > > if(!isset($_GET['href'])) $include = 'startpage.htm'; > else { > $includ

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 9:23 pm, D. Dante Lorenso wrote: > Richard Lynch wrote: >> On Tue, April 25, 2006 5:28 pm, D. Dante Lorenso wrote: >> >>> Everything PHP returns from a server is "client side", so your >>> >> Oh yeah. I forgot to say... >> The above presumption is patently false. >> > > Let

Re: [PHP] Amazon WSDL

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 7:13 pm, John Meyer wrote: > Richard Collyer wrote: >> John Meyer wrote: >>> Hey, is it possible to use the Amazon WSDL within PHP? >>> >> >> Lookie what the first google entry for "Amazon WSDL php" was: >> >> http://www.onlamp.com/pub/a/php/2003/07/03/php_amazon_soap.html >>

Re: [PHP] PHP/LDAP Setup Problem

2006-04-25 Thread Sameer N Ingole
Crone, James wrote: I need to add LDAP support to my install of PHP. I had my sysadmin download OpenLDAP and install the libraries. This isn't correct way. You need these libraries but they are not enough. [snip] I've been told to use the dl() function Read carefully. http://php.net/dl says d

Re: [PHP] PHP/LDAP Setup Problem

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 9:43 pm, Crone, James wrote: > I need to add LDAP support to my install of PHP. I had my sysadmin > download OpenLDAP and install the libraries. Our current build of PHP > is complex and I'd prefer not to have to rebuild just to add LDAP. > I've > been told to use the dl()

[PHP] Php function to Set focus On A form Field

2006-04-25 Thread marvin hunkin
Hi. is there any php or java script function, where i can embed into my php or html file, to set focus on to the first form field, like a text box, to go to that field first, and not to go to the link or button first. if there are any tips, tricks, or links or code examples, how to fix this pro

[PHP] Protecting index.php

2006-04-25 Thread P. Guethlein
Initial index.php file: = Hackers seem to be able to call a remote script by appending the URL to the href= command line . ( $include ) What buttons do I need to push to stop this? Does PHP have a setting to allow only local calls? or do I have to do it in the ind

Re: [PHP] Removing special chars

2006-04-25 Thread Ligaya Turmelle
Gerry Danen wrote: I would like to replace all chars in a string that are not a-z or 0-9 with a space. I can use a series of str_replace functions, but there has to be a faster way. I know there is a solution but my chemo-brain is slowing me down today. Sorry... Any suggestions? TIA Gerry No

[PHP] Removing special chars

2006-04-25 Thread Gerry D
I would like to replace all chars in a string that are not a-z or 0-9 with a space. I can use a series of str_replace functions, but there has to be a faster way. I know there is a solution but my chemo-brain is slowing me down today. Sorry... Any suggestions? TIA Gerry -- PHP General Mailing

[PHP] Removing special chars

2006-04-25 Thread Gerry Danen
I would like to replace all chars in a string that are not a-z or 0-9 with a space. I can use a series of str_replace functions, but there has to be a faster way. I know there is a solution but my chemo-brain is slowing me down today. Sorry... Any suggestions? TIA Gerry -- PHP General Mailing

Re: [PHP] phpmailer problem with spam score

2006-04-25 Thread Sameer N Ingole
Stut wrote: Merlin wrote: X-Spam: high X-Spam-score: 4.2 X-Spam-hits: BAYES_50, EXTRA_MPART_TYPE, FORGED_RCVD_HELO, HTML_MESSAGE, HTML_TAG_BALANCE_BODY, MIME_HTML_MOSTLY, SARE_OBFU_PART_ING Is there something I can do about this? [snip] As of Spamassassin version 3.1.X it is BAYES_50: Ba

Re: [PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Jochem Maas
Richard Lynch wrote: On Tue, April 25, 2006 7:19 am, Merlin wrote: Paul Scott schrieb: On Tue, 2006-04-25 at 11:47 +0200, Barry wrote: Does anybody know how phpmailer sents its messages out by default? I believe it does this via the php function mail. But there can also be a smtp server spe

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread D. Dante Lorenso
Richard Lynch wrote: Anything you see with "PHP" "upload progress meter" together has to be some kind of hack whose under-pinning is NOT PHP at all, but is JavaScript or similar client-side technology. Not true. The graphical display is HTML, DHTML, JavaScript, etc...but the means of monitoring

[PHP] PHP/LDAP Setup Problem

2006-04-25 Thread Crone, James
I need to add LDAP support to my install of PHP. I had my sysadmin download OpenLDAP and install the libraries. Our current build of PHP is complex and I'd prefer not to have to rebuild just to add LDAP. I've been told to use the dl() function to load the LDAP library when needed in PHP. Whenev

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread D. Dante Lorenso
Richard Lynch wrote: On Tue, April 25, 2006 5:28 pm, D. Dante Lorenso wrote: Everything PHP returns from a server is "client side", so your Oh yeah. I forgot to say... The above presumption is patently false. Let me clarify: Assuming client/server architecture, if PHP is on the

Re: [PHP] Amazon WSDL

2006-04-25 Thread John Meyer
Richard Collyer wrote: > John Meyer wrote: >> Hey, is it possible to use the Amazon WSDL within PHP? >> > > Lookie what the first google entry for "Amazon WSDL php" was: > > http://www.onlamp.com/pub/a/php/2003/07/03/php_amazon_soap.html > > Richard Nice, now I need to navigate the bloody Amaz

RE: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Jay Blanchard
[snip] ...a pretty good discussion... [/snip] I have used output buffering to flush stuff (like lengthy data) to the client before the end of the script so that those pesky users could see something was happening (because they couldn't be bothered to watch the browser's progress meter) and at one

RE: [PHP] need help to put input text value into url

2006-04-25 Thread Ing. Edwin Cruz
Only chage method="post" for method="get" Regards! -Mensaje original- De: Patrick Aljord [mailto:[EMAIL PROTECTED] Enviado el: Martes, 25 de Abril de 2006 06:19 p.m. Para: php-general@lists.php.net Asunto: [PHP] need help to put input text value into url I have a form like this:

[PHP] need help to put input text value into url

2006-04-25 Thread Patrick Aljord
I have a form like this: while this is working fine, I would like the url of search.php to be something like search.php?q="value+of+search_text" eg, if I enter "php rules" in my text box, the url should be http://myfakepage.com/search.php?q="php+rules"; any idea how to do that? thanx in advan

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 5:27 pm, Jochem Maas wrote: > Richard Lynch wrote: >> On Tue, April 25, 2006 12:18 pm, D. Dante Lorenso wrote: >> Why don't you ask the guys who write BROWSERS why *they* don't >> provide >> a nice API/interface to display progress, or, better yet, why the >> browser itself

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 5:28 pm, D. Dante Lorenso wrote: > Everything PHP returns from a server is "client side", so your Oh yeah. I forgot to say... The above presumption is patently false. :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 5:28 pm, D. Dante Lorenso wrote: > Richard Lynch wrote: >> On Tue, April 25, 2006 12:18 pm, D. Dante Lorenso wrote: >> Anything you see with "PHP" "upload progress meter" together has to >> be >> some kind of hack whose under-pinning is NOT PHP at all, but is >> JavaScript o

Re: [PHP] Using linkDisplayFields of FormBuilder

2006-04-25 Thread Jochem Maas
Thomas Supercinski wrote: Jochem, I've mailed this list per the instructions on the pear.php.net site. I first thought to email the lead maintainer for the DB_DataObject_FormBuilder package (http://pear.php.net/package/DB_DataObject_FormBuilder) you should have given that link in the first

Re: [PHP] [W O T] mccabes complexity parser

2006-04-25 Thread Jochem Maas
Mark Steudel wrote: I was wondering if anyone knew of a program that I could run my scripts through and it would return mccabes complexity metric on it ... not that I know of (actually didn't know the term until I read your post :-) but I bet Windows Vista scores well above 50 ;-) Thanks, Ma

Re: [PHP] Using linkDisplayFields of FormBuilder

2006-04-25 Thread Tom
I've mailed this list per the instructions on the pear.php.net site. I first thought to email the lead maintainer (Justin Patrin) for the DB_DataObject_FormBuilder package (http://pear.php.net/package/DB_DataObject_FormBuilder) but the email form page gave these instructions: "Do not send em

Re: [PHP] cURL & cookies

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 11:50 am, Eric Butera wrote: > On 4/25/06, Richard Lynch <[EMAIL PROTECTED]> wrote:Oh, and here's the > REAL > problem: > >> >> If you use CURLOPT_HEADER, 1, then, like, for some reason beyond my >> ken, the COOKIEJAR/COOOKIEFILE stuff just plain doesn't get done. > On an ap

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread D. Dante Lorenso
Richard Lynch wrote: On Tue, April 25, 2006 12:18 pm, D. Dante Lorenso wrote: I'm trying to figure out which direction the PHP community is going when it comes to an upload progress meter.Since that meter would necessarily be CLIENT side, the PHP community is pretty much ignoring it, s

Re: [PHP] Using linkDisplayFields of FormBuilder

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 4:26 pm, Tom wrote: > I've successfully generated my DataObjects for my database and have a > ... > My question concerns using FormBuilder to change the displayfield for Of the 3000+ people on this list devoted to *GENERAL* PHP Topics, let's be generous and assume about 300

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Jochem Maas
Richard Lynch wrote: On Tue, April 25, 2006 12:18 pm, D. Dante Lorenso wrote: I'm trying to figure out which direction the PHP community is going when it comes to an upload progress meter. Since that meter would necessarily be CLIENT side, the PHP community is pretty much ignoring it, since

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 4:47 pm, Stut wrote: > 3b) User clicks on a normal link, goes to another page then hits > back... > user sees an evil-looking and unexpected question asking whether to > resubmit the form values. Most users I know will hit OK because they > don't understand it. This is bad, f

Re: [PHP] Amazon WSDL

2006-04-25 Thread Jochem Maas
Richard Lynch wrote: On Tue, April 25, 2006 4:56 pm, John Meyer wrote: Hey, is it possible to use the Amazon WSDL within PHP? http://php.net/soap should do it. If you're stuck with PHP 4, then Google nuSoap, I guess. But php 5 SOAP is about a zillion times better, imho. You type less, it

Re: [PHP] Amazon WSDL

2006-04-25 Thread Jochem Maas
Richard Collyer wrote: John Meyer wrote: Hey, is it possible to use the Amazon WSDL within PHP? Lookie what the first google entry for "Amazon WSDL php" was: http://www.onlamp.com/pub/a/php/2003/07/03/php_amazon_soap.html why use their WDSL when 98% of the their webservices users connect

Re: [PHP] Amazon WSDL

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 4:56 pm, John Meyer wrote: > Hey, is it possible to use the Amazon WSDL within PHP? http://php.net/soap should do it. If you're stuck with PHP 4, then Google nuSoap, I guess. But php 5 SOAP is about a zillion times better, imho. You type less, it just works, it's way fast

Re: [PHP] Amazon WSDL

2006-04-25 Thread Richard Collyer
John Meyer wrote: Hey, is it possible to use the Amazon WSDL within PHP? Lookie what the first google entry for "Amazon WSDL php" was: http://www.onlamp.com/pub/a/php/2003/07/03/php_amazon_soap.html Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Serveral forms in a page.

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 3:46 am, William Stokes wrote: > I have several forms in a page which is ok otherwise but the reset > buttons > doesn't clear anything that is queried from DB and printed to the text > fields. Any idea how to create Reset buttons that clear the fields > even when > the data i

Re: [PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 7:19 am, Merlin wrote: > Paul Scott schrieb: >> On Tue, 2006-04-25 at 11:47 +0200, Barry wrote: > Does anybody know how phpmailer sents its messages out by default? I > believe it > does this via the php function mail. But there can also be a smtp > server > specified. Do I h

Re: [PHP] phpmailer problem with spam score

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 4:43 am, Merlin wrote: > I am operating page where user receive a message which they do > have to confirm. The message does have about 5 links inside to give > the user > administration to his postings. This has NOTHING to do with PHP... > Now recently I discovered that the

[PHP] Amazon WSDL

2006-04-25 Thread John Meyer
Hey, is it possible to use the Amazon WSDL within PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Forms Validation library

2006-04-25 Thread Jens Kleikamp
Murtaza Chang wrote: Hi I just wanted to know if there's a generalised library available for Forms validation in php? -- Murtaza Chang http://pear.php.net/package/HTML_QuickForm http://ez.no/doc/components/view/latest/(file)/introduction_UserInput.html -- PHP General Mailing List (http://www.

Re: [PHP] New image already cached. (SOLVED)

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 8:56 am, tedd wrote: > At 9:56 PM -0500 4/23/06, Richard Lynch wrote: >>On Sun, April 23, 2006 5:25 pm, tedd wrote: >>> >>> >>> Neither the image tag nor the file cares if there is a random >>> number >>> attached to the file's url. But, by doing this, most (perhaps all)

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Stut
Richard Lynch wrote: On Tue, April 25, 2006 12:47 pm, Stut wrote: As long as we're throwing foreign money into the ring, I'd just like to say that I make a point of redirecting to another page after a post request, otherwise you get unsightly errors in the browser when the user tries to use the

Re: [PHP] Permission problem

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 11:16 am, tedd wrote: > A while back I was persuaded by this illustrious group into thinking > that placing images in a file system was superior to placing them in > mySQL -- after all, what could go wrong with a file system solution, > right? > > So I did. > > Now, I have a

Re: [PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 12:18 pm, D. Dante Lorenso wrote: > I'm trying to figure out which direction the PHP community is going > when > it comes to an upload progress meter. Since that meter would necessarily be CLIENT side, the PHP community is pretty much ignoring it, since PHP runs on the SERVE

Re: [PHP] Using linkDisplayFields of FormBuilder

2006-04-25 Thread Jochem Maas
Tom wrote: Hello all, ..bla.. This may fall more into how to structure my application. I want to separate the generated do code from my 'business logic' and separate the form/display details from the business logic. your asking something about a specific code/tools (that I for one have n

[PHP] Using linkDisplayFields of FormBuilder

2006-04-25 Thread Tom
Hello all, I've successfully generated my DataObjects for my database and have a set of objects that extend these generated classes so that my logic is separate from the generated code (so that any slight schema changes won't overwrite my code). My question concerns using FormBuilder to chan

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Richard Lynch
On Tue, April 25, 2006 12:47 pm, Stut wrote: > As long as we're throwing foreign money into the ring, I'd just like > to > say that I make a point of redirecting to another page after a post > request, otherwise you get unsightly errors in the browser when the > user > tries to use the back/forward

Re: [PHP] Reusable Singleton pattern using PHP5

2006-04-25 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: Simas Toleikis wrote: thing :-/ Though i wonder if there are any other hacks using some sort of classkit/other class manipulation functions? probably runkit (or is it classkit - can't remember which of those is more actively developed) might give a way out -

Re: [PHP] Install GD2 Library - $ Reward

2006-04-25 Thread Jochem Maas
Aleksander Davidsen wrote: Hi, I have trouble with installing GD2 library correctly, someone want to take a look at it and maybe fix it? start by supplying details on your OS, php build and everything related. It`s a symbolic reward of 10$ to the one who solves the problem and make it work

[PHP] Re: Forms Validation library

2006-04-25 Thread Manuel Lemos
Hello, on 04/25/2006 04:38 PM Murtaza Chang said the following: > Hi I just wanted to know if there's a generalised library available for > Forms validation in php? http://www.phpclasses.org/formsgeneration -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator

[PHP] Install GD2 Library - $ Reward

2006-04-25 Thread Aleksander Davidsen
Hi, I have trouble with installing GD2 library correctly, someone want to take a look at it and maybe fix it? It`s a symbolic reward of 10$ to the one who solves the problem and make it work correctly :) Please send me an E-Mail at [EMAIL PROTECTED] asap. Thanks in advance, Aleksander Davidsen

[PHP] Upload Progress Bar (PHP/AJAX?)

2006-04-25 Thread Rahul S. Johari
Ave, I wrote a File Manager application for my company which allows the management & our clients to upload files & share files. The application has been running fine since a while now, but lately I thought about adding a Progress Bar for the file upload form. I searched a bit to find that PHP is

RE: [PHP] Permission problem

2006-04-25 Thread tedd
[snip] In any event, I can't back-up, download, copy, change permissions, or do anything with the chmod 600 group. Any suggestions as to what I can do with these files? [/snip] At 11:30 AM -0500 4/25/06, Jay Blanchard wrote: After uploading have PHP CHMOD them properly and At 12:41 PM -04

[PHP] Forms Validation library

2006-04-25 Thread Murtaza Chang
Hi I just wanted to know if there's a generalised library available for Forms validation in php? -- Murtaza Chang

[PHP] mccabes complexity parser

2006-04-25 Thread Mark Steudel
I was wondering if anyone knew of a program that I could run my scripts through and it would return mccabes complexity metric on it ... Thanks, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Manuel Lemos
Hello, on 04/25/2006 06:43 AM Merlin said the following: > Hi there, > > I am operating page where user receive a message which they do > have to confirm. The message does have about 5 links inside to give the > user administration to his postings. > > Now recently I discovered that the message

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Robert Cummings
On Tue, 2006-04-25 at 13:47, Stut wrote: > Richard Lynch wrote: > > If you are doing your sanitization/filtering/validation correctly, you > > shouldn't even be READING $_POST after the first 3 lines of your PHP > > code anyway. (Okay, maybe first 10 lines.) > > The same goes for $_GET data also.

Re: [PHP] phpmailer problem with spam score

2006-04-25 Thread Stut
Merlin wrote: X-Spam: high X-Spam-score: 4.2 X-Spam-hits: BAYES_50, EXTRA_MPART_TYPE, FORGED_RCVD_HELO, HTML_MESSAGE, HTML_TAG_BALANCE_BODY, MIME_HTML_MOSTLY, SARE_OBFU_PART_ING Is there something I can do about this? These headers are coming from SpamAssassin. I suggest you look at their d

[PHP] Upload Progress Meter - what's the latest?

2006-04-25 Thread D. Dante Lorenso
All, I'm trying to figure out which direction the PHP community is going when it comes to an upload progress meter. I've just recently discovered the ease of installing packages using PECL and see that this package is defined: http://pecl.php.net/package/postparser Yet, there does not ap

Re: [PHP] Re: Serveral forms in a page.

2006-04-25 Thread Stut
William Stokes wrote: Mulkku? 'Cause insulting us is the way to convince this list to answer your irrelevant questions? Seriously tho, if I may, go join an HTML/Javascript list for these questions and try to stick with PHP on this one. -Stut -- PHP General Mailing List (http://www.php.net

Re: [PHP] Using Header() to pass information...

2006-04-25 Thread Stut
Richard Lynch wrote: If you are doing your sanitization/filtering/validation correctly, you shouldn't even be READING $_POST after the first 3 lines of your PHP code anyway. (Okay, maybe first 10 lines.) The same goes for $_GET data also. The longer you use header("Location: ...") the more y

Re: [PHP] Reusable Singleton pattern using PHP5

2006-04-25 Thread Stut
Jochem Maas wrote: Simas Toleikis wrote: thing :-/ Though i wonder if there are any other hacks using some sort of classkit/other class manipulation functions? probably runkit (or is it classkit - can't remember which of those is more actively developed) might give a way out - but I would reco

Re: [PHP] PHP Standard style of writing your code

2006-04-25 Thread Ahmed Saad
On 4/25/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > Now *THAT* would be a feature worth paying for in an IDE! :-) Well, you actually don't have to pay anything. TruStudion PHP foundation version (read free/open source version) has a decent code formatter and a pretty neat editor: argument orde

Re: [PHP] cURL & cookies

2006-04-25 Thread Eric Butera
On 4/25/06, Richard Lynch <[EMAIL PROTECTED]> wrote:Oh, and here's the REAL problem: > > If you use CURLOPT_HEADER, 1, then, like, for some reason beyond my > ken, the COOKIEJAR/COOOKIEFILE stuff just plain doesn't get done. > > This really sucks if you need *other* headers and want curl to manage

Re: [PHP] list noise [WAS: How to find tag and get src of image]

2006-04-25 Thread Ahmed Saad
On 4/25/06, Robert Cummings <[EMAIL PROTECTED]> wrote: > If you carefully comb the archives you'll see that many of us that make > quite liberal use of RTFM also quite often give answers to the same > simple questions, and often quite recently. That's a _quite_ true statement, I think :) I have

Re: [PHP] [ Way Too OT] Jokes [was: shopping carts]

2006-04-25 Thread Ryan A
> > I am anxiously awaiting the > answers!.g0g0g0g0g0!! > Me too. May be OP of Questions should tell the > answers now.. Oops sorry, had no idea there was such interest, also note that I have adopted the new subject instead of just plain old "shopping carts" as this is way OT.

RE: [PHP] Permission problem

2006-04-25 Thread Robert Cummings
On Tue, 2006-04-25 at 12:30, Jay Blanchard wrote: > [snip] > A while back I was persuaded by this illustrious group into thinking > that placing images in a file system was superior to placing them in > mySQL -- after all, what could go wrong with a file system solution, > right? > > So I did.

RE: [PHP] Permission problem

2006-04-25 Thread Jay Blanchard
[snip] A while back I was persuaded by this illustrious group into thinking that placing images in a file system was superior to placing them in mySQL -- after all, what could go wrong with a file system solution, right? So I did. Now, I have a small problem. Unfortunately, most of the images

[PHP] Permission problem

2006-04-25 Thread tedd
Hi gang: A while back I was persuaded by this illustrious group into thinking that placing images in a file system was superior to placing them in mySQL -- after all, what could go wrong with a file system solution, right? So I did. Now, I have a small problem. Unfortunately, most of the im

Re: [PHP] list noise [WAS: How to find tag and get src of image]

2006-04-25 Thread Robert Cummings
On Tue, 2006-04-25 at 08:45, Leonard Burton wrote: > >From pressing a few posters of RTFM answers in other projects' forums > I have found out two things: > > 1) most of them are script kiddies. > 2) most of them do not know the answer. > > They think it is more fun to post the RTFM than to not r

Re: [PHP] shopping carts

2006-04-25 Thread tedd
At 11:18 AM -0700 4/24/06, Ryan A wrote: > >Hey. That ain't a "shopping cart" That's a friggin' store. LOL You're absolutely right -- tho, it sounds like good stuff for a comedy routine. Pity it would fly over the heads of most people though, only us "geeks" (term used loosely) would

RE: [PHP] shopping carts

2006-04-25 Thread tedd
At 1:19 PM -0500 4/24/06, Jay Blanchard wrote: [snip] Another aspect is this: Why do we call it a shopping cart? [/snip] We discarded this terminology in favor of 'order fulfillment system' or OFS Or perhaps, Shipping and Handling Internet Technology -- the acronym I leave to you. tedd -

Re: [PHP] PHP Standard style of writing your code

2006-04-25 Thread tedd
Hmmm. It would be Really Nifty if some fancy IDE out there would automatically render one's PHP code in the style preferred by the developer... So no matter what was actually typed, *I* would see: function foo ($x) { //body } but some heretic who doesn't know any better would see: function f

Re: [PHP] Session Array Disappears

2006-04-25 Thread Webmaster
Richard Lynch wrote: I'm thinking the guy who suggested ignore_user_abort(TRUE) is just doing Voodoo Programming :-) I love the term Voodoo Programming! I'm guilty of doing it myself. :-) My 2 cents.I could see times when ignore_user_abort(TRUE) could be very handy. I'm wondering thou

Re: [PHP] Session Array Disappears

2006-04-25 Thread Webmaster
Hello, Thank you for the reply. Richard Lynch wrote: On Mon, April 24, 2006 2:48 pm, Webmaster wrote: In reading the www.php.net/manual/en/ref.session.php page, I'd like to point out we do not use cookies. The session id is propagated in the URL (although it's not visible in the URL bar).

Re: [PHP] shopping carts

2006-04-25 Thread John Nichel
Ryan A wrote: 1) Why can't you get an Elephant to screw in a lightbulb? Because it's an elephant 2)What the difference between a herd of Elephants and a bunch af grapes? The grapes are purple. 3)What did the peanut say to the elephant? Nothing. Peanuts can't talk. 4)Why did the elep

Re: [PHP] New image already cached. (SOLVED)

2006-04-25 Thread tedd
At 9:56 PM -0500 4/23/06, Richard Lynch wrote: On Sun, April 23, 2006 5:25 pm, tedd wrote: Neither the image tag nor the file cares if there is a random number attached to the file's url. But, by doing this, most (perhaps all) browsers think the image name is unique. Doe anyone see any p

Re: [PHP] Session Array Disappears

2006-04-25 Thread Al
Richard Lynch wrote: I'm thinking the guy who suggested ignore_user_abort(TRUE) is just doing Voodoo Programming :-) It may or may not be something you want, but I doubt it will have any affect whatsoever on your posted problem. Actually, I think anywhere that somebody thinks they need ignore_u

Re: [PHP] [ Way Too OT] Jokes [was: shopping carts]

2006-04-25 Thread Sameer N Ingole
Philip Thompson wrote: I am anxiously awaiting the answers!.g0g0g0g0g0!! Me too. May be OP of Questions should tell the answers now.. On Apr 25, 2006, at 7:26 AM, Ryan A wrote: 1) Why can't you get an Elephant to screw in a lightbulb? 2)What the difference between a herd of

Re: [PHP] shopping carts

2006-04-25 Thread Philip Thompson
I am anxiously awaiting the answers!.g0g0g0g0g0!! On Apr 25, 2006, at 7:26 AM, Ryan A wrote: 1) Why can't you get an Elephant to screw in a lightbulb? 2)What the difference between a herd of Elephants and a bunch af grapes? 3)What did the peanut say to the elephant? 4)Why di

Re: [PHP] list noise [WAS: How to find tag and get src of image]

2006-04-25 Thread Leonard Burton
Hi guys, RTFM answers with links to the info are fine. I neverminded something like RTFM http://www.php.net/switch. I have found that finding the easier answers can be the most difficult. I have been doing PHP for > 3 years. Sometimes there is something simple about a function I cannot quite g

Re: [PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Sameer N Ingole
Merlin wrote: Paul Scott schrieb: I believe that is should be possible to send html e-mails containing links that have a spam score of 0 as for example news.com does this. Not sure about spam score 0 but you can reduce it to negligible. Does anybody know how phpmailer sents its messages out b

Re: [PHP] shopping carts

2006-04-25 Thread Ryan A
> > > > While we're on the topic... > > > > What's the difference between a dozen eggs and an > elephant... > > er? 2 metrics tons? no? put me out of my misery > then :-) > If you dont know I am not going to send you to the store for a dozen eggs... Didnt know we had elephant joke fans h

Re: [PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Merlin
Paul Scott schrieb: On Tue, 2006-04-25 at 11:47 +0200, Barry wrote: - Tell the people to put your domain on the whitelist or the specific mailadress it comes from. - Use plaintext only mails The scroe is so high because of the links. Also, remember to put in a Reply-To header. A lot of SPA

Re: [PHP] At Last!

2006-04-25 Thread Angelo Zanetti
Porpoise wrote: ""Nicolas Verhaeghe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Well, first of all, try to post in plain text. Second, yes, it's a good thing to learn to use your Outlook Express before joining a mailing list. #1 I do post in plain text #2 The probl

Re: [PHP] At Last!

2006-04-25 Thread Porpoise
""Nicolas Verhaeghe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Well, first of all, try to post in plain text. Second, yes, it's a good thing to learn to use your Outlook Express before joining a mailing list. #1 I do post in plain text #2 The problem wasn't with OE,

Re: [PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Paul Scott
On Tue, 2006-04-25 at 11:47 +0200, Barry wrote: > - Tell the people to put your domain on the whitelist or the specific >mailadress it comes from. > - Use plaintext only mails > > The scroe is so high because of the links. Also, remember to put in a Reply-To header. A lot of SPAM software wil

[PHP] Re: How to convert a string( "23/04/2006") to a string "23042006" in javascript?

2006-04-25 Thread Barry
Pham Huu Le Quoc Phuc wrote: Hi you! I am a newbie to web programming, I have a following problem: I have a string: "23/04/2006", want to convert it become 23042006 in javascript. Thanks. YOU! Hi! And you are a newbie to mailing lists as it seems. This is a PHP mailing list so only stuff relat

Re: [PHP] How to convert a string( "23/04/2006") to a string "23042006" in javascript?

2006-04-25 Thread Richard Davey
On 25 Apr 2006, at 10:59, Pham Huu Le Quoc Phuc wrote: I am a newbie to web programming, I have a following problem: I have a string: "23/04/2006", want to convert it become 23042006 in javascript. If it always follows that notation you could just strip out the / character (str_replace) C

[PHP] How to convert a string( "23/04/2006") to a string "23042006" in javascript?

2006-04-25 Thread Pham Huu Le Quoc Phuc
Hi you! I am a newbie to web programming, I have a following problem: I have a string: "23/04/2006", want to convert it become 23042006 in javascript. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Serveral forms in a page.

2006-04-25 Thread William Stokes
Mulkku? "Barry" <[EMAIL PROTECTED]> kirjoitti viestissä:[EMAIL PROTECTED] > William Stokes wrote: >> Hello, >> >> This "might be" more HTML stuff but anyway... > Yeah, anyway who cares if it belongs in here or not. > >> I have several forms in a page which is ok otherwise but the reset >> button

[PHP] Re: C&C [PHP] PHP Standard style of writing your code

2006-04-25 Thread Porpoise
""Nicolas Verhaeghe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Another good thing to remember is that English is our common language and that it is usually a good practice to give variables an English name. . . if ($car == 'Audi') {$vorsprung_durch_technik = 'GOOD!';}

[PHP] Re: phpmailer problem with spam score

2006-04-25 Thread Barry
Merlin wrote: Hi there, I am operating page where user receive a message which they do have to confirm. The message does have about 5 links inside to give the user administration to his postings. Now recently I discovered that the message does not go through to everybody since the spam score

  1   2   >