Re: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Lars Olsson
I agree. Using a database is usually a good way of storing session information. But as noted by Dennis below, automatic logout may require additional scripts running in the background. This is a bit inferior in PHP compared to ASP. In ASP, support for automatic session destruction is implement

[PHP] Require some help about the date comparison

2002-07-16 Thread Manisha
I am writing one program - I want to display some text on web. This text should appear for limited period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the text should disappear from screen. I tried to look for date comparison / string conversion to date etc, I got lot info

Re: [PHP] Opening and Editing Quark Binaries

2002-07-16 Thread Miguel Cruz
On Sun, 14 Jul 2002, Simon Troup wrote: > ... quark reports things like unexpected EOF (even though when I open > the file in a text editor they have same number of lines and "look" > identical), I've also tried a few things with the Mac resource forks to > no avail. > > Has anyone tried somethin

[PHP] Re: PHP and Jigsaw

2002-07-16 Thread Murray Nicholas
Some careful testing and results... All tests invoke the URL "http://myserver:jigsawport/phpinfo.php"; Test 1: * phpinfo.php contains exactly one line * Jigsaw's debug flag in the default extension indexer cgiframe definition for ".php" files is "true". The browser shows a white page with the

[PHP] Strong Web Hosts in Canada?

2002-07-16 Thread Analysis & Solutions
Hi Folks: A client of mine has a large series of high traffic, PHP/MySQL intensive websites. They're looking for dedicated hosting in Canada. Any recommendations? Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solut

RE: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread César Aracena
I came across the same problem a few week ago, and thought (didn't do it though) that the best way to handle this kind of security, would be to make an ID/cookie for the user/session which deletes itself after the browser is closed, but not storing the password. Then, if that same user wants to o

RE: [PHP] Bug in PHP?

2002-07-16 Thread Martin Towell
check that the gaps between the domains are really spaces eg: echo ord($HTTP_POST_VARS["domains"]{11}); I did this through a test script: and got this as the output Array ( [0] => www.php.net [1] => www.jokaroo.com [2] => www.gnu.org ) But the email program (yours or mine) might

[PHP] Bug in PHP?

2002-07-16 Thread Aleks D.
Hello, I'm trying to explode an associative array element in $HTTP_POST_VARS retrieved from submitting am html form. The URL to the form is: http://www.funfry.com/form.html Now when I try to explode $HTTP_POST_VARS["domains"] it doesn't seem to have the desired effect. I use the syntax "$site =

Re: [PHP] Break message in code.

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 11:11:57PM -0500, W. Andy Roche wrote: > > If (empty ($sndrname)) { > $error_report_msg = "Please provide a contact name."; > error_msg_form($error_report_msg); > break 1; > } Where's the wh

Re: [PHP] Break message in code.

2002-07-16 Thread Jason Reid
Have you tried using just break? without the 1? Jason Reid [EMAIL PROTECTED] - Original Message - From: "W. Andy Roche" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 10:11 PM Subject: [PHP] Break message in code. > Please forgive me, I am still rather new to

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Michael Kennedy
Exactly- I could see uses in PHP, but they're so limited that it's obvious to see why it works the way it does. Michael Kennedy -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:46 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE:

Re: [PHP] transparent clusters + sessions

2002-07-16 Thread Chris Knipe
> >If I have say 20 web servers in a cluster behind something like a Cisco > >LocalDirector, will session data remain constant over the 20 web servers if > >they use a shared NFS or similar mount to save session data on? > Have a look at msession at http://www.mohawksoft.com/phoenix/ > It works ve

[PHP] Break message in code.

2002-07-16 Thread W. Andy Roche
Please forgive me, I am still rather new to coding in PHP. I have looked up this problem on the PHP.net site, and check my syntax, but I am just not getting it. Here is my problem: I am working on an email page that will vaildate that there is content in the variables, and respond if there is n

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Martin Towell
The only reason a compiled language would not include a function/module/etc is to reduce the size of the final executable. Since php doesn't store (barring the caching engines, but they work differently anyway) a compiled version, it doesn't need to worry about not including something. Martin -

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Michael Kennedy
Yeah, that's what I figured. With C++ you could find evidence that it only grabbed the used portions, but in PHP I didn't see anything to support that. Of course, like I said, the answer likely wouldn't have made a difference in anything I did, but it's nice to delve a little deeper sometimes.

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Towell
[snip] > A CLASS after all is just a collection of functions with a > data model. But ... there is modular and then there is OO imho. [snip] A class is more than just a bunch of functions that have been placed together. If you want to do that, then you might as well just throw them all into the s

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Peter J. Schoenster
On 17 Jul 2002 at 12:43, Michael Hall wrote: > There is no simple answer here. I have started using classes where I > find I am writing a lot of related functions that share similar > parameters. Database connection and queries are a good example. > Authentication is another. Yeah. > I have an

Re: [PHP] transparent clusters + sessions

2002-07-16 Thread Tom Rogers
Hi At 02:05 AM 17/07/2002 +0200, you wrote: >Lo all, > >If I have say 20 web servers in a cluster behind something like a Cisco >LocalDirector, will session data remain constant over the 20 web servers if >they use a shared NFS or similar mount to save session data on? Have a look at msession at h

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
on 17/07/02 1:05 PM, John Holmes ([EMAIL PROTECTED]) wrote: > Sure, why not? Users can't create session variables (unless you're on a > virtual server...) ... and I am -- A shared host server that is. Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread John Holmes
> > You shouldn't even have to do this. Just set a $_SESSION['logged_on'] > > variable to true and check for that. Why carry around the username and > > password?? > > Well, I guess it's because I started with someone else's script, and built > my own from there. Not being a security expert, I a

