Re: [PHP] preg_replace

2013-11-01 Thread Adam Szewczyk
Hi, On Fri, Nov 01, 2013 at 11:06:29AM -0400, leam hall wrote: Despite my best efforts to ignore preg_replace... Why? :) PHP Warning: preg_replace(): Delimiter must not be alphanumeric or backslash Thoughts? You are just using it wrong.

Re: [PHP] COM - Assigning to method.

2013-07-15 Thread Adam Nicholls
also guessing even if we did implement this API, exposing it as a Web Service is going to be tricky for performance sake (given that I've read that COM doesn't multithread very well??) Many Thanks Adam. On 14 July 2013 22:16, Andrew Ballard aball...@gmail.com wrote: On Sun, Jul 14, 2013 at 3:18 PM

Re: [PHP] COM - Assigning to method.

2013-07-14 Thread Adam Nicholls
Richard - I've tried that I get an error about it not being defined as property of the object. Andrew - do you mean try using the method Richard has shown? Cheers Adam. On 13 July 2013 17:11, Richard Quadling rquadl...@gmail.com wrote: On 13 July 2013 01:24, Andrew Ballard aball

[PHP] COM - Assigning to method.

2013-07-12 Thread Adam Nicholls
of parameters $Record-Fields('BANK_fld_ACCOUNT_NAME', 'Test Account'); I've also tried something crazy like this (below) but that overwrites the $Record object. $_R = $Record-Fields('BANK_fld_ACCOUNT_NAME'); $_R = 'Test Account'; Any ideas? Is it possible? Many Thanks Adam Nicholls -- PHP General

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote: Hi, I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP extension: I can't enable it. I have installed following packages related to this issue: curl, libcurl3, libcurl3-gnutls, php5-curl. I have in

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote: Hi, I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP extension: I can't enable it. I have installed following packages related to this issue: curl, libcurl3, libcurl3-gnutls, php5-curl. I have in

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Adam Szewczyk
This is more of an apache question. You can try below url. http://lmgtfy.com/?q=mod_rewrite+exclude+css On 1 June 2013 21:39, Farzan Dalaee farzan.dal...@gmail.com wrote: i starting to use mod rewrite but all my images or js links doest work my current query string is:

Re: [PHP] Load testing an app

2013-04-23 Thread Adam Richardson
offers performance improvements. I don't suspect the migration from SQL Server 2003 to 2008 caused any of these issues. So, any ideas we can try? We'd probably have to know more about what the netsh calls were doing. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP

Re: [PHP] Compiler for the PHP code

2013-03-19 Thread Adam Nicholls
Checkout HipHop by the Facebook guys, it turns PHP into C code and compiles down to binary. ...although I don't think it's for the faint hearted. Have you tried other optimisation techniques first - eg Caching, and Profiling?? If this is a production environment you might wanna think about

Re: [PHP] webDAV/CalDAV client class experience ?

2013-03-01 Thread Adam Tauno Williams
On Sun, 2013-02-17 at 21:26 -0600, tamouse mailing lists wrote: On Sat, Feb 16, 2013 at 2:30 PM, B. Aerts ba_ae...@yahoo.com wrote: - the biggest mistake: apparently I commented the fwrite() call to the stream, which explains why he went in time-out ... (in this case, please DO shoot the

Re: [PHP] webDAV/CalDAV client class experience ?

2013-03-01 Thread Adam Tauno Williams
there is a PHP equivalent. -- Adam Tauno Williams awill...@whitemice.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Close enough to Friday...

2013-02-28 Thread Adam Richardson
whipped this up so I could ditch Dreamweaver Templates (which I used so the templating happened prior to runtime, too), as I'm trying to save some money and I don't want to upgrade to the next version :) Happy Friday! Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Close enough to Friday...

2013-02-28 Thread Adam Richardson
off the faucet in between spitting into the sink even though monitoring showers can do much more to save water, when I see simple ways I can consistently save cycles, I try to implement them :) Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Arrays

