[PHP] Re: [php] tcp server connection

2009-05-12 Thread Nathan Rixham
Andrew Williams wrote: Can someone help me about how to retrieve data using TCP server connection you'll need to be a bit more specific to get any useful help back mate.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [php] tcp server connection

2009-05-12 Thread Nathan Rixham
Hi Andrew, You'll be needing the stream functions I'd guess (this si how I always do it, with no problems) http://php.net/stream_socket_client is your starting point. Many Regards, Nathan Andrew Williams wrote: I need to connect to server using IP connection to get raw data, process

Re: [PHP] Re: Can includes be used for head tags?

2009-05-12 Thread Nathan Rixham
tedd wrote: At 9:32 PM +0100 5/11/09, Nathan Rixham wrote: Gary wrote: Thank you to everyone again for your help... Gary Gary gwp...@ptd.net wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the meta tags for a site. Is this possible

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Miller, Terion wrote: Well I tried it and still it stopped at the C's 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html-find('table') as $table) { $rows = explode('/tr' , $table ); $headerCells = explode('/th', array_shift($rows));

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Nathan Rixham wrote: Miller, Terion wrote: Well I tried it and still it stopped at the C's 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html-find('table') as $table) { $rows = explode('/tr' , $table ); $headerCells = explode('/th

[PHP] Re: irrational behavior

2009-05-12 Thread Nathan Rixham
PJ wrote: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) The code below: ? $SQL = SELECT name FROM categories ORDER BY category_id ; $category

[PHP] Re: Can includes be used for head tags?

2009-05-11 Thread Nathan Rixham
Gary wrote: Thank you to everyone again for your help... Gary Gary gwp...@ptd.net wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the meta tags for a site. Is this possible? Gary just an idea.. if you ran the content of the

[PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-11 Thread Nathan Rixham
דניאל דנון wrote: I've tried to make a color table, but I am missing something. not in the color-table-code itself, but in somewhere else... I just can't find... untested but try.. // 4096*4096 = 16777216 = FF+1 $im = imagecreate(4096, 4096); $white = imagecolorallocate($im, 0, 0, 0); $r

Re: [PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-09 Thread Nathan Rixham
Lenin wrote: Yeah gmail is a nice thing :) The best ever mailing system world has ever seen until now. Because now you can get new LeninMail from phpXperts - it works offline, it works in your fridge, you car, your bath, everywhere conventional mail doesn't work. LeninMail combines all

[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Nathan Rixham
Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works. There's no information in mysql_error. In

[PHP] Re: Remote MySQL Connecton Problems

2009-05-07 Thread Nathan Rixham
Ray Hauge wrote: Nathan Rixham wrote: Ray Hauge wrote: Hello everyone, I've run into a bit of a sticky situation trying to connect to a remote MySQL database. Here's the background: Connecting from the command line on the web server works. Connecting from a different vhost works

Re: [PHP] speaking of control structures...

2009-05-07 Thread Nathan Rixham
Robert Cummings wrote: On Thu, 2009-05-07 at 09:33 -0400, Tom Worster wrote: On 5/6/09 9:31 PM, Clancy clanc...@cybec.com.au wrote: I can understand your reluctance to disregard your mother's advice, but unfortunately she had been brainwashed to accept the dogma of the day. actually, i don't

Re: [PHP] speaking of control structures...

2009-05-06 Thread Nathan Rixham
Robert Cummings wrote: On Wed, 2009-05-06 at 08:41 -0400, Tom Worster wrote: On 5/6/09 7:05 AM, Robert Cummings rob...@interjinn.com wrote: That seems like an abuse of exceptions. But then we're already abusing loops. I just don't think one could say it's the proper way to do it :) i don't

[PHP] Re: SimpleXML Class

2009-05-06 Thread Nathan Rixham
Cesco wrote: Could you help me clarify one thing that I don't understand... let's put it simple, just imagine that I have a tiny XML document with a list of movies: movies title iGone/i with bthe/b wind /title /movies I want to read this XML file and write the name of the

Re: [PHP] Re: Unit Testing

2009-04-28 Thread Nathan Rixham
is the best time to test according to a certain structure... Simon On Mon, Apr 27, 2009 at 12:16 PM, Nathan Rixham nrix...@gmail.com wrote: Philip Thompson wrote: Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist me... We have

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Nathan Rixham
tedd wrote: At 9:40 AM +0100 4/27/09, Richard Heyes wrote: Hi, I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is, CamelCase

[PHP] Re: utf-8 ?

2009-04-27 Thread Nathan Rixham
PJ wrote: Since I have to use a number of Western languages that have those annoying accents on many characters, I am already finding some annoyances in my code results; like having to enter the aacute; type of stuff in inputs for searches queries. MySql db is set up for InnoDB with

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-04-27 at 20:56 +0600, 9el wrote: I looked at http://developer.loftdigital.com/blog/php-utf-8-cheatsheet which suggests this: ALTER DATABASE db_name CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT COLLATE utf8_general_ci ; ALTER

[PHP] Re: Unit Testing

2009-04-27 Thread Nathan Rixham
Philip Thompson wrote: Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist me... We have an application that's currently in production, but we're constantly modifying/upgrading it. We did not do unit testing early on because

[PHP] Re: Formating Numbers

2009-04-26 Thread Nathan Rixham
Gary wrote: I cant seem to get this to work for me. I want the number to be formated to money (us, 2 decimal points). /** * returns 4.3 as $4.30 (formats us dollars) * * @param $amount * @return string */ function us_dollar_format( $amount ) { return ( '$' .

[PHP] Re: Help with scandir()

2009-04-26 Thread Nathan Rixham
to do this for samba drives on windows too. $dir = '//machine.local/share/path'; regards, nathan ps: many people just don't answer if they do not know -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I need ideas for things to code

2009-04-24 Thread Nathan Rixham
Andrew Hucks wrote: I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any suggestions, I'd greatly appreciate it. a: get paid to do it; pick up work on freelance sites and they'll give you the ideas + you'll get paid

Re: [PHP] Namespce operator

2009-03-25 Thread Nathan Rixham
Jochem Maas wrote: Luke schreef: Backslash doesn't sound like it will look very pretty 2009/3/25 Richard Heyes rich...@php.net Backslash? Seriously? I'm hurt that my suggestion of ¬ (ASCII170 ?) wasn't used. :-( please kill this thread, the namespace operator was heavily discussed multiple

Re: [PHP] today i found the best function I've ever seen

2009-03-23 Thread Nathan Rixham
Jason Pruim wrote: Daniel Brown wrote: On Mon, Mar 23, 2009 at 09:07, Igor Escobar titiolin...@gmail.com wrote: Do not try this at home... Sorry, all, I must have yelled. Two days later and my words are still echoing. ;-P Yeah... Would you keep your voice down You self

[PHP] today i found the best function I've ever seen

2009-03-20 Thread Nathan Rixham
if( !function_exists('clean_sql_term') ) { function clean_sql_term($term) { return $term; } } beautiful -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] non static function called as static one

2009-03-11 Thread Nathan Rixham
Jochem Maas wrote: Olivier Doucet schreef: Hi Jochem, 2/ (or/and) Raise a warning or an error if a non static function is called as a static one develop with error_reporting set to E_ALL | E_STRICT, then you'll get a big fat warning about it Yes, that's what I'm using right now.

Re: [PHP] non static function called as static one

2009-03-11 Thread Nathan Rixham
Nathan Rixham wrote: Jochem Maas wrote: Olivier Doucet schreef: mental though, part of me wishes they'd forked php at 4 to save all the lame syntax and weirdness. after thought.. I wish they'd forked it to OO and procedural, then us OO guys could have phpoo and be happy

Re: [PHP] Re: PHP/Apache: script unexpectedly invoked multiple times in parallel every 30 secs.

2009-03-11 Thread Nathan Rixham
Marc Venturini wrote: Hi all, Thank you all very much for your contributions. I tried to monitor the network with Wireshark: there is only one request from my browser to the server, and not any answer (redirect or otherwise). This means the problem is definitely not with unexpected browser

Re: [PHP] soft Phone

2009-03-10 Thread Nathan Nobbe
can find this application source code? what sort of pbx do you intend to interface w/ ? -nathan

[PHP] Re: php fop (XSLFO)

2009-03-09 Thread Nathan Rixham
('xml_document.xml'); //run xslt transformation $XSLTProcessor = new XSLTProcessor(); $XSLTProcessor-importStylesheet($XSLDocument); $NEWDoc = $XSLTProcessor-transformToDoc($XMLDocument); // echo the new document echo $NEWDoc-saveXML(); ? Regards :) Nathan -- PHP General Mailing List (http

Re: [PHP] DOM recursion

2009-03-09 Thread Nathan Rixham
Jochem Maas wrote: Jochem Maas schreef: Joanne Lane schreef: I am trying to create a class that recursively iterates over an array an creates XML tree to reflect a multidimensional array. I am not really a PHP coder, but am trying my hand. I've seen 'real coders' write stuff thats leagues

Re: [PHP] Line Break Problem

2009-03-09 Thread Nathan Rixham
Alice Wei wrote: Date: Mon, 9 Mar 2009 13:28:19 +0100 From: joc...@iamjochem.com To: stut...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Subject: Re: [PHP] Line Break Problem Stuart schreef: 2009/3/9 Alice Wei aj...@alumni.iu.edu I have a question regarding using line

Re: [PHP] Opendir on site root directory?

2009-03-09 Thread Nathan Rixham
Stuart wrote: 2009/3/8 Clancy clanc...@cybec.com.au On Sun, 8 Mar 2009 12:33:15 +, stut...@gmail.com (Stuart) wrote: 2009/3/8 Clancy clanc...@cybec.com.au On Sun, 8 Mar 2009 09:01:18 +, stut...@gmail.com (Stuart) wrote: 2009/3/8 Clancy clanc...@cybec.com.au I want to index the

Re: [PHP] PHP includes

2009-03-09 Thread Nathan Rixham
Virgilio Quilario wrote: I'm working on learning php and have been toying with includes, and I am trying to figure the advantages/disadvantages to using them. I know that using them eliminates the need to put the files once altered as with a template, however, is that the only advantage. My

Re: [PHP] web refreshing problem

2009-03-09 Thread Nathan Rixham
Andrew Williams wrote: Hi, my php program does not display current result of submitted form instead the previous content is shown until you refresh manually (which means resubmitting the form). Can someone help me out because, I want to display the result of the latest form result and not the

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Nathan Nobbe
On Sun, Mar 8, 2009 at 11:29 PM, Sashikanth Gurram sashi...@vt.edu wrote: Hi Nathan, Thanks a lot for the suggestion. It is working fine for an example code I have used to test it. The code I have written after your suggestion is as follows. ?php $location=C:\wamp\bin\apache\apache2.2.8

[PHP] Re: Error in Building an XML File

2009-03-09 Thread Nathan Rixham
); header(Content-Disposition:attachment;filename=google_feed.xml); Thanks Joe looks like you have and in the file right before iuml which is making the browser think it is an entity - ie invalid xml - ie make sure all 's are actually amp; - should fix you up nathan -- PHP General Mailing List

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Nathan Nobbe
there is not input through a html form, it wont work. right, then just configure your webserver such that you can first access the image directly via an http url, then integrate these links into your dynamic pages as i explained in my first response. good luck, -nathan

Re: [PHP] Error in Building an XML File

2009-03-09 Thread Nathan Rixham
Joe Harman wrote: On Mon, Mar 9, 2009 at 9:53 AM, Bob McConnell r...@cbord.com wrote: From: Joe Harman I am using PHP to build an XML file, but I keep on getting an XML error when open the file in Google Chrome.

[PHP] Re: PHP includes

2009-03-09 Thread Nathan Rixham
with an error if the file isn't found, whereas include will throw an error and simply keep on going if the files isn't found. Think that covers everything in the scope of this :) Regards! Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP includes

2009-03-09 Thread Nathan Rixham
Gary wrote: Thank you to everybody that replied...but it almost seems it is making extra work. What is the best type of file to be used as an include (.txt, .php). new I forgot something! the best type of file to be used as an include differs on a case by case basis. name the files

Re: [PHP] web refreshing problem

2009-03-09 Thread Nathan Rixham
Andrew Williams wrote: Hi everyone, I discovered that error and warning messages from my program does not display automatically unless you refresh the page. and page also has the same problem. Does it has anything to do with the PHP - Apache settings. post your code - limited in what help

[PHP] Re: Hi!! I Joined the PHP Mailing List

2009-03-09 Thread Nathan Rixham
Picu Priya wrote: Hello Everyone, I have just joined the PHP Community.. I hope, I will spend good time here.. I am already a PHP programmer, and Love to learn a lot of new php tricks while helping others, as best of my knowledge. :) welcome :-) -- PHP General Mailing List

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Nathan Rixham
Jason Norwood-Young wrote: haliphax wrote: Perhaps I should have phrased it a bit more concise: This has been discussed many times--often, and RECENTLY. Anyway, since I'm already writing this, I'll say that overhead/bloat vs. productivity of the developer is a trade-off you're going to have to

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Nathan Rixham
Jason Norwood-Young wrote: haliphax wrote: On Mon, Mar 9, 2009 at 1:26 PM, Jason Norwood-Young ja...@freespeechpub.co.za wrote: haliphax wrote: Perhaps I should have phrased it a bit more concise: This has been discussed many times--often, and RECENTLY. Anyway, since I'm already writing

