Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-07-05 Thread Chris Shiflett
of the markup, which is what your original problem was. Of course, if you want to display this data again, you will have to use htmlentities() again on the data in $_GET, $_POST, or whatever. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming

Re: [PHP] Re: test if $int is integer

2004-06-30 Thread Chris Shiflett
the expression. Is 4.5 an integer? Nope, but it's numeric. His regular expression probably makes this distinction. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP

Re: [PHP] How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris Shiflett
or something because the quot would show up in the database... Any suggestion or advice? As they say, timing is everything. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Chris Shiflett
argue that something like mysql_escape_string() is better than addslashes(), so I agree with you for the most part anyway. :-) It all depends on what database is being used and how. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's

Re: [PHP] Object Oriented Programming in PHP

2004-06-24 Thread Chris Shiflett
and specifically explains OOP in terms of what's different: http://www.amazon.com/exec/obidos/ASIN/0596006365/ref%3Dnosim/chrisshiflett-20 Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http

Re: [PHP] Re: Determine whether $_GET has a value

2004-06-24 Thread Chris Shiflett
--- Anguz [EMAIL PROTECTED] wrote: Wouldn't this work? if(isset($_GET['var']) !empty($_GET['var'])){ // do something... } No, he mentioned that he considers 0 to be acceptable, and this will fail the empty() test. Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] Determine whether $_GET has a value

2004-06-23 Thread Chris Shiflett
. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: is there any application ,

2004-06-21 Thread Chris Shiflett
--- Amit Arora [EMAIL PROTECTED] wrote: I did hear about a PHP compiler a while back But I am not sure whether that project is still around ? This may be what you're thinking of: http://pecl.php.net/package/bcompiler Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: [PHP] PHP pros and cons

2004-06-11 Thread Chris Shiflett
--- Amanda Hemmerich [EMAIL PROTECTED] wrote: what do you guys think are some limitations of PHP? It's not persistent like ColdFusion. It doesn't have namespaces. The object model in PHP 4 is poor. I'm sure others can pitch in here. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] addslashes

2004-06-11 Thread Chris Shiflett
that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] PHP pros and cons

2004-06-11 Thread Chris Shiflett
= Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Refresh Page

2004-06-06 Thread Chris Shiflett
--- Mike Mapsnac [EMAIL PROTECTED] wrote: I want to refresh page every 10 seconds, without clicking on Refresh button. Use the Refresh header: header('Refresh: 10; url=http://example.org/foo.php'); Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

Re: [PHP] PHP Basic's Problem with a simple script.

2004-06-01 Thread Chris Shiflett
and saw that register_globals was on? I seriously doubt your findings (unless I overlooked a typo regarding a variable name or something), but please add this code to be sure: echo 'register_globals [' . ini_get('register_globals') . ']'; Hope that helps. Chris = Chris Shiflett - http

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
--- Gerben [EMAIL PROTECTED] wrote: does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. $foo = str_replace('\n', 'br /', $foo); Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook

Re: [PHP] nl2br problem

2004-05-28 Thread Chris Shiflett
--- Gerben [EMAIL PROTECTED] wrote: does anyone know how to create a true nl2br function in stead of a nl2br-and-nl function. $foo = str_replace('\n', 'br /', $foo); Make that \n to interpret the newline correctly. Sorry about that. Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] Yahoo and PHP

2004-05-15 Thread Chris Shiflett
there, and so does Andrei. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Error Passing Command in URL

2004-05-14 Thread Chris Shiflett
--- Dragon [EMAIL PROTECTED] wrote: If I/You try to open the Admin-Sektion ?open=admin Nothing happens, you will only reload the main view. Use $_GET['open']. It will work. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Chris Shiflett
to a standstill till, then when swap space runs out.. watch out! :) Yeah, this is what my migs and megs of memories comment was meant to convey, although Curt's description is more detailed and eloquent. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-13 Thread Chris Shiflett
: example.org Content-Type: shiflett Content-Length: 384975438975438753495734957 dshgjkdfhgkldfjhgklsfjdhgkdfjhgksjdfhgjdfkghsdfjkg... :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org

