Re: [PHP] if test

2007-06-17 Thread Stut
Jochem Maas wrote: jekillen wrote: Hello again; does the following test pass if the file is successfully included: if( include( some file ) ) or does it pass with: if( ! include( some file ) ) have you tried it? Or, better yet, looked in the manual? http://php.net/include -Stut -- http

Re: [PHP] Controlling project version

2007-06-17 Thread Stut
bversion, and I've never looked back. However, I am now looking forward and have recently started playing with Git. Git is something of a paradigm shift when compared to "traditional" source control, but the way it works is starting to make a lot of sense to me. I suggest you inclu

Re: [PHP] Controlling project version

2007-06-17 Thread Stut
CVS, and it does require that you think about your repositories in a slightly different way, but to me it's a lot more flexible and it's definitely more efficient than CVS. But it's all down to personal choice. -Stut -- http://stut.net/ -- PHP General Mailing List (http://

Re: [PHP] Session persistent objects

2007-06-18 Thread Stut
Markus Feier wrote: In a browser-application, whenever receiving a GET, php will have to create all involves objects. I wonder, if there is a way to keep php objects, including all actual propertys, during a whole session Yeah, erm, store the in the session. Too obvious? -Stut -- http

Re: [PHP] Session persistent objects

2007-06-18 Thread Stut
and __wake methods to dispose of and recreate the resources. Check the manual for full details. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generating an html intro text ...

2007-06-18 Thread Stut
the HTML. That should close off any open tags and give you a properly formed snippet. Or you could implement the same functionality yourself quite easily, and it doesn't need to be well-formed HTML but you would need to check for tags that don't need closing (img, br, etc). -St

Re: [PHP] generating an html intro text ...

2007-06-18 Thread Stut
Jochem Maas wrote: Stut wrote: I'm sure Tidy could be employed to do this job. Grab your target length of text, backtrack until you find < or >. If it's a < then chop that bit off. Then give it to Tidy to fix the HTML. That should close off any open tags and give you a prop

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
ike you have it then you're parsing of it is a little more involved, but still fairly simple. What are you actually trying to do? Where will $userparam actually come from? There is almost certainly a better way to do this, but without knowing all the details I'd be peeing in the wind. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Keeping sessions

2007-06-19 Thread Stut
can be problematic. I believe the cluster support in Zend Platform includes this functionality, so depending on your budget that may also be an option. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
Richard Davey wrote: Hi Stut, Tuesday, June 19, 2007, 10:16:02 AM, you wrote: If you can't control $userparam and it has to look like you have it then you're parsing of it is a little more involved, but still fairly simple. What are you actually trying to do? Where will $userpara

Re: [PHP] Keeping sessions

2007-06-19 Thread Stut
Richard Heyes wrote: Stut wrote: Jorge González wrote: In a web server cluster, how do you do guys keep the php sessions? I mean, with Apache and mod_proxy_balanced you could have a cluster with apache backend webservers but If a user is logged into an php app then this user goes always to

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
Richard Davey wrote: Hi Stut, Tuesday, June 19, 2007, 12:09:12 PM, you wrote: If you have no control over what the fields in the form will be, what are you doing with the data? Surely if you're writing logic that requires you to know what the fields are called, you need to have control

Re: [PHP] Keeping sessions

2007-06-19 Thread Stut
y what I suggested. Just wanted to make sure there wasn't another way I wasn't aware of. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
Richard Davey wrote: Hi Stut, Tuesday, June 19, 2007, 1:16:54 PM, you wrote: The problem is finding a way to expand the input name (which is a string) into a format that $_POST can be searched for. Or do the reverse, iterate through $_POST to find a match for the input name and get that value

Re: [PHP] Keeping sessions

