Re: [PHP] Noloh PHP Framework

2010-03-27 Thread Asher Snyder
Hello Brandon,

I'm Asher Snyder, one of the developers of NOLOH. Please feel free to e-mail
me with any questions you have.

On Sat, Mar 27, 2010 at 1:23 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:

 On Sat, 2010-03-27 at 13:21 -0400, Brandon Rampersad wrote:

  Thank you but i can't find the download on that website. Anyone have
  it that can send it to me via an attachment? Thank You
 
 
  On Sat, Mar 27, 2010 at 12:45 PM, Ashley Sheridan
  a...@ashleysheridan.co.uk wrote:
 
 
  On Sat, 2010-03-27 at 12:18 -0400, Brandon Rampersad wrote:
 
   Hello buds,
  
   Anyone have experience with the noloh php framework (noloh) and
 knows where
   i can download it? Im not sure if its open source or encrypted.
  
   Thanks
 
  http://www.google.co.uk/search?q=php+noloh
 
  Searching usually helps, and the first result seems to be the
  main website for the framework ;)
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 
 
 
 


 There's a massive 'Download Now' link that goes to their products
 page...

 Ps, you should hit reply to all rather than just reply so that it goes
 back to the whole list.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk





-- 
Asher Snyder
Co-founder
NOLOH LLC.
347-416-6508
http://www.noloh.com


Re: [PHP] Noloh PHP Framework

2010-03-27 Thread Asher Snyder
Hey Rob,

No. NOLOH actually generates different code for different devices. For
example, a browser with JavaScript will get all elements added via DOM, and
no actual HTMLis generated, however when the DOM is viewed via Firebug and
properties were explicitly assigned to an object, they're translated as
inline styles. All the style attributes are determined by the developer you
can either use direct object modification, and/or use CSS classes and style
sheets. See http://dev.noloh.com/#/articles/NOLOH-and-CSS/ for more
information.

There's also some information about layout here:
http://dev.noloh.com/#/articles/Layout-in-NOLOH/.

If you're interested, we recently came back from 2 weeks ago and posted our
very informative and instructive screencast of the talk here:
http://vimeo.com/10106797. If this is too long for you, we cut it up into
topically concise segments here:
http://www.youtube.com/user/phpframework#grid/user/C102458C2FFD8ACF

Please let us know if there's anything else you're curious about.

Regards,
Asher Snyder

On Sat, Mar 27, 2010 at 2:19 PM, Robert Cummings rob...@interjinn.comwrote:

 I viewed the source on the site like the features suggested I should...
 does NOLOH always generate HTML with all those hard embedded style
 attributes?

 Cheers,
 Rob.




 Asher Snyder wrote:

 Hello Brandon,

 I'm Asher Snyder, one of the developers of NOLOH. Please feel free to
 e-mail
 me with any questions you have.

 On Sat, Mar 27, 2010 at 1:23 PM, Ashley Sheridan
 a...@ashleysheridan.co.ukwrote:

  On Sat, 2010-03-27 at 13:21 -0400, Brandon Rampersad wrote:

  Thank you but i can't find the download on that website. Anyone have
 it that can send it to me via an attachment? Thank You


 On Sat, Mar 27, 2010 at 12:45 PM, Ashley Sheridan
 a...@ashleysheridan.co.uk wrote:


On Sat, 2010-03-27 at 12:18 -0400, Brandon Rampersad wrote:

 Hello buds,

 Anyone have experience with the noloh php framework (noloh) and

 knows where

 i can download it? Im not sure if its open source or encrypted.

 Thanks

http://www.google.co.uk/search?q=php+noloh

Searching usually helps, and the first result seems to be the
main website for the framework ;)

Thanks,
Ash
http://www.ashleysheridan.co.uk






 There's a massive 'Download Now' link that goes to their products
 page...

 Ps, you should hit reply to all rather than just reply so that it goes
 back to the whole list.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk






 --
 http://www.interjinn.com
 Application and Templating Framework for PHP




-- 
Asher Snyder
Co-founder
NOLOH LLC.
347-416-6508
http://www.noloh.com


RE: [PHP] Trying to create a comment function

2009-08-06 Thread Asher Snyder
Allen, 

Local variables are indeed cleared at the end of a function, see
http://www.php.net/manual/en/language.variables.scope.php for more
information.