Re: [PHP] Using index.php instead of index.html

2002-07-16 Thread Jason Wong
On Wednesday 17 July 2002 10:57, Michael Hall wrote: > The only security consideration here is whether you want to advertise the > fact that you're using PHP or not. If not: > > DirectoryIndex index.html > > AddType application/x-httpd-php .html If you don't want people to know you're using PHP t

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
on 17/07/02 12:35 PM, John Holmes ([EMAIL PROTECTED]) wrote: > You shouldn't even have to do this. Just set a $_SESSION['logged_on'] > variable to true and check for that. Why carry around the username and > password?? Well, I guess it's because I started with someone else's script, and built my

Re: [PHP] problem with IMAP support

2002-07-16 Thread Jason Wong
On Wednesday 17 July 2002 10:14, Jeff Schwartz wrote: > We've installed and recompiled PHP but I still get "undefined function" > errors when I try to use imap_open(). > > Does anybody have any ideas? 1) Have you installed the imap libraries? 2) Did you configure php to compile with imap support

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Jason Wong
On Wednesday 17 July 2002 04:21, Andy wrote: > sounds logical, but what happens with my other php version, where I need > the flags? Nothing. It will stay as it is. > will it still be working? Yes. > And where is this standalone php version gonna be installed? ./configure --help to find

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Michael Hall
There is no simple answer here. I have started using classes where I find I am writing a lot of related functions that share similar parameters. Database connection and queries are a good example. Authentication is another. I have another class that builds forms, because I just hate the tedium o

RE: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread John Holmes
> So as a basic rule, having a uid and pwd stored as session variables is > NOT > the problem, but storing the uid and/or pwd in a cookie on the browser is > just plain asking for it :) You shouldn't even have to do this. Just set a $_SESSION['logged_on'] variable to true and check for that. Why

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
Thanks heaps John, So as a basic rule, having a uid and pwd stored as session variables is NOT the problem, but storing the uid and/or pwd in a cookie on the browser is just plain asking for it :) So, how do you implement a "remember me" safely? Setting JUST the uid in a cookie prevents people

Re: [PHP] Using index.php instead of index.html

2002-07-16 Thread Michael Hall
The only security consideration here is whether you want to advertise the fact that you're using PHP or not. If not: DirectoryIndex index.html AddType application/x-httpd-php .html This is OK if most/all your pages use PHP. Otherwise, normal html gets parsed as well with unnecessary performanc

Re: [PHP] calling a cgi script from php

2002-07-16 Thread Jason Wong
On Wednesday 17 July 2002 07:57, [EMAIL PROTECTED] wrote: > Hello , > > I am trying to call a cgi script from a PHP script and get it to return > some data. > I am using the script below but it does not seam to work. > The cgi script (or I should say function) I am trying to call is in a > perl pm

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Michael Hall
The most important difference is, I believe, whether you use apxs during compilation or not. Using ./configure --with-apxs will build a DSO module, leaving --with-apxs out will build a standalone module. There may be more to it than that, though. Michael On Tue, 16 Jul 2002, Andy wrote: > s