2007-06-19 Thread Stut
e that any PHP script can override both of these options. Just to clarify, you're building a shared hosting system that load balances all sites across a cluster of web servers? If not, please explain what it is you're actually trying to do. -Stut -- http://stut.net/ -- PHP Genera

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
Richard Davey wrote: Hi Stut, Tuesday, June 19, 2007, 1:49:53 PM, you wrote: Very nice, thank you. I was hoping there would be a way to do it without resorting to eval(), but if even you can't figure out how, I'm not going to waste any more time trying to either :) You probabl

Re: [PHP] Keeping sessions

2007-06-19 Thread Stut
Jorge González wrote: Stut escribió: Jorge González wrote: Ok, you both are right but not what I need because web servers is for shared hosting with PHP then each user choose the way to develop their apps. Then one user maybe store sessions in DB but another one not. This should be on Apache

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
uot; not "bob" Look at the output a little closer... I'm not sure who's output you are referring to, but while you're making sense as a comment to a competely different question, it's not relevant to this question. -Stut -- http://stut.net/ -- PHP General M

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Richard Davey wrote: Hi Jim, Tuesday, June 19, 2007, 5:06:47 PM, you wrote: DON'T USE SINGLE QUOTES IN YOUR NAME="" ATTRIBUTE Hate to piss on your bonfire but a single quote is a perfectly valid (if somewhat stupid choice of

Re: [PHP] Comparing string to array

2007-06-19 Thread Stut
that may or may not have any values set? Correct? Seriously, read the rest of the damn thread before trying again. As an example of how far off you are... $username has never appeared in this thread until you just said it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.p

Re: [PHP] Force zero numbers on a integer

2007-06-19 Thread Stut
[EMAIL PROTECTED] wrote: I have a integer that is submitted by the user and i need it to always contain 5 digits. If the user submitted 45, i need it to be 00045. If the user submitted 4595, i need it to be 04595. How can i do this? $val = str_pad(intval($val), 5, '0', STR_PAD_LEF

Re: [PHP] passing sessions with header()

2007-06-19 Thread Stut
Or, if you already have a querystring... header('Location: http://domain.com/dir/script.php?a=b&;'.SID); -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing sessions with header()

2007-06-19 Thread Stut
John wrote: Just stick it on the end of the URL... I'd like to keep it out of the URL if possible... In that case you don't have a problem. If the session ID is being passed in a cookie then it will survive redirects. -Stut -- http://stut.net/ -Original Message-----

Re: [PHP] PHP error catching

2007-06-20 Thread Stut
t now" or something similar) Depends what the error is. See http://php.net/set_error_handler for details. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date

2007-06-20 Thread Stut
Ron Piggott wrote: How do I break $start_date into 3 variables --- 4 digit year, 2 digit month and 2 digit day? $start_year = ; $start_month = ; $start_day = ; Depends what $start_date looks like. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] func_$var() in PHP4?

2007-06-22 Thread Stut
ish this with PHP4? $abc = new ABC(); $var = a; // <-- shouldn't this have quotes?? $f = 'func_'.$a; $result = $abc->$f(); // Line 17 -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Stut
lps a great deal if context is built into the messages. In my opinion these are the reasons why top posting is bad etiquette. It devalues the usefulness of the discussion. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP not posting

2007-06-24 Thread Stut
ll me that... ...you need to show us your code before we can have any chance of helping. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Byte conversion

2007-06-25 Thread Stut
ing to find 0xA7 followed by 0x51. Your ported code is not. Try this... $buffer = file_get_contents('Dining_Room.rti'); $count = strlen($buffer); for ($x=0; $x < $count; $x++) { $char1 = substr($buffer, $x, 1); $char2 = substr($buffer, $x+1, 1); echo $char1; if ($char

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread Stut
emory overhead since buffered content remains in memory until flushed. Indeed, but memory is cheap and you're likely to run out of memory for other reasons way before output buffering causes it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
= 0; $count++; switch ($count) { case 1: return 'bitten'; case 2: return 'shy'; } return ''; } -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 Brain Teasers

2007-06-27 Thread Stut
be... function x() { static $count = 0; $count++; switch ($count) { case 1: return 'bitten'; case 2: return 'shy'; } return ''; } -Stut Probably a more accurate solution would be :- function x() { static $

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] ?> [/snip] Ooops, typo; $return($i); ?? You sure about that one? -Stut -- http://stut.net/ } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return here and what is the least amount of code you can do it in? I'm not sure here, but are you

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] [snip] $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return here and what is the least amount of code you can do it in? I'm not sure here, but ar

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
Jay Blanchard wrote: [snip] [snip] $return($i); ?? You sure about that one? [/snip] *applause* We have a thinker here ladies and gentlemen! OK Stut, for the $10,000 bonuswhat should you return here and what is the least amount of code you can do it in? I'm not sure here, but ar