Furthermore, there are numerous ways to use variables within a string, the
simplest method is the one that you described by enclosing your variable
within your double quoted string. However, you could also use brackets
within your string in addition to concatting your string with your variables
such as:

echo this is some string . $variable;

I hope this helps. However before asking these sorts of questions of the
list, you might want to refresh your memory using the PHP Language
Reference, http://www.php.net/manual/en/langref.php. All the information
listed above, is also listed there, and explained in significantly more
detail.

-Original Message-
From: Allen McCabe [mailto:allenmcc...@gmail.com] 
Sent: Thursday, August 06, 2009 3:20 PM
To: phpList
Cc: ollisso; Martin Scotta
Subject: [PHP] Trying to create a comment function

I was trying some new things with php today, and was commenting above each
little bit to better see what was working and/or displaying versus what was
not. My comment delineator consisted of the following:

[code]

echo 'brbrfont color=#bbi this is a comment displayed in html
/i/fontbrbr';

[/code]

Then I decided to create a cool function to write that code for me every
time I wanted to write a comment formatted in HTML, so to write a comment
saying this is a comment, I would call a function:

[code]

comment(this is a comment);

[/code]

It was working wonderfully, until I wanted to display test of $newComment
as a comment.

[code]

comment(test of $newComment);

[/code]

This rendered a comment that said test of .

So I added a \ before the $ to make it display properly, but I was wondering
if there was a way that the function could work so that it will display
anything you type within the quotes in comment( ).

Here is my original code for the function comment() :

[code=function comment()]

function comment($commentText = empty comment)
{
echo 'brbrfont color=#bbComment:/fontbr';
 echo 'font color=#bbi'. $newComment .'/i/fontbrbr';
}

[/code]

This would return gray text in 2 lines, Comment: then a line return with the
comment the developer put within the comment() function call in italics.

After noticing that I MUST escape the dollar sign for it to display a
function name in a comment, I tried the following:

[code]

function comment($commentText = empty comment)
{

 $healthy = \$;
 $yummy   = $;
 $newComment = str_replace($healthy, $yummy, $commentText);
 echo 'brbrfont color=#bbComment:/fontbr';
 echo 'font color=#bbi'. $newComment .'/i/fontbrbr';

}

[/code]

This still does not produce the desired results, I still have to escape the
$ when I call the comment() function for the variable name to display.
Again, not a big deal, but I don't want this to beat me.

Anyone have any ideas?


Additionally, when I try to echo $newComment, nothing shows on the screen.
Is this because variables are reset or set to null, or cleared at the end of
a function in which they are used?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: idiot proofing

2009-06-24 Thread Asher Snyder
He can even use http://www.ajaxload.info/ to create his own loading circle
to just embed the code. He can then image's visibility to the css property
display:none and on the form submit he can do a JavaScript
document.getElementById(id).style.visibility = 'visible'; , assuming he
gave the object an id and make it visible.

While this post might feel too instructional the fact that you joked PJ
wasn't ready for AJAX made want to put in a bit more clarity. If this isn't
clear enough, please let me know and I'll paste the appropriate markup and
js.

-Original Message-
From: Michael A. Peters [mailto:mpet...@mac.com] 
Sent: Wednesday, June 24, 2009 10:36 PM
To: Bastien Koert
Cc: Shawn McKenzie; php-general@lists.php.net
Subject: Re: [PHP] Re: idiot proofing

Bastien Koert wrote:


 That's a good one, however I'm assuming you haven't been following PJ's
 posts :-)  Once he tries AJAX, I feel for the js.general and
 ajax.general folks!

 
 Well, I have followed PJ's posts and agree that this [AJAX] is
 something that he's not ready for yet.

Not to mention, when your site depends upon ajax, it doesn't work for 
those who disable scripting, so a solution that doesn't involve js 
really should be developed anyway.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: idiot proofing

2009-06-24 Thread Asher Snyder
[EDITED FOR MISTAKES AND TYPOS]

He can even use http://www.ajaxload.info/ to create his own loading circle
to hide on the page. He can hide the image's visibility by using the css
property display:none and on the form submit he can do a JavaScript
document.getElementById(id).style.display = ''; , assuming he gave the
object an id and make it visible.

