Re: [PHP] RewriteRule

2008-10-12 Thread Per Jessen
Yeti wrote: > RewriteRule ^blog[/]{0,}([^/]{0,})[/]{0,}([^/]{0,})[/]{0,}.*$ > blog.php?getparam1=$1&getparam2=$2 [NC,QSA,L] What's the point of using '{0,}' instead '*' ? I think I would have written something like this: # http://www.domain.com/blog/1/2/ RewriteRule ^blog/([^/]+)/([^/]+)/ blog

Re: [PHP] Alternative to HTTP_REFERER?

2008-10-12 Thread Ashley Sheridan
On Mon, 2008-10-13 at 08:37 +0200, Per Jessen wrote: > Yeti wrote: > > > By definition: The referer, or HTTP referer, identifies, from the > > point of view of an internet webpage or resource, the address of the > > webpage (commonly the URL, the more generic URI or the i18n updated > > IRI) of th

Re: [PHP] Alternative to HTTP_REFERER?

2008-10-12 Thread Per Jessen
Yeti wrote: > By definition: The referer, or HTTP referer, identifies, from the > point of view of an internet webpage or resource, the address of the > webpage (commonly the URL, the more generic URI or the i18n updated > IRI) of the resource which links to it. > > More detail at: > http://en.wi

Re: [PHP] Setcookie()

2008-10-12 Thread Micah Gersten
The question is, why aren't you using a session variable instead of cookies? That's one of the greatest features of PHP. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Ben Stones wrote: > What I mean is I cannot use setcookie, I need to check if user creden

Re: [PHP] Re: HTML5 canvas tag

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 18:08 -0400, TG wrote: > This is the coolest thing I've seen using canvas so far: > > http://www.abrahamjoffe.com.au/ben/canvascape/ > > > - Original Message - > From: Ashley Sheridan <[EMAIL PROTECTED]> > To: Yeti <[EMAIL PROTECTED]> > Cc: PHP - General > Date: Su

Re: [PHP] Re: HTML5 canvas tag

2008-10-12 Thread TG
This is the coolest thing I've seen using canvas so far: http://www.abrahamjoffe.com.au/ben/canvascape/ - Original Message - From: Ashley Sheridan <[EMAIL PROTECTED]> To: Yeti <[EMAIL PROTECTED]> Cc: PHP - General Date: Sun, 12 Oct 2008 23:08:30 +0100 Subject: Re: [PHP] Re: HTML5 canvas

Re: [PHP] Re: HTML5 canvas tag

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 14:50 -0700, Yeti wrote: > I'm not very familiar with the whole thing yet but after looking at > your site I find it quite interesting. > So is it possible to render 3d vector based objects in the canvas and > if so an entire 3d based website? > Are there any 3d libraries yet

Re: [PHP] Re: HTML5 canvas tag

2008-10-12 Thread Yeti
I'm not very familiar with the whole thing yet but after looking at your site I find it quite interesting. So is it possible to render 3d vector based objects in the canvas and if so an entire 3d based website? Are there any 3d libraries yet like OpenGL for applications? It would be quite handy to

Re: [PHP] Re: template usage

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 13:17 -0500, Micah Gersten wrote: > The problem with smarty is that they are still using PHP4 as their main > language so they cannot take advantage of speed improvements in PHP5. > So, my suggestion is that if you're stuck with PHP4, go with smarty, > otherwise, find another

Re: [PHP] Re: HTML5 canvas tag

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 20:53 +, Jonesy wrote: > On Sun, 12 Oct 2008 14:15:10 -0400, Daniel Brown wrote: > > On Sun, Oct 12, 2008 at 1:50 PM, Ashley Sheridan > ><[EMAIL PROTECTED]> wrote: > >>> > >> Hmm, it doesn't mention which versions of the browsers it lists are > >> capable of displaying the

[PHP] Re: HTML5 canvas tag

2008-10-12 Thread Jonesy
On Sun, 12 Oct 2008 14:15:10 -0400, Daniel Brown wrote: > On Sun, Oct 12, 2008 at 1:50 PM, Ashley Sheridan ><[EMAIL PROTECTED]> wrote: >>> >> Hmm, it doesn't mention which versions of the browsers it lists are >> capable of displaying the canvas tag. I'm still using Firefox 2 on this >> computer, a

Re: [PHP] Alternative to HTTP_REFERER?

2008-10-12 Thread Yeti
By definition: The referer, or HTTP referer, identifies, from the point of view of an internet webpage or resource, the address of the webpage (commonly the URL, the more generic URI or the i18n updated IRI) of the resource which links to it. More detail at: http://en.wikipedia.org/wiki/Referer ht

Re: [PHP] RewriteRule

2008-10-12 Thread Yeti
#.htaccess RewriteEngine on RewriteBase / #Apache recurses into htaccess 3 times so we have to make sure not to overwrite an already processed rule RewriteCond %{REQUEST_URI} !^.*(\.php|\.css|\.js|\.html|\.ico|robots\.txt).*$ #The rewrite condition below can be used to pass through GET parameters

