Re: [PHP] Use of Objects in PHP

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 01:43, Nagib Abi Fadel wrote: Hi, i have been using php for 1 year till now, and i never felt the need to use an object. Can some one tell me where and why should i use the object oriented coding in PHP ? I meen i have been able to do all the things i want without

[PHP] Dynamic tables

2003-10-17 Thread irinchiang
Hi all, Having a slight problem with dynamic tables here. I am trying to create a timetable using PHP, HTML, and MySQL, where all the cells in the table are coloured and that the colour of the cells can be changed using a drop down menu. Here's a snip of the code that I have done: td

[PHP] 'Return values' from links

2003-10-17 Thread akroeger1
First of all, Hi! I just started getting into php a week ago, but already ran into a problem I can't seem to solve. The issue is this : I code 2 different websites, each has it's own mySQL-DB. Website A has a login-section, each time you successfully log in, a key is generated which stays only

Re: [PHP] intercepting URLs in a control-system

2003-10-17 Thread SLanger
Hello If you are using PHP as an Apachemodule you also have the option of using a url like http://example.com/index.php/test/test.html Apache will see that test.html is not available and will travel down the directory path til it gets to the index.php (which should exist BTW) and call that

[PHP] Back option using php

2003-10-17 Thread Uma Shankari T.
Hello, Is there any way to restrict the user not to go back once he submitted the html form ?? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 'Return values' from links

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 08:54:23 +0200 (MEST), you wrote: I have a php file in website A's directory, which, when given a key value, will check whether it is valid or not. Is there any way I can treat this website like a function and have it give me a return value after it has run through ? Yes;

Re: [PHP] Back option using php

2003-10-17 Thread Becoming Digital
There may be, but it would almost certainly be handled client-side. Try looking into Javascript stuff that clears the browser cache or otherwise prohibits back navigation. Edward Dudlik Those who say it cannot be done should not interrupt the person doing it. wishy washy |

Re: [PHP] Back option using php

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 14:50:21 +0530 (IST), you wrote: Is there any way to restrict the user not to go back once he submitted the html form ?? Javascript, but that can't be relied on. Are you're trying to avoid the This page has expired, resubmit? warning in IE? Use header (Location:) to

Re: [PHP] Session cookie issue...