While this post might feel too instructional the fact that you joked PJ
wasn't ready for AJAX made want to put in a bit more clarity. If this isn't
clear enough, please let me know and I'll paste the appropriate markup and
js.

-Original Message-
From: Michael A. Peters [mailto:mpet...@mac.com] 
Sent: Wednesday, June 24, 2009 10:36 PM
To: Bastien Koert
Cc: Shawn McKenzie; php-general@lists.php.net
Subject: Re: [PHP] Re: idiot proofing

Bastien Koert wrote:


 That's a good one, however I'm assuming you haven't been following PJ's
 posts :-)  Once he tries AJAX, I feel for the js.general and
 ajax.general folks!

 
 Well, I have followed PJ's posts and agree that this [AJAX] is
 something that he's not ready for yet.

Not to mention, when your site depends upon ajax, it doesn't work for 
those who disable scripting, so a solution that doesn't involve js 
really should be developed anyway.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sloppiness stupidity

2009-06-16 Thread Asher Snyder
While ranting might be good for the psyche there are trained psychiatric 
professionals that will readily listen to your rants. The PHP mailing list is 
not the place to vent. In every large community there will be those with less 
experience than others, and yes, many inexperienced programmers that will do 
whatever it takes to get things working, even if that means copying and pasting 
code they don't understand. Instead of ranting, a more useful approach would be 
to create a post that properly informs a user on how to populate a multiple 
option select box and eventually rank higher than any incorrect postings.

-Original Message-
From: PJ [mailto:af.gour...@videotron.ca] 
Sent: Tuesday, June 16, 2009 8:44 PM
To: php-general@lists.php.net
Subject: [PHP] sloppiness  stupidity

I'm sorry, guys, but I am really getting po'd.
The irresponsible sloppiness and stupidity is just getting to me.
In my quest for a way to populate a multiple option select box I have
run across so many errors that it's beyond belief... such nonsense as
select for select or select=select ( think this is right, but then
who knows?)  other variations; then theres in_array() that has
explanations about as clear as a cesspool - the way it's explained is
not at all clear, -- and somebody did an in_array($tring, text) -
which is reversed... don't these idiots read what they are putting up on
the internet?
And some of you wonder why I ask stupid questions? Rare, indeed, is the
clear explanation or demonstration. I get the impression that there are
a lot of asholeys out there who learn the less than basic programming
and then forget that even a ignoramus as I can be looking for rather
complicated guidance. The Internet was a great promise, but god is is
overbloated with floating intellectual excrement.
Sorry, but ranting sometimes is good for the psyche. :o

-- 
Hervé Kempf: Pour sauver la planète, sortez du capitalisme.
-
Phil Jourdan --- p...@ptahhotep.com
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] A Tool For Building PHP Web Apps

2009-04-09 Thread Asher Snyder
This might be what you're looking for:
http://www.roadsend.com/home/index.php

-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com] 
Sent: Friday, April 10, 2009 1:28 AM
To: php-general@lists.php.net
Subject: [PHP] A Tool For Building PHP Web Apps

Here's a hairbrained idea I was kicking around. I object to the idea of
including 15 or 30 files in a PHP application just to display one page
on the internet. It makes the coding faster, but it makes the display
slower and seems silly to me.

So what if you had a tool or a set of tools where you could write code
snippets and such, and then hit a button or issue a command, and
everything you specified got written into a single file? You'd specify
that this page needs to read the config, set up a database connection,
validate these fields, etc. When you were done, it would write all this
code to a *single* file, which the user would invoke by surfing to that
page. The resulting code would be *static*, not like what results from
most templating systems. So rather than specify a specific variable
value in the resulting file, it would embed the PHP code to display the
variable, etc.

What might be the liabilities of something like that? Would there be
security issues? Would there be increased difficulty in debugging? What
can you think of?

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PUT vs. POST

2008-08-11 Thread Asher Snyder



Todd, I just wanted to stress that there is NO way for PHP to access
anything on the client.  The way you wrote it, you sort of implied
that there might be other ways:

PHP by itself cannot access the local file system in a way that
allows ...

That's all.
  

The above is saying two different things.

1). PHP by itself cannot access the local file system  -- true.

2) ... there is NO way for PHP to access anything on the client.
-- not true.



Statement 2 _is_ 100% true.  Sorry, end of discussion for my part.
  
