Re: [PHP] Re: Using Static Class Variables to Access Globally

2008-09-24 Thread Nathan Rixham
with read only option * * @author Nathan Rixham * @version 2 */ class lz { private static $lz = array(); private static $stored = FALSE; private static $readonly = TRUE; public $variables; private static function savelz($lz) { if( !self::$stored ) { self::$lz = $lz; self

Re: [PHP] Eclipse - PDT, prevent validation on some files

2008-09-24 Thread Nathan Rixham
Jochem Maas wrote: Sancar Saran schreef: Hello there, sorry to bugging the list and I hope finding the answer quickly. then STFW, or something? Today I watch a youtube video which showing eclipse pdt and I want to try. It was amazing, it was so advanced after kate and if I handle one

Re: [PHP] Google Checkout

2008-09-24 Thread Nathan Rixham
[snip] switched from Paypal to Google Checkout. [/snip] http://www.e-junkie.com/ does both.. google checkout + paypal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] abmeldung

2008-09-24 Thread Nathan Rixham
Stut wrote: On 24 Sep 2008, at 23:18, Ashley Sheridan wrote: On Wed, 2008-09-24 at 23:13 +0100, Stut wrote: Look at the bottom of this email... On 24 Sep 2008, at 16:10, Sascha Braun ! CEO @ BRAUN Networks wrote: unsubscribe No, lower... -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: PHP and SQL Server

2008-09-23 Thread Nathan Rixham
Andrew Ballard wrote: [snip] 4K limit on TEXTSIZE [/snip] As far as I was aware this was a PHP thing that can be changed in your php.ini [mssql.textlimit and mssql.textsize] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-23 Thread Nathan Rixham
Ashley Sheridan wrote: On Tue, 2008-09-23 at 21:23 +1000, hce wrote: Hi Ashley, The object tag is indeed working. It does not automatically play audio.mp3 from my home web server, but it does automatically play if I add an audio source value from a streaming server. Can you make it work to

[PHP] Re: $this-value VS $value

2008-09-23 Thread Nathan Rixham
uaca man wrote: Hello to all my fellow members of the PHP community. As a personal rule i always use $this in front of class members, but i always knew from others programing languages and i guess I just thought it was same in PHP that without $this keyword it should work just the same, however

Re: [PHP] Passing variables between pages

2008-09-22 Thread Nathan Rixham
tedd wrote: -Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. a! now I follow; and surely tedd what you say is indeed the best way of achieving this. cheers for taking

Re: [PHP] Passing variables between pages

2008-09-22 Thread Nathan Rixham
tedd wrote: At 2:47 PM +0100 9/22/08, Nathan Rixham wrote: tedd wrote: -Stut and Nathan: The problem was not how to pass variables between requests, but rather how to variables between pages -- as the subject line indicates. a! now I follow; and surely tedd what you say

[PHP] Re: Encrypt database table

2008-09-22 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: Hi, What methods do you guys use to keep a mysql table encryped, or well atleast a major part of it. Security is very important and I want to use a public and private key. Is GPG the only safe way? It's hell of an overhead using GPG on every col, even a very short

Re: [PHP] __autoload alternative

2008-09-22 Thread Nathan Rixham
Nathan Nobbe wrote: On Mon, Sep 22, 2008 at 2:54 AM, Shelley [EMAIL PROTECTED] wrote: Hi all, Is there any way to auto load a class without using __autoload() function? As I want to load some classes under different paths, and that caused redeclare of __autoload function. a lot of people

Re: [PHP] br was [PHP] Re: render html

2008-09-22 Thread Nathan Rixham
Jim Lucas wrote: Philip Thompson wrote: Nothing ever goes between br tags! There should never be a between regarding a br tag wbr / is an interesting one; and very rarely used -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Encrypt database table

2008-09-22 Thread Nathan Rixham
Boyd, Todd M. wrote: -Original Message- From: Micah Gersten [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 11:22 AM To: PHP General list Subject: Re: [PHP] Re: Encrypt database table You have the same worry of a DBA writing the root password on a post it note. In every

Re: [PHP] Re: Encrypt database table

2008-09-22 Thread Nathan Rixham
Boyd, Todd M. wrote: -Original Message- From: Nathan Rixham [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 12:23 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: Encrypt database table Boyd, Todd M. wrote: -Original Message- From: Micah Gersten [mailto:[EMAIL

Re: [PHP] Passing variables between pages

2008-09-21 Thread Nathan Rixham
tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every time.. And that's what you are missing -- it's

[PHP] Re: Problem with sorting

2008-09-21 Thread Nathan Rixham
Michelle Konzack wrote: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe*

Re: [PHP] Passing variables between pages

2008-09-21 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2008-09-21 at 20:39 +0100, Stut wrote: On 21 Sep 2008, at 18:13, Nathan Rixham wrote: tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's

Re: [PHP] Passing variables between pages

2008-09-20 Thread Nathan Rixham
tedd wrote: At 12:42 PM -0400 9/19/08, Dan Joseph wrote: On Fri, Sep 19, 2008 at 12:35 PM, tedd [EMAIL PROTECTED] wrote: At 12:22 PM -0400 9/19/08, Jason Pruim wrote: It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is discussing the differences in storing variables in

[PHP] Re: Version Control Software

2008-09-19 Thread Nathan Rixham
Maciek Sokolewicz wrote: David Lidstone wrote: [snip] smartSVN (www.syntevo.com) instead of TortoiseSVN. [/snip] cheers for that one; will give it a go; tortoiseSVN is 90% there but lacks something and as you say clutter's things up a bit too much. -- PHP General Mailing List

Re: [PHP] Adding encryption to passwords

2008-09-19 Thread Nathan Rixham
Per Jessen wrote: Thodoris wrote: So what do you think is the best way to use crypt, mcrypt, hash or perhaps md5 and what are really the differences because I am not sure if I get it right. We use md5 for that sort of thing. /Per Jessen, Zürich sha 256 is my prefered encryption, no

Re: [PHP] Re: header

2008-09-17 Thread Nathan Rixham
Jochem Maas wrote: Robert Cummings schreef: On Tue, 2008-09-16 at 21:18 +0100, Nathan Rixham wrote: Jim Lucas wrote: Robert Cummings wrote: On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: I also meant: define('PUBLIC_BASE_HREF' , 'http://php.net/') head base href=?php echo

Re: [PHP] Re: header

2008-09-17 Thread Nathan Rixham
Micah Gersten wrote: Wouldn't it be nice if in the $_SERVER array you could get the whole URL now that PHP has a parse_url function? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com off on a tangent.. I made this some time ago which is rather useful: class

[PHP] Re: Pear XML parser finding nothing in ATOM / Movable Type feed

2008-09-17 Thread Nathan Rixham
John Allsopp wrote: Hi I know nothing about Pear, so I don't know how to debug this: I've got a newly installed Movable Type blog with a couple of entries in it, and I just found from php.net the pear classes to parse an RSS feed, parser.php and rss.php, and this code from the PEAR site

Re: [PHP] Making array to string

2008-09-17 Thread Nathan Rixham
Eric Gorr wrote: On Sep 17, 2008, at 8:54 AM, Hunt Jon wrote: Hi, I'm new to PHP. I have an array that I would like to convert into a string. For example, I have array( 0 = Good morning, 1 = Good afternoon, 2 = Good evening, 3 = Good night ); Now I would like to convert the array to

[PHP] Re: Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Nathan Rixham
John Biroldi wrote: * Microsoft .NET Framework ( VB.NET or C#), ASP, JSP, Java, VBA, XML, XSLT, relational databases and concepts of object-oriented programming. hate to be the one to say the obvious.. but this is a *PHP* list -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Nathan Rixham
Vinny Gullotta wrote: What I want to do is find the top 10 servers where the column steps = iisreset. The following code works great except that the page is not displaying the servername in the 'Server Name' column of my results (nothing appears, the column is just blank). servername and

Re: [PHP] Re: PHP and MySQL SELECT COUNT (*)

2008-09-17 Thread Nathan Rixham
you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Nathan Rixham wrote: 6: vs ' when you use php will parse the enclosed string for variables, when you use ' it won't; so ' leads for faster code, and also encourages you to code strongly by closing strings

[PHP] Re: SQLExtendedFetch

2008-09-17 Thread Nathan Rixham
Liz Kim wrote: I've posted this already but I thought a new subject might help.. I have a script which connects to a MS SQL database, executes a query then displays the result. There are two identical Apache web servers and one MS SQL database server. When the script is ran on web server #1,

Re: [PHP] Web Project Leader -- Contract - San Francisco area

2008-09-17 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-09-17 at 14:49 -0400, Dan Joseph wrote: On Wed, Sep 17, 2008 at 2:28 PM, Jochem Maas [EMAIL PROTECTED] wrote: Robert Cummings schreef: On Wed, 2008-09-17 at 13:00 -0400, John Biroldi wrote: * Fluent in at least three of the

[PHP] Re: header

2008-09-16 Thread Nathan Rixham
Alain R. wrote: Hi, how in PHP can i create the similar header as following ? head base href=www.mywebsite.com /head thx. A. just incase everybody ese went down a complete tangent: head base href=?php echo $_SERVER['HTTP_HOST']; ? /head -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: header

2008-09-16 Thread Nathan Rixham
Alain R. wrote: Hi, how in PHP can i create the similar header as following ? head base href=www.mywebsite.com /head thx. A. just incase everybody else went down a complete tangent on this one head base href=?php echo $_SERVER['HTTP_HOST']; ? /head it's not nice, elegant, the *proper* way

[PHP] Re: GPG in PHP

2008-09-16 Thread Nathan Rixham
Emil Edeholt wrote: Hi! I have trouble executing gpg via php. GPG returns error code 127. I got like one google hit on that saying it had to do with open_basedir being on, it's off here. And anyway I would like to do this even if open_basedir was active. This is my test code (both return

Re: [PHP] Re: header

2008-09-16 Thread Nathan Rixham
tedd wrote: At 3:16 PM +0100 9/16/08, Nathan Rixham wrote: Alain R. wrote: Hi, how in PHP can i create the similar header as following ? head base href=www.mywebsite.com /head thx. A. just incase everybody else went down a complete tangent on this one head base href=?php echo $_SERVER

Re: [PHP] Re: header

2008-09-16 Thread Nathan Rixham
Robert Cummings wrote: On Tue, 2008-09-16 at 17:49 +0100, Nathan Rixham wrote: tedd wrote: At 3:16 PM +0100 9/16/08, Nathan Rixham wrote: Alain R. wrote: Hi, how in PHP can i create the similar header as following ? head base href=www.mywebsite.com /head thx. A. just incase everybody

Re: [PHP] __toString friends

2008-09-16 Thread Nathan Rixham
Jim Lucas wrote: Leurent Francois wrote: I was asking myself if there was a good reason __toBool // __toInt NOT been present in my favorite language, It is so coool beeing able to cast object as string resulting in a __toString() call I'll really love being able to class error extends

Re: [PHP] Re: header

2008-09-16 Thread Nathan Rixham
Jim Lucas wrote: Robert Cummings wrote: On Tue, 2008-09-16 at 18:13 +0100, Nathan Rixham wrote: I also meant: define('PUBLIC_BASE_HREF' , 'http://php.net/') head base href=?php echo PUBLIC_BASE_HREF; ? / /head and further thinking there has to be an easier / cleaner way of getting http

Re: [PHP] Readdir() question

2008-09-12 Thread Nathan Rixham
/12 Jochem Maas [EMAIL PROTECTED] Nathan Rixham schreef: Jochem Maas wrote: Nathan Rixham schreef: Stut wrote: maybe this is into coding standards and ethics.. but this may be acceptable: if( !defined('__DIR__') ) { define('__DIR__' , dirname(__FILE__)); } however realistically you'd have to do

[PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jason Pruim wrote: So, I am fighting with a problem function... I have used this function on a previous project and it worked just fine, so I'm not sure what changed... The only difference is that on this site, I'm using mod_rewrite to write all non-existent folder requests into a php file

[PHP] Re: check if a file is included

2008-09-12 Thread Nathan Rixham
clive wrote: I have a file called interceptor.php, which I would like to make use of in two ways 1. either call it directly from the browser or 2. included from another file I know I could use something like this to see if it was called via a url like http://www.site.com/interceptor.php :

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! ?PHP function notify_email($Record, $salesRepID) { echo in notify_email . PHP_EOL; require(defaults.php); echo already loaded and required

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say this: error_reporting( E_ALL ); at the top would help; + display_errors on in php.ini and problem

Re: [PHP] Re: Problem with function

2008-09-12 Thread Nathan Rixham
Jochem Maas wrote: Jason Pruim schreef: On Sep 12, 2008, at 9:34 AM, Nathan Rixham wrote: Nathan Rixham wrote: Jason Pruim wrote: On Sep 12, 2008, at 8:53 AM, Nathan Rixham wrote: Jason Pruim wrote: nothing obvious to me.. so debug more! [snip snip snip] have to say

Re: [PHP] The Best PHP Editor.

2008-09-11 Thread Nathan Rixham
jmatt wrote: Hi, I was using NVU to edit PHP but when I upload the index.php file back there will always be a slight error in disorientation. Example using NVU I edited the text just a bit then bam..The webpage became really funny What is the best to edit my PHP file? Thanks - Popular free

Re: [PHP] Readdir() question

2008-09-11 Thread Nathan Rixham
Stut wrote: On 11 Sep 2008, at 13:12, Ben Stones wrote: I'm going to make a small browser based file system for ease of small updates that I make frequently on my Website. First of all I want to loop all the files on the same directory and to tell PHP read the same directory, I think I'd need

Re: [PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-11 Thread Nathan Rixham
tedd wrote: At 5:37 PM +0100 9/1/08, Colin Guthrie wrote: Tom Chubb wrote: That's all way above my head, but I think I'll be able to understand it after a strong coffee! I should point out that this is really just trig and is only an approximate distance as the crow flies. Not even sure if

[PHP] Maps / Distance / GeoCoding [php/mysql]

2008-09-11 Thread Nathan Rixham
re: an earlier thread as promised here are some note's on geo-coding using mysql and php (and geoip and distance between points) also worth reading up on wiki about the great circle and associated content! (+openGIS) Won't make sense to all unless you're working with spatial data - if

[PHP] Re: Maps / Distance / GeoCoding [php/mysql]

2008-09-11 Thread Nathan Rixham
Nathan Rixham wrote: re: an earlier thread [snip] or you may just need this bit: distance = ACOS( SIN(Y(g.geopoint)*pi()/180)*SIN(Y(l.point)*pi()/180) +COS(Y(g.geopoint)*pi()/180)*COS(Y(l.point)*pi()/180) *COS((X(l.point)-X(g.geopoint))*pi()/180))*6372.795 used to calc

Re: [PHP] Readdir() question

2008-09-11 Thread Nathan Rixham
Jochem Maas wrote: Nathan Rixham schreef: Stut wrote: maybe this is into coding standards and ethics.. but this may be acceptable: if( !defined('__DIR__') ) { define('__DIR__' , dirname(__FILE__)); } however realistically you'd have to do this in every file and nto just in one include

Re: [PHP] ASCII Captcha

2008-09-10 Thread Nathan Rixham
tedd wrote: At 11:14 AM +0200 9/1/08, Nisse =?utf-8?Q?Engstr=C3=B6m?= wrote: On Fri, 29 Aug 2008 16:11:01 -0400, tedd wrote: http://webbytedd.com/aa/assorted-captcha/ Some of these are really cool. Assuming they are actually working, that is... -snip- (bunch of errors) I managed 1 out of

[PHP] pain

2008-09-10 Thread Nathan Rixham
Not sure why I'm sharing this; but it could be a gotcha ?php class testBase { public function __call( $methodName , $values ) { echo __METHOD__ . PHP_EOL; print_r( $values ); } } class testOuter { private $base;

Re: [PHP] New Server Install

2008-09-10 Thread Nathan Rixham
Robbert van Andel wrote: Our MySql server is an established server that I can successfully connect to from other web servers. When I run my php script I see no attempt made to connect to the mysql server but do see the attempt and subsequent activity when connecting via the command line.

[PHP] Zend Platform

2008-09-09 Thread Nathan Rixham
Morning All, Short and sweet; does anybody have any practical experience; thoughts or case studies in regards to implementing the Zend Platform. Many Regards Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: running a very long process from php

2008-09-09 Thread Nathan Rixham
Rene Veerman wrote: Hi. For my CMS, i need to do imports of photos and videos. For uploading large files i have a Java FTP applet with automated resume, so no problems there. But: unzipping them and importing them might take a long time if it's a large batch (1000s of pictures/videos).

[PHP] Re: Regex help

2008-09-09 Thread Nathan Rixham
Jason Pruim wrote: Hey everyone, Not completely specific to php but I know you guys know regex's better then I do! :) I am attempting to match purl.schreurprinting.com/jasonpruim112 to purl.schreurprinting.com/p.php?purl=jasonpruim112 Here are my current matching patterns:

Re: [PHP] Re: Regex help

2008-09-09 Thread Nathan Rixham
Jason Pruim wrote: On Sep 9, 2008, at 4:38 PM, Nathan Rixham wrote: Jason Pruim wrote: Hey everyone, Not completely specific to php but I know you guys know regex's better then I do! :) I am attempting to match purl.schreurprinting.com/jasonpruim112 to purl.schreurprinting.com/p.php?purl

Re: [PHP] Re: PHP Equivalent of JavaScript whatever.toFixed(2)

2008-09-09 Thread Nathan Rixham
Jochem Maas wrote: Ross McKay schreef: Arnie Shore wrote: Folks, I need to take a given float value to, say, two decimals, as per subject JS. I've RTFM, but to no avail. On Mon, 08 Sep 2008 22:03:54 +0200, Sjoerd wrote: $str = sprintf(%01.2f, $number); Skinning cat, method two: $str =

Re: [PHP] PHP RSS to email

2008-09-09 Thread Nathan Rixham
Jason Pruim wrote: On Sep 8, 2008, at 7:59 AM, Richard Heyes wrote: Correct me if I'm wrong, but couldn't you use grab and parse the rss feeds you want, store the titles in a database, with a column for identifying if the e-mail has been sent? So every hour it checks your feeds, grabs the

Re: [PHP] Using DOM textContent Property

2008-09-09 Thread Nathan Rixham
Nathan Nobbe wrote: In my opinion, the DomNodeList class is useless. agreed; ever tried making a replacement node class that extends it? then you see how useless it is! [yet a vital part of the dom structure] ot here; but I thought maybe useful for reference; I do loads of xml/dom api

[PHP] Re: Basics of OOP

2008-09-09 Thread Nathan Rixham
Ben Stones wrote: Hi, The following bit of code doesn't output anything: ?php class output { var $text; function outputText() { $this-text = Hello World; echo $this-text; } } $class = new output(); $class-outputText; ? As well

[PHP] ProgramPHP domain offer

2008-08-09 Thread Nathan Rixham
Hi Guys, I've cut back on my php programming work, and don't need my domain anymore. Can't think of a better place to pass it on to somebody deserving. As such here it is: ProgramPHP,com - if you fancy it give me a shout / offer via email - please don't reply here as I don't think this is a

[PHP] Re: page suck attack

2008-05-21 Thread Nathan Rixham
robert wrote: Hi Every so often my site is attacked in which all URLS on my site are retrieved in the span of minutes. What is this called?? I mean what do I google for? I don't know where to begin. I'm not sure if I am going to implement such at thing but I would like to be able to

[PHP] unset thoughts

2008-05-20 Thread Nathan Rixham
what do we think of: while(1) { #script here to do stuff unset( array_keys(get_defined_vars()) ); sleep(10); } thoughts anybody, or a better way of keeping memory usage down on other peoples scripts that I don't have time to fumble about cleaning Regards Nath -- PHP General Mailing List

[PHP] Re: unset thoughts

2008-05-20 Thread Nathan Rixham
Nathan Rixham wrote: what do we think of: while(1) { #script here to do stuff unset( array_keys(get_defined_vars()) ); sleep(10); } thoughts anybody, or a better way of keeping memory usage down on other peoples scripts that I don't have time to fumble about cleaning Regards Nath

Re: [PHP] fsockopen + fputs

2008-05-16 Thread Nathan Rixham
debussy007 wrote: Hello, I use fsockopen and fputs to call a distant URL, but I have the following error : The requested URL /registration/test was not found on this server. This is my code: $req = 'username=' . $usr . 'password=' . $pass . 'date_of_birth=' . $year . - . $month . - .

[PHP] Re: Plugins... (like wordpress?)

2008-05-16 Thread Nathan Rixham
Ryan S wrote: Hey, Have just started screwing around with wordpress and I must say... it has a lot of really really nice bits and pieces... two of my favourites are widgets and plugins... not a hundred percent certain exactly what the diff is though! :) Anyway, was thinking it would be a

[PHP] Re: changing order of items

2008-05-15 Thread Nathan Rixham
afan pasalic wrote: this one bugs me for a while. how to change order. I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - status value stored in mysql. I can list tasks per status or all. order number is stored in mysql too. the easiest way to change order is to have form

[PHP] Scottish Devs

2008-05-14 Thread Nathan Rixham
Afternoon, Just had word of a freelance project on for the next 4 weeks, start immediately, basically 1 static site (design already done) - an easy job, and 1 static site + a bit of PHP, breadcrumb, site search - it's £200 GBP a day (so about £4k for the next 4 weeks), ideally for somebody

Re: RES: [PHP] PHP performance

2008-03-04 Thread Nathan Rixham
Thiago Pojda wrote: -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] Eric Butera schreef: On Mon, Mar 3, 2008 at 6:18 PM, Chris [EMAIL PROTECTED] wrote: Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all

[PHP] Re: 2 Questions: Static variables and the nature of the online manual

2008-03-04 Thread Nathan Rixham
Svevo Romano wrote: Hello, I got this e-mail address from the ŒAdd note¹ page within the php.net website. I was going to post something that was a question and I realised I was in the wrong place :) I have 2 basic questions and I¹m sorry if they may seem too basic. I¹m a bit new to php. The

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

2008-03-04 Thread Nathan Rixham
tedd wrote: At 12:15 PM -0500 3/4/08, Daniel Brown wrote: Amazingly, I do get all of my stuff done. Granted, I'm in front of a computer seven days per week, and usually a minimum of 10-12 hours per day, but what else would I do? Spend time with the pre-wife? You're working on wife 1.0

[PHP] php and google

2008-02-29 Thread Nathan Rixham
I think that I may be correct in saying that google blog search uses / is made in PHP [which I never realised] try googling for site:blogsearch.google.com you should get back a page with an all revealing PHPSESSID am I speculating? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
Jochem Maas wrote: Stut schreef: On 28 Feb 2008, at 11:39, Jochem Maas wrote: I can't seem to manage to buffer output (of an included file) in a CLI script, the following does not work: // buffer output so we can avoid the shebang line being output (and strip it from the

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

2008-02-28 Thread Nathan Rixham
Aschwin Wesselius wrote: Stut wrote: Just because it works doesn't mean it's right. -Stut What I meant was that I tested the script and it worked, so I didn't spot the flaw (wich is obvious and you were right). No big deal. should it not use curlies? $tmp = ''; $str = 'abcdef'; for

[PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
how's this? #!/usr/bin/php ?php class trimshebang { function filter($in, $out, $consumed, $closing) { while ($bucket = stream_bucket_make_writeable($in)) { $bucket-data = ltrim($bucket-data,#!/usr/bin/php\n); $consumed += $bucket-datalen; stream_bucket_append($out,

Re: [PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Nathan Rixham
Aschwin Wesselius wrote: Me thinks that when shebang doesn't fit /usr/bin/php (which happens sometimes) you're doomed. [snip] good point.. modified to use BINDIR: #!/usr/bin/php ?php class trimshebang { function filter($in, $out, $consumed, $closing) { while ($bucket =

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

2008-02-28 Thread Nathan Rixham
Ford, Mike wrote: On 28 February 2008 12:39, Nathan Rixham advised: should it not use curlies? No, they will be deprecated as of PHP6. (Square brackets used to be, but have been undeprecated and are back in favour!) $tmp = ''; $str = 'abcdef'; for ($i = strlen($str)-1; $i = 0; $i

Re: [PHP] auto-wrap on posts

2008-02-28 Thread Nathan Rixham
Ray Hauge wrote: Nathan Nobbe wrote: all, a fellow poster has been kind enough to bring to my attention how jacked some of my posts appear. i was manually formatting my posts, but it appears the list server must also be doing some formatting as many of my posts come out all jacked up

[PHP] Re: Hot job opportunity - Sr. Software Developer/Architect

2008-02-28 Thread Nathan Rixham
Nick Gasparro wrote: Hello Group! I have an immediate need for a Sr. Developer/Architect; with one of Denver's Best employers. They are a Web 2.0 company, rapidly growing and very profitable. They will pay top compensation and provide relocation assistance for the right person.

Re: [PHP] Re: Hot job opportunity - Sr. Software Developer/Architect

2008-02-28 Thread Nathan Rixham
Nathan Nobbe wrote: On Thu, Feb 28, 2008 at 11:56 AM, Nathan Rixham [EMAIL PROTECTED] wrote: throw in a $350k relocation package, flexible working hours, full travelling expenses, double pay for working during working hours, triple pay for working during working hours and onsite, quadruple pay

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

2008-02-28 Thread Nathan Rixham
Eric Butera wrote: On Thu, Feb 28, 2008 at 12:38 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Thu, Feb 28, 2008 at 12:36 PM, Eric Butera [EMAIL PROTECTED] wrote: And I'd appreciate it if you kept all your posts about wearing dresses to yourself but it isn't going to happen. :) Heh. It

Re: [PHP] Flexible Shopping Cart (was: Shopping Carts)

2008-02-28 Thread Nathan Rixham
?$_productCollection=$this-getLoadedProductCollection()? ?if(!$_productCollection-getSize()):? div class=note-msg ?=$this-__('There are no products matching the selection.')? /div first 5 lines I've seen of it and it's got short-tags, escapes in and out of php/html, no templating engine and no

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

2008-02-28 Thread Nathan Rixham
Eric Butera wrote: HI Nathan, Sorry I soured your day. This is a public mailing list and it is my Ahh it's okay - I think I may have read into it a little too much anyways; likewise apologies. position that people who commit code to it should really make sure that it is reasonably sound.

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

2008-02-28 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2008-02-28 at 19:37 +, Stut wrote: On 28 Feb 2008, at 19:17, Wolf wrote: Jason Pruim wrote: My editor automatically replaces like 4 spaces with a tab... Is there a reason not to use tabs instead of spaces? :) I use spaces since when I indent with 4 spaces

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

2008-02-28 Thread Nathan Rixham
[snip] Eric Butera wrote: I can hit tab and shift/tab too and it puts in spaces for me. [snip] Robert Cummings wrote: Uhhhm, I hit the tab button also and it does the right thing (namely inserts 4 spaces). Also, when I hit enter it auto tabs. [snip] *kicks zend studio* [and nano and textpad

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Nathan Rixham
Nathan Nobbe wrote: On Thu, Feb 28, 2008 at 2:36 PM, Ray Hauge [EMAIL PROTECTED] wrote: That's pretty cool. I wasn't sure if it would work with numerically indexed arrays, so I tried: // sillyFunc returns array(0=1, 1=2); ArrayClass::create(sillyFunc())-{0} I just tested it, and that

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

2008-02-28 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2008-02-28 at 20:43 +, Nathan Rixham wrote: [snip] Eric Butera wrote: I can hit tab and shift/tab too and it puts in spaces for me. [snip] Robert Cummings wrote: Uhhhm, I hit the tab button also and it does the right thing (namely inserts 4 spaces). Also

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Nathan Rixham
Nathan Nobbe wrote: On Thu, Feb 28, 2008 at 6:14 PM, Nathan Rixham [EMAIL PROTECTED] wrote: if I show you guys how to do this: echo sillyFunc()['a'] . PHP_EOL; using a few brackets and things do you promise not to laugh? *it's a bit weird* id like to see it. -nathan don't say I didn't

[PHP] Re: imagettftext and utf-8 (swedish characters)

2008-02-28 Thread Nathan Rixham
David Sveningsson wrote: Hi, I've ran into some problems when outputing text to an image using imagettftext. I cannot get swedish characters to work, I just get a square. I've tried different fonts which I know has those characters (bitstream vera, arial, times new roman, etc). What am I doing

[PHP] Re: imagettftext and utf-8 (swedish characters)

2008-02-28 Thread Nathan Rixham
Nathan Rixham wrote: David Sveningsson wrote: Hi, I've ran into some problems when outputing text to an image using imagettftext. I cannot get swedish characters to work, I just get a square. I've tried different fonts which I know has those characters (bitstream vera, arial, times new roman

[PHP] Re: handling dates before 1901

2008-02-28 Thread Nathan Rixham
Gabriel Kuri wrote: I recently migrated some php scripts from a box running php 4.4.4 to php 5.2.5. due to the nature of the data, some of the php scripts require handling dates before 1901. both boxes are 64-bit (original and new), however the new box isn't handling dates properly before 1901

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Nathan Rixham
Robert Cummings wrote: On Fri, 2008-02-29 at 00:18 +, Nathan Rixham wrote: don't say I didn't warn ya fellow nathan! #!/usr/bin/php ?php function sillyFunc() { return array('a' = 1, 'b' = 2, 'c' = 3, 'd' = 4, 'e'='some string'); } echo !${~${''}='sillyFunc'}=${''}().${~${''}}['e

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Nathan Rixham
Robert Cummings wrote: On Fri, 2008-02-29 at 00:18 +, Nathan Rixham wrote: don't say I didn't warn ya fellow nathan! #!/usr/bin/php ?php function sillyFunc() { return array('a' = 1, 'b' = 2, 'c' = 3, 'd' = 4, 'e'='some string'); } echo !${~${''}='sillyFunc'}=${''}().${~${''}}['e

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2008-02-28 at 23:27 -0500, Robert Cummings wrote: On Fri, 2008-02-29 at 04:04 +, Nathan Rixham wrote: Robert Cummings wrote: On Fri, 2008-02-29 at 00:18 +, Nathan Rixham wrote: don't say I didn't warn ya fellow nathan! #!/usr/bin/php ?php function

Re: [PHP] echo returnArray()['a']; // workaround

2008-02-28 Thread Nathan Rixham
Casey wrote: I don't know why I'm continuing this... but for the truly crazy: function w($t) { $t = array('f' = '...'); return 't'; } echo ${w($t)}['f']; addictive isn't it! casey, I truelly believe that's as short as it can

[PHP] Re: Start/stop daemon using php

2008-02-27 Thread Nathan Rixham
David Sveningsson wrote: Hi, I've written an application in c which I would like to start/stop as a daemon in gnu/linux. The application has the argument --daemon which forks the process and exits the parent. Then it setups a SIGQUIT signal handler to properly cleanup and terminate. It also

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

2008-02-27 Thread Nathan Rixham
Dare Williams wrote: Dear Developers, http://msdn2.microsoft.com/en-us/library/aa479002.aspx I read an Article on the above Microsoft website stating the reason why to Migrate from PHP to ASP.NET. So can you please justify this proofs from Microsoft and let everybody knows if they are

Re: [PHP] Guidance

2008-02-27 Thread Nathan Rixham
Matty Sarro wrote: I understand and agree completely, and I really appreciate the help. My goal isn't so much to keep from re-writing code, but to have a pretty firm foundation to stand on before I really begin. I mean, with c++ or c, all I needed was the language, and that was pretty much it. I

Re: [PHP] Guidance

2008-02-27 Thread Nathan Rixham
Robert Cummings wrote: On Wed, 2008-02-27 at 15:48 -0600, Shawn McKenzie wrote: Stut wrote: On 27 Feb 2008, at 20:59, Daniel Brown 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.

Re: [PHP] RE: temprorary error

2008-02-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-25 at 09:28 -0500, tedd wrote: At 8:49 AM -0500 2/25/08, Robert Cummings wrote: On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote: [can you resist?] No I can't resist. It would be tantamount to agreeing with you. Since I disagree with you I feel

Re: [PHP] RE: temprorary error

2008-02-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote: I didn't think Quakers could use computers. Or electricity. You're confusing them with Amish. Cheers, Rob. and coldfusion developers [ps: rob your lucky i keep saving your ass from the dreaded last post] --

<    4   5   6   7   8   9   10   >