Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Stut
understand why they're like this but it's yet another reason I stick to my own collection. Anyways, back to work. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Stut
Tony Marston wrote: Stut [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tony Marston wrote: Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] If you don't use a framework then obviously you are writing nothing but mickey mouse programs, and wouldn't

Re: [PHP] PHP with NNTP?

2008-04-17 Thread Stut
day. -Stut -- http://stut.net/ Stut wrote: On 16 Apr 2008, at 18:01, vester_s wrote: Is it possible to do it without using imap? I am trying to get the list of all users that is on the newsgroup, is that possible? I'm wondering what possible legitimate reason you could have for wanting

Re: [PHP] DateTime... What else ?

2008-04-17 Thread Stut
/datetime.installation.php Also note that it's experimental at the moment and therefore not recommended for production usage. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database abstraction?

2008-04-17 Thread Stut
'; } echo '/tr'; $first = false; } // Output the row here as above } -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP with NNTP?

2008-04-16 Thread Stut
not easy but it's possible) but until I know why you want it I'm not sharing. -Stut -- http://stut.net/ chris smith-9 wrote: vester_s wrote: Hi, Can anybody tell me how can php connect to NNTP to get the list of all users in the newsgroups? http://php.net/imap supports nntp

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Stut
and a temporary variable. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to determine which column matched

2008-04-12 Thread Stut
posters have pointed out a union is a lot more work for the DB engine to do when you could easily grab both fields in a single query. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php local application send mouse click

2008-04-12 Thread Stut
worked out and then port it over to PHP. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Return an Array and immediately reference an index

2008-04-12 Thread Stut
On 12 Apr 2008, at 15:18, Daniel Kolbo wrote: Stut wrote: On 12 Apr 2008, at 00:31, Daniel Kolbo wrote: Philip Thompson wrote: On Apr 11, 2008, at 5:33 PM, Daniel Kolbo wrote: I want to return an array from function and reference an index all in one line. Is this possible? In the code

Re: [PHP] php local application send mouse click

2008-04-12 Thread Stut
On 12 Apr 2008, at 15:25, Daniel Kolbo wrote: Stut wrote: On 12 Apr 2008, at 00:13, Daniel Kolbo wrote: In addition to the function i mentioned from winbinder wb_send_message() I have tried: I tried loading in the user32.dll extension from within the php.ini, this failed. I tried loading

Re: [PHP] PHP gives session error on remote server, but not local test machine [SOLVED]

2008-04-08 Thread Stut
it worked probably had an implicit buffer configured thus not caring about output before session_start(). -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string

2008-04-07 Thread Stut
John Taylor-Johnston wrote: $name = John Taylor; I want to verify if $name contains john, if yes echo found; Cannot remember which to use: http://ca.php.net/manual/en/ref.strings.php Either http://php.net/strpos or http://php.net/stripos if your version of PHP supports it. -Stut -- http

Re: RES: [PHP] string

2008-04-07 Thread Stut
the condition to evaluate to false. As per the documentation for strpos you should compare the value *and type* of the variable returned by strpos against false to check for non-existance. if (strpos($name, 'John') !== false) { ... } -Stut -- http://stut.net/ -Mensagem original- De

Re: [PHP] included file var scope

2008-04-07 Thread Stut
... $var = 'value'; ...declare them in the $GLOBALS array like so... $GLOBALS['var'] = 'value'; $var is then in the global scope regardless of where it was set. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] included file var scope

2008-04-07 Thread Stut
Evert Lammerts wrote: In index.php rather than declaring vars like so... $var = 'value'; ...declare them in the $GLOBALS array like so... $GLOBALS['var'] = 'value'; $var is then in the global scope regardless of where it was set. -Stut That would work. However I'm looking for a more

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Stut
of the display_errors configuration option. Look it up in the manual for details. To the OP: Check that your include_path contains '.', if it doesn't add it and see if that fixes your problem. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Stut
to be on the safe side, but that's just how I roll... If you're worried about is use DIRECTORY_SEPARATOR rather than hard-coding it. Writing portable code is not difficult in PHP. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Severe Security Issue

2008-04-01 Thread Stut
. Nice try. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Severe Security Issue

2008-04-01 Thread Stut
Daniel Brown wrote: Off-list. Hey, don't shoot me down just yet, Mr. Dallas. Gotta' make the n00bs sweat it out just a bit, y'know. ;-P Sorry mate, bit too quick on the trigger there. And less of the real name on the interweb please, I'm undercover! -Stut -- http://stut.net

