[PHP] accessing a property the static way

2002-09-12 Thread Wolfram Kriesing
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? -- Wol

[PHP] using HTTP-PUT-Method problem

2002-06-09 Thread Wolfram Kriesing
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

Re: [PHP] Tellwhich browser

2002-05-16 Thread Wolfram Kriesing
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]) >wr

Re: [PHP] session variables

2002-04-04 Thread Wolfram Kriesing
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 globalanybo

Re: [PHP] Re: preventing "back" button usage?

2002-04-02 Thread Wolfram Kriesing
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 yours

Re: [PHP] help please - strange session behaviour on IIS with php4.1.2

2002-04-02 Thread Wolfram Kriesing
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

[PHP] help please - strange session behaviour on IIS with php4.1.2

2002-04-02 Thread Wolfram Kriesing
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 $_SESSION['t

Re: [PHP] $PHP_SELF on include file

2002-03-20 Thread Wolfram Kriesing
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

[PHP] rating system

2002-03-19 Thread Wolfram Kriesing
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 th

[PHP] rating system

2002-02-09 Thread Wolfram Kriesing
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 th

Re: [PHP] Caching in php?

2002-02-06 Thread Wolfram Kriesing
> 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

Re: [PHP] Out of the box algorithms

2002-02-06 Thread Wolfram Kriesing
> 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: '/users:\s*(^\s+)"(.*

Re: [PHP] Sessions and Classes

2002-02-06 Thread Wolfram Kriesing
> 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 ShoppingC

[PHP] SimpleTemplate, each template configurable individually

2002-01-22 Thread Wolfram Kriesing
just to announce that SimpleTemplate is also capable now of configuring each template individually you either write a block like this: in your template file or in a seperate config-file, which can be laying in the path to this template this gives designer

Re: [PHP] RE: Printing structure and data of array

2002-01-22 Thread Wolfram Kriesing
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$sTem

[PHP] Tree class that can read/write/access/... DB and XML data

2002-01-21 Thread Wolfram Kriesing
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

[PHP] compiling and *translating* template class

2002-01-15 Thread Wolfram Kriesing
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 c

[PHP] Template class

2001-12-10 Thread Wolfram Kriesing
(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

Re: [PHP] Saving Dynamically Generated Pages

2001-11-09 Thread Wolfram Kriesing
> I’m 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

[PHP] help please: exec/pasthru/system/popen problem

2001-11-09 Thread Wolfram Kriesing
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:- jp

[PHP] session screw up - any experience/hints for me?

2001-09-19 Thread Wolfram Kriesing
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

Re: [PHP] Re: [PEAR] problem with a global variable as class reference

2001-09-15 Thread Wolfram Kriesing
doenst work     $curClass = ${"y"}; # this works, but it's not a reference :-(   } } - $curClass = &${"x"}; $tempi = new temp(); Wolfram Kriesing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

[PHP] problem with a global variable as class reference

2001-09-15 Thread Wolfram Kriesing
e # if i used: $curClass = $classNameY; # 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] F

[PHP] global variables as reference

2001-09-14 Thread Wolfram Kriesing
e # if i used: $curClass = $classNameY; # inside 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 - ko