2013-02-25 Thread Adam Richardson
'secialservice' is just a typo), as any subsequent assignments would overwrite the previous value. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] if (empty versus if (isset

2013-02-19 Thread Adam Richardson
string is one of the values that evaluates to false: - (an empty string) - 0 (0 as an integer) - 0.0 (0 as a float) - 0 (0 as a string) - NULL - FALSE - array() (an empty array) - $var; (a variable declared, but without a value) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP

Re: [PHP] Affordable low-fee e-commerce - DIY?

2013-02-18 Thread Adam Richardson
API for free (or at least cheaper)? Thanks. Not really a PHP question, but just FYI, Paypal and other providers provide micropayments options: https://www.paypalobjects.com/IntegrationCenter/ic_micropayments.html Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework

Re: [PHP] fopen and load balancing

2013-02-11 Thread Adam Tong
, 2013 at 4:26 AM, ma...@behnke.biz ma...@behnke.biz wrote: Adam Tong adam.to...@gmail.com hat am 10. Februar 2013 um 23:41 geschrieben: Hi, We had an issue with the code of a junior php developer that used fopen to load images using the url of the companies website that is load balanced. We

[PHP] fopen and load balancing

2013-02-10 Thread Adam Tong
Hi, We had an issue with the code of a junior php developer that used fopen to load images using the url of the companies website that is load balanced. We could not the detect the problem in dev and test because the dev and test servers are not load balanced. I know that he could load the

Re: [PHP] fopen and load balancing

2013-02-10 Thread Adam Richardson
On Sun, Feb 10, 2013 at 5:41 PM, Adam Tong adam.to...@gmail.com wrote: Hi, We had an issue with the code of a junior php developer that used fopen to load images using the url of the companies website that is load balanced. We could not the detect the problem in dev and test because

Re: [PHP] newbie with imap_mail_move

2013-02-09 Thread Adam Richardson
); imap_mail_move($mbox,$messageset,$newmbox_name); imap_expunge($mbox); } Where is the variable $msg_no coming from? Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Integer

2013-02-01 Thread Adam Richardson
at the decimal, then scanning the second string for the first non-zero and storing the subsequent characters. Working with floats at that precision level would likely lead to tragic results: 10.0 times .1 is hardly ever 1.0 http://www.eg.bucknell.edu/~xmeng/Course/CS2330/Handout/StyleKP.html Adam -- Nephtali

Re: [PHP] seg fault with pecl ps extension

2012-11-28 Thread Adam Richardson
/manual/en/migration54.incompatible.php, http://php.net/manual/en/migration53.incompatible.php), you could try to avoid the PHP bindings Uwe developed and merely use PHP to call a C program that directly deals with his project pslib: http://pslib.sourceforge.net/ Sorry for the trouble, Adam

Re: [PHP] seg fault with pecl ps extension

2012-11-28 Thread Adam Richardson
://www.php.net/manual/en/language.references.pass.php Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] globbed includes?

2012-11-18 Thread Adam Richardson
On Sun, Nov 18, 2012 at 3:29 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: There are certain times I'd like to include all files in a given directory (such as configuration stuff that is split out by type, a la apache conf.d). Anyone have something handy that implements that?

Re: [PHP] serialize() casts numeric string keys to integers

2012-11-12 Thread Adam Richardson
with the standard key casts for arrays: http://php.net/manual/en/language.types.array.php Try dumping the array before the serialize operations. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: Re: [PHP] TURBOPY cloud framework + IDE beta available NOW

2012-10-31 Thread Adam Richardson
: http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] TURBOPY cloud framework + IDE beta available NOW

2012-10-31 Thread Adam Richardson
create the appearance of this.) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

[PHP] Rest

2012-10-27 Thread Adam Tong
Hi, I need to develop a rest API.I want your feedback on how you develop rest apis. I don't want to use a heavy framework just for that, and I find url rewriting time consuming. Any suggestions? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PDO