Re: [PHP] Re: PHP Brain Teasers

2007-06-27 Thread Stut
= $i == 'think' ? 'am' : $i; The spec doesn't say what $i becomes if it's not think. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bit-size of machine

2007-06-27 Thread Stut
Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type A bit is a bit is a bit. It's not a different size on different systems. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Bit-size of machine

2007-06-27 Thread Stut
Jochem Maas wrote: Stut wrote: Shekar Iyer wrote: How can one find the bit-size of the system on which PHP is running. php_uname() does not return bit type A bit is a bit is a bit. It's not a different size on different systems. ho ho ho stut :-) I think he's looking for the 

Re: [PHP] Include images in php file

2007-06-28 Thread Stut
h embedded image even when you are only going to use one. Put simply, it's a rediculous way to approach the problem. I suggest you explain why there is this restriction - there may be a better way to do it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Stut
gt;CONFIG = Configuration::getInstance(); $this->establishConnectionSettings(); $this->connect($this->getHost(), $this->getUser(), $this->getPass(), $this->getName); I'm assuming $this->getName should have () on the end. This is probably why it'

Re: [PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Stut
NCE)) { self::$INSTANCE = new Database(); } return self::$INSTANCE; } Also, this is a static method so there is no $this available. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem extending mysqli - "No database connected"

2007-06-29 Thread Stut
ds me of a saying about workmen and their tools. -Stut -- http://stut.net/ On 6/29/07, Stut <[EMAIL PROTECTED]> wrote: Lee PHP wrote: > I have a class that extends msyqli that AFAIK can connect to the > database, but gives me an error when I try and query it. Here's my > clas

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Stut
unsubscribed to PHP lists various times with several addresses and have never had any issues. I call PEBKAC. -Stut -- http://stut.net/ Stut wrote: -Patrick wrote: Don't be jackasses - I specifically stated "I have tried to unsubscribe" What does that mean to you? That I just

Re: [PHP] simple OCR in php

2007-06-30 Thread Stut
dependant on each other. Is it becoming complex or are you over-complicating it? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Anybody had luck compiling memcache with php6 ?

2007-07-02 Thread Stut
by contacting the maintainer of that extension. Failing that the internals list may be able to help, but that should be a last resort. -Stut -- http://stut.net/ Cathy Murphy wrote: I am trying to compile memcache 2.1.2 with php6 , but getting errors . Anybody had luck with this? Thanks

Re: [PHP] Re: PHP vs Delphi Comparison?

2007-07-03 Thread Stut
ect that Delphi adds to Pascal, and the control library, are not really relevant to any sensible comparison. However, as far as the control library goes the closest thing PHP has would be PEAR. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how PHP is batter?

2007-07-03 Thread Stut
DE, Visual Studio Web Developer Express Edition is available for free... http://msdn.microsoft.com/vstudio/express/vwd/ Stop 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] how PHP is batter?

2007-07-03 Thread Stut
Robert Cummings wrote: On Tue, 2007-07-03 at 14:52 +0100, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything

Re: [PHP] how PHP is batter?

2007-07-03 Thread Stut
Andrei wrote: Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything to develop ASP.net applications. And if you fee

Re: [PHP] how PHP is batter?