RE: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread John Holmes
> > Or steal it. :) > > > > I hope you have checked your site for any cross-site scripting > > vulnerabilities. This is exactly where vulnerabilities like this come > > into play... > > Interesting -- I'm only a few days away from launching this... could you > elaborate on the potential risk, or

[PHP] problem with IMAP support

2002-07-16 Thread Jeff Schwartz
We've installed and recompiled PHP but I still get "undefined function" errors when I try to use imap_open(). Does anybody have any ideas? Thanks, Jeff __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com -- PHP

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
on 17/07/02 11:11 AM, John Holmes ([EMAIL PROTECTED]) wrote: > Or steal it. :) > > I hope you have checked your site for any cross-site scripting > vulnerabilities. This is exactly where vulnerabilities like this come > into play... Interesting -- I'm only a few days away from launching this...

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
on 17/07/02 11:11 AM, Analysis & Solutions ([EMAIL PROTECTED]) wrote: > On Wed, Jul 17, 2002 at 10:43:24AM +1000, Justin French wrote: >> I set a >> cookie on their system which remembers them, which is just their username >> and an md5() of their pasword (the same data I add to the session). >

Re: [PHP] Using index.php instead of index.html

2002-07-16 Thread Chris Knipe
> Why not just add it to the httpd.conf, this would allow it to work within the whole server > And not just one director / vhost ect Maybe he doesn't have access to alter server configurations? -eg- -- me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Analysis & Solutions
On Wed, Jul 17, 2002 at 10:43:24AM +1000, Justin French wrote: > I set a > cookie on their system which remembers them, which is just their username > and an md5() of their pasword (the same data I add to the session). OUCH! Sending the password back out to the net is a scarry prospect. --Dan

RE: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread John Holmes
> So, if there is no uid and pwd in $_SESSION, I check in $_COOKIE. If > there's nothing there, they aren't logged in as far as I can tell. On > every > page I validate the uid and pwd against the database, so the only way you > could fake being another user is to know the uid AND md5()'d pwd.

Re: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 06:25:42PM -0500, Michael Kennedy wrote: > OK, if I understand C++ correctly, if I write a program and #include > or something similar and compile the program it only > compiles with the used functions in it, right? So, if I never use 'cin' > it leaves that function out o

RE: [PHP] calling a cgi script from php

2002-07-16 Thread John Holmes
How about using the virtual() function? www.php.net/virtual ---John Holmes... > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 7:57 PM > To: php-general > Subject: [PHP] calling a cgi script from php > > Hello , > > I am trying t

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread John Holmes
PHP loads everything up before it starts doing anything. It's only going to execute the code it needs to, though, of course. I asked this question a while ago and got that answer. The process of loading all of the code is minimal, though, compared the actually executing the code. ---John Holmes.

RE: [PHP] Printer margins

2002-07-16 Thread Martin Towell
You can't change this type of setting on a client's browser The only way you'd be able to do this is to tell the user that the page prints best when margins are set to 0.25" -Original Message- From: Manuel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:52 AM To: PHP General

RE: [PHP] Using index.php instead of index.html

2002-07-16 Thread Chris Kay
Why not just add it to the httpd.conf, this would allow it to work within the whole server And not just one director / vhost ect --- Chris Kay Technical Support - Techex Communications Website: www.techex.com.au

[PHP] Printer margins

2002-07-16 Thread Manuel
I'm creating an HTML file that will be printed by my website users. I've notices that most browser have the default print margins set to 0.75". Is there any way to change the print margins to 0.25"? - Do You Yahoo!? Yahoo! Autos - Get free new car price quotes

Re: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 01:57:51PM -0400, Monty wrote: > Is there a standard method in PHP for preventing multiple people from using > the same log-in username/password simultaneously on a membership site? Any > suggestions are greatly appreciated. My session management system uses a database bac

Re: [PHP] Using index.php instead of index.html