2012-10-22 Thread Adam Richardson
UTC] PHP Fatal error: Call to a member function prepare() on a non-object in html/index.html on line 23 Can you show the code in db.php (just remember to remove any login credentials)? It looks like there's an issue creating the $db object you're using. Adam -- Nephtali: A simple, flexible

Re: [PHP] PHP to decode AES

2012-10-18 Thread Adam Richardson
that could cause some issues. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wrong time being displayed by PHP!

2012-10-16 Thread Adam Richardson
. Why is this? What's going on? The server's time could be wrong. Or, code somewhere could be (re)setting the timezone. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] stream_read function for registered wrapper class.

2012-09-19 Thread Adam Richardson
, but I keep running into issues with the stream wrapper and fread, stream_get_content functions. You could just use the XML Parser (SAX) as it doesn't require loading the entire document into memory: http://php.net/manual/en/book.xml.php Adam -- Nephtali: A simple, flexible, fast, and security

Re: [PHP] PHP array unions

2012-09-14 Thread Adam Richardson
is what you expect to handle/manipulate foreach ($a3 as $val) { echo $val } Here, the clunkiness is the redundancy in the array, but, as Claude Shannon has demonstrated, redundancy isn't all bad :) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http

Re: [PHP] PHP Threading on Windows

2012-09-14 Thread Adam Richardson
On Fri, Sep 14, 2012 at 9:40 PM, Joe Watkins joe.watk...@live.co.uk wrote: https://github.com/krakjoe/pthreads Windows Download on downloads page, it's a couple of days behind. Keep watching ... enough to get you started ... That's pretty slick, Joe. Nice work! Adam -- Nephtali: A simple

Re: [PHP] PHP array unions

2012-09-13 Thread Adam Richardson
cute, I could store the value in the key (e.g., array('value 1' = 0, 'value 2' = 0, ...)), and that allows me to use the '+' operator. In spite of the nice performance benefits of this approach (leveraging the hashes benefits), the code that utilizes the arrays becomes quite clunky. Thanks, Adam

Re: [PHP] The end of mysql

2012-09-07 Thread Adam Richardson
. What about PDO? Is that available? Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] templeting

2012-09-04 Thread Adam Richardson
a templating framework with input validation capabilities. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 7:39 AM, Matijn Woudt tijn...@gmail.com wrote: On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson simples...@gmail.com wrote: On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete halukkaram...@gmail.com

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 3:28 PM, Matijn Woudt tijn...@gmail.com wrote: On Tue, Aug 28, 2012 at 7:18 PM, Adam Richardson simples...@gmail.com wrote: Finally, you're the first one that actually has measured something. You should redo your test with real world files, because in real world

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-28 Thread Adam Richardson
-joking line :) If build a blog using Wordpress, build Wordpress using Drupal, build a Drupal using Symfony2, I'd feel the same way I feel after drinking several beers, eating a pizza, snacking on some hot wings, and polishing it all off with a banana split: bloated :) Adam -- Nephtali: A simple

Re: [PHP] include selectively or globally?

2012-08-27 Thread Adam Richardson
, even if they're unused), is certainly going to perform more slowly than selectively including the library on only the pages that need the library. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http

Re: [PHP] multiple forms one page

2012-08-26 Thread Adam Richardson
/developerworks/opensource/library/os-php-secure-apps/index.html Happy learning! Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redefine a define ...

2012-08-25 Thread Adam Richardson
ideas :) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Adam Richardson
a syntax error for this type of example. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is PHP unsuitable for HTML5 WebSockets?

2012-08-13 Thread Adam Richardson
should be much easier to manage. I don't think there's a right tool for the job, but I do believe some language environments may better facilitate this specific type of development. Have fun! Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

RE: [PHP] What do you call the end-user?

2012-07-20 Thread Adam Nicholls
to J K Rowling!) - people just don't appreciate the magic involved behind the scenes in usability, infrastructure, application logic etc. Thanks Adam. = This email is intended solely for the recipient and is confidential

