d] => 10 [main_nav]
=> true [cat_name] => material range )
is it possible 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
h
Hi,
When I try using DOMDocument I get the following error:
Fatal error: Class 'DOMDocument' not found in ...
I guess something has to be fixed in my php.ini?
Here is my php version:
# php -version
PHP 5.3.6 (cli) (built: Mar 17 2011 20:58:15)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2
Hi,
I can't set correctly the error display and reporting properties. I
don't know what i'm doing wrong.
Here is the section that i modified in php.ini:
-
display_errors = On
; Default Value: On
; Development Value: On
; Production Value: Off
display_startup_errors = On
; Default V
Hi,
I'm running a site for which I need an authentication system. I have
already my own (that is too simplistic and not very secure).
I want some advice here. I checked PEAR, but as there are several
options there, I was not sure which one to choose. Here are my needs:
- Some sections of the site
On Fri, Jun 3, 2011 at 3:43 AM, 李白|字一日 wrote:
>
>
> 2011/6/3 Adam Richardson
>
>> On Fri, Jun 3, 2011 at 2:20 AM, 李白|字一日 wrote:
>>
>>> is there an efficient way to hold the requests while loop is an expensive
>>> way in most cases.
>>
>>
&g
On Fri, Jun 3, 2011 at 2:20 AM, 李白|字一日 wrote:
> is there an efficient way to hold the requests while loop is an expensive
> way in most cases.
You can call sleep(number_of_seconds_to_sleep) within the while loop to
lower the cost, so to speak.
> and i don't know how to notify the holding conn
d, if you wanted to write an extension to facilitate long
polling, you could, but given the natural latencies for these requests, I'm
not sure you'd find a significant benefit.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
ns,
$replacement = $re_replaces, $subject = $php)) !== null) ? $temp_php: $php;
I'm confident you can easily use PHP to do this, and hopefully this info is
enough to get you started.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
=>category 1 [1] => 3=>category 2 [2] => 4=>category 3 [3] =>
5=>category 4 [4] => 6=>category 5 [5] => 7=>category 6 [6] => 8=>category 7
[7] => 9=>category 8 [8] => 10=>category 9 [9] => 11=>category 10
hope this makes sense?
kind rega
hi all,
is it possible to dynamically build a key value pair array in php from a
database result?
if so how?
kind regards
Adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP_SELF (dangerous)
$_SERVER['SCRIPT_FILENAME']
$_SERVER['REQUEST_URI'] (dangerous)
__FILE__
basename(__FILE__)
basename($_SERVER['SCRIPT_NAME'])
Try to enter the attack vector and you'll see PHP_SELF could be terrible,
but the basename option for script_filename and __FILE__ are immune.
Again, sorry for the confusion.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
TF-8 and look for improper
encodings.
As far as a PHP function that already does this, I'm not aware of it, but
you could make a system call to "file" if your on Linux, as it tries to
automatically determine the encoding:
http://linux.die.net/man/1/file
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
cking it in
>> JavaScript. You need AJAX for that, don't you?
>>
>
> AJAX = JavaScript.
>
>
Well, no, Ajax is the combination of multiple technologies:
http://www.w3schools.com/ajax/default.asp
<http://www.w3schools.com/ajax/default.asp>Adam
--
Nephta
On Thu, May 19, 2011 at 8:51 PM, Alex Nikitin wrote:
> Hey Adam :)
>
> I devoted entire 3 minutes to glimpsing over the code and showing simple
> ways to fix them, you make excellent points, i simply didnt even look into
> them. You are absolutely correct in saying that sha1 a
chieve higher levels of
security.
That said, you made some really nice points, and I'm hopeful Tedd considers
them carefully. His site is a nice resource for many PHP developers already
(especially those just starting out), and these changes can only make it
better.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
On Wed, May 18, 2011 at 10:46 PM, Adam Richardson wrote:
>
> I'm a security expert by any means, as I've made mistakes in the past that
> have provided education the hard way!
>
Just to be very clear, this is a mistake (as the rest of the sentence
implies), and it should h
l:* Don't rush. Carefully deliberate on the context, both in terms of
the expectations for input AND the nature of output. If you do this, you
eventually will get the level of security you're after (that, and fuzz the
heck out of something before you send it to Rasmus :)
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
On Wed, May 18, 2011 at 6:42 PM, Michelle Konzack <
linux4miche...@tamay-dogan.net> wrote:
> Hello ad...@buskirkgraphics.com,
>
> since YOU ARE an ADMIN, you should real know abut,
> HOW TO WRITE A NEW MESSAGE and not to hijack a SPAM thread...
>
What?
--
Nephtali: A simple, flexible, fast, an
>
> On Sun, May 15, 2011 at 7:48 PM, tedd wrote:
At 1:46 PM -0400 5/10/11, Adam Richardson wrote:
>
>> The rest of the list does show you've read a fair amount in the past month
>> (just as others on this list, including me), but what does it do to
>> sp
Hi Ash,
I want to clarify a couple points.
On Tue, May 10, 2011 at 2:27 PM, Ashley Sheridan
wrote:
> On Tue, 2011-05-10 at 13:46 -0400, Adam Richardson wrote:
>
> Hi Tedd,
>
> How's it going? I'm very pleased with the emphasis on accessibility you
> bring to th
e learned much from your posts, and
this discussion does not detract from that. However, I want to make sure the
developers subscribing to the list will consider the use of the and
tags as recommended by the W3C in (X)HTML5.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
se nuanced differences will eventually enhance the experience
of those who are using screen readers.
So, while I don't necessarily recommend using a lot of and tags now,
it's likely that in the near future their use will again be encouraged as
HTML5 becomes better supported.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
Hi,
> get_currentuserinfo();
>
> echo 'Welcome ' . "".$current_user->user_firstname . "."\n";
> echo '' ". $current_user->user_lastname . "".\n";
> ?>
On 7 May 2011, at 18:42, Michael Simiyu wrote:
> hey,
>
> some php 101 here guys :)
>
> i want to bold the first name and la
rray['row']
>
> Foreach($array['row'] as $key=>$values)
> {
> Echo $values.PHP_EOL;
> }
>
>
>
>
> Richard L. Buskirk
>
> -Original Message-
> From: Adam Preece [mailto:a...@blueyonder.co.uk]
&g
-07 06:49:39 [image] => [user_access_id]
=> 1 )
How do i access each array within the array and throw out the data for each one.
im pretty confused on this one.
any help would be appreciated.
Adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gt; At 7:19 PM +0100 5/2/11, Adam Preece wrote:
>> the reason, why i don't want to use word press and any other open source
>> solution, is that i want to learn how it is all done. im sure i can figure
>> it out myself but i would like to ask others and see how they would
ystem.
if you have the time could you please tell me more how i could achieve a
modular template system?
cheers
On 2 May 2011, at 18:52, Ashley Sheridan wrote:
> On Mon, 2011-05-02 at 18:43 +0100, Adam Preece wrote:
>>
>> Hi,
>>
>> sure i will try to be more s
ope this is a better explanation for you guys.
cheers
On 2 May 2011, at 18:12, Ashley Sheridan wrote:
> On Mon, 2011-05-02 at 17:59 +0100, Adam Preece wrote:
>>
>> Hi,
>>
>> im building a cms and im currently thinking of a way to build an add page
>> function.
>
Hi,
im building a cms and im currently thinking of a way to build an add page
function.
any one got some ideas on the best way to achieve this?
cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi, then use this.
> if (current_user_can('level_10')) : ?>
> http://www.google.com\"; target=\"_self\">My Link";
> ?>
>
>
>
>
>
hope this helps
Adam
On 2 May 2011, at 17:49, Michael Simiyu wrote:
> hello,
>
> i wa
$puzzle[$i] = $puzzle_filler[mt_rand(0, ($puzzle_filler_length - 1))];
}
}
return $puzzle;
}
echo fill_puzzle($puzzle = "%ECARBME%TIPLUP%%%E%%", $puzzle_filler =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ");
Happy Easter :)
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
ork for managing the flow of the application, and I just
include the specific Zend files needed in a particular page.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I'm not sure what you're asking, but you can set the values of the POST
array directly within a script, for instance:
$_POST['new_key'] = 'new_value';
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
sed or custom), all requests should run over https instead of
http.
- Escape output according to context (html, attribute, or url.)
If you google the above topics, you'll find some great sites/blogs that
address these topics in detail.
Adam
P.S. - Or, you can just use my one-file
th PHP.net. And, on the rare occasion you would need more speed than
your PHP script is providing, you'll be able to write you're own extension
to PHP using it's older brother, C.
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
On Tue, Mar 29, 2011 at 8:21 PM, Ethan Rosenberg wrote:
> At 05:33 PM 3/29/2011, Adam Richardson wrote:
>
>> >
>> > Thanks.
>> >
>> > What do you see if you run this? "Can't open or create file!"
>> >
>> > Ethan
>&g
ge the permissions on the directory so the group has write
permissions:
sudo chmod -R 2775 /home/username/path/to/uploads
4. Then try the script again.
See if that works.
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
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 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
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
>
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
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
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,
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/>
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
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
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
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
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
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
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
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.
>
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
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
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
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:
>
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
> >&
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
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
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
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
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
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
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
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
> --
> 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
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
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
>
> 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
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
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
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
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
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
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
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
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
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
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
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
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 (
; 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
.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
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
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
On Tue, Oct 5, 2010 at 6:56 AM, Richard Quadling wrote:
> The issue _WAS_ the firewall.
>
> All sorted.
>
> Thank you.
>
>
Glad he got it working.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Mon, Oct 4, 2010 at 6:29 AM, Richard Quadling wrote:
>
> http://pastebin.com/rsV35czb
>
> Code with tests and output.
>
>
Nice code, Richard.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
over to Silverlight. I just find it a better conceived development
environment for RIA than Flash.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Thu, Sep 30, 2010 at 2:30 PM, Erik L. Arneson wrote:
> On Wed, 29 Sep 2010, Adam Richardson wrote:
> > Hi all,
> >
> > Anybody know of a documentation generator which plays nicely with PHP
> > 5.3?
>
> I've always been a fan of phpDocumentor.
>
>
$value;
> $date = strtotime($date);
> $date = date('m-d-y', $date);
> return $date;
> }
>
> I'd appreciate any suggestions as to why this isn't working.
> Thanks.
> Dave.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe
t its served me well with other php5 code.
>
>
>
In the past I've been really pleased using phpDocumentor, however I'm afraid
the namespaces in 5.3 cause it to choke :(
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
Hi all,
Anybody know of a documentation generator which plays nicely with PHP 5.3?
Thanks,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
On Fri, Sep 10, 2010 at 3:03 PM, Joshua Kehn wrote:
> Adam-
>
> It is unique. I'm writing code that really can't be done any other way. How
> it handles events, sockets, etc is exceptional. The best part is everything
> now is JavaScript. The server (Node.js) is written
>
>
>
> This is what I get for taking a week to code everything in Node.js.
>
>
It is a Friday, so I'll let my curiosity get the best of me and ask a
follow-up on something non-PHP. What insights/impressions do you have
regarding Node.js after a week of working
I'm looking at someone's code to learn and I'm relatively new to
programming. In the code I see commands like:
$code->do_command();
I'm not really sure what that means. How would that look in procedural
style programming? do_command($code); or something else?
--
PHP General Mailing List
;1: A\n3: Test\n") {
echo 'Yes, this worked';
} else {
echo 'No, not again.';
}
You could also use a static method from a class and forget about passing the
$userdata variable, or use a static variable within the function itself to
maintain state.
That said, I've had several situations where I would have preferred the ease
of passing the userdata argument by reference, so I feel your pain.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
#x27;s FTP functions to place the file
in the directory. This way I avoid the security issues of 777, maintain an
easy-to-use interface (some clients don't want to use FTP), and continue to
use the hosting the client prefers. There is a cost to this method, but
sometimes it's worth the cost.
Just another way of doing things.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
eather.gov/alerts/us.html#ak
EOD;
echo $doc;
$cap = simplexml_load_string($doc);
$cap->registerXPathNamespace('cap', 'http://www.incident.com/cap/1.0');
echo 'Message type:'.current($cap->xpath('//cap:msgType')).'';
echo 'Info category:'.current($cap->xpath('//cap:info/cap:category')).'';
Hope this helps,
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
gh you code looking for any output (even a
single whitespace) that's present before the call to header in the menu.php
file referenced in your error.
Adam
--
Nephtali: PHP web framework that functions beautifully
http://nephtaliproject.com
101 - 200 of 1428 matches
Mail list logo