Re: [PHP] Re: PHP includes

2009-03-09 Thread Nathan Rixham
Ashley Sheridan wrote: Just thought I'd point out that it's recommended against giving non-php extensions to PHP code pages. Basically, making all of your include files .inc without the server correctly configured to recognise all .inc files as PHP files, you are opening yourself up to possible

Re: [PHP] Re: PHP Frameworks

2009-03-09 Thread Nathan Rixham
haliphax wrote: On Mon, Mar 9, 2009 at 2:50 PM, Nathan Rixham nrix...@gmail.com wrote: haliphax wrote: Framework = Overhead (when compared to vanilla PHP). Period. I'm not by vanilla do you mean vanilla from lussimo? [http://getvanilla.com/] ? You know damn well I didn't. :) I'd love

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax halip...@gmail.com wrote: That, or ***holes. That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad luck! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
George Larson wrote: That's funny! I've been watching this and a few other lists (MySQL, local Linux Users' Group) for a few days - weeks and I had wondered why the PHP list seemed more hostile. :) may be something to do with the fact 95% of posts here could be covered by: - a 5 question

Re: [PHP] Script execution

2009-03-09 Thread Nathan Rixham
haliphax wrote: On Mon, Mar 9, 2009 at 4:55 PM, Nathan Rixham nrix...@gmail.com wrote: Daniel Brown wrote: On Mon, Mar 9, 2009 at 17:39, haliphax halip...@gmail.com wrote: That, or ***holes. That's what my name tag says. you got shot in the nametag 3 times? i dunno if that's good or bad

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Nathan Rixham
Michael A. Peters wrote: Seems like such a function does not exist in php. I can write my own function that does it using DOMElement-hasAttribute() - but I'm not sure how to get an array of every element in the DOM to test them for the attribute. Any hints? I'm sure it's simple, I'm just

[PHP] Re: DOMDocument getElementsByAttribute ??

2009-03-09 Thread Nathan Rixham
Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: Seems like such a function does not exist in php. I can write my own function that does it using DOMElement-hasAttribute() - but I'm not sure how to get an array of every element in the DOM to test them for the attribute

[PHP] Re: Setting Up A Web Subscription Service

2009-03-09 Thread Nathan Rixham
revDAVE wrote: Rather than reinventing the wheel trying to set up a Web Subscription Service from scratch - I imagine there must be a good selection of Web Subscription Services, pre-made and maybe even open source apps (php/MySql ?) out there already. I'm not quite sure where to start looking

[PHP] Re: PHP timezone is unstable...

2009-03-09 Thread Nathan Rixham
Dirk wrote: Hello, what could cause the timezone in PHP to, randomly, jump back and forth 6 hours now and then? from phpinfo(): date date/time support enabled Olson Timezone Database Version 0.system Timezone Database internal Default timezone America/Chicago Directive

Re: [PHP] Re: PHP timezone is unstable...

2009-03-09 Thread Nathan Rixham
Dirk wrote: Nathan Rixham wrote: Dirk wrote: Hello, what could cause the timezone in PHP to, randomly, jump back and forth 6 hours now and then? from phpinfo(): date date/time support enabled Olson Timezone Database Version 0.system Timezone Database internal Default

Re: [PHP] verify problem

2009-03-07 Thread Nathan Rixham
Ashley Sheridan wrote: On Thu, 2009-03-05 at 19:58 -0800, Michael A. Peters wrote: PJ wrote: Nathan Rixham wrote: Chris wrote: PJ wrote: And again, this works: if (strlen($_POST[first_nameIN]) == 0 ) { $obligatoryFieldNotPresent = 1; ... this does not: if (strlen($_POST

Re: [PHP] verify problem

2009-03-07 Thread Nathan Rixham
Ashley Sheridan wrote: On Sat, 2009-03-07 at 13:42 +, Nathan Rixham wrote: Ashley Sheridan wrote: On Thu, 2009-03-05 at 19:58 -0800, Michael A. Peters wrote: PJ wrote: Nathan Rixham wrote: Chris wrote: PJ wrote: And again, this works: if (strlen($_POST[first_nameIN]) == 0

Re: [PHP] verify problem

2009-03-07 Thread Nathan Rixham
Michael A. Peters wrote: Ashley Sheridan wrote: I'm more a fan of lining up opening and closing brackets so they are at the same indent level. It prevents one of the most popular errors caused by omitting a bracket, brace or other in the wrong place. A few extra line breaks in the code are

Re: [PHP] include question

2009-03-07 Thread Nathan Rixham
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com wrote: 1.) We use regular open tags to be compatible with all stock PHP configurations. 2.) We echo out the response from dirname() so that it's output to the HTML source. 3.) We use dirname() twice,

Re: [PHP] Re: if elseif elseif elseif....

2009-03-07 Thread Nathan Rixham
Daniel Brown wrote: On Sat, Mar 7, 2009 at 15:23, Robert Cummings rob...@interjinn.com wrote: ?php for( ; ; ) { echo You can make an endless loop in many, many ways.\n; } ? ?php while(1) echo Yup.\n; ? ?php echo 'yup' . PHP_EOL; include __FILE__; ? -- PHP General Mailing List

Re: [PHP] Database Abstraction Class

2009-03-07 Thread Nathan Rixham
Eric Butera wrote: On Sat, Mar 7, 2009 at 5:07 PM, Paul M Foster pa...@quillandmouse.com wrote: On Sat, Mar 07, 2009 at 12:34:40PM -0500, Eric Butera wrote: snip PDO. :) Anything else is a waste of cpu cycles. I've looked into PDO, and I just didn't find it as feature-rich as the native

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-07 Thread Nathan Nobbe
how are you storing the image in the database? i believe youll want to make it a BLOB of some type. also, depending on the application, many folks prefer to just place images directly on the filesystem, then reference their location on the filesystem in the database. -nathan

Re: [PHP] assign array values to variables

2009-03-07 Thread Nathan Nobbe
and viola. -nathan

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-07 Thread Nathan Nobbe
image stream will be outputted directly. so basically, just, else { header('Content-Type: image/jpeg'); imagejpeg($img); imagedestroy($img); } -nathan

Re: [PHP] Backend autodatabase update

2009-03-07 Thread Nathan Nobbe
to the appropriate party. theres tons of oss out there to this end, i happen to know hobbit is just one such application, http://hobbitmon.sourceforge.net/ -nathan

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-07 Thread Nathan Nobbe
?php header('Content-Type: image/jpeg'); imagejpeg(imagecreatefromjpeg('./phpLogo.jpeg')); -nathan

Re: [PHP] Audio stream piping minimal overhead

2009-03-07 Thread Nathan Nobbe
be streamed directly to the user browser without any delays, and without taking too much server memory or any disk space. *-nathan

Re: [PHP] Re: Question about template systems

2009-03-05 Thread Nathan Nobbe
). -nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] verify problem

