a stable version of the template class
and other stuff PEAR-like-made are available at
http://wolfram.kriesing.de/programming
especially the _template_class_ which can also *translate* your
templates without the need of wrapping every string in a function
call or something
the translation
as i had announced a while ago on pear-dev that i have a tree class
which works on DB-data, now it is more enhanced and also works on XML
(for now it can only read but within a week or something it will also
be able to write)
short description:
-
this class reads data from
if you are using it for debugging try
print_r()
OR
var_dump()
--
Wolfram
function debugPrint($mVar, $bHtml) {
global $HTTP_REFERER;
if (is_array($mVar)){
$sTemp = Array;
}
if (is_bool($mVar)){
$sTemp = Bool;
}
[snip]
...
$sFunction = debugPrint$sTemp;
just to announce that SimpleTemplate is also capable now of
configuring each template individually
you either write a block like this:
SimpleTemplate
options override=yes
delimiter begin=[ end=]/
autoBraces value=true/
locale value=en/
/options
/SimpleTemplate
What is the proper way to transfer class properties through-out my
pages...
if (!session_is_registered(myCart)){
$myCart = new ShoppingCart();
(some other stuffs...)
session_register(myCart);
}
you dont need to do this,
else {
$myCart = new ShoppingCart();
}
as
users: username username with spaces anotherusername
I need to parse that into a structure like
$users = array(
'username',
'username with spaces',
'anotherusername'
);
try preg_match
i think the expression could look something like this:
is this possible using php? what can i do to use
caching on my website which is totally database
driven?
try PEAR::Cache
http://pear.php.net
--
Wolfram
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
does anyone know a very flexible rating system, written in php of
course?
i have an application where i want to rate different data that the
application saves and may relate the data to each other.
I.e. a very active/known/famous/any-attribute user rates an item,
then this vote might weigh more
does anyone know a very flexible rating system, written in php of
course?
i have an application where i want to rate different data that the
application saves and may relate the data to each other.
I.e. a very active/known/famous/any-attribute user rates an item,
then this vote might weigh more
On Wednesday 20 March 2002 10:12, José León Serna wrote:
Hello:
try it with __FILE__
you might have to work a little on the resulting string, but it at least
delivers the current file's name
What is __FILE__, a global var, an environment variable? Could you put a
simple example?
i've written a simple script, which tests the session behaviour on the IIS,
since it didnt seem to work
the following script should increase the session-var $testVar and display it
but it always stays at the same value
can someone explain that? is that a bug?
also if i would increase
On Tuesday 02 April 2002 15:34, Stephen Phillips wrote:
Hi,
It sounds like you are experiencing a similar problem to one I had. It
seems there are some problems with setting cookies when using IIS, and as I
understand it one of the ways that sessions work is by storing the data in
a
On Tuesday 02 April 2002 16:59, Erik Price wrote:
On Thursday, March 28, 2002, at 06:50 PM, Michael Virnstein wrote:
This is not possible. You cannot force the browser
not to go back in its history, don't even trie to find a solution for
this...
the question you should ask yourself is
On Thursday 04 April 2002 19:15, Lee, Ford wrote:
I seem to have configuration problemsi just can't seem to get
session variables written to in files under win2000, NTFS w/ Apache and
PHP..i've already done everything from session_start() on every page
to making var globalanybody
does someone have an example of a _working_ PUT-script?
i was trying $PHP_PUT_FILENAME and even trying to dump all the GLOBALS
but i couldnt find a filename which points to the PUT'-filename
how does it work? obviously not as it is in the manual :-(
copy( $PHP_PUT_FILENAME , $PATH_TRANSLATED
Justin French wrote:
A simple looks around at phpbuilder.com will result in an article on browser
detection CSS... the browser detection function he writes can be used for
many things, including what you want.
Justin French
on 16/05/02 12:09 AM, Diana Castillo ([EMAIL PROTECTED])
wrote:
how can i access a property statically (without creating an object)?
is that possible at all?
i.e.
class foo
{
var $prop = array('some','defines','are','here');
}
$myVar = foo::prop;
OR
$myVar = foo::prop[0];
how can this be realized?
can someone help? is that possible with php?
--
i was now trying all the examples from the docs but no success yet
can someone please help?
i want to convert an image to another format i was fread-ing the one
image into
$image1
so they are binary in there
and i want to pass that to imagemagick's convert, using:
convert gif:-
Im considering writing all the update information to a datafile
before displaying it to the user, say through an include(); What I
would like to do is direct the output (all my prints) to that
report file. It seems though that I might have to go through my
code and explicitly use fputs to
(just in case any of the people on PEAR-DEV will read this at all,
since everyone must be tired of the template class debates :-) )
i just wanted to say what i had to write, because i didnt see any of
the existing template classes/engines provide me with that
the main features are:
# compiling
the class temp
# $curClass would have the expected value
# but with the ${} around it doenst work
thanks 4 your help
Wolfram Kriesing
___
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
[EMAIL PROTECTED
;
# inside the class temp
# $curClass would have the expected value
# but with the ${} around it doenst work
thanks 4 your help
Wolfram Kriesing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
i am saving data in the session
lets say every page relates to specific session data, like:
page 1 sets sess_x=1,
page 2 sets sess_x=2
but if i use the history.back or the browsers back-button i can go from page
2 back to page 1 WITHOUT updating the session
so what i finally have is page 2 where
23 matches
Mail list logo