RE: [PHP] Entry point of an MVC framework

2012-07-13 Thread Adam Nicholls
with areas of the language you might not normally use, you might want to get inventive with the Reflection class to check actions or controllers exist and then forward the user to a 404 page later on. Cheers Adam

RE: [PHP] database hell

2012-07-12 Thread Adam Nicholls
); mysql_select_db('db2',$db2); // do your queries with $DB1 $result = mysql_query(delete from userprefs where clientr=.mysql_real_escape_string($user,$db1)., $db1); // do your queries again with $DB1 mysql_close($db1);//close db1 mysql_close($db2);//close db2 Cheers Adam

Re: [PHP] Re: show info from mysql db

2012-06-10 Thread Adam Richardson
to database'); You had been keeping the password secret, but it looks like you accidentally leaked it, so a replacement might be in order :) Glad you got it fixed. Typos can be little buggers to find sometimes. Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP framework http

Re: [PHP] SQL Injection

2012-06-08 Thread Adam Richardson
On Fri, Jun 8, 2012 at 12:37 PM, Ethan Rosenberg eth...@earthlink.net wrote: Is it possible to have a meeting of the minds to come up with (an) appropriate method(s)? Minds, meet prepared statements :) Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP framework http

Re: [PHP] Too many arrays! My head is exploding!

2012-05-29 Thread Adam Richardson
): http://en.wikipedia.org/wiki/Power_set Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables via url

2012-05-12 Thread Adam Richardson
this configuration in your server configuration file will result in less of a performance hit, as the configuration is loaded once when httpd starts, rather than every time a file is requested. Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] session lost problem

2012-04-24 Thread Adam Richardson
', your session has already terminated. Try removing the session_commit() calls (or at least permanently remove the first call.) You only want to call session_commit() when you're done accessing/updating $_SESSION variables. Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP

Re: [PHP] Variable representation

2012-04-01 Thread Adam Randall
++; // increment k since it starts at 0, instead of 1 if ( strlen( trim( $v ) ) ) { echo lia href=\http://www.theverseoftheday.info/store-images/; . $v . \ title=\Image . $k . \Image . $k . /a/li\r\n; } } Adam. On Sun, Apr 1, 2012 at 8:52 PM, Ron Piggott ron.pigg

Re: [PHP] PHP: superior code quality

2012-03-28 Thread Adam Richardson
, .20, and .21 respectively. http://www.coverity.com/html/press/open-source-code-quality-on-par-with-proprietary-code-in-2011-coverity-scan-report.html Very nice! Thanks for sharing, Kirk. Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Adam Richardson
and then always use json_encode to generate the JSON as needed. Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Adam Richardson
; } } Then, you can just write: $first_name = s('first_name', p('first_name')); Adam -- Nephtali:  A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-28 Thread Adam Richardson
the perfect solution. :( Many thanks in advance for the help! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Out of curiosity, why are you worried about the order of elements in an associative array? Thanks, Adam

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Adam Richardson
, visit: http://www.php.net/unsub.php I tend to set up a custom error handler that throws exceptions (set_error_handler()), then set up an exception handler (set_exception_handler()) that logs the backtrace (or saves it to a db) available using debug_backtrace(). Adam -- Nephtali: A simple

[PHP] Great video by Bret Victor: Inventing on Principle

2012-02-25 Thread Adam Richardson
Saw this on the Clojure list and thought it was worth sharing here, too: http://vimeo.com/36579366 Worth the hour of time to watch it, as it has some great ideas for improving the experience of developers. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http

[PHP] Race Condition In PHP Session Handler

2012-02-20 Thread Adam Tauno Williams
0x7fa177531767 in ?? () #16 0x7fa177531a7a in ?? () #17 0x7fa177531dab in ap_mpm_run () #18 0x7fa177509900 in main () -- System Network Administrator [ LPI NCLA ] http://www.whitemiceconsulting.com OpenGroupware Developer http://www.opengroupware.us Adam Tauno Williams -- PHP

Re: [PHP] Race Condition In PHP Session Handler

2012-02-20 Thread Adam Tauno Williams
On Mon, 2012-02-20 at 20:02 +0100, Matijn Woudt wrote: On Mon, Feb 20, 2012 at 7:21 PM, Adam Tauno Williams awill...@whitemice.org wrote: php-5.3.3-3.el6_2.6.x86_64 2.6.32-220.4.2.el6.x86_64 The PHP session file. Originally I had a tmpfs mounted for the session files. I removed

Re: [PHP] Help! Having trouble getting one XML field from this feed reliably

2012-02-09 Thread Adam Richardson
It is pretty convenient that SimpleXMLElement allows you to grab URL's, but curl allows me to manually set a timeout limit (along with many other things, although they're not necessarily needed in Rob's example), so I tend to use curl in this type situation, too. Adam -- Nephtali: A simple

Re: [PHP] Help! Having trouble getting one XML field from this feed reliably

2012-02-08 Thread Adam Richardson
contents of the url \''.$url.'\'. CURL error number:'.$error_no); I wonder if you transaction is timing out, which you can set as below: curl_setopt($ch, CURLOPT_TIMEOUT, $transaction_timeout = 2); Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http