2002-07-16 Thread Mark Gallagher
Sailom wrote: > I am a novice on PHP and web programming. Can any one suggest me if I can > use index.php in place of index.html? I really need to concern about Sure you can! If you're using an Apache webserver, create a file named .htaccess containing the following: DirectoryIndex index.

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Justin French
On my sites, I have a check box next to the login form which says "remember me". If they tick this box, and they userid/password is valid, I set a cookie on their system which remembers them, which is just their username and an md5() of their pasword (the same data I add to the session). When ma

Re: [PHP] mcrypt

2002-07-16 Thread Danny Shepherd
ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/ - Original Message - From: "Peter" <[EMAIL PROTECTED]> To: "php_gen" <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 1:16 AM Subject: [PHP] mcrypt > Howdy all.. > does any one know of another place i can download a win32 ver of mcrypt other t

Re: [PHP] Re: Editing files by line

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 06:38:04PM -0400, Onaje Johnston wrote: > > It works using "if ($insert && isset($linenumber)) {". > > So because the value of linenumber is 0 on the first line, the if statement > was evaluating to false and therefore the update wouldn't occur, correct? Exactly. If sta

[PHP] mcrypt

2002-07-16 Thread Peter
Howdy all.. does any one know of another place i can download a win32 ver of mcrypt other than http://mcrypt.hellug.gr/ ? as that site crashes my browser when i click any link on the page... Cheers Peter "the only dumb question is the one that wasn't asked"

Re: [PHP] I can't echo object variables

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 01:45:01PM -0400, Michael Zornek wrote: > > I know this slight variation will make it work: > > echo "" . $db->field('name_long'); That's not an "object variable name." That's a function call. You're asking to echo "" and then echoing the value returned by the field()

Re: [PHP] Fopen errors out when opening a URL

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 11:08:19AM -0400, Conover, Ryan wrote: > > I am trying to do a simple fopen("http://www.weather.com/index.html";, "r"); > For some reason I cannot Open any URL's after trying several. > > Warning: stat failed for Resource id #1 (errno=2 - No such file or > directory) If

[PHP] Re: contents from a database

2002-07-16 Thread Ralph
You need to use the concatenating assignment operator .= after $sub. The way you had it the variable $sub was getting assigned a new value each time through the while loop. The .= oprerator will add to the existing value of $sub each time through the loop. Try this: $query = "SELECT * FROM

RE: [PHP] Classes vs. Functions

2002-07-16 Thread Martin Towell
> > Martin Clifford wrote: > > Could someone please explain the difference between classes and functions > > and how to use a class. > > Whether you should like OOP or not is a religious matter, so I will not > enter the field. OOP has its pluses and its minuses. It's a technique, > not an ult

Re: [PHP] GIF Manipulation

2002-07-16 Thread Danny Shepherd
GD2 does have a compile time option which will re-enable support for writing GIFs. AFAIK you're only legally allowed to enable it if you live outside of the US/Canada. HTH Danny. - Original Message - From: "Jason Reid" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Nick Oostveen" <[EMAIL

[PHP] calling a cgi script from php

2002-07-16 Thread rdkurth
Hello , I am trying to call a cgi script from a PHP script and get it to return some data. I am using the script below but it does not seam to work. The cgi script (or I should say function) I am trying to call is in a perl pm file. I have include a copy of the function I am trying to call. Does

RE: [PHP] Newbie Question on Efficiency : Follow-up Question

2002-07-16 Thread Michael Kennedy
OK, if I understand C++ correctly, if I write a program and #include or something similar and compile the program it only compiles with the used functions in it, right? So, if I never use 'cin' it leaves that function out of the final complied app. Does/can PHP do anything similar? I'm alway

Re: [PHP] GIF Manipulation

2002-07-16 Thread Jason Reid
AFAIK there is a patch to re-add gif support to gd 1.8.4 (not sure about 2.x). I saw the url for it the other day on a newsgroup, I'll see if i can dig it up and post it. Jason Reid [EMAIL PROTECTED] - Original Message - From: "Nick Oostveen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Chris Shiflett
Chad Day wrote: >What I'm looking to do is when a user logs in, I start up the session.. I >then have the registered session var to verify they are authenticated as >they move throughout the site. > >Now, when they close the browser and come back, I want them to still be >authenticated. Obviousl