Technically statement 2 is not true, a PHP framework/platform such as 
NOLOH (http://www.noloh.com), allows you to access all client properties 
seamlessly and transparently from PHP, with something like NOLOH you 
don't have to worry about the client at all.


-Asher


Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-04 Thread Asher Snyder
Depending on what database you're using you might be able to use LIKE 
while maintaining security. For instance PostgreSQL has the functions 
quote_ident(), and quote_literal() which would allow you to  use LIKE 
since these functions would automatically make the string suitable for 
comparison.


So for instance in a stored procedure in PostgreSQL you could do:

SELECT * FROM sometable WHERE quote_ident(column) LIKE quote_ident($1);

Note that in the above line $1 would be the first parameter of the 
stored procedure.


-Asher

Adam Richardson wrote:

Like I said, I'm not 'especially pleased' with any idea up until now.   I'm
certainly open to any other ideas.

Adam

On Mon, Aug 4, 2008 at 6:57 PM, Larry Garfield [EMAIL PROTECTED]wrote:

  

Hm.  So your solution is don't use LIKE?  I can't say I'm wild about
that. :-/

--Larry Garfield

On Mon, 4 Aug 2008 15:49:52 -0400, Adam Richardson [EMAIL PROTECTED]
wrote:


Larry,

I agree that having to escape values in a stored procedure does run
counter
to expectations.  It's likely other developers have the potential for
short-circuiting their LIKE conditions without realizing it.

I've dealt with this issue, too, and haven't been especially pleased with
any of the solutions I've undertaken.  Recently, I've been avoiding LIKE
conditions and using INSTR, LOCATE, CHARINDEX, etc. to avoid the
  

potential


for unescaped wildcards.

Adam

On Mon, Aug 4, 2008 at 12:33 PM, Larry Garfield
[EMAIL PROTECTED]wrote:

  

On Mon, 4 Aug 2008 11:48:39 -0400, Andrew Ballard [EMAIL PROTECTED]

wrote:


On Mon, Aug 4, 2008 at 11:35 AM, Larry Garfield
  

[EMAIL PROTECTED]
  

wrote:
  

On Mon, 04 Aug 2008 08:33:44 +0200, Per Jessen [EMAIL PROTECTED]


wrote:


Larry Garfield wrote:

  

IIRC, the way in SQL to circumvent that is to convert 100% into
100%%. However, that does rather defeat the purpose of a prepared
statement if I have to do my own escaping anyway, does it not?=20


Depends on what you perceive the purpose of the prepared statement
  

to
  

be :-)  In this context, I tend to think of performance only.  Which
  

is=
  

generally why I can't be bothered with prepared statements in
  

php.=20
  

Actually in most cases in PHP you don't get much performance.  What


you
  

do get is added security, because prepared statements are cleaner than
cleaner and more reliable than string escaping.  Of course, then we
  

run
  

into the % problem above.
  

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





  


[PHP] NOLOH Launches Beta Program to Developers

2008-06-23 Thread Asher Snyder
NOLOH (Not One Line Of HTML), a fully object-oriented development 
platform for PHP launched a Beta Program today for developers.


More information can be found at http://www.noloh.com.

A blog post detailing the release can be found here: 
http://www.danshafer.com/onemind/node/813


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] NOLOH Launches Beta Program to Developers

2008-06-23 Thread Asher Snyder

Hey Mike,

Currently we're *freely* hosting all developer sandboxes. Your sandbox 
contains several examples of NOLOH applications of which you can freely 
access and modify the source. We're getting the Developer Zone in order 
along with many more examples, videos, and reosurces to help you develop 
your NOLOH applications.


The beta program is setup to allow developers to create sophisticated 
NOLOH applications.


We're still figuring out the various source licenses, open-source, 
personal, commercial, etc. If there's anything you need help with we're 
always available in #noloh on freenode, or e-mail to help you during the 
beta program.


Asher Snyder
Lead Developer
NOLOH LLC
Phone: 212-223-2660
Fax: 212-223-0169



mike wrote:

I want the damn code to look at! Not a hosted environment...

:)

Sounds like that's not an option right now?

On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote:
  

NOLOH (Not One Line Of HTML), a fully object-oriented development platform
for PHP launched a Beta Program today for developers.

More information can be found at http://www.noloh.com.