php-windows Digest 27 Aug 2001 16:51:44 -0000 Issue 723 Topics (messages 9069 through 9076): Re: Login System 9069 by: Angie Tollerson Re: About "no-cache" 9070 by: science Resource number 9071 by: Sichta Daniel dose some one know of a scrip that will ....... 9072 by: danial <br> appear in Text file 9073 by: Jack Re: HTTP Server 9074 by: danial mpeg info 9075 by: Sichta Daniel Re: printer_start_doc 9076 by: Rob Cox Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
A really really good login system that you can customize for either database or flatfile is phpSecurePages. I have always loved it because it's easy to add to all your pages without anymore than one line of customization. Has anyone had any security problems with that that has used it? Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> <[EMAIL PROTECTED]> 08/26/01 20:29 PM >>> How would I go about making a Login system? and should I should Flat file or MySQL? Let me know Thanks -- PHP Windows 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 PROTECTED]
Hi, Well, I didn't write the counting number into the cookie. For example: I use "if(isset$test)" so when I reload the page the variable $test is still set so that it will count again. I wonder if there is any ways to prevent this situation? Thanks DP "Matthias Maar" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi. > > Do you really think preventing the browser from caching the page is what you > need here? I think no. > Whenever the page is shown/reloaded you need to check if the user already > has been "counted". This may be done by setting some information in a cookie > (you mentioned one). The code for your counter just has to get that > information and increase when not set. > Or did I get something wrong? > > MfG > Maar > > ---------------------------------------- > Matthias Maar > Lehrstuhl für Informatik I > Universität Würzburg > Am Hubland > D-97074 Würzburg > Germany > Tel.: ++49 (0) 931/888-4941 > Fax: ++49 (0) 931/888-4600 > http://www1.informatik.uni-wuerzburg.de > > "Science" <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi all, > > I am using cookie to write a counting page but when the page is > refreshed, > > it will increase by 1 automatically. > > According to this problem, I used following lines but it doesn't work > > -------------------------------------------------------------------------- > -- > > -- > > header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > > header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > > header ("Cache-Control: no-cache, must-revalidate"); > > header ("Pragma: no-cache"); > > -------------------------------------------------------------------------- > -- > > --- > > even I used html script > > <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> > > <META HTTP-EQUIV="Expires" CONTENT="-1"> > > > > Well, Is there anyone who knows how to prevent the page to be cached? > > > > Thanks a lot > > > > > >
Hi, Is there any way to pass resource number (returnimg by ibase_query) as parameter to another script file (php -> php)? Dan
dose some one know of a scrip that will stop someone from leeching my images.. like. if someone downloads 4 picturs in 35 sec. he will be and for 60 sec. im looking for something that will stop ppl for useing things like http://www.quadsucker.com/quadweb/ (( QuadSucker-Web )) - witch says to the server it is a Mozilla/4.0 browser -to download my hole website it kills my server when 2 or 3 ppl start to do it... I Could use <? $browser = array ("Wget", "EmailSiphon", "WebZIP","MSProxy/2.0","EmailWolf","webbandit","MS FrontPage"); $punish = 0; while (list ($key, $val) = each ($browser)) { if (strstr ($HTTP_USER_AGENT, $val)) { $punish = 1; } } if ($punish) { echo " <head> <title>Access Denied</title> </head> <p>We're sorry. The software you are using to access our website is not allowed. Some examples of this are e-mail harvesting programs and programs that will copy websites to your hard drive. If you feel you have gotten this message in error, please send an e-mail addressed to admin. Your I.P. address has been logged Thanks.</p> <BR> -Yourname <BR> </body> "; exit; } ?> But dont do any good if the USER_AGENT stats it is a Mozilla/4.0 any help would be cool thanks danial lee smith Danial, HTTP://WWW.CYBERHOTIES.COM
Dear all I'm writing a script which will greb the data from a user input form into a text file (txt file), but the problem is that when the data had passed to the txt file, there will be some thing like the <br> and black square appear inside the file. This is affecting to display the data from that txt file to the text box in (input box). Is there anyway that i can do to avoid grebing the <br> from txt file to my input box's value? or anyway that i can delete the <br> when the data is greb from input box to txt file?? Thanks a lot Jack [EMAIL PROTECTED]
yes i use OmniHTTPd Professional 2.0 and nothing eles on all 3 win98 boxes :) it is free and easy to set up it is the server servering www.cyberhoties.com look for it at www.serverwatch.com and there is some other ok one to if you want ssl use OmniHTTPd Professional 2.0 and falcon back to back that is what i do and i get 4000 request a hour and the keep kicken :) good luck danial lee smith "Ste" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi im really new to PHP but would like learn it so first i think its best to > set up PHP on my box (win98) then i can play around and test scripts to help > me learn more about PHP so anyway so far i have downloaded and installed PHP > on my computer but i cant find a *easy to set up* free HTTP server that > supports PHP so dose anyone know where i can find one? > thanx for reading! > >
Hi, How can I get info about *.mpeg, *.avi files in PHP ? I mean size WxH........ DAN
Both the web and print server are running Windows 2000 SP2. "Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > At 15:08 24.08.2001 -0400, Rob Cox wrote: > >Updated to 4.0.7rc1 and it still didn't work. > >Here's my snippet: > > > >$handle = printer_open("\\\kinkos\\kinkos"); > >printer_start_doc($handle, "Project Status"); > >printer_start_page($handle); > >printer_write($handle, "any text"); > >printer_end_page($handle); > >printer_end_doc($handle); > >printer_close($handle); > > i'm unable to reproduce this locally, i'll try to figure that out in a > network later. > which OS is the server/client running. > btw: don't use printer_write. it's for sending raw printer data, you'll > have to do something like > > $handle = printer_open(); > printer_set_option($handle, PRINTER_MODE, "TEXT"); > printer_write($handle, "Text to print"); > printer_close($handle); > > better see http://php.net/manual/en/function.printer-draw-text.php > > daniel > > p.s.: you can also contact me privately > > >"Rob Cox" <[EMAIL PROTECTED]> wrote in message > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I will give it a try. Thanks. > > > > > > "Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message > > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > > At 14:20 24.08.2001 -0400, Rob Cox wrote: > > > > >I've made sure that the printer is available to IUSR_ALPHA (my server). > > > The > > > > >printer is actually open to everyone but I made sure that IUSR_ALPHA > >was > > > > >specified too. Nothing. Still get the same error. > > > > > > > > please try http://www.php4win.com/~daniel/php-4.0.7rc1-win32.zip > > > > there have been some fixes to the extension since 4.0.6. > > > > if that still doesn't work please provide some reproducing code. > > > > sounds like printer_start_doc() is failing (permission problem, no > >device > > > > context created/failed,...). > > > > > > > > daniel > > > > > > > > > > > > > > > > >"Erik H. Mathy" <[EMAIL PROTECTED]> wrote in message > > > > >005101c12cc2$fb03c390$1300020a@erik_laptop">news:005101c12cc2$fb03c390$1300020a@erik_laptop... > > > > > > > Yes I believe that I a m running under the IUSR_ComputerName > > > account. > > > > >I'll > > > > > > > have to verify permissions. > > > > > > > > > > > > Do that. If it's a printer being shared over the network, it's > >subject > > > to > > > > > > either the domain permissions or the permissions specific to the box > > > doing > > > > > > the sharing (or both, actually). Wow. That was a long-ass runon > > > sentence! > > > > > > > > > > > > > I've just noticed that the handle that is being returned is > >showing > > > as > > > > > > > 'Resource id #1'. I have no idea about that but it makes sense > >that > > > if > > > > >I > > > > > > > don't have a proper handle, I won't be able to create a doc. > > > > > > > > > > > > That's because you're running PHP4. It ID's things like connections, > > > > > > etc...as Resource #(whathaveyou). It's an interesting way to keep > > > track of > > > > > > how many major resources you have in a script. ;) > > > > > > > > > > > > > I would like to thank you Erik. You pushed me in the right > > > > > > > direction to get to here. > > > > > > > > > > > > Bah, piffle, tain't no thing. It's nothing you wouldn't have come up > > > with, > > > > > > I'm sure. Besides...it's good karma. You get some, you pass it on! > > > > > > > > > > > > - Erik > > > > > > > > > > > > > > > > > > > > > > > > > >-- > > > > >PHP Windows 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 PROTECTED] > > > > > > > > > > > > /*-- > > > > daniel beulshausen - [EMAIL PROTECTED] > > > > using php on windows? http://www.php4win.de > > > > > > > > > > > > > > > > > >-- > >PHP Windows 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 PROTECTED] > > > /*-- > daniel beulshausen > [EMAIL PROTECTED] - [EMAIL PROTECTED] > using php on windows? http://www.php4win.com >