2003-10-17 Thread Marek Kilimajer
Jake McHenry wrote: John W. Holmes wrote: I think just upgrading PHP and still using Apache2 will fix this bug, though, and it should still work (it'll be dependent upon what extensions you use and whether they are supported with Apache2). Extensions.. As in file name extensions? No, John means

[PHP] Passing values dynamically

2003-10-17 Thread Rashini Jayasinghe
Hi, I am getting a one column table as a result for a select statement. Now I want to pass obtained values dynamically to invoke another query in a new page. I tried to pass the values with sessions. But every time I get the last value of the previous result. Any suggestions as how I could pass

[PHP] Re: 'Return values' from links

2003-10-17 Thread pete M
Some XML would do the trick pete [EMAIL PROTECTED] wrote: First of all, Hi! I just started getting into php a week ago, but already ran into a problem I can't seem to solve. The issue is this : I code 2 different websites, each has it's own mySQL-DB. Website A has a login-section, each time you

Re: [PHP] Passing values dynamically

2003-10-17 Thread Marek Kilimajer
You need to create an array in the session and assign the values: $_SESSION['values']=array(); while( $v=/* get single value */ ) { $_SESSION['values'][]=$v; // notice the [] } Then on the other page loop the array. Rashini Jayasinghe wrote: Hi, I am getting a one column table as a result

Re: [PHP] Passing values dynamically

2003-10-17 Thread Nitin
i guess, it would be better to use loops, if i understand your problem, the way it is. Nitin - Original Message - From: Rashini Jayasinghe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 17, 2003 3:12 PM Subject: [PHP] Passing values dynamically Hi, I am getting a one

Re: [PHP] credit card gateway

2003-10-17 Thread Merlin
Hi there, quote I would like to implement direct credit card payment on my site with a gateway (SET). Can somebody recommend low price gateway companies. It seems to me that prices verry a lot. PayQuake has the best rates I've seen. They can be a PITA when setting up, but otherwise

Re: [PHP] Newbie question about Class

2003-10-17 Thread Becoming Digital
I was afraid that was the case. You've nothing to fear but fear itself. Sessions are your friend. Edward Dudlik Those who say it cannot be done should not interrupt the person doing it. wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU - Original Message - From: Al [EMAIL

[PHP] Creating local vars from HTTP Post Array

2003-10-17 Thread Javier .
I'm re-coding a fairly large multi step form which was written with PHP's register globals turned on. Since upgrading PHP this form has stopped working and needs editting. Rather than manually changing each var - $foo to$_POST['foo'] (there are simply too many) i'd like to do something

Re: [PHP] Newbie question about Class

2003-10-17 Thread Rory McKinley
Hi Al Sessions and objects are quite easy to use in the latest version of PHP, and would be my personal recommendation. I have a coupleof test scripts that I regularly mangle when trying to see if something is doable...if you like, you can contact me offlist and I will mail these to you and you

Re: [PHP] Creating local vars from HTTP Post Array

2003-10-17 Thread Nick JORDAN
Rather than manually changing each var - $foo to$_POST['foo'] (there are simply too many) Why not simply use Find and Replace in a text editor, if you only need to change one form? Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Looking for a programmer designer to hire

2003-10-17 Thread David T-G
Joseph -- ...and then Joseph Bannon said... % % Are there any sites I can post a bid request for programmers and graphic designers? While I'm happy to hear of the sites mentioned by others (though itmoonlighter has never gotten anything for me), I agree that a post here describing what sort of

Re: [PHP] Dynamic tables

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 14:42:34 +0800, you wrote: Right now, I am able to change the colour of cells using a drop down menu, and when I clicked on Reload it still remains the colour that I have changed, but when I open the page in another browser, as I echoed the value colour, the browser displayed

[PHP] Session not getting destroyed !

2003-10-17 Thread Binay
Hi all, My session is not getting destroyed once i close the browser. Problem is only in IE 5 as IE 6+ its getting destroyed. I don't know what is the problem. I looked at the session settings parameters in php.ini file but couldn't figure it out. I am using php 4.2.3 and

Re: [PHP] SQL injection

2003-10-17 Thread Duncan Hill
Hi i read many thing on sql injection but i just cant sumarize all the information. Most site (PHPadvisory.com, phpsecure.info, other found on google) dont talk to mutch on how to prevent SQL injection. One of the things I tend to do to limit any damage is tell the backend SQL server to not

Re: [PHP] Creating local vars from HTTP Post Array

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 10:11:57 +, you wrote: I'm re-coding a fairly large multi step form which was written with PHP's register globals turned on. Since upgrading PHP this form has stopped working and needs editting. Rather than manually changing each var - $foo to$_POST['foo']

Re: [PHP] Session not getting destroyed !

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 15:58:36 +0530, you wrote: My session is not getting destroyed once i close the browser. Problem is only in IE 5 as IE 6+ its getting destroyed. I don't know what is the problem. I looked at the session settings parameters in php.ini file but couldn't figure it out. I am

[PHP] Count lines or chars

2003-10-17 Thread Markus
Hi PHP-gurus :-) I'd like to count the lines within a file and store the result within a variable. Every line begins with the char %. Would it be easier to count these chars and how could I do that? Thanks for your help. markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Count lines or chars

2003-10-17 Thread Morten Skou
I guess you could do something like : ?php function countLines($filename) { if(file_exists($filename)) { $linecount=0; $fs = file($filename); while (list ($linenum, $linec) = each($fs)) { $linecount++; } return $linecount; } } $local_file =

Re: [PHP] Count lines or chars

2003-10-17 Thread Pavel Jartsev
Markus wrote: Hi PHP-gurus :-) I'd like to count the lines within a file and store the result within a variable. Every line begins with the char %. Would it be easier to count these chars and how could I do that? Thanks for your help. markus Maybe this way: $file = file( '/some/file.ext' );

Re: [PHP] Session not getting destroyed !

