Re: [PHP] Free penetration test

2005-05-23 Thread Chris Shiflett
with anyone, regardless of NDAs and such. You might want to check out the links Christophe mentioned, as these provide free advice, which seems to be more along the lines of what you want. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-20 Thread Chris Shiflett
Graham Anderson wrote: Can the server variable 'user agent' be modified/spoofed by the user? Yes, this value is being sent by the client. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP Applications?

2005-05-17 Thread Chris Shiflett
Danny Brow wrote: Zend sells a compiler to speed up your PHP code. Since it's compiled, it also does not contain the source code in readable form. You should visit the Zend website. Any free ones? http://pecl.php.net/package/APC -- Chris Shiflett Brain Bulb, The PHP Consultancy http

Re: [PHP] MySql injections (related question)

2005-05-12 Thread Chris Shiflett
beside me): Other things are that addslashes() screws up with big-5 (it can contains \'s in multi-byte characters), and mysql_real_escape_string() takes into account charcter sets. -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-26 Thread Chris Shiflett
, product_serial_number FROM Products', $db) or exit(mysql_error()); Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Zend Certification Exam

2005-04-23 Thread Chris Shiflett
://shiflett.org/archive/115 Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-14 Thread Chris Shiflett
avoiding). Being mindful of this, it's also helpful to not even display it to the user, instead showing only the last four digits or something, because this display also counts as exposure (since it's in the response). I'm certainly interested to know when/why Chris Shiflett would store a CC

Re: [PHP] Dedicated server

2005-04-14 Thread Chris Shiflett
and virtual dedicated servers. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT Where is a good place to post PHP job opportunities

2005-04-12 Thread Chris Shiflett
Joey wrote: Sorry to post this here, but I don't know if the list has a jobs section etc. or if there is a good place where I can post job opportunities for php programmers? This list is fine. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List

Re: [PHP] validating input

2005-04-12 Thread Chris Shiflett
blackwater dev wrote: I want to check a string for only numbers and letters but am banging my head with regex: ctype_alnum() Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Almost OT - urlencode and IE

2005-04-11 Thread Chris Shiflett
urlencode it `urlencode(urlencode($sData))` while Firefox and Opera (and, I imagine, every other non-microsoft browser out there) only needs to be encoded once. Can you provide a specific example? As horrible as IE is, I can't imagine that it doesn't properly handle URL encoding. Chris -- Chris Shiflett

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
from the same domain). Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
of storing passwords in cookies is absurd. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing password in cookie

2005-04-11 Thread Chris Shiflett
considerations can require that you couple its retrieval with other session data rather than incur the extra expense. It's just one of those things that is a little bit application-specific. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http

Re: [PHP] include literal

2005-03-28 Thread Chris Shiflett
Jeremy Reynolds wrote: What if I want to include some literal test into a PHP document that I don't want it to interpret as it loads. You can use something like readfile() instead of include. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP

Re: [PHP] text editor

2005-03-28 Thread Chris Shiflett
it.) Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setcookie issue

2005-03-27 Thread Chris Shiflett
of HTTP Developer's Handbook explains cookies: http://shiflett.org/books/http-developers-handbook/chapters/11 See Figure 11.3 for an illustration of the exchange I just described. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread Chris Shiflett
clear. I don't recommend skipping either of these two crucial steps, but escaping can help protect you against weak or broken filtering. Because there are built-in escaping functions for most external systems, you should rely on these where possible. Hope that helps. Chris -- Chris Shiflett Brain

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread Chris Shiflett
might be as good or better than that article. The article also has user comments at the bottom, so you might find something useful there also. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Avoiding SQL injections: htmlentities() ?

2005-03-26 Thread Chris Shiflett
-- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setcookie issue

2005-03-26 Thread Chris Shiflett
John Hinton wrote: Seems my old setcookie scripts are busted in php with globals off. Use $_COOKIES['name']. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header already sent problem

2005-03-25 Thread Chris Shiflett
terminates (or you manually flush). Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session destroy/unset question - the same session_id is regenerated.

2005-03-22 Thread Chris Shiflett
it, but these might have essentially the same behavior (e.g., memory is freed but not overwritten). Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] carriage returns using error_log?

2005-03-20 Thread Chris Shiflett
in the log message. Try using double quotes instead of single quotes. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] see anything wrong (xhtml validator)

2005-03-20 Thread Chris Shiflett
not trust the description? It seems to me that 1 cannot start a name. I bet $news['id'] starts with a 1 in this case. I'm not really sure what you're asking... Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] php-not-executing-in-html-file-help

2005-03-20 Thread Chris Shiflett
treates as HTML, and hi.php is being treated as PHP. No surprise there. You can modify this behavior and make Apache treat .html files as PHP by adding .html to your AddType directive in httpd.conf. Are you really sure this is what you need? Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy

Re: [PHP] carriage returns using error_log?

2005-03-20 Thread Chris Shiflett
you show us a specific example that would let us reproduce the problem locally? Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More function troubles

2005-03-18 Thread Chris Shiflett
){ // this is line 5 Maybe you error is that check_zero() is spelled differently than check()? Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML HTTP

2005-03-18 Thread Chris Shiflett
, but this alone doesn't provide enough information. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML HTTP

2005-03-18 Thread Chris Shiflett
document. :-) There are many details you're not giving us (you can leave out the details involving the XML document itself, of course), so it's pretty much impossible to even guess an answer to your question. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General

Re: [PHP] multiple OR's

2005-03-17 Thread Chris Shiflett
'; break; default: echo 'The name wasn't one of those'; } Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting text with strange encodng

2005-03-17 Thread Chris Shiflett
. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can I do a for each here??

2005-03-17 Thread Chris Shiflett
trusting it? That's a very dangerous practice. If you explain your problem, we might be able to offer some help. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Setting cookies for other domains

2005-03-17 Thread Chris Shiflett
a browser makes a request, it checks for cookies to be included in the Cookie header. Only those that meet the requirements (domain, path, expiry, etc.) are included. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http

Re: [PHP] PHP file as homepage?

2005-03-15 Thread Chris Shiflett
directive (Apache). In httpd.conf, just do something like this: DirectoryIndex index.html index.php This gives preference to a static index, if it exists. You can only use index.php if you want. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General

Re: [PHP] Problem submitting a POST request by hand

2005-02-28 Thread Chris Shiflett
= Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem submitting a POST request by hand

2005-02-28 Thread Chris Shiflett
else you do. You can connect to a thousand different servers, collect data from a thousand different databases, and do stuff more complex than any PHP developer has ever done before. However, if you never output anything, the client is going to see a blank page. Hope that helps. Chris = Chris

Re: [PHP] Hi ALL

2005-02-25 Thread Chris Shiflett
no. of words/post Richard certainly contributes a lot, and I think he's in the top 10 (Curt Zirzow actually compiled these statistics a while back), but no one comes close to John Holmes. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams

Re: [PHP] Cookies

2005-02-25 Thread Chris Shiflett
--- William Stokes [EMAIL PROTECTED] wrote: If I send a session cookie to browser where it is stored in WinXP? Session cookies are kept in memory. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http

Re: [PHP] Sessions and cookies

2005-02-22 Thread Chris Shiflett
not act on the cookie nor the $_SESSION superglobal array. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP or ASP.Net

2005-02-17 Thread Chris Shiflett
is the language to go for. That's easy. ASP.Net requires that you run IIS. Debate over. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP security

2005-02-17 Thread Chris Shiflett
risk. My favorite method of handling this is described at the end of this article: http://shiflett.org/articles/security-corner-mar2004 Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon

Re: [PHP] PHP Post method HTTP 404

2005-02-16 Thread Chris Shiflett
the form. This is not a PHP question. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP book recommendations

2005-02-15 Thread Chris Shiflett
/0672325616 Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] phpBB alternatives?

2005-02-08 Thread Chris Shiflett
, and a secure server doesn't make a secure application. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] best way to handle user authentication, PHP vs. apache

2005-01-31 Thread Chris Shiflett
://phpsec.org/projects/guide/ Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best way to handle user authentication, PHP vs. apache

2005-01-31 Thread Chris Shiflett
to talk the site up a bit because I get the feeling it has the potential to really make a positive impact... guess that didn't come over to well. No worries - it came across just fine. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook

[PHP] PHP Security Consortium

2005-01-30 Thread Chris Shiflett
the community about secure programming practices has risen, said Chris Shiflett, the group's founder. The PHPSC web site (http://phpsec.org/) provides a variety of security resources for PHP developers, including the group's flagship project, the PHP Security Guide. PHP application security is a topic

Re: [PHP] Validating input

2005-01-28 Thread Chris Shiflett
an approach like the following to make sure something is an integer: ?php $clean = array(); if ($_POST['num'] === strval(intval($_POST['num']))) { $clean['num'] = $_POST['num']; } ? Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's

Re: [PHP] $_REQUEST or $_POST?

2005-01-17 Thread Chris Shiflett
. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Unit Tests - which framework to use?

2005-01-15 Thread Chris Shiflett
this to be far superior to any other testing framework for web applications. It is also the official testing framework for the Apache httpd project: http://httpd.apache.org/test/ Now PHP developers can also use Apache-Test. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: [PHP] How to argue with ASP people...