Re: [PHP] What's Your Favorite Design Pattern?

2012-02-07 Thread Adam Richardson
.. Higher-order functions: http://programmers.stackexchange.com/questions/72557/how-do-you-design-programs-in-haskell-or-other-functional-programming-languages Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Long Live GOTO

2012-02-06 Thread Adam Richardson
On Mon, Feb 6, 2012 at 4:07 AM, Tim Streater t...@clothears.org.uk wrote: On 06 Feb 2012 at 07:47, Adam Richardson simples...@gmail.com wrote: While not purely focused on PHP, I toss this out to the group because I believe there are some novel, interesting points regarding the potential

Re: [PHP] Long Live GOTO

2012-02-06 Thread Adam Richardson
On Mon, Feb 6, 2012 at 4:25 AM, Adam Richardson simples...@gmail.comwrote: On Mon, Feb 6, 2012 at 4:07 AM, Tim Streater t...@clothears.org.uk wrote: On 06 Feb 2012 at 07:47, Adam Richardson simples...@gmail.com wrote: While not purely focused on PHP, I toss this out to the group because I

Re: [PHP] Long Live GOTO

2012-02-06 Thread Adam Richardson
On Mon, Feb 6, 2012 at 10:05 AM, Robert Cummings rob...@interjinn.comwrote: On 12-02-06 04:07 AM, Tim Streater wrote: On 06 Feb 2012 at 07:47, Adam Richardsonsimpleshot@gmail.**comsimples...@gmail.com wrote: While not purely focused on PHP, I toss this out to the group because I

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Adam Richardson
arithmetic, limiting one are of potential trouble: http://golang.org/doc/go_for_cpp_programmers.html#Conceptual_Differences Interesting. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Adam Richardson
of work! Interesting that C++ was not allowed. Thanks for the background information, Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: Re: [PHP] Long Live GOTO

2012-02-06 Thread Adam Richardson
On Mon, Feb 6, 2012 at 11:58 AM, Tim Streater t...@clothears.org.uk wrote: On 06 Feb 2012 at 09:48, Adam Richardson simples...@gmail.com wrote: On Mon, Feb 6, 2012 at 4:25 AM, Adam Richardson simples...@gmail.com wrote: On Mon, Feb 6, 2012 at 4:07 AM, Tim Streater t...@clothears.org.uk

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Adam Richardson
don't use PHP to handle this aspect of the development. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Adam Richardson
for that kind of scenarios. Marco, Do you know of any research (Human Factors, Bug Analysis, etc.) that supports this? I'm certainly not saying that your assertion is incorrect. However, I'm starting to compile relevant research related to this topic. Thanks, Adam -- Nephtali: A simple

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Adam Richardson
On Mon, Feb 6, 2012 at 3:50 PM, Adam Richardson simples...@gmail.comwrote: On Mon, Feb 6, 2012 at 12:58 AM, Paul M Foster pa...@quillandmouse.comwrote: This is sort of obliquely related to PHP. I don't have a smart phone, but I need to know a couple of things: 1) Do smart phones use

