[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 play

[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] Re: Using Static Class Variables to Access Globally

2008-09-24 Thread Nathan Rixham
Nathan Nobbe wrote: On Wed, Sep 24, 2008 at 6:28 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: /me prefers singleton with __get and __set but each to their own :) Do you mean registry? could be, but it doesnt have to. when i think of a registry, i think of something that stores a single ins

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 thing,

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: curl_exec hangs/freezes on shared hosting

2008-09-25 Thread Nathan Rixham
Rene Veerman wrote: I use the following script to make forward an ajax call from the browser to a server other than my main webserver. On my homeserver (debian/apache2/php5 with rootxs) it runs fine, but on my shared hosting (servage.net, phpinfo at http://mediabeez.veerman.ws/mb/sn.php) it f

[PHP] Re: Math problems (No not high school math!)

2008-09-25 Thread Nathan Rixham
Jason Pruim wrote: So I'm trying to figure out how to do a little math in php to add up the number of hours that people have worked (Still on the timecard for anyone following along at home) I have it inserting time in and timeout as timestamps into a MySQL database, from there, I use a while

Re: [PHP] The Data Literacy Test

2008-09-26 Thread Nathan Rixham
Tom Chubb wrote: 2008/9/24 Shelley <[EMAIL PROTECTED]>

Re: [PHP] Don't understand what is this $arr['N']['#']

2008-09-26 Thread Nathan Rixham
well said :) Richard Heyes wrote: Please don't top post any more. thank you. Because it's such a cardinal sin and will result in you being sent straight to hell. I've heard that it's not so nice there at this time of year, though the heat is more bearable. -- PHP General Mailing List (http:

Re: [PHP] Filters and sanitizing a regexp

2008-09-26 Thread Nathan Rixham
Richard Heyes wrote: Hi, I don't think that one is quite right... Your optionals (?) are confusing. Why [0-3]?[0-9] AND the \d? No reason. Why [0-9] at all (since \d is essentially [0-9])? Again, no reason. Why use the discarded capture group (?:) since the [0-3] is already optional?

[PHP] Re: Unicode problems

2008-09-26 Thread Nathan Rixham
Thiago H. Pojda wrote: This is slightly OT but I honestly don't know what else I can do. I was asked to migrate a website from diff hosts. Okay, pretty easy, right? Well, as usual, it wasn't. Site pages content type was ISO-8559-1 and it was developed for a MySQL5 database that used latin1 as c

Re: [PHP] Convert local dates into GMT+1 dates

2008-09-26 Thread Nathan Rixham
debussy007 wrote: Hello everyone! I have local dates (Belgium), which I want to convert to GMT+1 date. The dates are stored in the DB and are of the following format: '2008-06-24 23:30:02' So I think I'll need to check wether the date in DB is GMT+1 or GMT+2 (winter or summer), if date is GMT+

[PHP] Re: Passing Variables to an iframe

2008-09-26 Thread Nathan Rixham
Waynn Lue wrote: I was hoping to do some logic in a script, and then pass the results of that script to an iframe for more processing. why pass the results back to the client when your not finished processing them? simply "include" the next script and only pass user the *final* results (?)

Re: [PHP] Filters and sanitizing a regexp

2008-09-26 Thread Nathan Rixham
Eric Butera wrote: On Fri, Sep 26, 2008 at 12:03 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: -Original Message- hate to say this but why not cater for all eventualities and just use strtotime( $whatever ); Well it just doesn't have enough geek factor... Plus, strtotime() does non-int

[PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Nathan Rixham
Shiplu wrote: The string is "charge100". I want and array( "charge"=>100). I am using this regular expression, '/([^<]+)<\/td>(?P<\1>\d+)<\/td>/'. But its not working.. I get this error., PHP Warning: preg_match(): Compilation failed: syntax error after (?P at offset 25 in E:\src\php\WebEngin

[PHP] Re: Regular Expression Backreference in subpattern.

2008-09-27 Thread Nathan Rixham
Shiplu wrote: The string is "charge100". I want and array( "charge"=>100). I am using this regular expression, '/([^<]+)<\/td>(?P<\1>\d+)<\/td>/'. But its not working.. I get this error., PHP Warning: preg_match(): Compilation failed: syntax error after (?P at offset 25 in E:\src\php\WebEngin

[PHP] Re: error warning while connecting to posgreSQL

2008-09-28 Thread Nathan Rixham
Alain Roger wrote: Hi, i try to understand the error_reporting statement and to avoid all warning or error messages. for example i stop the postgresql service and i try to connect to it. when error_reporting is set to E_ALL, i get the following warning : *Warning*: pg_connect() [function.pg-conn

Re: [PHP] Re: Regular Expression Backreference in subpattern.

2008-09-28 Thread Nathan Rixham
Shiplu wrote: Sorry The previous code was wrong, Its the correct version, $x = "a b;c d;e f;"; preg_match('/(?P\w) (?P\w)/',$x,$m); print_r($m); Now I am using backrefrence \1 in in ?P option like (?P<\1>\d+). and I got the error. thought I best update for courtesy sake; I spent a good chun

[PHP] Re: error warning while connecting to posgreSQL

2008-09-28 Thread Nathan Rixham
Alain Roger wrote: Hi, i try to understand the error_reporting statement and to avoid all warning or error messages. for example i stop the postgresql service and i try to connect to it. when error_reporting is set to E_ALL, i get the following warning : *Warning*: pg_connect() [function.pg-conn

[PHP] for the sake of conversation - syntax

2008-09-29 Thread Nathan Rixham
Afternoon All, Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] xmlString = TidySpace::tidy_repair_string( $xml ); } } } } ?> all purely a made up e

[PHP] Re: return language of a word

2008-09-29 Thread Nathan Rixham
shahrzad khorrami wrote: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks best way i can see it to use the google language detection api [thats what I do] - I'd

[PHP] Re: Check Variable with true or not

2008-09-29 Thread Nathan Rixham
Maciek Sokolewicz wrote: Carlos Medina wrote: Hi @ all: Question: what is quickly? if( true == isset( $var ) ){} or if( isset( $var ) ){} Can somebody explain ( not think or believe ), what happend on the Zend Engine when the first or the second code will be use? Regards Carlos The _ex

[PHP] Re: return language of a word

2008-09-29 Thread Nathan Rixham
Maciek Sokolewicz wrote: shahrzad khorrami wrote: Thanks for reply U+103A0 ... U+103DF How can I use of it? Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that. note: *but not ord()* [ord is only for asci

Re: [PHP] PHP + Cron jobs

2008-09-29 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Waynn Lue wrote: Yup, you're completely right. I checked the cronjob and got this: PHP 5.2.6 (cgi) (built: Aug 11 2008 13:39:32) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Advanced PHP

[PHP] Re: Name of graph

2008-09-30 Thread Nathan Rixham
Richard Heyes wrote: Hi, Anyone know what the line in the first bar chart is called? I call it a "summary" line, but that's wrong. ISTR it being referred to something that involved the word "frequency", but I may be off my trolley... You'll need a browser other then MSIE to see them. Thanks.

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] Looks a lot like Java, not that that's a

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Nathan Rixham
Richard Heyes wrote: Thanks for quoting the whole message then! :P Maybe he just wanted to make sure you got it... I'm always really tight on these guy's - but it is just somebody offering us a job I guess; they could have scoured the boards; ripped every email address and spammed the hel

[PHP] Re: db_* => pg_*/my_*/ifx_* ?

2008-09-30 Thread Nathan Rixham
Michelle Konzack wrote: Hello, I am using some crapy software, which does not allow switching the Database, where I use PostgreSQL since 1999 and those crapy software force me to install mysql, sqlite and other databases which let the administration, maintenance AND COSTS explode.

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Nathan Rixham
Jim Lucas wrote: Nathan Rixham wrote: Richard Heyes wrote: Thanks for quoting the whole message then! :P Maybe he just wanted to make sure you got it... I'm always really tight on these guy's - but it is just somebody offering us a job I guess; they could have scoured the boar

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this easier import com.mydom.thatpackage.RssParser;

Re: [PHP] Wanted PHP Developers LogicManse

2008-09-30 Thread Nathan Rixham
Jim Lucas wrote: Nathan Rixham wrote: Jim Lucas wrote: Nathan Rixham wrote: Richard Heyes wrote: Thanks for quoting the whole message then! :P Maybe he just wanted to make sure you got it... I'm always really tight on these guy's - but it is just somebody offering us a job I g

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 30 Sep 2008, at 16:57, Nathan Rixham wrote: Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as"

Re: [PHP] Robert Cummings

2008-09-30 Thread Nathan Rixham
Robert Cummings wrote: On Tue, 2008-09-30 at 14:17 -0400, Wolf wrote: Daniel Brown <[EMAIL PROTECTED]> wrote: All: What was pointed as a passing mention in one thread I thought was worth note in a thread of its own. As quoted by Rob: BTW, while we're off topic... my wife delive

[PHP] Re: photo file size

2008-10-01 Thread Nathan Rixham
elk dolk wrote: Hi All, I have some photos with different file sizes like 100KB 125KB 200KB ,… I want to shrink them and reduce the file size to Max 60KB without sacrificing image quality and size! amazon s3 -- nathan ( [EMAIL PROTECTED] ) { Senior Web Developer php + java + flex +

[PHP] Re: table with paging and sorting

2008-10-01 Thread Nathan Rixham
Alain Roger wrote: i used in the past a former version of Pear package to create table with pagination and sorting. i would like to know if there are some other solution (free) to do something like this... on the clientside you have YUI Tables for the html/js solution and Flex Datagrids if yo

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array ( [0] => 6156 [1] => 7030 [2] =>

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
Nathan Rixham wrote: tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] => Array ( [0]

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
tedd wrote: At 3:41 PM -0400 10/1/08, tedd wrote: What about: foreach ($_SESSION['user_id'] as $key => $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo "$last, $first"; } Jay: Close, it produced: Array, Array Array, Array Array, Array

[PHP] Re: php server push

2008-10-02 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: Hi, (i hope this is the right place to ask questions like below) I am trying to use content type 'multipart/x-mixed-replace' to achive server pushing and I have the following piece of code, which works perfectly. /* file.html */ function handleContent(event) { var r

Re: [PHP] db_* => pg_*/my_*/ifx_* ?

2008-10-02 Thread Nathan Rixham
uaca man wrote: nathan, if you are not going to help, DON´T answer. [/snip] Angelo, suggesting that there are some classes for this on phpclasses is helping suggesting that a vast amount of articles and resource can easily be located on google is helping suggesting that the issue is also di

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Nathan Rixham
Jim Lucas wrote: Jim Lucas wrote: tedd wrote: At 11:10 PM +0100 10/1/08, Nathan Rixham wrote: [tested - works] -snip- ?> regards! nathan :) I need to re-address this.. tedd your original code works fine over here; as does the code I sent you, and the code jay submitted first.. do u

Re: [PHP] SESSION array problems

2008-10-02 Thread Nathan Rixham
Ford, Mike wrote: On 01 October 2008 21:24, tedd advised: At 2:38 PM -0500 10/1/08, Afan Pasalic wrote: main reason - if you sort by first or last name you will lose "index". this way is index always "linked" to first/last name. Your point is well taken, but I'm not sorting this. True, the

Re: [PHP] SESSION array problems [SOLVED]

2008-10-02 Thread Nathan Rixham
Daniel Brown wrote: On Thu, Oct 2, 2008 at 11:11 AM, Jay Moore <[EMAIL PROTECTED]> wrote: Now, someone show me where that is documented? http://us3.php.net/register_globals Also, for the love of glaven, people. If you're going to post to the list, you don't have to include the original sende

Re: [PHP] SESSION array problems [SOLVED]

2008-10-02 Thread Nathan Rixham
Jay Moore wrote: Stut wrote: It's also worth noting that since subscriptions is not required to post to these lists there's no guarantee that the OP will get your reply if you don't include their address. IOW you're asking us to deprive a number of developers seeking assistance of our replies

Re: [PHP] Re: SESSION array problems

2008-10-03 Thread Nathan Rixham
Micah Gersten wrote: > You really should get up to speed on PHP 5. Micah Gersten wrote: I was referring to Nathan's examples which you cut out of the post. function save_to_session( ) { global $userids , $first , $last; $_SESSION['user_id'] = &$userids; $_SESSION['first_name'] = &$first; $

Re: [PHP] Best Search Algorithm for Millions of record

2008-10-06 Thread Nathan Rixham
Stut wrote: On 6 Oct 2008, at 07:17, Hemant Patel wrote: My question is Whether I should go for Full Text Based search or Database Search...?And is there algorithm in php which can help me in this case...? I can fully recommend Sphinx Search: http://sphinxsearch.com/. It's not as easy to imp

Re: [PHP] mt_rand() - the same forever?

2008-10-06 Thread Nathan Rixham
Janek wrote: On Sun, Oct 5, 2008 at 10:05 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: On Sun, 2008-10-05 at 21:57 +0200, Janek wrote: I know, but I *want* to seed it. My goal is to have a fixed pseudorandom sequence for each integer (seed) and I don't want those sequences to change regarding

Re: [PHP] mt_rand() - the same forever?

2008-10-06 Thread Nathan Rixham
Stut wrote: On 6 Oct 2008, at 10:58, Nathan Rixham wrote: Janek wrote: On Sun, Oct 5, 2008 at 10:05 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: On Sun, 2008-10-05 at 21:57 +0200, Janek wrote: I know, but I *want* to seed it. My goal is to have a fixed pseudorandom sequence fo

Re: [PHP] Best Search Algorithm for Millions of record

2008-10-06 Thread Nathan Rixham
Hemant Patel wrote: But still i am asking...if anybody has ever worked on other Full Text Based Search Algorithm then please help me to choose the best one as I need to search in 160,00,000 records And I have to maintain my response time as less as possible... Looking forward to your help and

Re: [PHP] AJAX and PHP

2008-10-06 Thread Nathan Rixham
tedd wrote: At 12:10 PM +0200 10/4/08, Alain Roger wrote: HI, i'm currently working on some web application and i would like to know what is the best way to do what i want. basically like all application i have a menu and based on selected item menu i want to display a page (basically 50 % o

Re: [PHP] AJAX and PHP

2008-10-06 Thread Nathan Rixham
Alain Roger wrote: Alain: The only difference the user experiences between having AJAX, or not, is refreshing the page. If page refresh is not a problem, then don't complicate your life. On the other hand, if page refresh is annoying, or not wanted, then A

[PHP] Drupal 6

2008-10-06 Thread Nathan Rixham
So as part of my "new job" I've been asked to research and indeed get used to drupal 6; recon I guess. I've been using it for the past week; figured out all the best modules to do everything I want etc etc. q: do you use drupal 6 sub-q: and love it sub-q: and would rather not sub-q: have ha

Re: [PHP] AJAX and PHP

2008-10-06 Thread Nathan Rixham
> wrote: > yes, flex is "flash for developers"; the main language is AS3 and it > outputs swf's; flex is basically a program which allows you to use mix > of pre-made ui elements & classes, css and AS3 to quickly make great RIA's. Yup, bu

[PHP] Re: Php4 => Php5

2008-10-06 Thread Nathan Rixham
Operacion Control wrote: Hi Lists, I am planning to migrate from Php4 to Php5 in a few days. Do anyone know which applications/services are upset with the migration? I dont have enough servers to instalt each using Php4 and then install Php5 to test. I mean sendmail, qmail, joomla, egroupware

[PHP] Re: How to capture origional client machine _directory_ and file nameon uploads?

2008-10-06 Thread Nathan Rixham
J. Hill wrote: This should be trivial, but apparently not -- or maybe I just need more caffeine. My searches have come up empty. I am trying to get not only the original file name on uploads, but also the original directory on the client machine as well. The purpose is for users who make a m

[PHP] Re: UTF-8 errors in RSS feed

2008-10-08 Thread Nathan Rixham
Ron Rademaker wrote: Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35 0x20 Is there any way I can get DomDocument to skip th

[PHP] Re: Manipulating strings

2008-10-08 Thread Nathan Rixham
Ron Piggott wrote: I have a series of questions. How do I count the number of 's in a string? How do I add text in the middle of a string, let's say after the 3rd Ron simplest way from experience is to simply explode('', $the_string) you can then count the array -1 for number of br's; and

Re: [PHP] Re: UTF-8 errors in RSS feed

2008-10-08 Thread Nathan Rixham
Ron Rademaker wrote: Nathan Rixham wrote: Ron Rademaker wrote: Hi, I'm trying to load an external rss feed into a DomDocument, the feed says it's uft-8 but DomDocument rightly disagrees. This causes a warning: Input is not proper UTF-8, indicate encoding ! Bytes: 0xA3 0x36 0x35

[PHP] Re: strtotime problem

2008-10-08 Thread Nathan Rixham
Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp = strtotime($webdate); return date($format,$timestam

Re: [PHP] Login

2008-10-09 Thread Nathan Rixham
Jason Pruim wrote: On Oct 8, 2008, at 5:48 PM, Stut wrote: On 8 Oct 2008, at 22:32, Ashley Sheridan wrote: On Wed, 2008-10-08 at 22:15 +0100, Stut wrote: Obviously, I'm a programmer, so I probably don't fall into the 'normal' category for advertising ;) You may think that but I've neve

Re: [PHP] [Semi-OT] Tonns of jobs available

2008-10-10 Thread Nathan Rixham
Boyd, Todd M. wrote: -Original Message- From: Michelle Konzack [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2008 6:38 PM To: PHP - General Subject: [PHP] [Semi-OT] Tonns of jobs available Hello, For those who are seeking for PHP jobs (small and big ones), I can recomment y

Re: [PHP] [Semi-OT] Tonns of jobs available

2008-10-10 Thread Nathan Rixham
Richard Heyes wrote: When people stop caring so much about squeezing their dollar I don't see that happening any time soon... :-) ahh but they'll be squeezing their amero's soon which incidentally sounds rather funny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Problem with memory management

2008-10-10 Thread Nathan Rixham
Alan Boudreault wrote: Hi all, I'm wondering why PHP doesn't free my memory with this test code. The memory usage is always the same even if i unset my object. The Garbage collector seems to only free the memory at the end of the script. Here's the php Scripts that i use for testing: ec

Re: [PHP] Re: Problem with memory management

2008-10-10 Thread Nathan Rixham
Eric Butera wrote: On Fri, Oct 10, 2008 at 3:32 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: Alan Boudreault wrote: Hi all, I'm wondering why PHP doesn't free my memory with this test code. The memory usage is always the same even if i unset my object. The Garbage collector se

Re: [PHP] [Semi-OT] Tonns of jobs available

2008-10-10 Thread Nathan Rixham
tedd wrote: At 12:38 AM +0100 10/11/08, Ashley Sheridan wrote: All these problems are just on one site and with one woman. Ash I won't comment on that, other than say -- while they may all look different, there's really only one woman. It's an ant-like thing. :-) Cheers, tedd gets me

[PHP] Re: template usage

2008-10-12 Thread Nathan Rixham
Alain Roger wrote: Hi, i would like to know if you are a lot to use PHP templates for your web application or web sites ? if yes, which one do you use (smarty, pear, yapter, phplib,...) ? and for which reason ? what is/are the advantages over the others ? thanks a lot, I'd vote smarty or usi

Re: [PHP] Re: template usage

2008-10-12 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2008-10-12 at 18:04 +0100, Nathan Rixham wrote: Alain Roger wrote: Hi, i would like to know if you are a lot to use PHP templates for your web application or web sites ? if yes, which one do you use (smarty, pear, yapter, phplib,...) ? and for which reason

[PHP] Re: HTML5 canvas tag

2008-10-12 Thread Nathan Rixham
Richard Heyes wrote: Hi, Not quite PHP, but since you're all web developers you may well be interested in this: http://www.phpguru.org/static/canvas.html It's a short piece on the new HTML5 canvas tag. Bonza. very fine work mr heyes, I've been most impressed by you're RGraph - a great use

Re: [PHP] Re: Re: Remove index.php from url

2008-10-12 Thread Nathan Rixham
Ashley Sheridan wrote: That wasn't what I was asking. I meant is there an equivalent to mod-rewrite for IIS? old one but ISAPI Rewrite is the pretty much standard implementation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-14 Thread Nathan Rixham
Eric Butera wrote: On Tue, Oct 14, 2008 at 5:04 PM, Ashley Sheridan From: "Some Company" <[EMAIL PROTECTED]> Date: Tue, 14 Oct 2008 13:01:18 -0400 Date: Tue, 14 Oct 2008 13:01:18 -0400 maybe because you have two dates in the headers? whats the mime type of the html block? if it's set to tex

[PHP] Re: searching by tags....

2008-10-14 Thread Nathan Rixham
Ryan S wrote: Hey, this the first time I am actually working with "tags" but it seems quite popular and am adding it on a clients requests. By tags I mean something like wordpress' implementation of it, for example when an author writes an article on babies the tags might be baby,babies, new

Re: [PHP] searching by tags....

2008-10-14 Thread Nathan Rixham
Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename/blog/tags/tag-comes-here/ As for getting those search terms, well a link in a page can contain GET

Re: [PHP] searching by tags....

2008-10-14 Thread Nathan Rixham
Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites seem to have a very neat way of implementing this with (url rewriting?) something like http://sitename

Re: [PHP] Re: 1 last error to fix before the application is done!

2008-10-15 Thread Nathan Rixham
Jason Pruim wrote: I probably should have mentioned that this was in a function to do the heavy lifting for authentication :) I just didn't paste the whole function since 90% of it worked just fine :) Now I just need to get better and separating presentation and code :) very smiley today

[PHP] Re: Brain dead... write image to file

2008-10-15 Thread Nathan Rixham
Ryan S wrote: $uploaddir = 'C:\\wamp\\www\\ezee\\funny\\'; delimited backslashes in a string that doesn't need delimited (single quotes not double. $uploaddir = 'C:\wamp\www\ezee\funny\'; -- nathan ( [EMAIL PROTECTED] ) { Senior Web Developer php + java + flex + xmpp + xml + ecmascript

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan Rixham schreef: Ashley Sheridan wrote: On Tue, 2008-10-14 at 14:54 -0700, Ryan S wrote: quite a few sites

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 11:22 +0100, Nathan Rixham wrote: Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 00:58 +0100, Nathan Rixham wrote: Ashley Sheridan wrote: On Wed, 2008-10-15 at 01:17 +0200, Jochem Maas wrote: Nathan

Re: [PHP] searching by tags....

2008-10-15 Thread Nathan Rixham
Govinda wrote: improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Waste some time on a live test to prove this 2 - Explain how I know this and show the

Re: [PHP] searching by tags....

2008-10-16 Thread Nathan Rixham
Jochem Maas wrote: Ashley Sheridan schreef: On Wed, 2008-10-15 at 15:36 -0600, Govinda wrote: improvement if I went for static URLs on the site, but I don't have any evidence for that, and I'm willing to admit it. I'd rebuff this but it would feel like Im feeding a troll. choices: 1 - Wast

Re: [PHP] Re: utf8/quoted printable based mail renders raw html

2008-10-16 Thread Nathan Rixham
Eric Butera wrote: So it turns out the problem was inconsistent newlines. An include file ended up having unix line returns while the design file had mac line returns. Normalizing the pieced together content solved my problems. glad to hear you got it fixed! was the same thing I had years ago

[PHP] Re: help - php script - no interaction

2008-10-16 Thread Nathan Rixham
John Smtih wrote: http://www.site1.com http://www.site2.com http://www.site3.com I have 3 sites above in a html. I do not want to create click each site, one at a time to see 1 page info. I want to write a script to go get all 3 sites, and bring it back into 1 page (the content of 3 pages c

[PHP] Re: Binary file copy

2008-10-16 Thread Nathan Rixham
Jay Moore wrote: Greetings list! Say I want to copy a jpg from a remote server onto mine, using PHP. Right now, my script opens a socket to the remote server, and opens the image file. It copies its contents into a dummy variable, opens a new file on my server, and dumps the contents of the

[PHP] Re: Binary file copy

2008-10-16 Thread Nathan Rixham
Jay Moore wrote: in the response you'll be getting the raw http response (including headers); so you're saving them as well thus not a valid image file. can't see why: $image = file_get_contents('http://10.10.10.3/record/current.jpg'); wouldn't work for you.. file_get_contents worked beautifu

[PHP] Re: PHP to Java

2008-10-16 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init ($td, $key, $iv); $c_t = mcrypt

[PHP] Re: PHP to Java

2008-10-16 Thread Nathan Rixham
[EMAIL PROTECTED] wrote: For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init ($td, $key, $iv); $c_t = mcrypt

[PHP] PHP Dev Facts

2008-10-16 Thread Nathan Rixham
Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* *Dev OS* *Dev PHP Version* *Live Server OS* *Live Server PHP Version* *Which HTTP Server Software (+version)?* *IDE / Dev Environment* *Preferred Framework(s)?* *Do you Unit Test?* *Most Used Internal PH

[PHP] Re: PHP Dev Facts

2008-10-16 Thread Nathan Rixham
Here's mine: *Procedural or OOP?* OOP *Dev OS* Windows Server 2003 EE (sadly - I need some win-only tools!) *Dev PHP Version* PHP 5.2.5 *Live Server OS* Ubuntu + Centos *Live Server PHP Version* PHP 5.2.x *Which HTTP Server Software (+version)?* Apache 2.2 all round *IDE / Dev

[PHP] Re: PHP Dev Facts

2008-10-17 Thread Nathan Rixham
just a quick note to say I'll compile all this into something more meaningful and publish later on tonight :-) nice to see so many responses. -- nathan ( [EMAIL PROTECTED] ) { Senior Web Developer php + java + flex + xmpp + xml + ecmascript web development edinburgh | http://kraya.co.uk/ }

Re: [PHP] Re: PHP Dev Facts

2008-10-17 Thread Nathan Rixham
Jay Blanchard wrote: [snip] just a quick note to say I'll compile all this into something more meaningful and publish later on tonight :-) nice to see so many responses. [/snip] It's Friday night, shouldn't you be going to the pub instead? wanna baby sit? -- nathan ( [EMAIL PROTECTED] ) {

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Nathan Rixham
Brendon Van Heyzen wrote: Have to say using eclipse/zend for eclipse with mylyn/tasktop really helps in keeping up with bug tracking (trac) with all my projects. Helps to keep everything organized, especially when management wants to know what's going on. SVN is also crucial and its nice to have

[PHP] Re: Singletons

2008-10-20 Thread Nathan Rixham
Christoph Boget wrote: Ok, so why isn't this working as (I, at the very least) expected? class singleTon { private static $thisObj = NULL; private $thisProp = NULL; public function __construct() { echo 'singleTon::__construct()'; if( !is_null( singleTon::$thisObj ))

[PHP] Re: table and class

2008-10-21 Thread Nathan Rixham
Alain Roger wrote: Hi, in my web application (as quite all web applications) i have a lot of tables. I mean by table the tag with for sure some data displayed in it from SQL requests. To not have to write the whole code every time i was thinking to make a class that : - will manage the whole de

Re: [PHP] Politics

2008-10-21 Thread Nathan Rixham
Robert Cummings wrote: On Tue, 2008-10-21 at 08:01 -0700, Jim Lucas wrote: Chrome wrote: -Original Message- From: Amy [mailto:[EMAIL PROTECTED] Sent: 21 October 2008 11:58 To: php-general@lists.php.net Subject: [PHP] Politics representations emphasizing leksr matching thirds painfully

[PHP] Re: Problem changing file encoding

2008-10-22 Thread Nathan Rixham
Thodoris wrote: Hi guys, I am developing a project and I wrote an interface to import contracts in it. The problem is that when the user uploads the file I don't know what is the encoding it has. So I decided that a good idea is to make the user tell me the encoding from a drop down before I p

Re: [PHP] Source Code Analysis

2008-10-22 Thread Nathan Rixham
Robert Cummings wrote: On Wed, 2008-10-22 at 12:24 -0500, Dee Ayy wrote: Is there a tool that can analyze PHP source code and detect if the code is relying on register_globals still being on? Perhaps detecting if a variable has not been initialized within the code? These are my specific needs,

Re: [PHP] Re: -help

2008-10-22 Thread Nathan Rixham
Yeti wrote: Well maybe it is because he has register_globals on why he is not printing a list of valid arguments. imagine something like this .. @php-generals$ [PHP] -help List of valid arguments: -c, --make-me-forget erases the built-in mainframe's short term memory -f, --flush-me erases the e

[PHP] Re: Inheritance of class methods

2008-10-23 Thread Nathan Rixham
Alain Roger wrote: am i correct ? yup [unless you overwrite it in class B with another method of the same name that functions differently] -- nathan ( [EMAIL PROTECTED] ) { Senior Web Developer php + java + flex + xmpp + xml + ecmascript web development edinburgh | http://kraya.co.uk/

Re: [PHP] Change tracking

2008-11-01 Thread Nathan Rixham
Mike Smith wrote: Thanks Steven/Tony for your replies. I'll consider this a bit more before I jump in. I appreciate different perspectives. And I'll have to digest Tony's solution. Thanks, Mike Smith If you're on mysql you can combine the whole lot and speed up your db by adding in spatial in

<    5   6   7   8   9   10   11   >