2005-01-05 Thread Chris Shiflett
and disadvantages to each, and PHP certainly doesn't win on all fronts. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] How to argue with ASP people...

2005-01-04 Thread Chris Shiflett
the two primary means of doing so? You can persist data in memory, I guess, depending on how permanent you need this to be - your hit counter would be reset when the server reboots. It could be like the high scores on an arcade machine. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: Re[3]: [PHP] How to argue with ASP people...

2005-01-04 Thread Chris Shiflett
) and not in the language. The include and require language constructs in PHP can be used independently of support for SSI. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org

Re: [PHP] PHP Exploit via phpBB?

2004-12-23 Thread Chris Shiflett
and security. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hackers?

2004-12-23 Thread Chris Shiflett
--- Sebastian [EMAIL PROTECTED] wrote: im looking for a person or a place that will check or try to break a site. This is the least effective means of auditing an application. Letting an experienced person review your code is much, much better. Chris = Chris Shiflett - http://shiflett.org

Re: [PHP] Re: sanitizing/security

2004-12-21 Thread Chris Shiflett
, there are some pretty simple steps you can take to mitigate the risks, or you can adhere to strict practices if you work at it. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http

Re: [PHP] Current Member Check

2004-12-19 Thread Chris Shiflett
/security.database.sql-injection.php Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] User Groups Mailing List

2004-12-17 Thread Chris Shiflett
from this sort of list. Having another founder on the list would certainly be helpful, if you're interested in contributing. Eventually, we want to have much more than a mailing list, however - we'd like to create a resource as useful as Perl Mongers. Chris = Chris Shiflett - http

Re: [PHP] session newbyness...

2004-12-13 Thread Chris Shiflett
things for you. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: PHP Security

2004-12-09 Thread Chris Shiflett
too comfortable. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Security

2004-12-08 Thread Chris Shiflett
, and an unnecessary risk is always a poor choice. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP Security

2004-12-08 Thread Chris Shiflett
/image.php/foo.jpg Another one that I've seen referenced frequently (especially back when this was a larger and more common problem) is this: http://example.org/image.php?iesucks=foo.jpg Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook

Re: [PHP] Re: PHP Security

2004-12-08 Thread Chris Shiflett
different than blind paranoia. If this perspective were applied to HTML forms, no one could use them. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http

Re: [PHP] PHP Security

2004-12-07 Thread Chris Shiflett
frequently write about. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Zend Training requirements

2004-12-03 Thread Chris Shiflett
that training for the use of Free/Open Source Software would require win2k/xp. Yes, I agree. If you can manage to work around this hassle, I think you'll find the training to be worth it. I hope so. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's

Re: [PHP] $_POST['xxx'] = blabla ?

2004-11-23 Thread Chris Shiflett
Maybe a daft question but why would you like to check for a specific value? Can you give an example when this is a good thing to do? You might have two submit buttons, where you want to take a different action depending upon which one the user clicks. Chris = Chris Shiflett - http

Re: Re[2]: [PHP] include files, .php or .inc ?

2004-11-22 Thread Chris Shiflett
this, whether by choice or due to some factor you cannot control, you're going to have to accept that it is a security risk, regardless of the name. I know you both agree, but I want to make sure this point isn't lost. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Chris Shiflett
someone in the middle of converting from tabs to spaces. I've basically decided to switch for two reasons: improved precision over formatting and consistency with other major open source projects. This doesn't mean spaces are best for everyone, but that's my reasoning. Chris = Chris Shiflett

Re: [PHP] Tabs or Spaces?

2004-11-21 Thread Chris Shiflett
matter. Of course, if you're to the point where the difference is important to you, you're to the point where you should figure out how to use APC or something. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming February 2005

Re: [PHP] Sequrity without HTTPS?

2004-11-18 Thread Chris Shiflett
--- Peter Lauri [EMAIL PROTECTED] wrote: Can someone from outside set a $_SESSION variable with some hacker techniqe? For all practical purposes, no. Session data is kept on the server and therefore less exposed and less vulnerable than other data. Chris = Chris Shiflett - http

Re: [PHP] Re: Sequrity without HTTPS?

2004-11-18 Thread Chris Shiflett
--- Peter Lauri [EMAIL PROTECTED] wrote: If you use the Autority HTTP that pops up a login window by default, is that safe against listeners? Assuming you mean HTTP Basic Authentication, it is not encrypted, so it is not safe from snooping. Chris = Chris Shiflett - http://shiflett.org

Re: [PHP] Is Perl faster than PHP?

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

Re: [PHP] Calling a C program from php

2004-11-11 Thread Chris Shiflett
--- Rayan Lahoud [EMAIL PROTECTED] wrote: does anybody knows how to call a C function from a php code? Try this: http://pear.php.net/package/Inline_C Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming

Re: [PHP] Sessions with session.use_only_cookies

2004-11-07 Thread Chris Shiflett
topics, but luckily cookies are one of those. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming February 2005http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] SQL-Injection, XSS and Hijacking

2004-11-05 Thread Chris Shiflett
reason is equally as strong. Hope that helps. Thanks for appreciating my work. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming February 2005http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] SQL-Injection, XSS and Hijacking

2004-11-03 Thread Chris Shiflett
/php-security.pdf That doesn't cover everything, of course, but it covers those things I have chosen as most important when I only have three hours to talk about security concerns. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams

Re: [PHP] Re: An easier way? $_POST[] = $_SESSION[]

2004-11-01 Thread Chris Shiflett
exceed it in a single bound, and your whole site would stop working. Greg++ :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming January 2005 http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net

RE: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread Chris Shiflett
: http://www.php.net/array Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming January 2005 http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Chris Shiflett
ever heard... Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming January 2005 http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Chris Shiflett
, and even then there can be problems (you accidentally decrement a variable twice before evaluating it again, so that it goes from 1 to -1 and continues to evaluate as true forever). In short, complexity breeds problems, regardless of how smart you are. Chris = Chris Shiflett - http

Re: [PHP] Command Line Script

2004-10-30 Thread Chris Shiflett
ideas on how to pass the password when it's prompted? Yes, you have to use a language like Expect. If you want to stick with PHP, you're better off using an ssh key, so that you're not prompted for the password. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security

Re: [PHP] Session and validation

2004-10-30 Thread Chris Shiflett
else to find it. If we know where it is, why not just return it? That's the basis of my opinion. :-) Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming January 2004 http://httphandbook.org/ -- PHP

[PHP] php.ini Path at Runtime

2004-10-30 Thread Chris Shiflett
Does anyone know whether there is a way to specify the path of php.ini within httpd.conf or something similar? There is an environment variabled named PHPRC that is almost useful enough, but it must exist within the environment used to start Apache (e.g., using SetEnv in httpd.conf won't work -

Re: [PHP] php.ini Path at Startup

2004-10-30 Thread Chris Shiflett
--- Jonel Rienton [EMAIL PROTECTED] wrote: There was a very recent discussion about this, look up the archive from the past week or 2. If you're referring to the responses to this question: http://marc.theaimsgroup.com/?l=php-generalm=109907804615206w=2 then it's a different issue. If you're

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
a relative one. So, the first thing to try is using a proper Location header: header('Location: http://example.org/success.php'); Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: As I have pointed out in a previous thread and Mike has pointed out in this thread you MUST use session_write_close() before you do a redirect. Are you certain? If this is true, it is a bug in PHP, and we should fix it. Chris = Chris

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
(from the session_id() call) changing for every page. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
a redirect. Everything else in the email just gets in the way and makes it harder to follow. That's all. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List

Re: [PHP] Content-Type header required for POST?

2004-10-25 Thread Chris Shiflett
? Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Content-Type header required for POST?

2004-10-25 Thread Chris Shiflett
why I used the word request. :-) You'll have a very tough time getting an answer if you can't explain your question. That's the only helpful hint I can provide. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004

Re: [PHP] Zend PHP Certification test

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

Re: [PHP] Tutorials for Maintenance of State

2004-10-17 Thread Chris Shiflett
level of security to users whose preferences allow them. Because they were created with the specific purpose of adding state to HTTP, they tend to address this problem the best. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming

Re: [PHP] Header sending

2004-10-16 Thread Chris Shiflett
--- Pahlevanzadeh Mohsen [EMAIL PROTECTED] wrote: I need to post a header without Form tag. The header() function can be used to add a header to the response: http://www.php.net/header I'm not sure what this has to do with a form tag... Chris = Chris Shiflett - http://shiflett.org/ PHP

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Shiflett
time script3.php is requested. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Help with sessions problem please

2004-10-14 Thread Chris Shiflett
--- John Holmes [EMAIL PROTECTED] wrote: header('Location: http://www.example.org/script2.php?.SID); He is human after all. :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org

Re: [PHP] Tutorials for Maintenance of State

2004-10-12 Thread Chris Shiflett
://shiflett.org/articles/the-truth-about-sessions Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Sessions and Mozilla (Firefox)

2004-10-12 Thread Chris Shiflett
of curiosity, why would you want a single user to have two separate sessions? Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Securing Servers

2004-10-09 Thread Chris Shiflett
to dedicate to the server, I'm stuck with using my personal computer as the server as well and all my programs/games need Windows. You cannot provide reasonable security with this approach, in my opinion. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP

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