Re: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Monty
If you have have a large number of functions, it might be better to separate them into a few files that you can include as needed. I use one file that contains functions needed by every page. I have a few other files that contain functions that aren't needed by every page, so, I include them only

RE: [PHP] Re: Editing files by line

2002-07-16 Thread Onaje Johnston
-Original Message- From: Analysis & Solutions Sent: Tuesday, July 16, 2002 4:40 PM To: PHP List Subject: Re: [PHP] Re: Editing files by line On Tue, Jul 16, 2002 at 04:25:25PM -0400, Onaje Johnston wrote: >> >> if ($insert && $linenumber) { >But, if $linenumber is 0, this process won't h

[PHP] contents from a database

2002-07-16 Thread Dan
I have a script that can desplay all the contents from a database but I need the result to equil a variable, but when I do this it only desplays one line from the database. I used to know this but I lost the info that I was given. this is the script I am using.. $query = "SELECT * FROM content W

[PHP] pros and cons of ezpublish

2002-07-16 Thread Peter J. Schoenster
Hi, Someone wants to know what I can do with ezpublish and so I've downloaded it. Wow ... just looking at it now. What a package. ezpublish. I'd like to test this on a virtural server (can't afford my own box on the net) and I have a host where I can modify my apache conf files ... but I won

[PHP] GIF Manipulation

2002-07-16 Thread Nick Oostveen
I'm currently developing a site which needs the ability to do server-side image cropping and resizing. I currently have a current version of GD installed with PHP, however the lack of support for GIFs is causing endless headaches. Is there any way to support GIFs in PHP without reverting to a

Re: [PHP] Classes vs. Functions

2002-07-16 Thread Alberto Serra
ðÒÉ×ÅÔ! Martin Clifford wrote: > Could someone please explain the difference between classes and functions > and how to use a class. Well, that's a 1 billion $$ question. I don't think one can fully grasp that difference by reading an email. I strongly suggest you to buy yourself a book about

Re: [PHP] I can't echo object variables

2002-07-16 Thread Alberto Serra
ðÒÉ×ÅÔ! Michael Zornek wrote: > We all know this works: > > echo "$someVar"; > > However this does not: > > echo "$db->field('name_long')"; > > I know this slight variation will make it work: > > echo "" . $db->field('name_long'); > > But it's cumbersome .. Anyway to get the first way to wo

[PHP] Good instruction for installing webserver using RPM and tar.gz files???

2002-07-16 Thread Scott Fletcher
I'm pretty used to installing OpenSSL, Mod_SSL, Mcrypt, cURL, PHP and Apache with all of them in tar.gz files. Now I'm experiementing it on the Linux and mySQL. Never tried it on both Linux and mySQL before. The tricky part I found is that some come in RPM. I am familar with installing using R

RE: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Michael Kennedy
Yeah, that's what I was thinking. Mostly I was curious if the procedure I mentioned was a good one or if there was something better to be doing. Thanks for the super quick reply. :) Michael -Original Message- From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 200

Re: [PHP] Newbie Question on Efficiency

2002-07-16 Thread Martin Clifford
Unless the file is getting retartedly big (10-20K), then I wouldn't separate them. Though if you have enough functions, you could justify making separate files for your database functions, output functions, backend functions, etc. Martin Clifford Homepage: http://www.completesource.net Develop

[PHP] Newbie Question on Efficiency

2002-07-16 Thread Michael Kennedy
Hello everyone, I'm a newbie and have a question on style that I've not seen addressed anywhere. I have a large number of frequently used functions that I'm trying to find a good way to organize. The method I'm thinking of using is to simply create a .php file called, for example, functions.php.

Re: [PHP] Re: Editing files by line

2002-07-16 Thread Analysis & Solutions
On Tue, Jul 16, 2002 at 04:25:25PM -0400, Onaje Johnston wrote: > > if ($insert && $linenumber) { But, if $linenumber is 0, this process won't happen. And, that was the complaint you mentioned up front. So, you should do an "isset($linenumber)" instead. --Dan -- PHP classes t

RE: [PHP] file() and array values contain extra \n

2002-07-16 Thread Dave [Hawk-Systems]
>Start from scratch. You have a file with a single user on each line: > >tom\n >dick\n >harry\n > >You use file() to read into array $users. > >You compare as in above. > >You add a user by: > > $users[] = "NEW_USER\n"; > >You write out the file as above. curious... when I ran through that (bef

Re: [PHP] Sessions and Header() - Retraction

2002-07-16 Thread Greg Macek
Well, perhaps stepping away from the problem for a few minutes actually helps clear the mind. Found that one of my mysql_query() statements wasn't completing and everything after that didn't finish. Once I fixed that, all the session variables work. Go fig. Let that be a lesson to me :-) Gre

[PHP] Sessions and Header()

2002-07-16 Thread Greg Macek
Forgive the long post here, but I'll give as much info up-front and see if anyone can help me out here... I've searched the PHP docs for some help, but I am still running into a strange problem. Let me explain: I'm working on an internal site that stores information into a database, but it can

RE: [PHP] Re: Editing files by line

2002-07-16 Thread Onaje Johnston
-Original Message- >From: Analysis & Solutions >Without seeing the script, it'd be hard for us to say. So, post the >_relevant parts_ of the script to the list. Here's the code: I'm sorry, but I couldn't open a file!"; exit; } $array = file($file_name); // this is the stuff w

Re: [PHP] activating php scripts via cron

2002-07-16 Thread Andy
sounds logical, but what happens with my other php version, where I need the flags? will it still be working? And where is this standalone php version gonna be installed? Andy "Jason Wong" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Tuesday 16 Ju

Re: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread 1LT John W. Holmes
There really isn't a good way to do this, I think. Any time you're taking just a cookie, and using that data to assume who the user is, it's open to hijacking. I can sniff the cookie or maybe find a cross-site scripting bug to steal it, create the same cookie on my machine, and poof, i'm that use

RE: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Johnson, Kirk
> What I'm looking to do is when a user logs in, I start up the > session.. I > then have the registered session var to verify they are > authenticated as > they move throughout the site. > > Now, when they close the browser and come back, I want them > to still be authenticated. I don't thi

Re: [PHP] waiting for keyboard echo

2002-07-16 Thread Analysis & Solutions
On Tue, Apr 16, 2002 at 05:34:57PM +0200, David D wrote: > > I m trying to make a php command line script, and I m looking for a function > that can stop the script until a key is pressed. I don't believe PHP can do this. Perl has Term::ReadLine. Your computer's clock says it's April. Might I

RE: [PHP] Sessions / logins / cookies / security

2002-07-16 Thread Chad Day
Anyone? Can someone at least point me to some web article for recommendations? I saw some examples where a password variable was stored, but is that really safe (as long as I MD5 it first?) Chad -Original Message- From: Chad Day [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 1

[PHP] libmcal for win32

2002-07-16 Thread Anson Smith
Does anybody know where I can get the libmcal dll's precompiled for win32?

Re: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Dennis Moore
I forgot to mention that you can use Javascript to manage the open windows. We the user closes the main window, you can direct the empty window to log the user out and close its window as well. - Original Message - From: "Dennis Moore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Monty

[PHP] PHP Functions Essential Reference??

2002-07-16 Thread jaxon
does anyone have a copy of the electronic version (free, i believe?) of the book "PHP Functions Essential Reference" ? the website http://www.php-er.com has been down and i am trying to locate it... cheers, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Dennis Moore
If you do not want to use cookes and use SID or trans SID; Another method is to track your logins via a database. This can be resource intensive though.You need to update the database upon each click or have an empty window refresh every 1-5 minutes. If there is no activity for 15 or 30 min

Re: [PHP] Exit script early

2002-07-16 Thread 1LT John W. Holmes
Why do you need to exit? If your code is layed out correctly, you shouldn't have to. if($something) { //part 1 } else { //part 2 } If $something evaluates to true, only Part 1 is executed...part 2 is never seen. vice versa if $something is negative. ---John Holmes... - Original Message ---

Re: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread 1LT John W. Holmes
You'll have to assign each user a unique id each time they log on. If they attempt to log on again, check and see if they already have a unique id and if they do, don't let them log on again. the problems you'll run into with this is, though, is that if someone doesn't log out, they'll still have

Re: [PHP] Is there a way?

2002-07-16 Thread Chris Crane
Ok so let me ask one last question.. Which it faster, to run my function and part of the function would be to get data from a website and break it into variables then make all the html and variables one new variable for printing or Get my data put into variables made global and then in my HT

Re: [PHP] I can't echo object variables

2002-07-16 Thread Michael Zornek
Twas 7/16/02 1:47 PM, when "Martin Clifford" <[EMAIL PROTECTED]> said: > Try enclosing it in curly braces. > > echo "${db->field('name_long')}"; Parse error :-( ~ Mike -- Mike Zornek | Project Leader Apple Student Developers The Insanely Great Site with the Insanely Long URL http://www.apples

Re: [PHP] Session and output buffering

2002-07-16 Thread Martin Clifford
You have to give the variable value before registering it, from my experience. $var = "123 Sesame Street"; session_register($var); Also, I don't believe you need to use session_unset(), since you are already destroying the session information. If you are getting errors, it would be helpful if

[PHP] Session and output buffering

2002-07-16 Thread Divyank Turakhia
I have set output_buffering = On in my php.ini file, since I need this for my application. When the user logins I want to destroy any current session and start a new session. I have included the below in my code for the same. But for some reason all my old data is available in the session.

Re: [PHP] Apache 2.0 + PHP

2002-07-16 Thread Austin Gonyou
On Mon, 2002-07-15 at 18:30, Gerard Samuel wrote: > I dont think Apache 2 or php 4.3.x are meant for production boxes.. > My opinion, the latest verion of apache 1.3.x and php 4.1.2 (my test > box > is 4.2.1 but thats ok) Apache2 is meant for production. Php 4.2.1 is meant for production.

Re: [PHP] Is there a way?

2002-07-16 Thread Martin Clifford
It's called "here doc" formatting, and follows the pattern below: $chunk = <<< EOF; // stuff here EOF; Hmm. For some reason that just doesn't look right. I'm sure someone will correct it if I'm wrong though :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http:

Re: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Kondwani Spike Mkandawire
create cookie and at the end of the Script/page destroy cookies Use if statements: setcookie('cookie', $value, $expire, $path $domain); if(isset($cookie)) echo "Access Denied, Multiple Login Attempted!";

RE: [PHP] Is there a way?

2002-07-16 Thread Jay Blanchard
[snip] In Perl you could print a block of information as it was written like this; print

RE: [PHP] Is there a way?

2002-07-16 Thread Darren Gamble
Good day, > In Perl you could print a block of information as it was > written like this; > print < > This a whole bunch of HTML code!!! > > HTML_END > > The best part about this, was that you did not have to escape > your " and you > could mix in your variables making it easy to design and

[PHP] Is there a way?

2002-07-16 Thread Chris Crane
In Perl you could print a block of information as it was written like this; print

RE: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Jay Blanchard
[snip] Is there a standard method in PHP for preventing multiple people from using the same log-in username/password simultaneously on a membership site? Any suggestions are greatly appreciated. [/snip] One way is to set a non-expiring cookie, which works if they don't delete cookies from time-to

[PHP] Preventing Multiple Log-Ins after Authentication

2002-07-16 Thread Monty
Is there a standard method in PHP for preventing multiple people from using the same log-in username/password simultaneously on a membership site? Any suggestions are greatly appreciated. Thanks! Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] I can't echo object variables

2002-07-16 Thread Martin Clifford
Try enclosing it in curly braces. echo "${db->field('name_long')}"; Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Michael Zornek <[EMAIL PROTECTED]> 07/16/02 01:45PM >>> We all know this works: echo "$someVar"; However

Re: [PHP] Timer

2002-07-16 Thread Thomas \"omega\" Henning
How i know when 2 mins ellapsed? "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 013f01c22cee$b3e17110$6501a8c0@kevin">news:013f01c22cee$b3e17110$6501a8c0@kevin... > Store a timestamp in a file. When the bot is activated retrieve the old > timestamp and calculate the difference between then an

[PHP] I can't echo object variables

2002-07-16 Thread Michael Zornek
We all know this works: echo "$someVar"; However this does not: echo "$db->field('name_long')"; I know this slight variation will make it work: echo "" . $db->field('name_long'); But it's cumbersome .. Anyway to get the first way to work? ~ Mike -- Mike Zornek | Project Leader Apple Studen

  1   2   3   >