Re: [PHP] Help with sending credentials?

2010-10-14 Thread Adam Richardson
T vs GET) or the content type be causing the issue (hard to guess beyond this without knowing the service?) See this simple twitter function for examples of what I'm wondering about: http://fabien.potencier.org/article/20/tweeting-from-php Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] "My truth comes out" [1]

2010-10-21 Thread Adam Richardson
ou don't need to add a function call to the stack: $value_to_convert = 'TRUE'; // tested with true, but works with false, too $bool = ('TRUE' == $value_to_convert); This does require that you've sanity checked the value before hand, as your "either "TRUE" or "FALSE"" statement implies. Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] Convert hex string to hex value?

2010-10-21 Thread Adam Richardson
.conversion In your second example, you're directly inputing a hex number, so there's no issue. Hope you get some rest :) Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Adam Richardson
; PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Does doing a str_replace and changing it to the corresponding entity number (®) before parsing with simple_xml work? Here's a more robust function: http://www.sourcerally.net/Scripts/39-Convert-HTML-Entities-to-XML-Entities Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] Entity 'reg' not defined

2010-10-22 Thread Adam Richardson
On Fri, Oct 22, 2010 at 1:19 PM, TR Shaw wrote: > > On Oct 22, 2010, at 12:03 PM, Adam Richardson wrote: > > > On Fri, Oct 22, 2010 at 11:47 AM, TR Shaw wrote: > > > >> Anyone have an idea how to work around this? I tried: > >> > >> define (

Re: [PHP] Stripslashes redundancy question.

2010-10-24 Thread Adam Richardson
has been deprecated: http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc <http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc>This was after many criticisms were leveled against the use of magic quotes: http://en.wikipedia.org/wiki/Magic_quotes So

Re: [PHP] Stripslashes redundancy question.

2010-10-25 Thread Adam Richardson
off (even most shared hosts allow you to turn off magic quotes if they aren't already turned off.) That said, I understand your approach. I just wanted to make sure I spoke more clearly to the issues I had magic quotes. Adam -- Nephtali:  PHP web framework that functions beautifully h

Re: [PHP] Watermark with GD

2010-10-29 Thread Adam Richardson
in $_GET['src']. >From where are you getting the value 'src'? Adam -- Nephtali:  PHP web framework that functions beautifully http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] questions about if statements regarding a checkbox

2010-10-30 Thread Adam Richardson
checkbox. > // checkboxes are only set if checked if (isset($_GET['checkbox_name'])) { // checkbox is checked, so send one mail mail($to = 'o...@email.com', $subject = 'Really cool email'); } else { // checkbox isn't checked, so send a different

Re: [PHP] Is session_start() using encrypted cookies with HTTPS

2010-11-07 Thread Adam Richardson
t; [1] > > http://news.netcraft.com/archives/2010/11/03/github-moves-to-ssl-but-remains-firesheepable.html > [2] http://www.php.net/setcookie > [3] http://www.php.net/session-start > Hope this helps, Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] Is session_start() using encrypted cookies with HTTPS

2010-11-08 Thread Adam Richardson
he same level of security as was used when it received the cookie from the server [emphasis added]*. ===== So, use the flag, but remember it's not a fix-all. Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] Template engines

2010-11-09 Thread Adam Richardson
HPTAL (I especially appreciate its syntax), and other templating engines are well documented and offer many of the same features and qualities, and those features are what compel me to use them as opposed to just using PHP. That doesn't mean I always use a templating engine/framework, but I us

Re: [PHP] Is session_start() using encrypted cookies with HTTPS

2010-11-09 Thread Adam Richardson
ns in any way. Does this help clear up your question, or did I misunderstand you, Bastien? Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] DOMDocument/DOMElement problem

2010-11-16 Thread Adam Richardson
Hmmm... Nothing really stands out to me, but as my wife would attest, I'm often less than observant. I would probably try sifting through fixes/upgrades in the change logs for possible conflicts and/or changes in behavior. Nothing jumped out at me after a quick glance. Sorry, Adam O

Re: [PHP] Stripslashes