2003-10-17 Thread Binay
Yes its showing 0 only.. Its a weird kind of problem for me .. - Original Message - From: David Otton [EMAIL PROTECTED] To: Binay [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, October 17, 2003 4:16 PM Subject: Re: [PHP] Session not getting destroyed ! On Fri, 17 Oct 2003

[PHP] Re: Offering files from below the webroot

2003-10-17 Thread Ben Duffy
?header('Content-Disposition:attachment; filename=nnn.txt')? Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, this has been discussed before on the list but am unable to find it on http://marc.theaimsgroup.com/?l=php-general If anybody can point me to the correct URL or

Re: [PHP] Session not getting destroyed !

2003-10-17 Thread PHP Webmaster
Binay [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yes its showing 0 only.. Its a weird kind of problem for me .. - Original Message - From: David Otton [EMAIL PROTECTED] To: Binay [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, October 17, 2003 4:16 PM

Re: [PHP] 'Return values' from links

2003-10-17 Thread David Otton
fputs ($sp, POST /path/to/script.php HTTP/1.0\r\n); fputs ($sp, Host: $host\r\n); Sorry. That should be HTTP/1.1, of course. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session not getting destroyed !

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 16:46:45 +0530, you wrote: Yes its showing 0 only.. Its a weird kind of problem for me .. Is the browser really being closed? SID caught in a bookmark? Broken cache? Try starting from bare - delete all IE cookies and run the tests again. Check the cookie on the client

Re: [PHP] Session not getting destroyed !

2003-10-17 Thread Marek Kilimajer
Don't you have an old cookie in your IE 5? Try clearing all cookies. Binay wrote: Hi all, My session is not getting destroyed once i close the browser. Problem is only in IE 5 as IE 6+ its getting destroyed. I don't know what is the problem. I looked at the session settings parameters in

Re: [PHP] using ImageGIF

2003-10-17 Thread PHP Webmaster
Louie Miranda [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] And here's the error [Fri Oct 17 10:52:20 2003] [error] PHP Fatal error: Call to undefined function: imagegif() in /Volumes/WWW_Root/louie/test.php on line 6 -- - Louie Miranda http://www.axishift.com -

[PHP] Re: Creating local vars from HTTP Post Array

2003-10-17 Thread pete M
try extract($_POST) pete Javier . wrote: I'm re-coding a fairly large multi step form which was written with PHP's register globals turned on. Since upgrading PHP this form has stopped working and needs editting. Rather than manually changing each var - $foo to$_POST['foo'] (there

[PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-17 Thread Bas
That tags? It should not be used anyway... Comex [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [EMAIL PROTECTED] Comex: [EMAIL PROTECTED] Bas: Yes, thanx. I always wanted to make a version where you can use multiple tags of one type. And, what do you find of it? Please rate

[PHP] How can i print out the files in a directory?

2003-10-17 Thread Bas
How can i print out all of the files in a directory? I want some output as this: index.php login.php image1.gif image2.jpg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How can i print out the files in a directory?[Scanned]

2003-10-17 Thread Michael Egan
Bas, I think the following should work though it might need some tweaking as it's some weeks since I did: $dir = directoryname; $dp = opendir($dir); $filenames = array(); while($file = readdir($dp)) { array_push($filenames, $file); } // Compile an array of the

[PHP] date for mysql

2003-10-17 Thread Diana Castillo
how can I format the current date and time so that I can insert it into a mysql table with an insert query? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with session management

2003-10-17 Thread Catia Crepaldi
Hi, I have discovered a very strange thing. The problem is that session management fails when I stop the browser while a PHP page is loading. As soon as the browser requests a file with a session_start or session_register command the browser gets in a kinda endless loop and the session file stay

Re: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Raditha Dissanayake
hi please see if this is what you need: http://www.raditha.com/php/dir.php Bas wrote: How can i print out all of the files in a directory? I want some output as this: index.php login.php image1.gif image2.jpg -- Raditha Dissanayake.

RE: [PHP] date for mysql[Scanned]

2003-10-17 Thread Michael Egan
Diana, Have a look at the getdate() function. This will return an associative array of a time which you can then use to create the date in the format you wish. Regards, Michael Egan -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: 17 October 2003 14:29 To:

[PHP] Re: date for mysql

2003-10-17 Thread pete M
insert into table (date_created) values( now() ) ;-) pete Diana Castillo wrote: how can I format the current date and time so that I can insert it into a mysql table with an insert query? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date for mysql

2003-10-17 Thread Eugene Lee
On Fri, Oct 17, 2003 at 03:28:50PM +0200, Diana Castillo wrote: : : how can I format the current date and time so that I can insert it into a : mysql table with an insert query? That depends on the column type of your MySQL table. Is it a DATETIME? DATE? TIMESTAMP? TIME? Or just a YEAR?

[PHP] variable in e-mail

2003-10-17 Thread christian tischler
I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: variable in e-mail

2003-10-17 Thread Kristin Schesonka
Hi, Sorry, but we are not able to help you without any code from you. Greetz Kristin Schesonka Christian Tischler [EMAIL PROTECTED] schrieb in im Newsbeitrag: [EMAIL PROTECTED] I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these

Re: [PHP] variable in e-mail

2003-10-17 Thread Marek Kilimajer
Post some code. christian tischler wrote: I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! -- PHP General

Re: [PHP] variable in e-mail

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 14:51:54 +0100, you wrote: I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! Reduce

[PHP] variables in e-mail 2nd

2003-10-17 Thread christian tischler
I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! Some code I use . . . $messagepart1 = ' html head

Re: [PHP] variables in e-mail 2nd

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 15:09:48 +0100, you wrote: I would like to use a form in a html page to pass the variables to a php page, which sends an mail including these variables. All I get in the mail though is a 1 rather than the string that I put into the form??? Can anyone help please! Some code

Re: [PHP] variables in e-mail 2nd

2003-10-17 Thread Marek Kilimajer
christian tischler wrote: $messagepart2 = (echo $salutation); $messagepart2 = $salutation; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Filemanager v1.0

2003-10-17 Thread Bas
I have my second program: Filemanager!!! It contains 2 files(this files are in the admin directory of the folder meant in the showindex.php file($dir)): showindex.php --- ?php $dir = /pub/publicfiles/; // Change this to your situation $dp = opendir($dir); $filenames = array();

[PHP] SQL security

2003-10-17 Thread Jeremy Russell
Hello list, I was just sitting here thinking how to secure my php code and thought I would run it by the pros. I don't know what the standard practice is to secure against sql injection and malformed information passed from forms. This probably has been done several times I just would like

Re: [PHP] intercepting URLs in a control-system

2003-10-17 Thread Mike Migurski
If you are using PHP as an Apachemodule you also have the option of using a url like http://example.com/index.php/test/test.html Apache will see that test.html is not available and will travel down the directory path til it gets to the index.php (which should exist BTW) and call that script. This

Re: [PHP] error reporting

2003-10-17 Thread Mike Migurski
Heh yes umm i know this. But how i could i catch this before is spits out to an ugly error page so i can send to a custom error page. Why would anyone but you ever see a parse error? It's the sort of thing you fix before setting up custom error handling. :)

[PHP] Use include function (newbie)

2003-10-17 Thread Karina S
I make a site where I list data from a mysql database. I want to divide the task into 2 parts. The 1. php is the logic.php an the 2. is the html table (html.php) with field values. I plan that the form action in the html.php file call the logic.php but the logic.php includes the html.php. I mean:

Re: [PHP] SQL security

2003-10-17 Thread Chris Shiflett
--- Jeremy Russell [EMAIL PROTECTED] wrote: I was just sitting here thinking how to secure my php code and thought I would run it by the pros. I don't know what the standard practice is to secure against sql injection and malformed information passed from forms. This probably has been done

RE: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Craig Lonsbury
This has been working for me... just pass the function the path to the directory you want the listing for. function getDirFiles($dirPath){ if ($handle = opendir($dirPath)) { while (false !== ($file = readdir($handle))) { if ($file != . $file != ..) {

RE: [PHP] Filemanager v1.0

2003-10-17 Thread Jake McHenry
Bas wrote: I have my second program: Filemanager!!! It contains 2 files(this files are in the admin directory of the folder meant in the showindex.php file($dir)): showindex.php --- ?php $dir = /pub/publicfiles/; // Change this to your situation $dp = opendir($dir);

Re: [PHP] SQL security

2003-10-17 Thread Eugene Lee
On Fri, Oct 17, 2003 at 09:38:12AM -0500, Jeremy Russell wrote: : :I was just sitting here thinking how to secure my php code and : thought I would run it by the pros. I don't know what the standard : practice is to secure against sql injection and malformed information : passed from forms.

[PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
I hope this question is not too stupid! When I have an error in my script, it seems to me that the web server, or in my case the php CGI module I am using for testing, should send something back to my browser displaying an error message. Instead, I can write any garbage I would like in my php

Re: [PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread David Otton
On Fri, 17 Oct 2003 11:29:41 -0400, you wrote: I hope this question is not too stupid! When I have an error in my script, it seems to me that the web server, or in my case the php CGI module I am using for testing, should send something back to my browser displaying an error message. Instead, I

[PHP] Re: SQL security

2003-10-17 Thread pete M
take a look at this http://phpinsider.com/php/code/SafeSQL/ pete Jeremy Russell wrote: Hello list, I was just sitting here thinking how to secure my php code and thought I would run it by the pros. I don't know what the standard practice is to secure against sql injection and malformed

RE: [PHP] Use include function (newbie)

2003-10-17 Thread Chris W. Parker
Karina S mailto:[EMAIL PROTECTED] on Friday, October 17, 2003 8:02 AM said: Question: Is it a right way to do this task or this reqursive calls overloads the server? Maybe I'm misunderstanding you but I didn't see anything wrong with the example you gave. Maybe someone else will

Re: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Nitin
you can use simply exec(ls -l 21;, $output) : if on linux OR exec(dir 21;, $output): if on windows Enjoy Nitin - Original Message - From: Craig Lonsbury [EMAIL PROTECTED] To: Bas [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 17, 2003 8:40 PM Subject: RE:

Re: [PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
Yeah, that did it, thanks David Otton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 17 Oct 2003 11:29:41 -0400, you wrote: I hope this question is not too stupid! When I have an error in my script, it seems to me that the web server, or in my case the php CGI module I am

RE: [PHP] Hanmir I'm gonna kill you, you son of a..........

2003-10-17 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Thursday, October 16, 2003 6:35 PM said: Has this crap from hanmir started again? Yes. Am I the only one who is getting these damn messages? And no. One thing that's strange though is that my sendmail /etc/mail/access rule does not work for these

[PHP] Re: Use include function (newbie)

2003-10-17 Thread Rich Fox
But *why* does logic.php need html.php? There is no recursion issue, or endless nesting of includes, because html.php refers to logic.php as an action for a form... this does not include the logic.php code into the html.php page. Rich Karina S [EMAIL PROTECTED] wrote in message news:[EMAIL

RE: [PHP] SQL security

2003-10-17 Thread Chris W. Parker
Eugene Lee mailto:[EMAIL PROTECTED] on Friday, October 17, 2003 8:20 AM said: If you're using MySQL, you can use mysql_real_escape_string(). If you're using another database, hopefully there is a similar function. Doesn't MySQL automatically protect against attacks like SQL injection? Or

RE: [PHP] SQL security

2003-10-17 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: Doesn't MySQL automatically protect against attacks like SQL injection? Or maybe it's that it automatically applies addslashes()? Nope and nope. What you might be thinking of is that mysql_query() only allows a single query to be executed. This

RE: [PHP] SQL security

2003-10-17 Thread Mike Migurski
If you're using MySQL, you can use mysql_real_escape_string(). If you're using another database, hopefully there is a similar function. Doesn't MySQL automatically protect against attacks like SQL injection? Or maybe it's that it automatically applies addslashes()? I can't remember exactly.

[PHP] (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-17 Thread John Black
Greetings everyone, We have just launched a new product called codeSECURE and would like you to check it out. codeSECURE is a PHP obfuscator. Basically codeSecure is a small collection of scripts to obfuscate or garble up php code so that PHP developers can protect their intellectual property,

RE: [PHP] SQL security

2003-10-17 Thread Chris W. Parker
Mike Migurski mailto:[EMAIL PROTECTED] on Friday, October 17, 2003 9:15 AM said: There is a magic quotes feature, which adds slashes to request variable. You may be thinking of that: Whoops! Yeah, that's what I'm talking about. Chris. -- Don't like reformatting your Outlook replies? Now

Re: [PHP] (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-17 Thread Robert Cummings
You announced this already on Wednesday. So re-announcing the same version seems kinda redundant. Cheers, Rob. On Fri, 2003-10-17 at 12:19, John Black wrote: Greetings everyone, We have just launched a new product called codeSECURE and would like you to check it out. [--CLIPITTY CLIP

Re: [PHP] (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-17 Thread John Black
oops sorry. We had a small problem, we sent this to most of the php lists like SMART,announce etc and we made the mistake of BCCing it there, php.net sent it back to us as BCCing is not allowed to the list/s so we were unsure if we posted it here. Our apologies to everyone. -JB You announced

Re: [PHP] Re: Weird results for 2 lines of damn code

2003-10-17 Thread Jon Kriek
Don't mention it =) -- Jon Kriek http://phpfreaks.com Hey, Thanks, it works!! Replace %G _with_ %Y cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Weird results for 2 lines of damn code

2003-10-17 Thread Jon Kriek
Don't mention it =) -- Jon Kriek http://phpfreaks.com Hey, Thanks, it works!! Replace %G _with_ %Y cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Login system

2003-10-17 Thread Bas
I want a login system with sessions and without mysql. I have tried to make one but that one is without sessions(i don't know anything about sessions) and with mysql... Regards, Bas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 12:57, Bas wrote: I want a login system with sessions and without mysql. I have tried to make one but that one is without sessions(i don't know anything about sessions) and with mysql... InterJinn supports file based sessions, but you'll hafta write your own login since

Re: [PHP] Login system

2003-10-17 Thread Bas
Yes sorry, but i don't use such things like your interjin... Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2003-10-17 at 12:57, Bas wrote: I want a login system with sessions and without mysql. I have tried to make one but that one is without sessions(i

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
That's seems contradictory. It's pre-written code and you appear to be requesting pre-written code. *shrug*. I think silently ignoring my post would have sufficed, but you appear to be making a statement :/ Cheers, Rob. On Fri, 2003-10-17 at 13:04, Bas wrote: Yes sorry, but i don't use such

Re: [PHP] Login system

2003-10-17 Thread Eugene Lee
On Fri, Oct 17, 2003 at 07:04:27PM +0200, Bas wrote: : Robert Cummings [EMAIL PROTECTED] wrote: : On Fri, 2003-10-17 at 12:57, Bas wrote: : : I want a login system with sessions and without mysql. : : I have tried to make one but that one is without sessions (i don't : know anything

Re: [PHP] Login system

2003-10-17 Thread Bas
Okay, what are the very very basic functions to make a session? Eugene Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, Oct 17, 2003 at 07:04:27PM +0200, Bas wrote: : Robert Cummings [EMAIL PROTECTED] wrote: : On Fri, 2003-10-17 at 12:57, Bas wrote: : : I want a

Re: [PHP] Login system

2003-10-17 Thread Bas
Okay, here is what i want: * Login system * No mysql * Sessions * Easy adjustable register page(copy generic files to dir of user) Eugene Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, Oct 17, 2003 at 07:04:27PM +0200, Bas wrote: : Robert Cummings [EMAIL PROTECTED] wrote:

Re: [PHP] Login system

2003-10-17 Thread Bas
I want to try that InterJinn out but... is it free? Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] That's seems contradictory. It's pre-written code and you appear to be requesting pre-written code. *shrug*. I think silently ignoring my post would have sufficed, but

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 13:31, Bas wrote: I want to try that InterJinn out but... is it free? It is free for non-revenue generating purposes. http://www.interjinn.com/licenses/public.phtml Otherwise there's an inexpensive license. Cheers, Rob. Robert Cummings [EMAIL PROTECTED] wrote in

Re: [PHP] Login system

2003-10-17 Thread Bas
Do you mean non-commercial? i plan to use it at home to test some websites and showing them to my friends Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2003-10-17 at 13:31, Bas wrote: I want to try that InterJinn out but... is it free? It is free for

Re: [PHP] Login system

2003-10-17 Thread Chris Wanstrath
Bas, I think a suggested reading would be www.php.net/man. It's the PHP manual and can answer many, if not all, of your questions related to sessions. Yes, even questions like what are the basic functions to make a session. I am usually not one of the people that get uptight about certain types

Re: [PHP] Login system

2003-10-17 Thread subs
Okay, here is what i want: [snip!] Forget about what you want. Here's what you need: http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html http://www.devarticles.com/art/1/639 Almost everyone needs to use sessions and user authentication

RE: [PHP] Login system

2003-10-17 Thread Jay Blanchard
[snip] Okay, here is what i want: * Login system * No mysql * Sessions * Easy adjustable register page(copy generic files to dir of user) [/snip] Let's see, bas releases not one, but two applications this week and then condemns another'swhoa. Bas, RTFM at http://us4.php.net/session -- PHP

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 13:39, Bas wrote: Do you mean non-commercial? i plan to use it at home to test some websites and showing them to my friends The term non-commercial was purposefully not used in the license because it is too narrow of a definition. The license should be quite clear on what

Re: [PHP] Login system

2003-10-17 Thread Bas
Which one does not use mysql and is free? [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Okay, here is what i want: [snip!] Forget about what you want. Here's what you need: http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html

RE: [PHP] variables in e-mail 2nd

2003-10-17 Thread Daevid Vincent
What I do is make a PHP page/template with php variables in place. Then do something like this... $report = path/to/mytemp.php; $today = date(); ob_start(); include($report); $message = ob_get_contents(); ob_end_clean(); //echo $message;

RE: [PHP] Login system

2003-10-17 Thread Jay Blanchard
[snip] Which one does not use mysql and is free? Forget about what you want. Here's what you need: http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html http://www.devarticles.com/art/1/639 [/snip] **slaps forehead** All of them. -- PHP

[PHP] RESOLVED, sort of -- Re: [PHP] where is my session data on my new server?

2003-10-17 Thread David T-G
Hi, all -- It appears that the change from 4.2.3 to 4.3.4rc1 was not something that got broken but instead something that got fixed. Oh, yay. But what do I do now? Hmmm... The code ?php session_name('name') ; session_start ; session_register('pw') ; $pwc = realpass ; if

RE: [PHP] Login system

2003-10-17 Thread Jay Blanchard
[snip] Which one does not use mysql and is free? Forget about what you want. Here's what you need: http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html http://www.devarticles.com/art/1/639 [/snip] **slaps forehead** All of them, with

[PHP] strange MySQL result problem

2003-10-17 Thread Chris W. Parker
Hey peeps. Let me be quick (or try to at least). Here is a snippet of my db class. function query($sql, $current_line) { $this-Result = mysql_query($sql) or die($this-stop($current_line)); // the following two lines work if they are in the next // method

[PHP] best way to use session vars?

2003-10-17 Thread David T-G
Hi, all -- Well, now that I have to change my code around, I suppose I should learn the best way, if there is one in particular, to manage sessions. Should I use $_SESSION for everything or should I use session_start and session_register and friends instead? Is there a clear win with either

RE: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 14:02, Jay Blanchard wrote: [snip] Which one does not use mysql and is free? Forget about what you want. Here's what you need: http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html

RE: [PHP] Login system

2003-10-17 Thread Chris Hubbard
Bas, Based on your (somewhat limited) requirements, I recommend that you look at using Uma. http://sourceforge.net/projects/uma/ It's easy to use, and you can drop it into your application without any trouble. Chris -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: Friday,

  1   2   >