it is dynamically typed like
Smalltalk, while java is statically typed.
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
me php 5 is one fine oop language, and personaly
more fun than java since it is dynamically typed like some root oop
languagas like Smalltalk, while java is of statically typed kind of bore.
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP General Mailing List (http
if php runs on apache2 or apache1.3
try changing the amount of memory that php script can use, and see if
download stops at different place. Default memory for script is 8Mb, and 2Mb
is suspiciosly equal to 8Mb/word size.
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP
connect
through ssh to the remote cvs server.
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
]);
// for debugging
echo brUID $row[user_id]BR;
echo BRAUID $uidToAdmin[0];
}
So how can I continue adding to this array in the while loop?
while($row=mysql_fetch_array($result)){
// put user ID's into an array;
$uidToAdmin[] .= $row[user_id];
}
rush
--
http
separated logic.php file.
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
html, it will
also not introduce new progaming constructs in template, as many fat
template systems do.
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
must be done, we could get along nicely :)
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for reader ;)
rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Watty [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is it possible to compile a PHP script? And if so, how?
there is a roadsend php compiler, but I have not used it myself.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
needed to share the context.
Anyway, are you sure this is a good idea? templates are about separating
code and html, and most template systems I know are dreamweaver friendly.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
://www.templatetamer.org/index.php?SimpleListboxExample
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
gem I may add.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for in:
$template-parseTemplate(guest_NameRate, a);
if it stands for append, than maybe in second pass through the loop you add
7 fiends to allready existing 7, in 3. pass you add 7 more to 14 existing,
etc..
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net
|| and
OR
are perfectly interchangeable.
with OR you can write (and even get desirable result ;) :
$resultSet = mysql_query( abla dabla ) OR die(something);
since it OR has lower precedence than assignment operator =
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net
this:
mysql_query(...) OR die;
so as long mysql_query returns non false result , everything is fine and
script continues, if it returns 0 (false), script dies.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the whole directory
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
folding if I recall correctly. Not making fun of me is
also kindly appreciated, although I am not sure if I would have deserved
that kind of attention in the first place :). Anyway, I suggest that we put
it to rest, and enjoy the rest of the evening/day (depending on the time
zone). Good luck!
rush
Ee [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Would this slow down the site?
yes, but in most cases this is not important since bandwith to the client,
and database queries have usually orders of magnitude larger bottlenecks.
rush
--
http://www.templatetamer.com/
--
PHP General
Harlequin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
There's loads and loads of books available on the subject of PHP MySQL.
Does anyone have any recommendations...?
here are some:
http://www.templatetamer.org/index.php?RecommendedBooks
rush
--
http://www.templatetamer.com
, toolbars, articles, and store resulting html for them
in db, so that the do not need to be recalculated each time page is
displayed. (I use TT support for cacheing).
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
will find them nicely.
Here are few from TT site:
http://www.templatetamer.org/index.php?SimpleMySqlRowList
http://www.templatetamer.org/index.php?MySqlRowList
http://www.templatetamer.org/index.php?AlternatingListExample
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http
or TemplateTamer in
generated php code.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(itemAsListElement()), know how many items there are in
total, and getNextItem iterator. There is a bit more but this should be
enough to get you started.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris De Vidal [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can anyone recommend some template engines? Or tips on using PHP to parse
an HTML doc, replacing it with real data?
You could also try TemplateTamer, and I would be glad to help you out if
with it if needed.
rush
--
http
Rajani Anand Iyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can someone recommend some good books on PHP Advanced topics.
here is my (amazon) list
http://www.templatetamer.org/index.php?RecommendedBooks
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http
to the page.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
delivery reduce bandwidth!
I agree on that. It is funny that you often find people spliting hairs on
optimizing code like but templates are slow or even to the extreme should
I use single or double quotes for strings?, while things like this affect
user expirience much, much more.
rush
--
http
page?
I am not sure about ini_set, I am doing it manually, here is the article
which gave me directions:
http://www.phpbuilder.com/columns/argerich20010125.php3?page=2
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
for dial-up users.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for that directory.
On the other hand if your bandwith goes mainly on thransfer of html source
for the pages then compression can shave up to 80% of your bandwith usage.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
it i session makes sense. If not
than you can store it in some file or table in the db. Beeing in one place
would make it easier to invalidate the cache since you would not need to
poke around all sessions.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net
Pierre-Alain Joye [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ps: Rush can you use quotes in reply?
until this morning I was pretty certain that I can, however this last reply
and OE proved me wrong :)
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http
guess
it is a matter of ones own preferences, and what is right approach for
them it is not necessary right for me and other way around.
I completely agree that it is also necessary to separate bussines logic from
the presentation, but I do not think this is a job of template system.
rush
--
http
vizards that can offer you some code
that fits your template.
So if this sounds interesting please try it, and also do not hesitate to
mail me if you have some questions, or need some advice.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
).
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
) X
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to
$GLOBALS['rme'] = $this;
to get the expected behaviour.
Thank you very much, I was not aware that global $something is just a syntax
sugar for reference into the $GLOBALS array.
Very spookey indeed, but thanks again :)
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http
, sith
all variables and subtemplates.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?MySqlRowList
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Peter Walter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Rush,
templatetamer looks like an environment that I would be interested in
using; however, what support resources are available for templatetamer?
Is there a news server, bulletin board, or other help resource for
people
with templates, you can take a look at
TemplateTamer, which has IDE geared for such development.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Arivazhagi Govindarajan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
PHP Questions
This would not be homework or exam questions, right?
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
* if you have some parts of the page(s) that are expensive to calculate
introduce some cacheing mechanic in your app.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)?
Try also TemplateTamer, it comes with dev environment for tempalte based
development.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Any help appreciated.
here is one general article about it:
http://www.phpbuilder.com/columns/akent2926.php3
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
variable.
But it seems to me that in the longer run you could consider some php
template system to approach such problems.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
rush
p.s. I really enjoyed your book :)
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
more footwork than with TT.
Well, again, it is just my reasons. Other people may have other needs and
preferences.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the corresponding value.
is this what you are lookin for?
mysql_fetch_row etc
{ //let's assume $row is result of mysql_fetch:row(..
$key = $row['key_sql_col'];
$value = $row['value_sql_col'];
$myarray[$key]=$value;
}
rush
--
http://www.templatetamer.com/
Chris Neale [EMAIL
you will find some examples and
tutorials.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
template and module
inclusion with menuing?
Some of my users find framework around TemplateTamer very light and simple,
yet helpfull. You could consider trying it for yourself, and I will be happy
to help you out with questions.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List
Sid [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello everyone,
Am I having a bad day or WHAT! I have exactly 5 lines of code as follows
what is the problem here.
works fine at my localhost.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net
will hardly cover all dirty or unwanted words. How about having
interface for editor to allow posting to appear on the site, so the post
will not appear until is allowed by editor?
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Raditha Dissanayake [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Wrong approach all together. Start using CVS
and do not mix php and html - use templates :)
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
is in the place.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
most usually. But I am driffting.
Thanks for the response!
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it is is not very strong, or efficient
one. So if you would like to use templates you could consider some add-on to
help you out. On the other hand if you do not like additional template
systems for whatever reason, I am surrendering immediately to prevent holly
war :)
rush
--
http://www.templatetamer.com
to the session.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Louie Miranda [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
But i was wondering if you guys have any other suggestions?
For the extensive list see Keith's listof editors:
http://linuxbackup.co.uk/
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http
to pure compilers, and often some blends of the two. For PHP i
believe the first implementations were pure interpreters, and nowdays Zend
engine is compiler that generates some form of opcode that gets interpreted.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http
Here is small example on how to do it with PHP MySQL and TemplateTamer:
http://www.templatetamer.org/index.php?SimpleMySqlRowList
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
templates, and it commes with IDE to support template based
development.
/promo
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to be default in PHP5.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
performance
wise. Also OOP is extensively used in other environments, and unless you are
coding critical device drivers, it is rarely to expensive in terms of
processing time.
So my advice would be use OOP, and take benefit of better organization of
your code.
Just my 2c.
rush
--
http
there is usage for OOP also in gui parts of the code, where it
can also help better organization of code, and reuse between the pages or
components on the same site.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
!
but the function in queston is very rarely used, and in most installations
can be renamed without problems.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
costs in
inreased complexity. With TT you would have less things to do to achieve
similar, but I assume that in the end it is largely a matter of taste and/or
preferences.
Sincerely,
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
costs in
inreased complexity. With TT you would have less things to do to achieve
similar, but I assume that in the end it is largely a matter of taste and/or
preferences.
Sincerely,
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
framework.
In addition to that, TemplateTamer offers:
* IDE, that can keep track of the project,
* tool to visualize template structures (which commes handy in more
comlicated and nested structures)
* example code generator.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List
Can GD library produce animated gif's?
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in PHP is less than perfect, but in many cases you could probably stick
to the PHP, and avoid a hassle of mixed system.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
would of heard of (i.e. high profile sites).
It is probably recently overused (and misused), but Yahoo is an example that
they should have heard of. A few months ago Yahoo anounced that they plan to
move to PHP.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http
Gilberto Garcia Jr. [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I´m a newbie on this class. But i´m getting this error.
can you post snippet of the code and exact error that you get?
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net
? Anyone using it? Real world?
I think that Smarty can definitely help workflow, especially in
designer-programer teams. For that situation, maybe you could also take a
look at TemplateTamer, which I believe has stricter separation of code and
html.
rush
--
http://www.templatetamer.com/
--
PHP
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
Should I just do this myself ?
I do not think you will find something allready done, so probably you would
need to wrap something yourself. Some template system will propably come
handy though
rush
--
http://www.templatetamer.com
of complication, especially in the
begging, but once you get a hang of it, it is a real time saver, an let's
you concentrate on your applications behavior and functionality. If you need
some more advice how to use TemplateTamer and OO togehter, drop me an
e-mail.
rush
--
http://www.templatetamer.com/
--
PHP
= new site_init();
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
other
options, you can also give a shot to the TemplateTamer.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
After several months of beta, TemplateTamer 1.0 has been released, and it
can be downloaded from the TemplateTamer web site:
http://www.templatetamer.com/
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
that
file (in the file that includes that file that is) then can you do the
same
with classes and functions
yap.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
various parameters to the pages. The page names are far from
pretty though :)
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
eah, why not,
especially if you have some more complex logic on those 6/8 pages. I have
used TemplateTamer on such sites.
But if you need to learn engine just for that site, that can be overkill,
but then again, you can use that knowledge in the future for some other
sites.
rush
cacheing approaches.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
n
would have to be kept in memory. Would an array work in this situation?
how about using layers and javascript to switch between the parts of the
form. User will have wizard like behaviout (form with next and prev
buttons), and to the php, everything will be submitted as one large form.
rush
ing
back into the templates.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ction a3() {}
}
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
properly.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ame code can also be used for more sofisticated effects, and finer
formatting.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
your app you can then detect the current language setting, and
return appropriate translation.
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nourages
OO based development of php apps (althoug this is not a strict requirement).
/biased
Other well know and tried options would be Smarty, xml+xslt, ..
rush
--
http://www.templatetamer.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ch sense as many think. You
hi,
give a shot to TemplateTamer, in it looping controls, conditionals, reside
in php logic files where they belong not in the html template.
rush
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anders Thoresson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Where can I find good guidelines on how to write PHP-code that's easy to
read for a human?
it is also good idea to separate html from the code, for instance by using
some template engin
of
the site.
It's main parts are:
* Integrated development environment (IDE)
* Framework for development of template based applications
* Code generator
* Template engine
The release candidate can be downloaded from TemplateTamer site:
http://www.templatetamer.com/
rush
--
http
It could be that you have not installed
everything needed on it?
rush
--
http://www.templatetamer.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ery well in languages that let you get away with non OO. The
disadvantages of this approach is that you will have to invest considerable
effort, and that you might like Smalltalk too much in the and ;) . For some
Smalltalk resources see: www.whysmalltalk.com
rush
--
http://www.templatetamer.org/
of money ;).
rush
--
http://www.templatetamer.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
possible solution (with TemplateTamer) :
http://www.templatetamer.org/index.php?AlternatingListExample
rush
--
http://www.templatetamer.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think Scite (http://www.scintilla.org/SciTE.html) can do it.
rush
--
http://www.templatetamer.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1 - 100 of 108 matches
Mail list logo