[PHP] Long Live GOTO

2012-02-05 Thread Adam Richardson
Hi, While not purely focused on PHP, I toss this out to the group because I believe there are some novel, interesting points regarding the potential benefits of using the goto construct as implemented in PHP: http://adamjonrichardson.com/2012/02/06/long-live-the-goto-statement/ Adam

Re: [PHP] differences in between these env. variables

2012-01-29 Thread Adam Richardson
On Sun, Jan 29, 2012 at 11:38 AM, Tedd Sperling tedd.sperl...@gmail.comwrote: On Jan 27, 2012, at 12:45 PM, Adam Richardson wrote: On Fri, Jan 27, 2012 at 12:09 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jan 11, 2012, at 9:24 PM, tamouse mailing lists wrote: Is there ever

Re: [PHP] differences in between these env. variables

2012-01-27 Thread Adam Richardson
: http://stackoverflow.com/questions/279966/php-self-vs-path-info-vs-script-name-vs-request-uri Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

[PHP] php://input

2012-01-14 Thread Adam Tong
Hi, I am trying to read variables from input method. I am using this tuorial: http://www.lornajane.net/posts/2008/Accessing-Incoming-PUT-Data-from-PHP. Here is my code: ?php if($_SERVER['REQUEST_METHOD'] == 'GET') { echo this is a get request\n; echo $_GET['fruit']. is the fruit\n;

Re: [PHP] Date function kill lots time !

2012-01-04 Thread Adam Richardson
/bug.php?id=39968 Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Re: Preferred Syntax

2011-12-16 Thread Adam Richardson
manner by several on the list. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Preferred Syntax

2011-12-14 Thread Adam Richardson
, as I think it's most beneficial to stay with the established conventions in any codebase (unless you're establishing a new convention and refactoring the entire code base.) This is just my general preference, and I don't believe there is consensus as to the most appropriate. Adam -- Nephtali

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Adam Richardson
-mode-useful-for-anything Adam (Sorry for the duplicate, Rick, I forgot to reply all the first time.) -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Adam Richardson
to decrypt too? You're normally right, Matijn, However, ECB mode doesn't use an IV, so even though he's generating an IV, it's not being used (and, the benefit of an IV is one of the main reasons you try to avoid ECB.) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework

Re: [PHP] mcrypt_encrypt help needed

2011-11-30 Thread Adam Richardson
On Wed, Nov 30, 2011 at 4:25 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Nov 30, 2011 at 10:18 PM, Adam Richardson simples...@gmail.com wrote: On Wed, Nov 30, 2011 at 4:14 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Nov 30, 2011 at 9:57 PM, Rick Dwyer rpdw...@earthlink.net

Re: [PHP] PHPExcel

2011-11-29 Thread Adam Balogh
Hi, *Heres the documentation:* http://phpexcel.codeplex.com/releases/view/45412#DownloadId=212183 In user doc: *4.2 Reading Only Named WorkSheets from a File* * * and you can get all the sheet names: http://www.auditbureau.org.au/a/Documentation/API/PHPExcel/PHPExcel.html#methodgetSheetNames

Re: [PHP] delete and recreate

2011-11-09 Thread Adam Richardson
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Make sure PHP has the permissions needed to delete and create files in the directory. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Re: Writing out errors to a file

2011-11-03 Thread Adam Richardson
using error_log() works very well. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Friday Distraction

2011-10-28 Thread Adam Richardson
Distraction would elicit such a broad range of responses AND keep the commentary coming right through to the next Friday. Nice :) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Sequential access of XML nodes.