Re: [PHP] Send username password in HTTP headers

2004-05-12 Thread Chris Shiflett
the result of this: base64_encode('myname:mypass') Substitute with the correct username and password. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Chris Shiflett
attack easy. I'd just send lots of huge POST requests to any PHP script on your server. Hope you have migs and megs of memories, as Strong Bad would say. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-12 Thread Chris Shiflett
it was also misleading (always should mean always). I assume the original poster is using neither of the content types you mention, since this was already working for him in one environment. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP

Re: [PHP] HTTP_RAW_POST_DATA

2004-05-11 Thread Chris Shiflett
--- Curt Zirzow [EMAIL PROTECTED] wrote: Check the value of always_populate_raw_post_data in php.ini on both servers. Thats such a funny name. Not to mention misleading, since it doesn't always populate $HTTP_RAW_POST_DATA when enabled. Always should mean always. Chris = Chris

Re: [PHP] php|works

2004-05-11 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: Who's going (thinking about) to this? http://www.phparch.com/phpworks/ I'm strongly considering it. Proposal deadline is May 21, which is my birthday, so that's easy to remember. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: [PHP] Header() and POST data

2004-05-07 Thread Chris Shiflett
--- Todd Cary [EMAIL PROTECTED] wrote: I need to go to another page and I use the header(location: . $the_url_to_the_page); Is it possible to use this method with POST so that the info does not show in the URL? No, which is a very Good Thing. Chris = Chris Shiflett - http

Re: [PHP] I need to hire someone to secure script

2004-05-07 Thread Chris Shiflett
occasionally perform security audits for good causes or good money. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General

Re: [PHP] Using HTTP_REFERRER to ensure forms posted from server

2004-04-29 Thread Chris Shiflett
as easy to spoof as the form data you're expecting. What you're wanting to do is prevent spoofed form submissions, and New York PHP has a nice resource that I encourage you to read: http://phundamentals.nyphp.org/PH_spoofed_submission.php Hope that helps. Chris = Chris Shiflett - http

Re: [PHP] Counting number of characters without spaces between them?

2004-04-23 Thread Chris Shiflett
? Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] PHP Mag (Was: Counting number of characters without spaces between them?)

2004-04-23 Thread Chris Shiflett
--- Richard Davey [EMAIL PROTECTED] wrote: BTW - Nice piece in Int PHP Mag this month :) Thanks. :-) I haven't seen it yet. Is this in the print or PDF edition? Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams

Re: [PHP] PHP modifying data from DB?

2004-04-23 Thread Chris Shiflett
to the second. Are you assuming the time is not stored, because you do a select at the MySQL prompt and don't see it? If so, that's the misunderstanding. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook

Re: [PHP] oblivious to the obvious

2004-04-23 Thread Chris Shiflett
), echo mysql_error() to see why your query failed. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General

Re: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Chris Shiflett
to: if (true) Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net

[PHP] Unsubscribing Was: Unwanted e-mails

2004-04-19 Thread Chris Shiflett
intervention. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] http header

2004-04-16 Thread Chris Shiflett
tag to emulate an HTTP header. PHP has the header() function, and it can set real headers. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http

Re: [PHP] PHP security in a hosting environment