Re: [PHP] Problem in a generate password function

2008-03-31 Thread Stut
://dev.stut.net/php/mario.php -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] does function extract() trim?

2008-03-28 Thread Stut
? No, but you can use http://php.net/array_map to do the trim before using extract. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] does function extract() trim?

2008-03-28 Thread Stut
On 28 Mar 2008, at 21:14, Lamp Lists wrote: - Original Message From: Stut [EMAIL PROTECTED] To: Lamp Lists [EMAIL PROTECTED] Cc: php General list php-general@lists.php.net Sent: Friday, March 28, 2008 4:02:27 PM Subject: Re: [PHP] does function extract() trim? On 28 Mar 2008, at 20:59

Re: [PHP] munge / obfuscate ?

2008-03-28 Thread Stut
in any way you choose as long as you check for duplicates before using it. If that's not the reason please explain exactly what you're trying to achieve rather than how you want to achieve it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Stut
into the future. We use a year on all our images, css and js files and it's lead to a drop of ~40% in traffic to the static servers. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Stut
On 19 Mar 2008, at 10:11, Per Jessen wrote: Stut wrote: On 19 Mar 2008, at 09:54, Per Jessen wrote: BTW, why does the browser do this for objects it has already cached? (assuming they're fresh/not expired) Because by default most web servers don't add expiry headers, so it's up

Re: [PHP] Is this the best way?

2008-03-19 Thread Stut
= ; } else { $cmd = ^^^; } Simple as that. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Stut
at the documentation for the database you're using or find a mailing list for it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Stut
as well. I thought that (*) meant look up everything and would have figured that (id) would have been quicker. Using count(*) can be optimised, as can count(1) which is what I usually use. Using a specific field is harder to optimise. -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Stut
jeffry s wrote: what about SELECT MAX(id) FROM table :) Won't give you the number of records, just the highest ID. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Double click problem

2008-03-19 Thread Stut
obviously need to change this to a document.getElementById. I'd also recommend you put some JS at the end of the page to enable the button and set its value otherwise users hitting the back button may be presented with a disabled button which is annoying. -Stut -- http://stut.net/ -- PHP General

Re: [PHP] selling gpl software?

2008-03-19 Thread Stut
the maintainer of the software to find out if there's a way to get it under a different license. If not look for an alternative that meets the customers requirements. -Stut [1] Yet to be sufficiently tested in court in most countries, but do you really want to take the risk?! -- http

Re: [PHP] fwrite/fclose troubles

2008-03-19 Thread Stut
, it'll help save both our sanity and yours! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fwrite/fclose troubles

2008-03-19 Thread Stut
Please keep replies on-list so everyone can benefit from the discussion. On 20 Mar 2008, at 00:13, Mark Weaver wrote: Stut wrote: RTFM. The fopen function (http://php.net/fopen) will return a stream resource. The fwrite (http://php.net/fwrite) and fclose (http://php.net/fclose - noticing

Re: [PHP] passing variables values using POST

2008-03-18 Thread Stut
the client? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about direct access to url

2008-03-18 Thread Stut
carefully about whether you actually need to hit that URL directly all the time or just during development. If it's just during development it would be better to disable any security features you've implemented, just make sure you re-enable them before you put it live. -Stut -- http://stut.net

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Stut
to track whether a form has been posted yet. If your application is well-architected you shouldn't need to worry about performance. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Stut
that page you'll process the form again, which could have any number of nasty effects from creating a duplicate row in the database to charging a credit card again. It also causes a potentially confusing confirmation request to be displayed to the user. -Stut -- http://stut.net/ -- PHP

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Stut
On 18 Mar 2008, at 15:33, Per Jessen wrote: Stut wrote: One minor thing... a 303 redirect is permanent. In this situation you want to use a 302 otherwise you could potentially cause problems with proxies. A redirect following a POST really should be a 303 - RFC 2616 : 10.3.4 303 See Other

Re: [PHP] Help for openssl_pkcs7_verify function

2008-03-17 Thread Stut
the \... openssl_pkcs7_verify(prova.p7m, PKCS7_BINARY ,prova.pdf, array(c:\\cert.pem) ); -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and #if

2008-03-14 Thread Stut
it, but such a beast is pretty simple to write but obviously is not evaluated at runtime. IIRC there was a project a while ago to build a macro language into PHP but I have no idea how far it got. I think it was being done under the GSoC initiative. Google should have more on that. -Stut -- http://stut.net

Re: [PHP] PHP and #if

2008-03-14 Thread Stut
() { echo arse 2\n; } } arse(); ? Oh, and top-posting is evil, please don't do it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and #if