2009-03-05 Thread Nathan Rixham
Chris wrote: PJ wrote: And again, this works: if (strlen($_POST[first_nameIN]) == 0 ) { $obligatoryFieldNotPresent = 1; ... this does not: if (strlen($_POST[first_nameIN]) 0 ) (strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN, , $last_nameIN); else (echo error;)} But,

Re: [PHP] verify problem

2009-03-05 Thread Nathan Rixham
PJ wrote: Nathan Rixham wrote: Chris wrote: PJ wrote: And again, this works: if (strlen($_POST[first_nameIN]) == 0 ) { $obligatoryFieldNotPresent = 1; ... this does not: if (strlen($_POST[first_nameIN]) 0 ) (strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN

[PHP] Re: Sending out large amounts of email

2009-03-05 Thread Nathan Rixham
you should use it, but it is packed with comments and notes you may find useful - linux only uses sendmail note 2: remember you're spf! regards, nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Nathan Nobbe
finished, RTFM :) also, morbidly curious, have you looked at blitz; thoughts ? thx, -nathan

Re: [PHP] Re: Question about template systems

2009-03-04 Thread Nathan Nobbe
, but if im missing something, id love to know. sorry for the rant, -nathan

Re: [PHP] A puzzler (well, for me at least)

2009-02-28 Thread Nathan Rixham
Robert Cummings wrote: On Sat, 2009-02-28 at 12:35 -0500, Daniel Brown wrote: On Thu, Feb 26, 2009 at 09:50, Ondrej Kulaty kopyto...@gmail.com wrote: Your answer is neither relevant nor funny. :-| And your response wasn't welcome. So there, everyone's even. I'm even?? You sure? People

[PHP] Re: Best error handling

2009-02-27 Thread Nathan Rixham
promise that'll work though, to test quickly just add all that to a php file and run it (as you don't have the required file so a fatal will get raised) regards and good luck - nathan ps: may check this one out myself, sure I've done it years ago when i still made sites -- PHP General Mailing List