2007-07-03 Thread Stut
Edward Vermillion wrote: On Jul 3, 2007, at 8:52 AM, Stut wrote: Andrei wrote: Muhammad Hassan Samee wrote: ASP.net VS PHP? how PHP is batter? . In short words it's not Micro$oft and you don't need to buy stuff to develop in it. You have never needed to buy anything to devel

Re: [PHP] PHP Brain Teasers

2007-07-03 Thread Stut
0; for($i = 0; $i < $lawyers; $i++){ eliminateEsquire($i); } Shakespeare has his day in code! Ha! Nice "The first thing we do, let's kill all the lawyers." Except that code technically copies all the lawyers and then kills the copy. But that's probably being over

Re: [PHP] Re: spliting the elements in array

2007-07-04 Thread Stut
$line) == 0) continue; $names[] = array_shift(explode(' ', $line, 2)); } -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: developer seeking document writer

2007-07-04 Thread Stut
the many unpopular "frameworks" out there. Predictions on a postcard...not! Adel: I suggest you document with phpdoc comments. They don't take much effort to write and maintain as you're coding and they can be processed in a variety of ways to create documentation files.

Re: [PHP] PHP Brain Teasers

2007-07-04 Thread Stut
tedd wrote: $chickens = 1000; $roost = 0 $home = false; while ($chickens != $roost) { $chickens--; $roost++; } $home = true; The chickens have come home to roost. class Here { private $chickens; } -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: php security books

2007-07-04 Thread Stut
on? There's no need for that without justification. Please justify that comment. -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 Brain Teasers

2007-07-04 Thread Stut
Colin Guthrie wrote: Stut wrote: class Here { private $chickens; } -Stut What you do in your private live with chickens is a mystery to us all Stut.. :p "Nobody 'ere but us chickens." -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Stut
ms with PHP we're more than happy to help. If you need help designing your DB schema to solve your problem then you should probably be looking elsewhere. * As a language I see nothing that PHP lacks that would prevent it from being used in "Real World business solutions" (since

Re: [PHP] NAT Traversal

2007-07-05 Thread Stut
en if you could it wouldn't do you any good. Think about what NAT does and you'll realise why. As for firewalls... if there was a way around it there'd be no point in having the firewall. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] NAT Traversal

2007-07-05 Thread Stut
ighly unlikely. So even if you could get my local IP it would not be of any use to you. Why don't you tell us what you are actually trying to do - there may be a better way to do it. -Stut -- http://stut.net/ On 7/5/07, *Stut* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wro

Re: [PHP] NAT Traversal

2007-07-05 Thread Stut
her that's as a cookie or by passing it back and forth with every request. I suggest you check out how some of the more popular open source ecommerce projects handle this, but don't necessarily take what they do as the "best" way to do it. -Stut PS. For someone with

Re: [PHP] Magis_qoutes + linux + smarty

2007-07-05 Thread Stut
questions. Try one of the smarty mailing lists... http://smarty.php.net/resources.php?category=7 -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Real-World BUSINESS Problem

2007-07-05 Thread Stut
people tell me they're the best choice for anything BUSINESS. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] housekeeping program

2007-07-05 Thread Stut
7? If the server is rebooted, how to make this housekeeping program automatically start? Depends on the operating system. However, this has nothing to do with PHP so you really ought to be asking on a more appropriate list. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.ph

Re: [PHP] Where does PHP look for php.ini??

2007-07-06 Thread Stut
d line, or phpinfo() in a SAPI script will tell you where it expects to find it, as well as whether it did find it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About Fraud Prevention

2007-07-10 Thread Stut
Kelvin Park wrote: I'm trying to make a program with PHP, that prevents ecommerce fraud orders. Technically, what's the most effective way to prevent fraud orders on e-commerce web sites? Give everything away for free. -Stut -- http://stut.net/ -- PHP General Mailing

Re: [PHP] Array Question

