[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE: [PEAR-DEV] New Metabase Aniversary release

2002-01-22 Thread Björn Schotte
Hi Alex, * Alex Black wrote: > The database abstraction layer's behavior and capabilities dictate > application development and we sure as hell don't want 5 abstraction layers > with the same API floating around. Why not? People can choose if they want to use PEAR::Metabase or PEAR::DB or PHPLIB

Re: [PHP] Passing. Which method to use?

2002-01-22 Thread Floyd Baker
On Tue, 22 Jan 2002 14:21:56 +0530 (IST), you wrote: >Hi, > I'm using sessions extremely to do that. > >with regards >Sukumar .S >On Tue, 22 Jan 2002, Floyd Baker wrote: > >> Date: Tue, 22 Jan 2002 01:17:18 -0500 >> From: Floyd Baker <[EMAIL PROTECTED]> >> To: [EMAIL PROTECTED] >> Subject: [PHP

Re: [PHP] sessions -- behind the scenes??

2002-01-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Johnson, Kirk blurted > > By default, session data is stored in a file in /tmp, but you can specify > another place, like a database. PHP generates a session id, which is part of > the filename of the session file. PHP passes a cookie

[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] Re: [metabase-dev] RE:[PEAR-DEV] New Metabase Aniversary release

2002-01-22 Thread Alex Black
> * Manuel Lemos wrote: >> I think that the greatest point of the merger is to have one and only >> one abstraction layer in PEAR, > > I think consensus was that there shouldn't be "the one and > only XYZ" PEAR class but "more than one XYZ" PEAR class (like > IT[X] and the PEAR rewrite of PHPLib'

RE: [PHP] sessions -- behind the scenes??

2002-01-22 Thread Johnson, Kirk
> -Original Message- > From: Mikusch, Rita [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 22, 2002 12:30 PM > To: [EMAIL PROTECTED] > Subject: [PHP] sessions -- behind the scenes?? > > > This may be a silly question . . . where is the information > that sessions > hold actually kep

[PHP] PHP 4.1.1 on iPlanet 6 sp1 on XP Home (I'm reaching here)..

2002-01-22 Thread James Hallam
We use iPlanet on Windows for a number of our servers, and have succesfully installed PHP 4.0.6 on NES 4 on NT, with the NSAPI install. There was one step that we had to do, which wasn't in the manual, however - which was making sure that the domain field in the server's TCP/IP Settings was fille

[PHP] Re: [binarycloud-dev] Re: [PEAR-DEV] New Metabase Aniversaryrelease

2002-01-22 Thread Alex Black
>> I will first focus on the functional aspects, then step by step making >> the necessary changes to make that final code compliant to the PEAR >> coding standard. > This makes no sense for PEAR. > > I propose this way: > 1. pearize Metabase (functionNames, using PEAR_Error) > 2. commit the stuf

[PHP] sessions -- behind the scenes??

2002-01-22 Thread Mikusch, Rita
This may be a silly question . . . where is the information that sessions hold actually kept? Are cookies generated? Do sessions just simplify the process of generating those cookies and keeping track of that information? I have access to PHP3 as an apache module, and PHP4 as a cgi...I'm wonderin

[PHP] Re: [PEAR-DEV] Re: [metabase-dev] RE: [PEAR-DEV] New Metabase Aniversary release

2002-01-22 Thread Björn Schotte
* Manuel Lemos wrote: > I think that the greatest point of the merger is to have one and only > one abstraction layer in PEAR, I think consensus was that there shouldn't be "the one and only XYZ" PEAR class but "more than one XYZ" PEAR class (like IT[X] and the PEAR rewrite of PHPLib's Template c

RE: [PHP] How should I cache database data for php?

2002-01-22 Thread Robert V. Zwink
I use cachedFastTemplate for caching Dynamic content. http://px.sklar.com/code.html?code_id=312 Used in conjection with FastTemplate class. Very useful. Also see: http://www.php.net/manual/en/function.ob-start.php Output buffering in php can be used to cache dynamic content. Robert V. Zwink h

[PHP] SQL / PHP Join issue. - SOLVED

2002-01-22 Thread Michael O'Neal
Hi all. Never mind my previous post. I fixed my SQL statements by using "AS" statements. For example: SELECT calendar.ID AS calendar_ID,calendar.Calendar_Title AS Calendar_Title,calendar.Add_To_Scroller AS calendar_Add_To_Scroller... That worked like I wanted it to. Thanks! mto -- Mich

[PHP] Templates: how to get that HTML outta my templates!

2002-01-22 Thread Mikusch, Rita
Sorry for bringing this topic up yet again, but I'm having a real problem with the details of implementing a templates system. I'm read all the tutorials, articles, emails etc, but was hoping others on this list with the same problems could share how they solved them. Now I understand the basic l

[PHP] MySQL 4.x's SSL connections from PHP.

2002-01-22 Thread Rodolfo Gonzalez
Hi list, again with my question, but now a bit different: I guess the current version of PHP doesn't support the connection to a MySQL server using the SSL features provided by the 4.x series of MySQL for an encrypted connection (correct me if I'm wrong, please). Is it planned to include this sup

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Rodolfo Gonzalez
On Tue, 22 Jan 2002, Joffrey van Wageningen wrote: > socket to the server (read: the php script running). the only realy useful > language is javascript becouse flash and java are not portable on some > platforms. the next problem is javascript isnt able (for security reasons) > to open a socket t

[PHP] Re: [metabase-dev] RE: [PEAR-DEV] New Metabase Aniversary release

2002-01-22 Thread Manuel Lemos
Hello Lukas, Lukas Smith wrote: > I also would like to hear if anyone uses Metabase with using the API in > metabase_interface.php .. if there are not many people using it then all > then I can safely modify the method names and parameters orders in the > new DB class and make the same changes to

[PHP] Help is_dir command driving me crazy!

2002-01-22 Thread Dean Dunn
Can anyone tell me why this script doesn't work properly. I've coded it several others ways including using is_dir pointing to the full path. Nothing works reliably, it works sometimes/sometimes not. One interesting thing is that my PHP ecommerce app (osCommrce) is run and then my script is run i

Re: [PHP] SQL / PHP Join issue.

2002-01-22 Thread clint
You need to either alias the columns i.e. career.id as careerid or rename your columns i.e. change the id to careerid & calendarid. The second option would be best because that way your columns are descriptive. HTH Clint -- Original Message -- From: Mich

[PHP] SQL / PHP Join issue.

2002-01-22 Thread Michael O'Neal
Hi, I'm having a little trouble with this join statement I'm working on. What I *think* is happening is that PHP is getting confused with the "ID" field that is the same for the three different tables. When I go through the result set, you can see that the field "ID" gets used a couple of times

[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] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
Hi Shane, > Actually, I'd be interested to know why the same connection is used for two > connections to the same database? > I'm guessing people could fall over this trying to do, say, unbuffered > queries through one to fetch a huge result set, and normal queries through > another to make chan

Re: [PHP] How to get php to accept spaces in a file name?

2002-01-22 Thread Kevin Garrett
Thanks Bogdan, >From: Bogdan Stancescu <[EMAIL PROTECTED]> >To: Kevin Garrett <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [PHP] How to get php to accept spaces in a file name? >Date: Tue, 22 Jan 2002 15:30:39 +0200 > >rawurlencode() is the answer to your question. > >Bogdan > >Kevin

Re: [PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Shane Wright
Actually, I'd be interested to know why the same connection is used for two connections to the same database? I'm guessing people could fall over this trying to do, say, unbuffered queries through one to fetch a huge result set, and normal queries through another to make changes Of cours

[PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
Hi list, I do a small test on mysql_connect() and mysql_pconnect(), and discover a strange behaviour. the output if using mysql_connect(): Resource id #1 Resource id #1 (both resource id are the same, as expected) the output if using mysql_pconnect(): Resource id #1 Resource id #2 (both resou

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

2002-01-22 Thread Sandeep Murphy
exactly! "fancier regular expression" is what I am looking for here:) thnx anyway... if anyone else has any suggestions.. welcome... regards, sands -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 22 de Janeiro de 2002 16:13 To: Sandeep Murphy; Tim

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

2002-01-22 Thread Tim Ward
I understand now, your problem is not how display the array but how to get it in a meaningful structure in the first place i.e. $app[0]["name"] = "san"; $app[0]["age"] = "23"; $app[0]["app"]["name"] = "san"; $app[0]["app"]["age"] = "23"; etc. is that valid XML? (I'm not that up on XML and can't fi

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joel Boonstra
> I need to build a php-chat (online support system), but in realtime. > I've develope a system that refresh in browser client in 5 seconds. But > i need a system that works in realtime, what i meen is when a client or > the server send a message, the browser refresh when a message was sent. > All

[PHP] Re: PHP Chat REALTIME

2002-01-22 Thread Emile Bosch
it's kinda impossible since HTTP is a STATELESS PROTOCOL "Nuno Mariz" <[EMAIL PROTECTED]> wrote in message 1011695546.3467.5.camel@sputnik">news:1011695546.3467.5.camel@sputnik... > I need to build a php-chat (online support system), but in realtime. > I've develope a system that refresh in brow

Re: [PHP] Prev Next Buttons

2002-01-22 Thread Joffrey van Wageningen
phpbuilder has a good article on prev&next buttons, the code is based on mysql but take a look at the mysql & odbc functions... view, compare and adjust to your needs: http://www.phpbuilder.com/columns/rod20001214.php3 with kind regards, Joffrey van Wageningen ne2000.nl - Original Message -

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
> i haven't been following this, but have you guys thought of ircg? > http://php.net/ircg ircg is a lot of fun and could be used as the server system for message management, the real problem is how to get the data to the client without use of a socket ircg also needs an ircd which is a little t

[PHP] Prev Next Buttons

2002-01-22 Thread Alawi
How cam I make Prev Next Buttons with ODBC+ACCESS XP by PHP :(

RE: [PHP] PHP Chat REALTIME

2002-01-22 Thread James Cox
Ok, i haven't been following this, but have you guys thought of ircg? http://php.net/ircg James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PRO

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

2002-01-22 Thread Sandeep Murphy
Hey! No need to apologise!!! If it werent for guys like u newbies like us would hv a head full of grey hair!! honestly, methinks u guys rock!! well, coming bak to the problem, I guess I have the posted the same problem a few times in this list and receiving none or different answers may i

Re: [PHP] changing unix password in php?

2002-01-22 Thread Bogdan Stancescu
You're most certainly going to end up running a command on the system with root permissions which will include some user submitted data. Be extra careful with that - you always have to bear in mind that the user might enter multiple commands in the respective submission. Bogdan Charlie Grosve

Re: [PHP] OOP Problem

2002-01-22 Thread Anas Mughal
send us the code that inherits your mysqldb class... --- Charles <[EMAIL PROTECTED]> wrote: > Hi, > > i have create a simple php class to learn how to oop > programming, like this: > > class mysqldb { > var $dbconn; > > function OpenCon($DBHOST,$DBUSER,$DBPASS){ > $this->dbconn = >

Re: [PHP] changing unix password in php?

2002-01-22 Thread Mehmet Kamil ERISEN
I have not done it, but i can be done by using a form and calling the shell script that does the job. Of course shell script has to be executable by everybody. It may be a security concern. or, you can add the shell script to your cron tab. and keep the password change requests in a file and chang

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Bogdan Stancescu
> the 'smarter' way would be having a client side programming language open a > socket to the server (read: the php script running). the only realy useful > language is javascript becouse flash and java are not portable on some > platforms. the next problem is javascript isnt able (for security re

[PHP] changing unix password in php?

2002-01-22 Thread Charlie Grosvenor
Hi I would like to create a page in php where a user can change their unix password, does anybody know how i can do this? Thankyou Charlie

Re: [PHP] OOP Problem

2002-01-22 Thread Sam Masiello
Hi there! It sounds like you do not have mysql support compiled into PHP. You didn't say if you were using PHP on Windows or Linux so you might want to read the documentation for the respective version that you have downloaded to find out how to compile MySQL support into your PHP installation.

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

2002-01-22 Thread Joffrey van Wageningen
how about: array("zus", "zo", "bla"), "nog" => array("wat", "van", "dit" => array("is", "dat")), "bla"); function displayarr($arr) { $c = ""; echo "array("; foreach($arr as $key => $val) { if($c) echo ", "; if(is_array($key)) displayarr($key); else ech

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

2002-01-22 Thread Tim Ward
I may have lost the original problem, but I thought you wanted a way of displaying the structure of an array hierarchy, e.g. $fred[0][0] = array("length"=>10, "width"=>20); $fred[0][1] = array("length"=>20, "width"=>30); $fred[0][2] = array("length"=>30, "width"=>20); $fred[0][3] = "Hello world";

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

2002-01-22 Thread Sandeep Murphy
nope... It continues to print in a single column indexed from 0 to It does not print the sub elements as sub elements. any more ideas??? regards, sands -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: terça-feira, 22 de Janeiro de 2002 12:56 To: Sandeep Murph

[PHP] RE: [PEAR-DEV] New Metabase Aniversary release

2002-01-22 Thread Lukas Smith
Hi, so for all who care: I will begin pearifying Metabase starting next week. Obviously this will take a fair amount of time. Also I am fairly busy with work so any help is greatly appreciated. This is also my first stab at reworking such a huge amount of code that was originally written by some

[PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
i forgot to mention in my last code sniplet: just run the script (maybe touch a new file in /tmp and give it readwrite rights)... you will have a run for 30 seconds (the php timeout) if you want to add a line edit the file manualy or use the sniplet: sniplet.php?new=mynewline :) -- PHP Gene

Re: [PHP] OOP Problem

2002-01-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 15:08 * Charles said > php give me a error, > call to undefined function: mysql_connect() > > php think that mysql_connect is my private function ? > Have you used mysql functions in that enviornment (without a class) befor

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
> > > I dont think its possible without Java programing. > > its posible to keep a http connection open and trust on flush() to send some > > data to the client, if this data contains javascript you could update a > > window or something... if you want to make this safe: make sure you use a > > c

RE: [PHP] OOP Problem

2002-01-22 Thread Matt Friedman
The only reason I can think of for that to happen would be if you referred to $this->mysql_connect(...); Then it would look for mysql_connect as a method of the class and wouldn't find it. Just guessing that this might be the problem. Matt Friedman Web Applications Developer www.SpryNewMedia.co

[PHP] OOP Problem

2002-01-22 Thread Charles
Hi, i have create a simple php class to learn how to oop programming, like this: class mysqldb { var $dbconn; function OpenCon($DBHOST,$DBUSER,$DBPASS){ $this->dbconn = mysql_connect($DBHOST,$DBUSER,$DBPASS); } } this is a simple example... but when i inherit the class, php gi

Re: [PHP] Authentication Pages

2002-01-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 13:49 * Nicolas Llamosas said > Where can I find some information about Authentication Pages, login, pass, > using php, apache and mysql? All the usuall places. Have you not seen these sites: www.phpbuilder.com www.devshed.co

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

Re: [PHP] array_walk inside class method

2002-01-22 Thread S. Murali Krishna
Dear Gyozo You have sent me the following solution thru php mailing list. I have also asked you a doubt about the syntax. I want to explain this syntax to my colleagues, could u pls point me to any documentation of this syntax or any article. if possible pls explain y

Re: [PHP] How to get php to accept spaces in a file name?

2002-01-22 Thread Bogdan Stancescu
rawurlencode() is the answer to your question. Bogdan Kevin Garrett wrote: > Hi guys, > > I've an index script which views the contents of a directory on a unix > server. This unix server has also got file with windows naming convesion, > which makes a file with spaces look like this "/this\ i

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Bogdan Stancescu
I've been kidding around with a chat experiment of my own a few weeks ago and stumbled in the same problem with refresh, so I'm quite interested in this discussion. So, ok, I didn't know about flush() at all, but how do you keep the http connection open in the first place? Just keep looping in the

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

2002-01-22 Thread matthias.stache
how about: function debugPrint($mVar, $bHtml) { global $HTTP_REFERER; if (is_array($mVar)){ $sTemp = "Array"; } if (is_bool($mVar)){ $sTemp = "Bool"; } [snip] ... $sFunction = "debugPrint$sTemp"; //getting the function to call to $sFunction($sTemp,$mVar,$bHtml); //calls the fu

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Joffrey van Wageningen
> I dont think its possible without Java programing. its posible to keep a http connection open and trust on flush() to send some data to the client, if this data contains javascript you could update a window or something... if you want to make this safe: make sure you use a combination of a open

[PHP] PHP Installation: .rpm working with RaQ4 wanted...

2002-01-22 Thread Stefan Rusterholz
Hi is there a recommendable site where I can find a .rpm (PHP 4.06 or higher) working on a Cobalt RaQ4? (I found some for RH6.x & 7.x but they didn't work. I got the message "only packages with major numbers <= 3 are supported by this version of RPM") Any hints are appreciated! TIA & best rega

Re: [PHP] Best way to get the remote IP address?

2002-01-22 Thread Antonio S. Martins Jr.
Hi, Simply... test for HTTP_X_FORWARDED_FOR if it exists, then your client are behind a proxy server, the REMOTE_ADDR is the proxy IP, and HTTP_X_FORWARDED_FOR is the client IP (if not faked by the proxy). hope this helps,

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

2002-01-22 Thread Tim Ward
how about ... function ShowArray($array) { echo(""); foreach ($array as $key=>$value) { echo("$key") if (is_array($value)) { ShowArray($value); } else { echo("=>$value"); }

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

2002-01-22 Thread Sandeep Murphy
hi, Thnx for the info but this is what I am using right now... It prints the contents of array one below the other... is not showing the format of the contents as i want...:( any more suggestions?? thnx, sands -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent:

[PHP] How to get php to accept spaces in a file name?

2002-01-22 Thread Kevin Garrett
Hi guys, I've an index script which views the contents of a directory on a unix server. This unix server has also got file with windows naming convesion, which makes a file with spaces look like this "/this\ is\ an\ example/". The file name itself appears fine but there is also a link to the

[PHP] Authentication Pages

2002-01-22 Thread Nicolas Llamosas
Where can I find some information about Authentication Pages, login, pass, using php, apache and mysql? Thanks. Nicolas Llamosas _ MSN Photos es la manera más sencilla de compartir, editar e imprimir sus fotos favoritas. http://p

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

2002-01-22 Thread matthias.stache
Use this: function debugPrint($mVar, $bHtml) { if ($bHtml){ echo ""; print_r ($mVar); echo ""; } else { print_r ($mVar); } } call it like this: debugPrint($yourVariable,1); This will print out any type (object,array,ressource,string...) - Original Message - From: "Sandeep

[PHP] url for swflib ?

2002-01-22 Thread Michael Plies
Hy - i hope someone can help me - please i need an url for downloading the swflib or another swflibarie for use with php (and some information about it). I dont find it under the url given in the phpmanual. Have someone informations or expirience ?? Please Help Thanks -- PHP General Mailing L

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

2002-01-22 Thread Sandeep Murphy
hi, how can I display the array exactly as it is the format specified??? like if their exists sub elements of elements, how could I represent them in a multidimensional format?? I went thru most of the array functions but unable to adapt any of them.. pl help.. TIA, sands -Original Messag

Fw: [PHP] How should I cache database data for php?

2002-01-22 Thread DL Neil
Jeff, > =sorry, I wish I could remember where I saw that article. =Have had another quick look around this morning, but to no avail. =Best I can offer is the suggestion that you take a look at the various articles on this subject at PHP Builder http://www.phpbuilder.com/columns/. Maybe somethi

[PHP] The Euro symbol, default charset and htmlentities()

2002-01-22 Thread Sönke Tesch
Hi everybody! I'm a bit lost. The original problem was (and still is) to get the Euro symbol from a iso-8859-15 string into the HTML code output by a PHP-script (4.0.6 by the way). At first it worked fine using htmlentities("¤",ENT_QUOTES,"iso-8859-15"). However, this is a bit long, I would ha

[PHP] Help for swflib

2002-01-22 Thread Michael Plies
Hy - i hope someone can help me - please i need an url for downloading the swflib or another swflibarie for use with php (and some information about it). I dont find it under the url given in the phpmanual. Have someone informations or expirience ?? Please Help Thanks -- PHP General Mailin

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Ben-Nes Michael
I dont think its possible without Java programing. If there is other solutions ill be glad to hear. -- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il -- - Original Message -

Re: [PHP] Best way to get the remote IP address?

2002-01-22 Thread gaouzief
here is a piece o fcode that looks up user ip from env vars recursively 22/01/2002 04:57:50, Jimmy <[EMAIL PROTECTED]> wrote: >> either $HTTP_SERVER_VARS['REMOTE_ADDR'] or simply $REMOTE_ADDR (if you use >> $REMOTE_ADDR in functions make sure you do a global on it first) - I >> personally use

Re: Re: [PHP] ok, I ask again.. how to encrypt to be able to match

2002-01-22 Thread David
u used password() to encrypt the value in mysql? u can get back a encrypted value of a value by doing a "select password('secret');" in mysql, it will return u the encrypted value, check this value against the encrypted password in mysql. is this what you're asking? :) >I've asked this sever

[PHP] Re: PHP Chat REALTIME

2002-01-22 Thread David
hey, i thought about this problem last time, i figured out that there's NO WAY to do this in php, (the auto refresh does not count). somebody pls prove me wrong. intrested to continue this discussion David >I need to build a php-chat (online support system), but in >realtime. >I've develope a

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Richard Baskett
Actually PHP has a "garbage collector" that periodically it "cleans" deletes all those old session files. I believe you can set the time it cleans these files up in the php.ini file. Now that you know where to look a search should be able to answer this question more fully than I can and with mo

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Bruno Baketaric
Uhhh? Closing a browser window, does definetly NOT delete the session. Closing a Browser Window simply does nothing on the Server-Side, so there's no command to delete a session executed. If someone manages to grab the sessionid (or the cookie) and opens the Page again, the session is still active

Re: [PHP] foreach array into mail isn´t working

2002-01-22 Thread DL Neil
Josepablo, > Hey guys guess what.. the problem is fixed the was that at mailaddr.txt sense > the e-mails are each on one line each line has \n that crashed when asigning it > at mail() , ill make a note of this on the manul.. I have included below the > script iam now using.. what do you guys thi

RE: [PHP] Rand function

2002-01-22 Thread Jon Haworth
> Can anyone tell me why, when I run this > $number = rand (1,12); > The only number that ever appears is 5? > Not really a random number... You need to seed the random number generator first. http://www.php.net/srand HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] Rand function

2002-01-22 Thread Jason Wong
On Tuesday 22 January 2002 18:52, Sam wrote: > Hi all, > > Can anyone tell me why, when I run this > > $number = rand (1,12); > The only number that ever appears is 5? > Not really a random number... You need to seed the random number generator using srand(). Best to read the online annotated m

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
OK I'll have a look around. Thanks for your time Nick. Nick Wilson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > * On 22-01-02 at 11:46 > * Neil Freeman said > > > OK I agree with you there :) But as I haven't called the session_destroy() > > function the session file still re

[PHP] Rand function

2002-01-22 Thread Sam
Hi all, Can anyone tell me why, when I run this $number = rand (1,12); The only number that ever appears is 5? Not really a random number... Thanks Sam

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Nuno Mariz
That was not the problem, i need something that keep the conection between client and server. On Tue, 2002-01-22 at 10:51, Ben-Nes Michael wrote: > The server can controll the Refresh and the cache expiry through headers > sent when the page is requested by the client. > > add this to expire cli

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 11:46 * Neil Freeman said > OK I agree with you there :) But as I haven't called the session_destroy() > function the session file still resides in the session.save_path directory. > Over time the number of these files will obv

Re: [PHP] PHP Chat REALTIME

2002-01-22 Thread Ben-Nes Michael
The server can controll the Refresh and the cache expiry through headers sent when the page is requested by the client. add this to expire client content every time a request for the same page is sent. header("Pragma: no-cache"); add this to refresh client content every 5 sec http://www.doamin.c

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
OK I agree with you there :) But as I haven't called the session_destroy() function the session file still resides in the session.save_path directory. Over time the number of these files will obviously increase so isn't it better to implement a method which calls the session_destroy() function ???

Re: [PHP] Session deletion on window close?

2002-01-22 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 22-01-02 at 11:30 * Neil Freeman said > Does anyone have any suggestions as to how I could achieve the > following: > a) Browser window closed by user clicking on [X] No but I'm sure someone will. > b) 'Logging out' page opened (which ha

Re: [PHP] How should I cache database data for php?

2002-01-22 Thread B Richards
I've been following this discussion and has anyone tried smarty? smarty is a template but also does caching. haven't tried it but i think you can set the cache to be like 30 seconds and it will display a cached html page instead of hitting your database. i think you can also cach only different

[PHP] PHP Chat REALTIME

2002-01-22 Thread Nuno Mariz
I need to build a php-chat (online support system), but in realtime. I've develope a system that refresh in browser client in 5 seconds. But i need a system that works in realtime, what i meen is when a client or the server send a message, the browser refresh when a message was sent. All this with

[PHP] Session deletion on window close?

2002-01-22 Thread Neil Freeman
Hi there, First off this may be more of a javascript question than PHP question but I was wondering if anyone else has attempted something similar (and it does involve the deletion of PHP sessions). Here's the scenario: I have a 'stand alone' website on our intranet which creates a PHP session u

Re: [PHP] Re: PHP vs Java reliability

2002-01-22 Thread Geoff Caplan
Michael > > the "Why PHP" on zend.com is a great place to go for this sort of stuff... > > > Honestly, it doesn't seem all that professional a resource paper... I would tend to agree - not something you could show to a hard-headed corporate purchasing committee with any confidence. > > I believ

RE: [PHP] How to call Calling Non-Existing function

2002-01-22 Thread Tim Ward
This generates a parse error if Draw_Table() doesn't exist rather than returning false, unless there's something in my set up that's different to yours. Tim www.chessish.com -- From: val petruchek [SMTP:[EMAIL PROTECTED]] Sent: 21 Janu

[PHP] RE: Printer funtions

2002-01-22 Thread Tim Ward
Why would you expect these functions to do anything on the client machine? These are for printers attached to the server. Tim www.chessish.com -- From: James Mclean [SMTP:[EMAIL PROTECTED]] Sent: 21 January 2002 23:48 To: [EMA

[PHP] Split files

2002-01-22 Thread Martin Thoma
Hello! Is there a PHP-function to split binary files into pieces of a several size and glue them together later? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrat

[PHP] RE: file upload with story

2002-01-22 Thread Tim Ward
I found everything I needed to upload images here: http://www.php.net/manual/en/features.file-upload.php Tim www.chessish.com -- From: will hives [SMTP:[EMAIL PROTECTED]] Sent: 2

RE: [PHP] Nobody know nothing about? Php login scripts using PHP4.01, Apache3.01 CGI on W2K

2002-01-22 Thread Tim Ward
Use html form for user input with text field for user name and password filed for password. Hold password encrypted using MySQL password() function and check login by "SELECT * FROM users WHERE user='$user' AND pass=PASSWORD($password)". If (mysql_num_rows($result)) login = true; Tim www.chessish

Re: [PHP] Re: How should I cache database data for php?

2002-01-22 Thread DL Neil
Garth, > my two cents... =thank you for the description - it is worth more than a figurative two cents! > I used to work at a newspaper we used a very elaborate > caching system, it used to function at the at the > page subcomponent level (i.e. header, footer, left nav, articles > were all stor

[PHP] Problems from php4.0.6 to 4.1.1 with sessions

2002-01-22 Thread Ben-Nes Michael
Hi All In all my sessions sites when I had to move from the primary domain using session to a secondary domain (like from www.domain.com to secure.domain.com) I added the PHPSESID to the URL and the session in the new site continued from the previous Domain. in 4.1.1 when I move from the primary

Re: [PHP] Passing. Which method to use?

2002-01-22 Thread Sukumar S.
Hi, I'm using sessions extremely to do that. with regards Sukumar .S On Tue, 22 Jan 2002, Floyd Baker wrote: > Date: Tue, 22 Jan 2002 01:17:18 -0500 > From: Floyd Baker <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [PHP] Passing. Which method to use? > > > Hi once again. > > Wh

[PHP] Re: smarter code (mySQL arrays)

2002-01-22 Thread David Robley
[EMAIL PROTECTED] (Justin French) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: > Hi all, > > I've got into the habbit of pulling data out of a table something like > this: > > > $sql = "SELECT * FROM cd_review WHERE publish='yes' ORDER BY id DESC > LIMIT 3"; > $sql_result = mysql_que

Re: [PHP] Integer in PHP

2002-01-22 Thread Sukumar S.
Hi, Use intval("2.05"); I hope this will do the needful for you. with regards, Sukumar .S On Mon, 21 Jan 2002, Jerry wrote: > Date: Mon, 21 Jan 2002 13:35:34 - > From: Jerry <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [PHP] Integer in PHP > > Hi, > > I'm new in PHP, comi

RE: [PHP] Writing to text file from Radio Buttons

2002-01-22 Thread Niklas Lampén
fwrite()? Niklas -Original Message- From: Harphajan Singh [mailto:[EMAIL PROTECTED]] Sent: 22. tammikuuta 2002 9:51 To: [EMAIL PROTECTED] Subject: [PHP] Writing to text file from Radio Buttons Greeting dudes ! I`m a fresh user of PHP and need some technical assistance from you folks.