2004-04-07 Thread Chris Shiflett
protect your environment; it only takes PHP out of the picture. Security Corner is the latest issue of php|architect (http://www.phparch.com/issue.php?mid=26) discusses the issue of shared hosting in more detail. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: [PHP] Validating form field text input to be a specificvariable type

2004-04-07 Thread Chris Shiflett
--- William Lovaton [EMAIL PROTECTED] wrote: Yeah, sometimes this is an annoying problem with PHP. Somehow, , null, 0 and 0 is the same thing. You can always use === if you don't want it to cast. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004

Re: [PHP] How to Request?

2004-04-06 Thread Chris Shiflett
']); $color = ($_REQUEST['c']); } You answer your own question immediately after you ask it. Wrong: $_REQUEST['fd','c'] Right: $_REQUEST['fd'] $_REQUEST['c'] Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's

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

2004-04-05 Thread Chris Shiflett
all POST data, regardless of type. The reason is the same as why you cannot distinguish them - only name/value pairs are returned. Don't assume your HTML can restrict the type of data that a user can send. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

Re: [PHP] \n is not working!

2004-04-04 Thread Chris Shiflett
, please test your code. It really only takes a moment of your time. Thanks. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP

Re: [PHP] Relative Url

2004-04-02 Thread Chris Shiflett
the pollfunctions.php file resides. $url = '/poll/pollfunctions.php'; Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP

Re: [PHP] Apache version... 1.3.29 vs 2.0.

2004-04-02 Thread Chris Shiflett
--- Frano ILICIC [EMAIL PROTECTED] wrote: I just wonder what is the best apache version to run PHP 4.35? Just wondering if there is an obvious choice? Maybe not obvious, but I think the best choice is the latest Apache 1.3.x. Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: [PHP] Relative Url

2004-04-01 Thread Chris Shiflett
--- Chris Thomas [EMAIL PROTECTED] wrote: Is there anyway that i can get a url relative to my server for a script that is being run?? $relative_url = '/'; That's a relative URL to your document root. What are you wanting, exactly? Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] Inserting string - need to trim comma

2004-04-01 Thread Chris Shiflett
= $value) { $pairs[] = $key = '$value'; } $sql .= implode(',' $pairs); --- Matt Matijevich [EMAIL PROTECTED] wrote: http://www.php.net/rtrim rtrim() trims whitespace, not commas. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall

Re: [PHP] Inserting string - need to trim comma

2004-04-01 Thread Chris Shiflett
in the trimming (so, whitespace + whatever characters you specify will be trimmed). Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP

Re: [PHP] PHP Logo with a dog?

2004-04-01 Thread Chris Shiflett
--- Adrian Madrid [EMAIL PROTECTED] wrote: Has anybody had the PHP logo in phpinfo() appear with a picture of a dog? Happy April Fools Day. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http

Re: [PHP] PHP Logo with a dog?

2004-04-01 Thread Chris Shiflett
--- Jason S Motes [EMAIL PROTECTED] wrote: The picture that comes up on my machine is a guy's head with two pencils stuck in his nose That's Thies. You need to upgrade. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's

Re: [PHP] Session help please?

2004-04-01 Thread Chris Shiflett
. This is because you probably have register_globals enabled, so the value of test in the user POST request is available to you as both: $_POST['test'] and $test It has nothing to do with you also setting $_SESSION['test']. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] What's the use in OOP?

2004-03-29 Thread Chris Shiflett
(encapsulation, namespacing, etc.) and find a really good explanation of the term. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http

Re: [PHP] Namespaces in PHP

2004-03-29 Thread Chris Shiflett
guess that this is one of the reasons that PEAR classes are classes. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General

RE: [PHP] Namespaces in PHP

2004-03-29 Thread Chris Shiflett
. Does not make sense this is not a namespace ideology at all it is called encapsulation. It makes perfect sense to me. Robert knows that this is called encapsulation. Don't let fancy terms make you lose sight of what's being discussed. Chris = Chris Shiflett - http://shiflett.org/ PHP

RE: [PHP] What's the use in OOP?

2004-03-29 Thread Chris Shiflett
easier on myself. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] What's the use in OOP?

2004-03-29 Thread Chris Shiflett
something like APC. Moral of the story: that argument is irrelevant. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General

Re: [PHP] Wrong IP address

2004-03-29 Thread Chris Shiflett
is wrong. I can tell you that $_SERVER['REMOTE_ADDR'] always has the correct IP of where the HTTP request originated. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site

RE: [PHP] Namespaces in PHP

2004-03-29 Thread Chris Shiflett
be wasted with petty arguments, so that he continues. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http

Re: [PHP] Apache 2 w/ PHP database sessions

2004-03-26 Thread Chris Shiflett
that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] fsockopen and HTTP 1.1 Problem

2004-03-25 Thread Chris Shiflett
responses, but I think this is unnecessary. You can open a remote URL just as if it were a local file if allow_url_fopen is enabled: $handle = fopen('http://example.org/', 'r'); ... Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004

Re: [PHP] Header Redirect POST