[PHP] Re: RecursiveDirectoryIterator and foreach

2009-02-24 Thread Nathan Rixham
($dir as $splFileInfo) { if( $dir-hasChildren() ) { $childDir = $dir-getChildren(); echo get_class($childDir) . ' ' . $childDir-getPath() . PHP_EOL; } } many regards, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Nathan Nobbe
); foreach ($itt as $item) { print get_class($item) . \r\n; } -nathan

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Nathan Nobbe
On Mon, Feb 23, 2009 at 10:27 AM, Ryan Panning rpann...@gmail.com wrote: Nathan Nobbe wrote: if youre trying to do recursive iteration whereby you 'flatten' the tree structure, drop the RecursiveDirectoryIterator into a RecursiveIteratorIterator (its for iterating over RecursiveIterators

[PHP] Re: Securing web services

2009-02-22 Thread Nathan Rixham
for moths over many projects and this framework saved my life. it also has very nice scripts for working with wsdl including an automatic wsdl2php and a full WSDL generation API :) Many Regards, Nathan ps: I'm no affiliation :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Unique User Hashes

2009-02-20 Thread Nathan Rixham
Martin Zvarík wrote: Ashley Sheridan napsal(a): On Thu, 2009-02-19 at 23:34 +0100, Martin Zvarík wrote: Chris napsal(a): Martin Zvarík wrote: Chris napsal(a): Martin Zvarík wrote: tedd napsal(a): At 5:28 PM +0100 2/19/09, Martin Zvarík wrote:

Re: [PHP] Unique User Hashes

2009-02-20 Thread Nathan Rixham
Michael A. Peters wrote: Nathan Rixham wrote: it's all a bit pointless, the only way to ensure only one vote per person is to get take and test a dns sample from each user. anything else is going to be flawed Hey now, what do you have against us clones? ;) and nobody noticed I said

Re: [PHP] Free XML and WDL classes/scripts

2009-02-18 Thread Nathan Rixham
Per Jessen wrote: Anton Heuschen wrote: What are some good php classes/scripts to work with: Parsing XML data/files. xpath() or xslt. /Per you'll do no finer than wso2 wsf/php for anything webservice related http://wso2.org/projects/wsf/php -- PHP General Mailing List

Re: [PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread Nathan Nobbe
, *Note*: DOM extension uses UTF-8 encoding. Use utf8_encode()http://us.php.net/manual/en/function.utf8-encode.phpand utf8_decode() http://us.php.net/manual/en/function.utf8-decode.php to work with texts in ISO-8859-1 encoding or Iconvhttp://us.php.net/manual/en/ref.iconv.phpfor other encodings. -nathan

Re: [PHP] php.ini not loaded?

2009-02-11 Thread Nathan Nobbe
someone point me at the fix for this problem? webserver or cli? if cli, take a peak at php --ini also, /apps/local/php5/lib should have rx for the webserver user. you may also need to check the perms on /apps/local/php5 to ensure the webserver user has rx on that dir as well. -nathan

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
using apache and if so, do you have threading enabled? -nathan

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
extensions are not thread safe, perhaps apc is one of them. most people compile apache w/ mpm_prefork rather than mpm_worker for this reason. i know next to nothing about cPanel, thankfully, but youll likely have to compile php w/ mpm_prefork in order to keep apc from melting down the engine :) -nathan

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
eaccelerator to see if you encounter the same issue? -nathan

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
/lib/ZendExtensionManager_TS.so Does APC not play nice with any of these? if i were to guess, those zend_optimizer ones, or less likely, suhosin. afaik, zend_optimizer and apc arent buddies, http://www.webdeveloper.com/forum/showthread.php?t=178217 -nathan