2010-11-16 Thread Adam Richardson
gt; This would be no different than your attempt without enclosing parentheses. Now, let me just say that I detest magic_quotes, and it's best to run with them disabled so you don't even have to worry about this kind of issue (they've been deprecated.) But, perhaps you were just t

Re: [PHP] database design in a survey/poll system

2010-11-17 Thread Adam Richardson
h to merit this type of approach, I tend to JSON-encode the data ( http://php.net/manual/en/function.json-encode.php), leaving a simple JSON-decode operation (http://www.php.net/manual/en/function.json-decode.php) to get the queried data back into PHP form. Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] Stripslashes

2010-11-17 Thread Adam Richardson
> > Adam > > Thanks for your reply. So if I disable magic_quotes, and I assume I can do > that a script, then the stripslashes would work as the manuel said it > would, > meaning > > G\\a//r\y\\ becomes G\a//r'y\ > > I also assume that until php 6 is out an

Re: [PHP] E-mail injection question

2010-11-21 Thread Adam Richardson
t upload the framework to your site, add it to your include path, and then you can even use SMTP email capabilities through an account such as gmail or another email provider, which is much better than using the general mail() function, anyway. And, you have all the security benefits. Here&#x

Re: [PHP] curl and variable parameters in hyperlink

2010-11-24 Thread Adam Richardson
l encoding the post value rather than merely hunting down spaces and swapping them out with "+". Hope this helps, Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] code quest

2010-11-26 Thread Adam Richardson
> -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > To get you started: function get_directories($path) { $files_and_dirs = scandir($path); $dirs = array_filter($files_and_dirs, function($elem) { return is_dir

[PHP] A general discussion of libraries and frameworks

2010-12-10 Thread Adam Richardson
e. It's nice that those on this list do such a solid job of arguing whether to use frameworks or libraries or custom code, as this will better inform those who are new to programming and/or PHP. Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com

Re: [PHP] A general discussion of libraries and frameworks

2010-12-10 Thread Adam Richardson
On Fri, Dec 10, 2010 at 8:26 AM, Bob McConnell wrote: > From: Adam Richardson > > > As one point of curiosity, I'm wondering when a function or group of > > functions is, in your eyes, deemed a library. I tend to use the > pornography > > approach to identifying

Re: [PHP] ORM doctrine

2010-12-12 Thread Adam Richardson
gt; > Thanks, > Tommy Thinking of those who might later be searching the archives, perhaps further discussion of caching should be broken up into its own thread, as it seems to be moving off-topic. Let it snow, let it snow, let it snow. Adam -- Nephtali: A simple, flexible, fast, and sec

Re: [PHP] PDO: good, popular?

2010-12-14 Thread Adam Richardson
it or it's great or what? > > Thanks > I like working with PDO. I use a very thin set of wrapper functions to automatically grab the connection information from a config file, cause errors to be thrown as exceptions, and make sure the results are formatted as arrays. It works very well and r

Re: [PHP] PDO Prepared Statements and stripslashes

2010-12-21 Thread Adam Richardson
er source (magic_quotes_gpc might be on, and if so, I recommend turning it off.) > > So what's the mistake here and what's the correct way to do it? > 1. Turn off magic_quotes_gpc if on, as its use has been deprecated. 2. Use prepared statements. 3. Don't worry about stripping slashes ever again :) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Newbie Question

2011-01-02 Thread Adam Richardson
s demonstrated similar performance results: http://talks.php.net/show/froscon08/24 2) I don't want to have to change urls site-wide and set up redirects from the old url whenever a page requires adding dynamic capabilities. By making all pages PHP right from the beginning, adding dynamic cap

Re: [PHP] session_id() is not passed to the next page

2011-01-03 Thread Adam Richardson
egister() registers global variables, but you're inside a function. Set the session values using this technique instead: $_SESSION['sess_timeout'] = time() + 900; Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] session lost problem

2012-04-23 Thread Adam Richardson
sion_commit(), which is actually an alias for session_write_close(). This function actually stops the current session. So, when you hit the line $_SESSION['test'] = 'test', your session has already terminated. Try removing the session_commit() calls (or at least permanently re

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://nephtaliproj

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

2012-05-29 Thread Adam Richardson
ke he's after is the power set of set ABC (minus the empty set): 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] SQL Injection

2012-06-08 Thread Adam Richardson
On Fri, Jun 8, 2012 at 12:37 PM, Ethan Rosenberg 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://nep

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

2012-06-10 Thread Adam Richardson
27;admin','Duk30fZh0u','trek_db') >     or die ('Could not connect 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 littl

RE: [PHP] database hell

2012-07-12 Thread Adam Nicholls
es 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] Entry point of an MVC framework

2012-07-13 Thread Adam Nicholls
all requests to your bootstrap (often named index.php) Building frameworks and going through the motions are a great way to build up experience and play with areas of the language you might not normally use, you might want to get inventi

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

2012-07-20 Thread Adam Nicholls
all them Stakeholders or the Product Owner. Personally if I'm feeling a bit cheeky I'll go with "Muggle" - (thanks to J K Rowling!) - people just don't appreciate the magic involved behind the scenes in usability, infrastructure, application logic etc. Thanks Adam. ==

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

2012-08-13 Thread Adam Richardson
other languages for this particular aspect of an application, as the resource management 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.

Re: [PHP] redefine a define ...

2012-08-25 Thread Adam Richardson
SOME_NAME_PATTERN"); Not too bad in terms of work, as PHP's parsing capabilities are really nice. Hope this gives you 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 config setting that would cause 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] multiple forms one page

2012-08-26 Thread Adam Richardson
shed some light on some of the code you're seeing: http://www.ibm.com/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] include selectively or globally?

2012-08-27 Thread Adam Richardson
-defined classes and functions per request, 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

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 7:39 AM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 3:49 AM, Adam Richardson wrote: >> On Mon, Aug 27, 2012 at 6:54 PM, Matijn Woudt wrote: >>> On Mon, Aug 27, 2012 at 10:56 PM, Haluk Karamete >>> wrote: > > First of all, I believe PH

Re: [PHP] include selectively or globally?

2012-08-28 Thread Adam Richardson
On Tue, Aug 28, 2012 at 3:28 PM, Matijn Woudt wrote: > On Tue, Aug 28, 2012 at 7:18 PM, Adam Richardson 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 > functions aren

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

2012-08-28 Thread Adam Richardson
r semi-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 -- Nepht

Re: [PHP] templeting

2012-09-04 Thread Adam Richardson
, it's really 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] The end of "mysql"

2012-09-07 Thread Adam Richardson
, I'm told I'm s... outta luck. 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] PHP array unions

2012-09-13 Thread Adam Richardson
get 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 th

Re: [PHP] PHP array unions

2012-09-14 Thread Adam Richardson
// can use the union operator without any additional calls and the performance is stellar $a3 = $a1 + $a2 // can use the values of the array using the convention that the value is what you expect to handle/manipulate foreach ($a3 as $val) { echo $val } Here, the clunkiness is the redundancy in t

Re: [PHP] PHP Threading on Windows

2012-09-14 Thread Adam Richardson
On Fri, Sep 14, 2012 at 9:40 PM, Joe Watkins 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

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

2012-09-19 Thread Adam Richardson
at a time, 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,

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

2012-10-16 Thread Adam Richardson
hours ahead of the real time. > > 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

Re: [PHP] PHP to decode AES

2012-10-18 Thread Adam Richardson
hex format, but after > converting to hex and resubmitting, I still unprintable characters. > > Any info is appreciated. Can you post the Java code you're using? There are things such as the padding specification 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] PDO

2012-10-22 Thread Adam Richardson
012 21:15:00 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 -- Nep

[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: http://www.php.n

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

2012-10-31 Thread Adam Richardson
has said he leans procedurally: 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
Others have spoken on the topic of DI in functional languages, but I tend to use other approaches, such as passing in first-class functions (PHP's Closure objects create the appearance of this.) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

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

2012-11-12 Thread Adam Richardson
onsistent 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: [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] seg fault with pecl ps extension

2012-11-28 Thread Adam Richardson
compatible changes in PHP (e.g., http://www.php.net/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.sourceforg

Re: [PHP] seg fault with pecl ps extension

2012-11-28 Thread Adam Richardson
-time pass-by-reference: http://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] Integer

2013-02-01 Thread Adam Richardson
en 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 -- Neph

Re: [PHP] newbie with imap_mail_move

2013-02-09 Thread Adam Richardson
implode (",",$msg_no); > 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

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

Re: [PHP] fopen and load balancing

2013-02-10 Thread Adam Richardson
On Sun, Feb 10, 2013 at 5:41 PM, Adam Tong 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 becau

Re: [PHP] fopen and load balancing

2013-02-11 Thread Adam Tong
, 2013 at 4:26 AM, ma...@behnke.biz wrote: > > > Adam Tong 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 >>

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

2013-02-18 Thread Adam Richardson
ough to code to some other 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, flexibl

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

2013-02-19 Thread Adam Richardson
ould return true because an empty 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 -- Nephtal

Re: [PHP] Arrays

2013-02-25 Thread Adam Richardson
rray couldn't contain multiple items with the specialservice key (I'm assuming the second key 'secialservice' is just a typo), as any subsequent assignments would overwrite the previous value. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP fra

[PHP] Close enough to Friday...

2013-02-28 Thread Adam Richardson
ys, I just 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/) T

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

2013-02-28 Thread Adam Richardson
ring 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/unsub.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 in

Re: [PHP] Load testing an app

2013-04-22 Thread Adam Richardson
to a DHCP server on a separate Windows server, and the database is SQL > Server 2008 (previously 2000). > PHP 5.4 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

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 wrote: > i starting to use mod rewrite but all my images or js links doest work > my current query string is: > index.php?r=blog&page=2 > i want to change

[PHP] COM - Assigning to method.

2013-07-12 Thread Adam Nicholls
#x27;t work - I've also tried (below) but the API says wrong number of parameters $Record->Fields('BANK_fld_ACCOUNT_NAME', 'Test Account'); I've also tried something crazy like th

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 wrote: > > > > On 13 July 2013 01:24, Andrew Ballard wrote: >&g

Re: [PHP] COM - Assigning to method.

2013-07-15 Thread Adam Nicholls
y project, so I'm beginning to think that using this COM API for this project is a no-go, which is unfortunate. I'm 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

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. http://us2.php.net/manual/en/regexp.reference.de

Re: [PHP] Class and interface location

2011-01-18 Thread Adam Richardson
composite of class hierarchy established in all the files (project wide, at least in terms of the plugin), you wouldn't have to double declare interfaces so they could be detected. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Class and interface location

2011-01-19 Thread Adam Richardson
On Wed, Jan 19, 2011 at 8:21 AM, Richard Quadling wrote: > On 19 January 2011 07:46, Adam Richardson wrote: > > On Wed, Jan 19, 2011 at 2:07 AM, Larry Garfield >wrote: > > > >> 3) Static analysis. Instead of reflection, either tokenize or string > parse > >&

Re: [PHP] Class and interface location

2011-01-19 Thread Adam Richardson
On Wed, Jan 19, 2011 at 11:23 AM, la...@garfieldtech.com < la...@garfieldtech.com> wrote: > On 1/19/11 10:09 AM, Adam Richardson wrote: > >> On Wed, Jan 19, 2011 at 8:21 AM, Richard Quadling> >wrote: >> >> On 19 January 2011 07:46, Adam Richardson wrote: >

Re: [PHP] switch case madness

2011-01-19 Thread Adam Richardson
you might want to check out: Lithium Fat-free Limonade Nephtali (my framework) fits within one file (except the config file). I'll send you a note off-list highlighting Nephtali's features. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] possible namespace bug?

2011-01-20 Thread Adam Richardson
tification namespace? If it's in org\puremvc\php\interfaces, you'll have to include it, too. I see you just included the whole set of interfaces in the top part of the example. Maybe you just omitted the code, but that could be the problem. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Pear Problems

2011-01-26 Thread Adam Richardson
files follow the convention (notice that there's no colon in the example): some_name = some_value Happy coding, Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] 95th percentile of an array.

2011-01-29 Thread Adam Richardson
u need working. Adam On Sat, Jan 29, 2011 at 11:15 AM, Paul Halliday wrote: > What is the quickest way to do this? Will stats_stat_percentile work? > If so, does anyone have examples of its operation? > > Keep in mind that my math is terrible. Use small words :) > > Thanks. >

Re: [PHP] 95th percentile of an array.

2011-01-30 Thread Adam Richardson
ed to involves rounding (2.5 would round to 3, and 2.4 would round to 2), so I just included the rounding in the equation. Let me know if you see something I botched. Thanks, Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] 95th percentile of an array.

2011-01-30 Thread Adam Richardson
On Sun, Jan 30, 2011 at 10:39 PM, Adam Richardson wrote: > On Sun, Jan 30, 2011 at 8:44 PM, Marc Trudel wrote: > >> Just out of curiosity, wouldnt it be better to use floor($n) instead of >> round($n-0.5)? >> > > Hi Marc, > > I don't think so, although I

Re: [PHP] Pulling from Multiple Databases

2011-02-01 Thread Adam Richardson
uld use curl_multi to grab the results in parallel and quick decode the json. Adam P.S. - Sorry for the duplicate, Jon, I forgot to copy the list. -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Memcache problems

2011-02-03 Thread Adam Richardson
the first iteration of the foreach, $value would equal '127.0.0.1', so $value[0] would give you '1', $value[1] would give you '2', etc. Do you see what I'm saying? Did you forget or omit other relevant code? Or, I'm just having a really bad code day (in this case, I'll likely see my error just after sending this email.) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Rate my (really) simple template class

2011-02-15 Thread Adam Richardson
riables, then include the appropriate template file. See answer 2 by meouw in the link below: http://stackoverflow.com/questions/529713/php-define-scope-for-included-file Anyways, just 2 quick ideas. Happy PHP coding, Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Custom function

2011-02-16 Thread Adam Richardson
inly doing things > wrong. > I sometimes use this approach. PHP doesn't to my knowledge allow you to use function calls within defaults. There are times that I want the default to be the result of a function, and to accomplish this, I'll often set the default to null, then check f

Re: [PHP] New to list and to PHP

2011-02-18 Thread Adam Richardson
earning and participating. > Welcome, Pete. I'm confident you'll gain valuable insight through participating in the list. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Jquery

2011-02-21 Thread Adam Richardson
remove the first function that was > wrapping everything. > $(document).ready is enough. > Actually, he can remove the $(document).ready function and leave the outer function function, as this is a shorthand for the ready call: http://api.jquery.com/ready/ <http://api.jquery.com/ready/>

Re: [PHP] Can´t upload files bigger than 50KB

2011-03-09 Thread Adam Richardson
equest than the ajax script has allotted. That could explain why a 20K upload would work and a 50K isn't. 50K isn't that big, but if the timeout was set to one or two seconds, I suppose it's possible. Adam On Wed, Mar 9, 2011 at 10:02 AM, Gotzon Astondoa wrote: > Upload form is OK,

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-14 Thread Adam Richardson
perating on has changed has changed in terms of type. I'd try var_dumping each of the properties ($this->network and $this->netmask) the line above just to make sure they didn't somehow get switched to a type that bitwise operators complain about (array, Object.) Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Adam Richardson
t machine. > > > -Alex > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Nice detective work, Alex. Thanks for posting this info back to the list. I'm sure some tired-eyed developer some time in t

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Adam Richardson
On Tue, Mar 15, 2011 at 12:15 PM, Adam Richardson wrote: > On Tue, Mar 15, 2011 at 11:50 AM, Andy McKenzie wrote: > >> > Now: I did a little more looking around this morning, and it looks >> > like I may well run into problems here given that I'm moving from a >

Re: [PHP] Failure in bitwise operations moving from 5.2.x to 5.3.x

2011-03-15 Thread Adam Richardson
On Tue, Mar 15, 2011 at 12:21 PM, Daniel Brown wrote: > On Tue, Mar 15, 2011 at 12:18, Adam Richardson > wrote: > > > > My apologies: > > > > Nice detective work ANDY (sorry, Andy, see earlier note about my shabby > > memory.) I'd just replied

Re: [PHP] Permission Denied - Help Requested

2011-03-28 Thread Adam Richardson
om PHP. > > Any more suggestions? > > Thanks. > > Ethan > Hi Ethan, Are you using suPHP or suExec? I believe the server chokes on 777 permissions in those cases. Have you checked the permissions in the command line (sorry for the basic question, but just making sure I know what you've already done?) Also, can we see some of the code you're using to handle the file processing? Thanks, Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com

Re: [PHP] Permission Denied - Help Requested

2011-03-29 Thread Adam Richardson
On Mon, Mar 28, 2011 at 11:43 PM, Ethan Rosenberg wrote: > At 11:14 PM 3/28/2011, Adam Richardson wrote: > >> On Mon, Mar 28, 2011 at 11:03 PM, Ethan Rosenberg <> eth...@earthlink.net>eth...@earthlink.net> wrote: >> At 01:32 AM 3/28/2011, Hans Ã…hlin wrote: &g

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