2004-03-25 Thread Chris Shiflett
in other.php. I think you made a typo or you're misinterpreting something. The URL referenced in a Location header will be requested with a GET request, so it is impossible that any POST data exists. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP

Re: [PHP] htmlspecialchars()

2004-03-25 Thread Chris Shiflett
); echo $new; ? // this is what is output:a href='test'Test/a // instead of this... // lt;a href='test'gt;Testlt;/agt; View source. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP

Re: [PHP] Problem with header

2004-03-24 Thread Chris Shiflett
. It tells you exactly what is wrong and where. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Sessions and PHP

2004-03-24 Thread Chris Shiflett
is within that threshhold. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http

Re: [PHP] login scripts not secure?? help!

2004-03-23 Thread Chris Shiflett
manipulate it. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Chris Shiflett
is a must. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
you can probably save yourself some trouble by forgetting this whole approach. You need to focus on why header() is not working for you, because this is the way to send HTTP headers to the client. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
is headers have already been sent. Headers are sent as soon as output begins, so you can either set all of your headers prior to any output or use output buffering with ob_start(). So, use header(). Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

RE: [PHP] SQL Injection check (mysql)

2004-03-23 Thread Chris Shiflett
rather irrelevant to the topic at hand (which might explain the confusion). Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-23 Thread Chris Shiflett
sent until the script terminates. Whatever works best for you. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP

RE: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: ROFL! Sorry Chris...had to laugh. :) hey i like a good laugh just like anyone else... but i don't have any idea what you're talking about!! :( That makes two of us. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

Re: [PHP] Session_destroy() questions

2004-03-22 Thread Chris Shiflett
://www.php.net/session_regenerate_id Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] receiving ndr for each email sent to list

2004-03-22 Thread Chris Shiflett
this is because he doesn't know that people can bounce messages (this assumption makes no sense, otherwise he wouldn't know to ask about it). 3. This is funny. My sense of humor must be turned off today. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004

Re: [PHP] fsockopen to spit out the HTTP's Location...

2004-03-22 Thread Chris Shiflett
that if you can explain these statements, the rest might make more sense. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General

Re: [PHP] ip to country

2004-03-21 Thread Chris Shiflett
free. This is what MySQL AB uses for their Web sites and what many other open source sites use. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http

Re: [PHP] Re: ip to country

2004-03-21 Thread Chris Shiflett
have a site that will have different pricing by world region / country and also offer different currencies. He needs the country, not the language. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http

Re: [PHP] Re: ip to country

2004-03-21 Thread Chris Shiflett
determine a country from a language isn't the fault of HTTP. I'm sure this is what you were implying, but I wanted to make sure HTTP wasn't being blamed. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http

Re: [PHP] SQL Injection check (mysql)

2004-03-21 Thread Chris Shiflett
://phundamentals.nyphp.org/PH_storingretrieving.php This is good for describing magic_quotes and mysql_escape_string(). Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP

Re: [PHP] Re: ip to country

2004-03-21 Thread Chris Shiflett
, and this is the database that produces the fewest dead spots for us. Plus, the PHP API was written by a guy from the PHP Group, so that made me feel even more confident. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook

Re: [PHP] SQL Injection check (mysql)

2004-03-21 Thread Chris Shiflett
design helps you to make sure that this step can't be bypassed by the user, you're protected against SQL injection. Or even better: Use only prepared statements. Can you explain that (and defend it)? Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004

Re: [PHP] SQL Injection check (mysql)

2004-03-21 Thread Chris Shiflett
to articles which discuss this would be welcome). The point of escaping or encoding would be lost if it didn't work for all possible data. I know of no articles for this, nor can I think of anyone who would bother writing one. :-) Anyway, I hope that helps. Chris = Chris Shiflett - http

Re: [PHP] What does it take to give a good technical presentation?

2004-03-19 Thread Chris Shiflett
, a talk given by Mark Jason Dominus: http://perl.plover.com/yak/presentation/samples/slide001.html Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http

Re: [PHP] What does it take to give a good technical presentation?