2008-03-14 Thread Stut
On 14 Mar 2008, at 19:21, Eric Gorr wrote: On Mar 14, 2008, at 3:15 PM, Eric Gorr wrote: On Mar 14, 2008, at 3:10 PM, Stut wrote: On 14 Mar 2008, at 19:03, Eric Gorr wrote: Unfortunately, such things cannot be used to wrap functions. Erm, yes they can. Try it. ?php if (rand(0,1) == 0

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread Stut
machine. Since that cookie contains an email address and potentially a phone number it's much better to encrypt it and protect our users. Hope that answers your question. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread Stut
tedd wrote: At 4:01 PM + 3/13/08, Stut wrote: tedd wrote: Then, when the user returns, you simply check the cookie with what's stored in the dB and continue as before. If the check fails (no session id or it has been altered), then start again. Because that negates the whole point

Re: [PHP] maintaining [user] state without a session ...

2008-03-13 Thread Stut
tedd wrote: At 3:16 PM + 3/13/08, Stut wrote: tedd wrote: I question the reason why you would want to encrypt the cookie considering that before the user is going to be provided access to sensitive data that you require a password confirmation. The encryption seems to be an unnecessary

Re: [PHP] Comparing files

2008-03-12 Thread Stut
)); } 8-- Note that I would like to compare any type of files (text and binary). http://php.net/md5_file -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Stut
to the sort of instruction set you get in Assembler. I've been working with PHP for a very long time and I certainly don't claim to know everything about it or about every feature it has. Restrict your code in that way and you'll create a slow unmaintainable mess. IMHO. -Stut -- http

Re: [PHP] Re: /?feed=rss2

2008-03-11 Thread Stut
On 11 Mar 2008, at 07:09, John Taylor-Johnston wrote: Any other inspiration? Assuming the index is a PHP script stick this at the top... ?php if (!empty($_GET['feed'])) { header('404 Not Found'); echo 'Go away!'; exit; } ? -Stut -- http://stut.net

Re: [PHP] maintaining [user] state without a session ...

2008-03-11 Thread Stut
On 4 Mar 2008, at 13:57, Jochem Maas wrote: Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could give

Re: RES: [PHP] maintaining [user] state without a session ...

2008-03-11 Thread Stut
On 11 Mar 2008, at 13:31, Thiago Pojda wrote: -Mensagem original- De: Stut [mailto:[EMAIL PROTECTED] On 4 Mar 2008, at 13:57, Jochem Maas wrote: Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track

Re: [PHP] maintaining [user] state without a session ...

2008-03-11 Thread Stut
On 11 Mar 2008, at 14:26, Zoltán Németh wrote: 2008. 03. 11, kedd keltezéssel 12.34-kor Stut ezt írta: On 4 Mar 2008, at 13:57, Jochem Maas wrote: Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state

Re: [PHP] How do I search the archives?

2008-03-11 Thread Stut
what you're actually considering doing with that script before you go that. A little thought will probably put you off the idea quickly. To answer your question... http://marc.info/?l=php-generalr=1w=2 -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] send form by email with image spam controler

2008-03-09 Thread Stut
popular it's not worth the bad guys investing time to mod their bots to get past it. I had zero spam comments while that was in place. I've since switched to Wordpress and I have to say that Akismet kicks the crap out of any captcha in terms of effectiveness. -Stut -- http://stut.net

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 14:05, Jay Blanchard wrote: [snip] Stut mentioned a little while back that he avoids using the built-in session mechanism if at all possible, but still manages to track user state ... now I can think of a way or two that he might do that but I was wondering if any one could

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 16:11, Daniel Brown wrote: On Tue, Mar 4, 2008 at 11:09 AM, Stut [EMAIL PROTECTED] wrote: On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing

Re: [PHP] maintaining [user] state without a session ...

2008-03-04 Thread Stut
On 4 Mar 2008, at 15:52, Daniel Brown wrote: On Tue, Mar 4, 2008 at 9:10 AM, Stut [EMAIL PROTECTED] wrote: I'm working on an article for my website that describes exactly how I'm doing it and what the issues are but it's not ready yet. I'll let the list know when it's done. Is it done yet

Re: [PHP] mail() function HELP

2008-03-04 Thread Stut
message pretty clearly states that it's trying to connect to the server specified in those settings. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() function HELP

2008-03-04 Thread Stut
. Incidentally, it probably didn't like the Yahoo settings you used because that port is for SMTP over SSL which PHP doesn't support. -Stut -- http://stut.net/ - Original Message - From: Stut [EMAIL PROTECTED] To: Sofia Jacob (CA) [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday

Re: [PHP] Multiple sessions open at same time, is it possible?

2008-03-02 Thread Stut
the user from one or other simply unset that variable... unset($_SESSION['members']); unset($_SESSION['cart']); KISS. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple sessions open at same time, is it possible?

2008-03-02 Thread Stut
On 2 Mar 2008, at 15:28, Richard wrote: Stut a écrit : On 2 Mar 2008, at 14:49, Richard wrote: I would there for need to have two seperate sessions one for the cart, and one for the members area. And sometimes I will need to have them both open. Is this possible ? I've searched google

Re: [PHP] Multiple sessions open at same time, is it possible?

2008-03-02 Thread Stut
On 2 Mar 2008, at 15:59, Richard wrote: Stut a écrit : On 2 Mar 2008, at 15:28, Richard wrote: However, is there a way to limit the session stay alive time for just one variable ? If for example, if a user has not done anything in his members area for more than 30 minutes I would like

Re: [PHP] Multiple sessions open at same time, is it possible? [ Solved, thankyou !]

2008-03-02 Thread Stut
On 2 Mar 2008, at 16:32, Richard wrote: Stut a écrit : Just curious... why are you setting the password to an empty array? You'd probably be better off unset'ing it so you can use isset to check for it. Oh right ! :) Yes you're right about the array, I used it by mistake, as to reset