2007-07-11 Thread Stut
n partial_in_array($needle, $haystack) { if (!is_array($needle)) { $needle = array($needle); } You can reduce the above statement to the following: $needle = (array)$needle; Conversion to array creates an array with one element... the value converted. Without raising a notice? -Stut

Re: [PHP] Array Question

2007-07-11 Thread Stut
Robert Cummings wrote: On Wed, 2007-07-11 at 15:52 +0100, Stut wrote: Robert Cummings wrote: On Wed, 2007-07-11 at 09:46 +0100, Robin Vickery wrote: On 11/07/07, kvigor <[EMAIL PROTECTED]> wrote: Is there a php function similar to in_array that can detect if a "partial value"

Re: [PHP] Array Question

2007-07-12 Thread Stut
e (and in terms of cycles I can't see this saving much), buy faster/more hardware - it's far cheaper than developer time!! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array Push question

2007-07-12 Thread Stut
Either you already know the key or you don't. If you're just trying to append to the array you can do that with the following syntax... $Rows[] = array('test' => 'this is a test'); -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array Push question

2007-07-12 Thread Stut
Zoltán Németh wrote: 2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta: John Comerford wrote: Hi Folks, Is there a better way of doing the following: $Rows[] = array(); $currentRow = count($Rows) - 1; $Rows[$currentRow]['test'] = "this is a test"; Specifically

Re: [PHP] Single Quote in String functions

2007-07-12 Thread Stut
Sancar Saran wrote: I cannot do any operation wiht single quote like explode("'",$strContent); Did I miss someting ? In what way "can't"? What happens / doesn't happen? -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Array Push question

2007-07-12 Thread Stut
M. Sokolewicz wrote: Stut wrote: Zoltán Németh wrote: 2007. 07. 12, csütörtök keltezéssel 10.28-kor Stut ezt írta: John Comerford wrote: Hi Folks, Is there a better way of doing the following: $Rows[] = array(); $currentRow = count($Rows) - 1; $Rows[$currentRow]['test'] = "

Re: [PHP] URLs

2007-07-12 Thread Stut
n? Is this done through PHP or is this a server setting? Thanks in advance! I do this under Apache with the MultiViews option. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bandwidth and Mail statistics

2007-07-12 Thread Stut
Have you searched the list archives? 2) Have you Googled? 3) Have you MSN'd? 4) Have you actually tried anything yet? -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 Brain Teasers

2007-07-12 Thread Stut
you born before they invented the chimney? I wasn't born silly-ass, I was hatched. >:) As in "I've hatched a Cummings plan" ?? ;) -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can't open file

2007-07-12 Thread Stut
;re using and a more detailed description of what you're trying to achieve and what's actually happening. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] can't open file

2007-07-12 Thread Stut
Anugrah Widya wrote: Stut wrote: Anugrah Widya wrote: dear php developer, i have weird situation here, i can't create a file in 777 mode directory and stay in same server, is this a bug ?? fyi. i'm using fc6, and php 5.1.6 I'm not sure I understand what the problem is.

[PHP] The end of PHP4 is nigh!

2007-07-13 Thread Stut
In case anyone hasn't seen it there is an announcement regarding the future support for PHP4 on the PHP website. If you're running PHP4 you *need* to read it. http://php.net/ -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Alter an Array Key

2007-07-14 Thread Stut
be on the safe side. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] acerca de extensiones SQL Server

2007-07-14 Thread Stut
ting the MSSQL extension installed. -Stut -- http://stut.net/ On Sa, Jul 14, 2007 at 10:39:40 -0400, Lic. Eduardo R. Hern?ndez Osorio wrote: Hi: I need use the SQL extension on PHP to connect to any SQL Server database. How I configure PHP on Linux to use that extension? I use debian wi

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Stut
still refuse to use Windows, even for free... Pirated Ubuntu? I hope that was supposed to be funny. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unlink file older then 7 days

2007-07-16 Thread Stut
[EMAIL PROTECTED] wrote: How would I use fileatime to check if the file is older then 7 days? You want filemtime not fileatime. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unlink file older then 7 days

