php-general Digest 12 Oct 2008 16:12:09 - Issue 5731
Topics (messages 281738 through 281751):
Dear friend
281738 by: John Jairo Vega Angulo
Re: Variable Variables and Super Global Arrays
281739 by: Richard Heyes
281750 by: Micah Gersten
281751 by: Richard
$varname = \$_SERVER['REMOTE_ADDR'];
$varvalue = $$varname;
That's wrong. Offhand you'll end up printing a string. I tried this:
?php
$a = 365;
$b = 366;
$var = $_GET['var'];
echo $$var;
?
And it was fine.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and
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
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 who
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] = 0 [size] = 505
))
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
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] =
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 others ?
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 slash
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] =
index.html [type] =
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 I need
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.
--
/Daniel P. Brown
More full-root dedicated server
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 you'll
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
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,
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
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
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]
mailto:[EMAIL PROTECTED]
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 is/are the
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 others ?
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 Graphing for
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 ?
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
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
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.
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.
Check your
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
computer, and all I
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
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 result.
#.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
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
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, and all I got
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 canvas tag. I'm
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
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
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 like
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 php-general@lists.php.net
Date: Sun, 12 Oct 2008 23:08:30 +0100
Subject: Re:
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
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
39 matches
Mail list logo