Re: [PHP] HTML5 canvas tag

2008-10-12 Thread Daniel Brown
On Sun, Oct 12, 2008 at 2:21 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > What add-ons would I be looking for? I was under the impression canvas > support is built in at browser level, not plugin level. And that impression would be correct, but some plugins extend and alter the final re

Re: [PHP] Re: template usage

2008-10-12 Thread Micah Gersten
The problem with smarty is that they are still using PHP4 as their main language so they cannot take advantage of speed improvements in PHP5. So, my suggestion is that if you're stuck with PHP4, go with smarty, otherwise, find another engine that's up to date. Thank you, Micah Gersten onShore Netw

Re: [PHP] HTML5 canvas tag

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 14:15 -0400, Daniel Brown wrote: > On Sun, Oct 12, 2008 at 1:50 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > >> > > Hmm, it doesn't mention which versions of the browsers it lists are > > capable of displaying the canvas tag. I'm still using Firefox 2 on this > > compute

Re: [PHP] HTML5 canvas tag

2008-10-12 Thread Daniel Brown
On Sun, Oct 12, 2008 at 1:50 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > Hmm, it doesn't mention which versions of the browsers it lists are > capable of displaying the canvas tag. I'm still using Firefox 2 on this > computer, and all I got was 5 horizontal bands of grey and blue. Chec

Re: [PHP] RewriteRule

2008-10-12 Thread Daniel Brown
On Sun, Oct 12, 2008 at 12:57 PM, Ron Piggott <[EMAIL PROTECTED]> wrote: > I am needing to pass 2 variables in a script I am writing. Does anyone > know how to do this? > > http://www.domain.com/blog/1/2/ > > I know how to pass 1; I have no idea how to write a rewrite rule to pass > the 2 as well.

Re: [PHP] Re: Re: Remove index.php from url

2008-10-12 Thread Nathan Rixham
Ashley Sheridan wrote: That wasn't what I was asking. I meant is there an equivalent to mod-rewrite for IIS? old one but ISAPI Rewrite is the pretty much standard implementation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HTML5 canvas tag

2008-10-12 Thread Nathan Rixham
Richard Heyes wrote: Hi, Not quite PHP, but since you're all web developers you may well be interested in this: http://www.phpguru.org/static/canvas.html It's a short piece on the new HTML5 canvas tag. Bonza. very fine work mr heyes, I've been most impressed by you're RGraph - a great use

Re: [PHP] Re: template usage

2008-10-12 Thread Nathan Rixham
Ashley Sheridan wrote: On Sun, 2008-10-12 at 18:04 +0100, Nathan Rixham wrote: Alain Roger wrote: Hi, i would like to know if you are a lot to use PHP templates for your web application or web sites ? if yes, which one do you use (smarty, pear, yapter, phplib,...) ? and for which reason ? what

Re: [PHP] HTML5 canvas tag

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 18:21 +0100, Richard Heyes wrote: > Hi, > > Not quite PHP, but since you're all web developers you may well be > interested in this: > > http://www.phpguru.org/static/canvas.html > > It's a short piece on the new HTML5 canvas tag. Bonza. > > -- > Richard Heyes > > HTML5

Re: [PHP] template usage

2008-10-12 Thread Robert Cummings
On Sun, 2008-10-12 at 11:09 +0200, Alain Roger wrote: > Hi, > > i would like to know if you are a lot to use PHP templates for your web > application or web sites ? > if yes, which one do you use (smarty, pear, yapter, phplib,...) ? > and for which reason ? what is/are the advantages over the othe

Re: [PHP] Re: template usage

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 18:04 +0100, Nathan Rixham wrote: > Alain Roger wrote: > > Hi, > > > > i would like to know if you are a lot to use PHP templates for your web > > application or web sites ? > > if yes, which one do you use (smarty, pear, yapter, phplib,...) ? > > and for which reason ? what

Re: [PHP] Variable Variables and Super Global Arrays

2008-10-12 Thread Micah Gersten
I mean that it is open for hacking if you pass a variable name through a URL. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com daniel danon wrote: > What do you mean? > > On Sun, Oct 12, 2008 at 5:40 PM, Micah Gersten <[EMAIL PROTECTED] >

[PHP] HTML5 canvas tag

2008-10-12 Thread Richard Heyes
Hi, Not quite PHP, but since you're all web developers you may well be interested in this: http://www.phpguru.org/static/canvas.html It's a short piece on the new HTML5 canvas tag. Bonza. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org -- PHP General

[PHP] Re: template usage

2008-10-12 Thread Nathan Rixham
Alain Roger wrote: Hi, i would like to know if you are a lot to use PHP templates for your web application or web sites ? if yes, which one do you use (smarty, pear, yapter, phplib,...) ? and for which reason ? what is/are the advantages over the others ? thanks a lot, I'd vote smarty or usi

