Re: [PHP] Novice question

2011-10-30 Thread Rico Secada
On Sun, 30 Oct 2011 17:24:07 - "John Allsopp" wrote: > Hi > > I'm afraid I've fallen a little out of touch with PHP dev, so a stupid > question for you. > > I want to write a script that requests a URL and then reads that > website .. I'm interested to map web structures. My web host is > s

[PHP] Code should be selv-maintaining!

2011-08-29 Thread Rico Secada
Dont get me wrong, I love programming! But what an absolute pain in the ass it is when you re-use old code only to discover something "less well made". You all know about this right? You go into your homemade library of code to re-use some piece that you already are using 12 other places in produ

Re: [PHP] PDO Prepared Statements and stripslashes

2010-12-21 Thread Rico Secada
On Tue, 21 Dec 2010 10:32:21 -0500 Adam Richardson wrote: > 1. Turn off magic_quotes_gpc if on, as its use has been deprecated. > 2. Use prepared statements. > 3. Don't worry about stripping slashes ever again :) Thank you for a very enlightening answer. I guess I misunderstood the "PDO automati

Re: [PHP] PDO Prepared Statements and stripslashes

2010-12-20 Thread Rico Secada
On Tue, 21 Dec 2010 00:32:19 -0500 Paul M Foster wrote: > On Tue, Dec 21, 2010 at 05:31:15AM +0100, Rico Secada wrote: > > > Hi. > > > > In an article about SQL Injection by Chris Shiflett he mentions the > > following in a comment: "The process of escap

[PHP] PDO Prepared Statements and stripslashes

2010-12-20 Thread Rico Secada
hes are removed. So what's the mistake here and what's the correct way to do it? Kind regards Rico -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] No errors gets displayed, just a blank page

2010-12-07 Thread Rico Secada
ebugging a nightmare. Anyone with experience in this behavior? Thanks and best regards Rico -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wordpress Page: How to add pagination?

2010-11-22 Thread Rico Secada
On Mon, 22 Nov 2010 09:27:28 +0800 (SGT) vince samoy wrote: Hi Vince. This is not a Wordpress mailing list. This is the general users PHP mailing list. > Hi guys, > > I was wondering if this is the right place that this question of mine > might get an answer. I'm currently working on a website

Re: [PHP] Is it possible to install PHP on IIS?

2010-11-16 Thread Rico Secada
On Tue, 16 Nov 2010 12:16:25 +0530 Himani Aggarwal wrote: > Hi Folks, is it possible to install PHP on IIS? If yes, can someone > please guide me on how to go about doing it? Thanks Now, why would you wanna do something crazy like that?! :) -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Documentation

2010-10-27 Thread Rico Secada
On Wed, 27 Oct 2010 10:52:58 +0200 Jordan Jovanov wrote: > Hello All, > > I finished with coding and now I am on the part when need to write > documentation. But I don't know how to write correct documentation. > Does have some rules or standard for writing documentation for PHP? > Or maybe hav

Re: [PHP] Best practice for if (!$stmt->execute())

2010-10-25 Thread Rico Secada
On Mon, 25 Oct 2010 22:56:37 -0400 Paul M Foster wrote: > Bear in mind, an "error" is *never* that a query returned no data or > data the user might consider bad. This is an important point. When is an "error" an actual error? When is it something that *needs* to be logged and mailed? > Paul >

Re: [PHP] Best practice for if (!$stmt->execute())

