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
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
.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
; 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
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 (
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
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
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
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
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
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
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
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
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
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
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
>
> 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
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
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
> --
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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.
==
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
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.
==
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.
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
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
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
-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
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
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
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
, 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
, 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
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
// 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
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
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,
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
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
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
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
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
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
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
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?
>
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
-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
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
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
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
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
, 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
>>
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
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
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
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
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
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
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
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
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
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
#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
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
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
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
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
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
> >&
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:
>
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
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
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
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.
>
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
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
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
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
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
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
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
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/>
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,
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
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
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
>
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
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
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
801 - 900 of 1427 matches
Mail list logo