[PHP] RewriteRule

2008-10-12 Thread Ron Piggott
I am needing to pass 2 variables in a script I am writing. Does anyone know how to do this? http://www.domain.com/blog/1/2/ I know how to pass 1; I have no idea how to write a rewrite rule to pass the 2 as well. Thanks, Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Variable Variables and Super Global Arrays

2008-10-12 Thread Richard Heyes
> That's fine as a test, but you never want to get a variable name from a > URL in practice. Of course you can, as long as it's sanitized and checked. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Variable Variables and Super Global Arrays

2008-10-12 Thread Micah Gersten
That's fine as a test, but you never want to get a variable name from a URL in practice. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Heyes wrote: >> $varname = "\$_SERVER['REMOTE_ADDR']"; >> $varvalue = $$varname; >> > > That's wrong. Offhand

Re: [PHP] trouble uploading more than 500 bytes...

2008-10-12 Thread Daniel Brown
On Sun, Oct 12, 2008 at 8:58 AM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: >> > No, not sure where the code of conduct is, but hang about for a while > and you should get the general idea ;) Just the stuff at http://php.net/mailinglists. -- More full-root dedicated server packages: Intel 2

Re: [PHP] Setcookie()

2008-10-12 Thread Bastien Koert
On Sat, Oct 11, 2008 at 12:33 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > Ben Stones wrote: > > > What I mean is I cannot use setcookie, I need to check if user > > credentials are correct first (which is BEFORE setcookie) and if so, > > set a cookie. I can't do that unless setcookie is first, but

RE: [PHP] trouble uploading more than 500 bytes...

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 07:54 -0400, Karl St-Jacques wrote: > > > Hello, > > > > I have trouble uploading files to a server. Actually I > > > can't upload more than 500 bytes or so.> > > > Here's a quick print_r of > > > the $_FILES > > > > [_FILES] => Array( [avatar] => Array ( [name] => > > > in

RE: [PHP] trouble uploading more than 500 bytes...

2008-10-12 Thread Karl St-Jacques
> > Hello, > > > > I have trouble uploading files to a server. Actually I can't > > upload more than 500 bytes or so.> > > > Here's a quick print_r of the > > $_FILES > > > > [_FILES] => Array( [avatar] => Array ( [name] => index.html > > [type] => text/html [tmp_name] => /tmp/phpRbmXK5 [error]

Re: [PHP] template usage

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 11:33 +0200, Alain Roger wrote: > I'm just reading a book on PHP and they promote quite heavily smarty as > template designer tool for presenting information and data to users. > > they absolutly do not talk about pear and i'm a little surprised. That's why > i'm wondering wh

Re: [PHP] template usage

2008-10-12 Thread Alain Roger
I'm just reading a book on PHP and they promote quite heavily smarty as template designer tool for presenting information and data to users. they absolutly do not talk about pear and i'm a little surprised. That's why i'm wondering who use what and for which reason. Basically let's say for data/i

Re: [PHP] template usage

2008-10-12 Thread Ashley Sheridan
On Sun, 2008-10-12 at 11:09 +0200, Alain Roger wrote: > Hi, > > i would like to know if you are a lot to use PHP templates for your web > application or web sites ? > if yes, which one do you use (smarty, pear, yapter, phplib,...) ? > and for which reason ? what is/are the advantages over the othe

Re: [PHP] trouble uploading more than 500 bytes...

2008-10-12 Thread Ashley Sheridan
On Sat, 2008-10-11 at 22:31 -0400, Karl St-Jacques wrote: > Hello, > > I have trouble uploading files to a server. Actually I can't upload more than > 500 bytes or so. > > Here's a quick print_r of the $_FILES > > [_FILES] => Array( [avatar] => Array ([name] => index.html[type] =

Re: [PHP] Re: Remove index.php from url

2008-10-12 Thread Ashley Sheridan
On Sat, 2008-10-11 at 18:56 +0100, Richard Heyes wrote: > > mod_rewite if you use Apache. > > Or, if you don't have it (not very likely), directories. Eg For the > URL you gave, make a dir called company and put a default document in > there (usually index.html). You will end up with a trailing s

[PHP] template usage

2008-10-12 Thread Alain Roger
Hi, i would like to know if you are a lot to use PHP templates for your web application or web sites ? if yes, which one do you use (smarty, pear, yapter, phplib,...) ? and for which reason ? what is/are the advantages over the others ? thanks a lot, -- Alain ---

Re: [PHP] Variable Variables and Super Global Arrays

2008-10-12 Thread Richard Heyes
> $varname = "\$_SERVER['REMOTE_ADDR']"; > $varvalue = $$varname; That's wrong. Offhand you'll end up printing a string. I tried this: And it was fine. -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org -- PHP General Mailing List (http://www.php.net/)