2011-09-26 Thread Adam Richardson
/manual/en/intro.xmlreader.php In terms of dealing with various forms of compression, I believe you con use the compression streams to handle this: http://stackoverflow.com/questions/1190906/php-open-gzipped-xml http://us3.php.net/manual/en/wrappers.compression.php Adam -- Nephtali: A simple

Re: [PHP] array problem

2011-09-09 Thread Adam Balogh
hi, try to use print_r or var_dump to echo compound data type

Re: [PHP] how catch a warning by file_put_contents() ?

2011-08-19 Thread Adam Richardson
://www.php.net/manual/en/errorfunc.constants.php):/dtdd$errno/dddtError Message:/dtdd$errstr/dddtFile:/dtdd$errfile/dddtLine:/dtdd$errline/dd/dl; throw new \Exception($error_msg); } } set_error_handler('error_handler'); I just pulled some quick code from my web framework. Adam -- Nephtali

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Adam Richardson
of floating points (http://php.net/manual/en/language.types.float.php), you can use PHP's BC Math functions to enforce arbitrary precision: http://www.php.net/manual/en/ref.bc.php http://www.php.net/manual/en/ref.bc.php Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Adam Richardson
2011/7/18 Richard Quadling rquadl...@gmail.com 2011/7/18 Martín Marqués martin.marq...@gmail.com: Any ideas? For financial values, I use the money type. I use MS SQL, but PostgreSQL has http://www.postgresql.org/docs/9.0/interactive/datatype-money.html The version of PostgreSQL plays

Re: [PHP] Linking A C Program Example to PHP

2011-07-10 Thread Adam Richardson
on my Apache 2 (2.2.17) / PHP (5.3.5) Web Server! Did you reload or restart apache after making the edits to php.ini? For example: $ /etc/init.d/apache2 restart Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] ApiGen - a tool for generating source code documentation

2011-06-29 Thread Adam Richardson
I'll try it on my PHP 5.3 web framework later today. Thanks for working on this project! Adam 2011/6/29 Ondřej Nešpor kon...@andrewsville.cz Hi everybody! We'd like to introduce you our documentation generator - ApiGen 2. We use it as a replacement for PhpDocumentor (that is not being

[PHP] Php filter validate url

2011-06-26 Thread Adam Tong
Hi, I wanted tu use php filters for validation to avoid regular expresions. Is it possible that FILTER_VALIDATE_URL only checks if the string has http:// and do not check for the format domain.something? $url = 'http://wwwtestcom'; $url = filter_var($url,FILTER_VALIDATE_URL); echo $url;

Re: [PHP] newbie date time question

2011-06-22 Thread Adam Balogh
, David Nicholls d...@dcnicholls.com wrote: On 23/06/11 12:23 AM, Adam Balogh wrote: hi, you have a PM(/AM) in your date ($d[0]), so put an A (Uppercase Ante meridiem and Post meridiem) format char to your $format variable. b3ha Thanks, Adam. Tried that and it's now throwing an error

[PHP] help with an array if its possible!

2011-06-22 Thread Adam Preece
possible :-/. i hope this makes sense. i'm truly stuck! kind regards Adam Preece -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't use class 'DOMDocument

2011-06-08 Thread Adam Tong
. Buskirk -Original Message- From: Adam Tong [mailto:adam.to...@gmail.com] Sent: Monday, June 06, 2011 9:49 PM To: php-general@lists.php.net Subject: [PHP] Can't use class 'DOMDocument Hi, When I try using DOMDocument I get the following error: Fatal error: Class 'DOMDocument

[PHP] advice on how to build this array from an array.

2011-06-07 Thread Adam Preece
to build an array and use the [cat_name] as the key and assign all the pages to that cat_name? what im trying to achieve is a category of pages but i want the cat_name as the key to all the pages associated to it hope i make sense kind regards Adam -- PHP General Mailing List (http

  1   2   3   4   5   6   7   8   9   10   >