Re: [PHP] Guidance

2008-02-28 Thread Stut
bit of paper. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Stut
from being output to stdout. On my local machine here PHP does not output the shebang line. AFAIK it detects and strips it at the compilation phase. Have you tried it? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Stut
On 28 Feb 2008, at 11:40, Aschwin Wesselius wrote: Stut wrote: On 28 Feb 2008, at 11:30, Aschwin Wesselius wrote: Shelley wrote: Hi all, What do you think is the best way to display string 'abcdef' as 'fedcba'? $tmp = ''; $str = 'abcdef'; for ($i = strlen($str); $i = 0; $i--) { $tmp

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Stut
be initialised to strlen($str)-1 otherwise you start one character beyond the end of the string. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-28 Thread Stut
response. To unsubscribe, visit: http://www.php.net/unsub.php -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Stut
stuff, keep using spaces. Just hope you never change your mind. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-28 Thread Stut
to the FUD. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Are these Truthful Proof about PHP ??

2008-02-27 Thread Stut
it through Visual Studio in debug mode which instruments the code to such a degree that it's several magnitudes slower than a release build. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-27 Thread Stut
, learn by doing. It's served me well. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-27 Thread Stut
a software engineer rather than a web developer and would like a job in Windsor drop me a note. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-27 Thread Stut
On 27 Feb 2008, at 21:42, Daniel Brown wrote: On Wed, Feb 27, 2008 at 4:38 PM, Stut [EMAIL PROTECTED] wrote: [snip!] If anyone considers themselves a software engineer rather than a web developer and would like a job in Windsor drop me a note. Depending on how desperate you get, should

Re: [PHP] Guidance

2008-02-27 Thread Stut
On 27 Feb 2008, at 21:50, Shawn McKenzie wrote: Shawn McKenzie wrote: Stut wrote: I've interviewed more than my fair share of web developers who couldn't reverse an array without using array_reverse if their life depended on it. Sometimes it really does scare me! So my experience

Re: [PHP] Sometimes I wonder why I even started programming...

2008-02-27 Thread Stut
) = authentication(blah, blah, blah); -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Guidance

2008-02-27 Thread Stut
On 27 Feb 2008, at 23:25, Jochem Maas wrote: Stut schreef: I DID NOT!! It was him! I only schreef in private! On 27 Feb 2008, at 20:59, Daniel Brown wrote: So let this be at least a basic retort to those who don't consider web development real programming. Because you'd be surprised

Re: [PHP] checking for and enforcing https

2008-02-25 Thread Stut
On 25 Feb 2008, at 18:40, Rick Pasotto wrote: What is the best or recomended proceedure for making sure that a page is accessed only via a secure connection? What web server are you using? In my experience this is best done there rather than in PHP. -Stut -- http://stut.net/ -- PHP

Re: [PHP] Re: When to use design patterns?

2008-02-25 Thread Stut
: http://search.securityfocus.com/swsearch?query=joomlametaname=alldoc And the 280+ exploits when it was called Mambo: http://search.securityfocus.com/swsearch?query=mambometaname=alldoc Not disagreeing with you, but just to be clear Joomla is a fork of Mambo, not a rename. -Stut -- http