2010-10-25 Thread Rico Secada
On Mon, 25 Oct 2010 00:26:23 -0700 "Tommy Pham" wrote: > > -Original Message- > > From: Rico Secada [mailto:coolz...@it.dk] > > Sent: Sunday, October 24, 2010 9:06 PM > > To: php-general@lists.php.net > > Subject: [PHP] Best practice for if (!$

[PHP] Best practice for if (!$stmt->execute())

2010-10-24 Thread Rico Secada
DB_ERROR); This way making sure that every single db execute gets a valid check and at the same time return some kind of valuable db error to the user and end the script. How do you deal with db execution checks? Thanks in advance! Best regards. Rico. -- PHP General Mailing List (http://

Re: [PHP] I need some thoughts on code duplication and separation

2010-10-24 Thread Rico Secada
On Thu, 21 Oct 2010 10:55:14 -0400 Paul M Foster wrote: > On Thu, Oct 21, 2010 at 04:05:50AM +0200, Rico Secada wrote: > > > Hi. > > > > I am working on a small system where I am both trying to avoid code > > duplication and at the same time I am trying to k

[PHP] I need some thoughts on code duplication and separation

2010-10-20 Thread Rico Secada
Hi. I am working on a small system where I am both trying to avoid code duplication and at the same time I am trying to keep the presentation logic separated from the application logic. I am using sessions and are avoiding "headers already sent" problem by keeping the HTML out of the application.

Re: [PHP] Fixing the path

2009-09-13 Thread Rico Secada
On Sat, 12 Sep 2009 00:43:50 -0400 Paul M Foster wrote: > (Or maybe I've completely misread what you're trying to do.) Yes you did, but never mind :) > Paul > > -- > Paul M. Foster > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fixing the path

2009-09-11 Thread Rico Secada
st regards. Rico. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Memcached is driving me nuts

2008-11-24 Thread Rico Secada
On Mon, 24 Nov 2008 15:13:32 -0500 Al <[EMAIL PROTECTED]> wrote: > Try debug_backtrace() Thanks for your reply. I get an empty array: array(0) { } > Rico Secada wrote: > > Hi. > > > > This post has also been posted on the Debian list. > > > >

[PHP] Memcached is driving me nuts

2008-11-24 Thread Rico Secada
.0-8+etch13 ii php5-gd 5.2.0-8+etch13 ii php5-imagick0.9.11+1-4.1 ii php5-memcache2.0.1-1.1 ii php5-mysql 5.2.0-8 +etch13 ii php5-pgsql 5.2.0-8+etch13 Any help in understanding what is going on would be greatl

Re: [PHP] File permitions

2001-09-23 Thread rico
looks pretty straightforward with php's caveat to be careful to use octal... chmod ("/somedir/somefile", 0755); // octal; correct value of mode -- - Click here for Free Video!! http://www.gohip.com/free_video/ <[EMAIL PROTECTED]> wrote in me

Re: [PHP] File permitions

2001-09-23 Thread rico
im definitely not a guru, but perhaps this might help http://www.php.net/manual/en/html/function.chmod.html http://www.php.net/manual/en/html/function.chown.html those are the doc pages on usage of similar process for setting permissions (i believe) GL -- --

Re: [PHP] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sunday 23 September 2001 17:01, rico wrote: > > > The problem is in the final formatting in arrayprocr.php. I notice that > > whenever a new is added to the final table, it gets pushed further > > down the page, al

Re: [PHP] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico
nope, no go...still getting extra lines after taking out all instances of \n -- - Click here for Free Video!! http://www.gohip.com/free_video/ "Rico" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAI

Re: [PHP] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico
wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sunday 23 September 2001 17:01, rico wrote: > > > The problem is in the final formatting in arrayprocr.php. I notice that > > whenever a new is added to the final table, it gets pushed further > > d

[PHP] Re: formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico
oops, forgot to add the files in -- - Click here for Free Video!! http://www.gohip.com/free_video/ "Rico" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Attached are the files in

[PHP] formatting in HTML from PHP scripts. Please help!

2001-09-23 Thread rico
the final table, it gets pushed further down the page, almost as if a has been added for each new ...but there is not. I've looked it over, it looks clean. The resulting HTML in arrayprocr.php is clean and devoid of any "extra 's or 's. Why would this be happening? an

[PHP] Re: formatting - generating tables with php

2001-09-23 Thread rico
ill stands. -- - Click here for Free Video!! http://www.gohip.com/free_video/ "Rico" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > never mind hehe > > -- > -

[PHP] Re: formatting - generating tables with php

2001-09-23 Thread rico
never mind hehe -- - Click here for Free Video!! http://www.gohip.com/free_video/ "Rico" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have an intermediate process that a

[PHP] formatting - generating tables with php

2001-09-23 Thread rico
I have an intermediate process that allows you to add table rows with input fields; and while this works, for some reason, it is adding extra white space before the table, even though the generated html does not show additional 's or 's. whats going on? attached are the files in question. TIA