2007-07-16 Thread Stut
the age of all files". The fileatime function will return when the file was last accessed. Accessing a file is not usually deemed to affect its age, modifying it is. The filemtime function is what the OP wants. -Stut -- http://stut.net/ On 7/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: [PHP] html emails and plain text dectection

2007-07-16 Thread Stut
will correctly extract the right one. AFAIK phpmailer supports doing this but you'll have to check their documentation for details. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Stut
that correct? If so you should really read up on the history of that site. I'm not defending what they do, but don't expect it to go anywhere - it's proven several times to be untouchable and is likely here to stay for a very long time. -Stut -- http://stut.net/ -- PHP General Mail

Re: [PHP] no default value

2007-07-17 Thread Stut
nforces such a requirement, but you can get some of the way there by enabling the display of notices which will tell you whenever a variable is used without being initialised. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Stut
op it or move it off-list if people really really want to continue with it. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Stut
s infringement. Stealing is wrong m'kay! Piracy is evil m'kay! Copyright theft doesn't exist m'kay! Copyright infringement is illegal m'kay! Now please let's drop this discussion because it's one of those where people will never reach agreement, it'll jus

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Stut
Larry Garfield wrote: Artificially created by the law, yes. All laws are artificial. I really don't know what you're trying to get at with this. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] no default value

2007-07-18 Thread Stut
tedd wrote: At 1:46 PM +0100 7/17/07, Stut wrote: ... but you can get some of the way there by enabling the display of notices which will tell you whenever a variable is used without being initialised. How? Look in php.ini for error_reporting. With it enabled if you try to use a variable

Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Stut
tedd wrote: At 10:26 PM +0100 7/17/07, Stut wrote: tedd wrote: Nope, I'm just saying that if you want my work, pay for it. If you get my work without paying, then you're stealing. You know, this is a pretty simple and obvious concept. I can imagine anyone arguing about it. -sn

Re: [PHP] repetition of tedious references

2007-07-18 Thread Stut
quot;" ? $variable : "*"; } The isset is redundant here. It's been passed as an argument so it definitely exists. -Stut -- http://stut.net/ - Original Message - From: "Olav Mørkrid" <[EMAIL PROTECTED]> To: "PHP General List" Sent: W

Re: [PHP] Re: Encrypted Mail

2007-07-18 Thread Stut
hp.net/unsub.php Rut-roh, Reorge! Rooks rike Andrei rot a rirus! Probably not. More likely someone with Andrei in their address book or an email from/to him has one. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error on installing under Windows Vista leads to inability to uninstall 5.2.3

2007-07-18 Thread Stut
System: php-5.2.3-win32-installer.msi The new Windows installer has a maintainer - can't recall his name. Probably the best way to find them would be to search the archives of the internals list for the discussions that went on while he was creating it. -Stut -- http://stu

Re: [PHP] Re: Pirate PHP books online?

2007-07-21 Thread Stut
t it is not a natural law. In Germany, there is. Get up to 250 KPH and the speed limiter kicks in. It also almost kicks you out of your seat. If you can't see that that's also an artificial limit and not an actual law of physics...!! -Stut -- http://stut.net/ -- PHP General Mailin

Re: [PHP] Better way to store data in memory?

2007-07-23 Thread Stut
nally I'd be doing this with a temporary file, using fseek to get around. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object instance and session

2007-07-24 Thread Stut
in your class to properly close and re-create the connection on each request. See here for more: http://php.net/oop5.magic -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Pirate PHP books online?

2007-07-26 Thread Stut
Man-wai Chang wrote: You could open a sample book in bookstores, scan the chapters to decide whether you are gonna buy it. Not even slightly relevant, but it made me think of this (seemingly neverending) thread. http://xkcd.com/294/ -Stut -- http://stut.net/ -- PHP General Mailing List

Re: [PHP] Authentication

2007-07-29 Thread Stut
s able to get it to work. To be perfectly honest, if I were doing it again I'd save the time and use IIS on the server - sooo much easier. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    3   4   5   6   7   8   9   10   11   12   >