Re: [PHP] fail on preg_match_all

2008-02-21 Thread Stut
file, and your regex is basically pulling out each line. For the love of $DEITY learn about fgets and process each line one by one rather than loading in the whole file. It'll be a lot faster and won't suck your memory dry while it runs. -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] System errno in PHP

2008-02-20 Thread Stut
? It's pretty-much always a case of file not found or insufficient permissions, both of which you can check for before going near fopen. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] unable to unset reference

2008-02-20 Thread Stut
() but obviously I can't. I don't understand why you need to destroy the class instance to clear up member variables. Or am I not understanding your diction? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] www. not working

2008-02-20 Thread Stut
of the web existing long before that depending on your definition of the web. To me it's a way for people to share information. That would cover the BBS world which pre-dates LANs by some distance. Anyhoo, back to work. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] www. not working

2008-02-20 Thread Stut
was the last time you saw porn on one of them?!! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] System errno in PHP

2008-02-19 Thread Stut
for that function - it will tell you how to detect errors. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Stut
Petrus Bastos wrote: I'm testing on FreeBSD. I can use any command through system(), but the zip command doesn't works! I don't know why. Is zip installed? AFAIK it's not by default. Do a system('whereis zip'); to see. -Stut -- http://stut.net/ -- PHP General Mailing List (http

Re: [PHP] classes

2008-02-18 Thread Stut
? Show us some code. Chances are that you're blatting over the $myClassInstance variable, or are running into scope issues. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Stut
and not just the last line. I tend to use backticks for this. It would also help to add 21 to the end of the command so you get output to stderr as well as stdout. Finally, if it's still not working might I suggest you share your code. The problem may be more obvious if we have that. -Stut

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Stut
doesn't have execute permissions on the zip binary. There could be lots of reasons for that but you need to ask your sysadmin about it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending XML to MSIE7

2008-02-15 Thread Stut
should be able to put in your own XSLT that ensures the XML file is presented unchanged. Dunno if IE7 will obey it but certainly worth a try. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static variable in a class method

2008-02-14 Thread Stut
for creating a logical modular system with reusable components, and IMHO not using them indicates an engineer stuck in the dark ages of software development. But each to their own. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Trouble with PHP server script

2008-02-14 Thread Stut
such as phpMyAdmin. You might want to rethink your design from a security point of view. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static variable in a class method

2008-02-14 Thread Stut
Richard Lynch wrote: On Thu, February 14, 2008 4:28 pm, Stut wrote: Richard Lynch wrote: If a website is complicated enough to need a class hierarchy, then something is wrong in your Design. :-) :-) :-) I don't think anything ever *needs* a class heirarchy, but I wouldn't say using one

Re: [PHP] Unable to run my sample application from CakePHP

2008-02-14 Thread Stut
... Questions regarding specific frameworks should be directed towards the support resources for that framework. Check the Cake homepage for support details. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Per Jessen wrote: Stut wrote: Of course, processing power, network capacity and memory are all very cheap these days, so it's easy to put on the Microsoft hat and be wasteful. In my mind you're exchanging traffic over a local network (probably 1Gbps) for a less resilient load balancing system

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Per Jessen wrote: Stut wrote: There's no question of locking users to particular machines, nor of uneven distribution. LVS will distribute evenly or according to weights. Indeed, but you must see that making the decision of which server to use per request will result in a more even

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Per Jessen wrote: Stut wrote: Per Jessen wrote: mike wrote: Check out persistency in LVS for instance: http://www.linuxvirtualserver.org/docs/persistence.html i know persistence handling is an option in LVS, but i haven't seen the need to use it. i use LVS right now without even bothering

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Sancar Saran wrote: Hello On Tuesday 12 February 2008 13:39:19 Stut wrote: I'll be using memcache as a simple cache. I hate sessions and avoid them for anything but the most trivial sites. The main sites I work with no longer use sessions because they add a pointless layer of complexity to any

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread Stut
and harddisks pop every so often, but I have my doubts about memcached scaling to that level (please correct me if I'm wrong here, I have _no_ experience with memcached). Facebook. Digg. LiveJournal. That enough scalability proof for ya? If not there are plenty more where those came from. -Stut

Re: [PHP] Run Process in back ground

2008-02-11 Thread Stut
either change hosts or look at poking the message into an outgoing queue you implement yourself (file or db-based with a cron job to periodically process it). -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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