2004-03-19 Thread Chris Shiflett
with the pointless part. Although I would like to hear from other presenters and attendees on what they think with specific regards to PHP/programming presentations. Me, too. I'd be more interested in hearing from attendees than speakers, in fact. Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] Guru's advice needed ........[Security: SQL injection]

2004-03-19 Thread Chris Shiflett
an erroneous assumption. Consider this SQL statement: select * from foo where bar = 'Don't apostrophes screw things up?' What does bar need to be in order for the where clause to match? Where does the SQL statement end? Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] OT PHP Programmers

2004-03-18 Thread Chris Shiflett
. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Chris Shiflett
button on his page that gives him even more money: http://www.schlossnagle.org/~george/blog/archives/228_Advanced_PHP_Programming_Finally.html Click the button right under the image of the book. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP

RE: [PHP] input type=text value=He said, How do I get this t o work?, with a frown size=50

2004-03-16 Thread Chris Shiflett
are good for HTML. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] refresh page

2004-03-16 Thread Chris Shiflett
--- Mike Mapsnac [EMAIL PROTECTED] wrote: I need to refresh page every 2 minutes. How that's can be done in PHP? You can do this with a Refresh header: header('Refresh: 120; url=http://www.example.org/'); Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: Re[2]: [PHP] Re: PHP Sessions - One Server, Many Terminals

2004-03-16 Thread Chris Shiflett
code be written. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Sessions

2004-03-16 Thread Chris Shiflett
= Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] help with storing multiple values in session variables.

2004-03-15 Thread Chris Shiflett
--- Vimala S.P. [EMAIL PROTECTED] wrote: Is there any way of passing unicode strings properly with href and get? You can pass anything as a URL variable if you URL encode it. That's what URL encoding is for: http://www.php.net/url_encode Hope that helps. Chris = Chris Shiflett - http

Re: [PHP] Get nice variables from POST

2004-03-11 Thread Chris Shiflett
. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] new session in new window

2004-03-09 Thread Chris Shiflett
for the discussion chris. No problem. I hope this was more helpful. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List

Re: [PHP] IE 6 hotix and header problem

2004-03-09 Thread Chris Shiflett
that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] new session in new window

2004-03-09 Thread Chris Shiflett
up one on shared hosting right now. It should be in this month's issue of php|architect, although I am currently past my deadline. :-( Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http

Re: [PHP] new session in new window

2004-03-08 Thread Chris Shiflett
session, you can include a different session identifier on the URL. As long as both instances of the browser maintain their own unique session identifier through URL proagation, you can make this happen. But, this approach seems very, very ugly. Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] PHP and GET/POST

2004-03-08 Thread Chris Shiflett
of that possibility Yes, you can use $_POST['step']. However, this is just as easy to spoof, so you're not really eliminating the problem, just a symptom. Having the client identify what step it is on seems fundamentally flawed to me. Hope that helps. Chris = Chris Shiflett - http://shiflett.org

Re: [PHP] PHP and GET/POST

2004-03-08 Thread Chris Shiflett
. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] new session in new window

2004-03-08 Thread Chris Shiflett
you happy and works. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] new session in new window

2004-03-08 Thread Chris Shiflett
that you can read for free: http://shiflett.org/articles/the-truth-about-sessions Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http

RE: [PHP] Re: RFC: Job listings

2004-03-07 Thread Chris Shiflett
probably isn't too hard), I think it can quickly become the dominant job board for PHP, which can only help everyone. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site

Re: [PHP] POST form header

2004-03-03 Thread Chris Shiflett
it can give you an idea about what the raw HTTP looks like: http://shiflett.org/hacks/php/http_post There are also some examples in this article: http://shiflett.org/articles/the-truth-about-sessions Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

Re: [PHP] Session and Cookie issue

2004-03-03 Thread Chris Shiflett
sort of things you can do to improve your implementation: http://shiflett.org/articles/the-truth-about-sessions Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP

Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Chris Shiflett
(1000% or more faster): http://www.blueshoes.org/en/developer/php_bench/ You could simply: foreach ($_POST as $name = $value) { ... } Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming mid-2004 HTTP Developer's Handbook - Sams http

<    1   2   3   4   5   6   7   8   9   10   >