Re: [PHP] APC problem with PHP

2009-02-10 Thread Nathan Nobbe
an optimizer in there. im not sure how it stacks up to zend's, but it will do both caching and optimization, afaik. also, you will find a not yet stable optimization extension haging out in pecl for apc, http://pecl.php.net/package/optimizer -nathan

Re: [PHP] maybe we could all?

2009-02-09 Thread Nathan Rixham
Marcus Gnaß wrote: Nathan Rixham wrote: Project: PHP Common Objects and Datatypes Has anything been setup for project COD-pieces yet? I like this name! ;) Hi Markus, Actually, yes it has - the project, well working group, has been called voom. So far there are 8 developers including

Re: [PHP] Interface OOP

2009-02-09 Thread Nathan Nobbe
b { function JohnXchange() { if(login::getInstance()-getLoginSession()) { // process } } } you can read about the singleton pattern in many places on the web and there are lots of written books about design patterns which you might find useful. -nathan

Re: [PHP] PHP OOP

2009-02-09 Thread Nathan Rixham
Eric Butera wrote: On Mon, Feb 9, 2009 at 11:20 AM, Thodoris t...@kinetix.gr wrote: Hi gang: At the college where I teach, they are considering teaching OOP, but they don't want to settle on a specific language. My thoughts are it's difficult to teach OOP without a language -- while the

[PHP] Re: php get rss tag using DOM

2009-02-08 Thread Nathan Rixham
Morris wrote: Hi, I am trying to write a programme to read a rss xml file. ... media:content url=*exampe.jpg* ... ... scan anyone tell me how to get the url attribute? I wrote some codes similar: $doc = new DOMDocument; $doc-load($myFlickrRss); $r =

[PHP] Re: Session variables

2009-02-07 Thread Nathan Rixham
Paul M Foster wrote: I'm not too clear on HTTP headers, cookies, and such. So here are questions related to that. Let's say I generate a random number that I want the user to enter in a form. When I generate the number, I store it in a session variable ($_SESSION). When the user submits the

[PHP] Re: Sending XML requests as raw post data

2009-02-07 Thread Nathan Rixham
Marc Steinert wrote: Hi there! The software I'm maintaining uses $HTTP_RAW_POST_DATA to receive XML requests, posted by some client written in C#. Now I need to write a PHP client that posts XML requests the same way as the C# client, so that the posted data is stored in $HTTP_RAW_POST_DATA,

[PHP] Re: Sending XML requests as raw post data

2009-02-07 Thread Nathan Rixham
Marc Steinert wrote: Hi there! The software I'm maintaining uses $HTTP_RAW_POST_DATA to receive XML requests, posted by some client written in C#. Now I need to write a PHP client that posts XML requests the same way as the C# client, so that the posted data is stored in $HTTP_RAW_POST_DATA,

Re: [PHP] Clarity needed (Really OT)

2009-02-06 Thread Nathan Rixham
tedd wrote: At 7:35 PM +0100 2/6/09, Jochem Maas wrote: Socialist Doctrine? the community orm? Here's a group of people under treat of loss of life tell their government that everyone is created equal and you say that what they said is a Socialist Doctrine? A doctrine that came into

Re: [PHP] Email configuration

2009-02-06 Thread Nathan Rixham
Ashley Sheridan wrote: I've never had an email bounced because of where it came from based on IP. I have had emails bounced based on the email headers that were sent. Always check the headers first. Even MessageLabs won't block an email based on the IP. ash: http://en.wikipedia.org/wiki/DNSBL

Re: [PHP] Email configuration

2009-02-06 Thread Nathan Rixham
Shawn McKenzie wrote: Ever heard of RBL or DNSBL? I use it on my email server and so do many lol snap, just sent same message at same time - tis so easy to jump on ash's back cos he's always so sure he's right lolol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Email configuration

2009-02-06 Thread Nathan Rixham
Shawn McKenzie wrote: Nathan Rixham wrote: Shawn McKenzie wrote: Ever heard of RBL or DNSBL? I use it on my email server and so do many lol snap, just sent same message at same time - tis so easy to jump on ash's back cos he's always so sure he's right lolol Hmmm... So Ashley is a him

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