RE: [PHP-WIN] PHP Editor

2003-04-04 Thread Jill . Ramonsky
TextPad Available from http://www.textpad.com This is one of those excellect programmers editors which can do proper syntax recognition and coloring (of PHP, and many other languages besides), and the PHP syntax rules are themselves stored in an easy-to-edit text file, so if more functions get add

RE: [PHP-WIN] Help with gd

2003-04-02 Thread Jill . Ramonsky
I can't answer your question, and this may even be off-topic, but copyright law is never so simple as it may at first seem. I don't know the law in any country but my own (Britain), but here in Britain, adding a watermark does NOT make a picture copyright. In Britain, what makes a picture, or a no

RE: [PHP-WIN] how to use umask() ???

2003-04-02 Thread Jill . Ramonsky
The PHP manual (unfortunately) assumes some Unix knowledge here. The paramter to umask is a bitfield, passed as an integer. Within this bitfield: bit 0 set implies that anyone in the world can execute the file bit 1 set implies that anyone in the world can write to the file bit 2 set implies that

RE: [PHP-WIN] I really don't understand this?

2003-04-01 Thread Jill . Ramonsky
I _THINK_ this is to do with scope. If you say elseif ($duplicate = ...) { } and this is the first use of the variable $dublicate, then $duplicate goes out of scope at the end of the right brace. I could be wrong about that, but it's worth a try. See what happens if you

RE: [PHP-WIN] Read COM1

2003-03-26 Thread Jill . Ramonsky
I can't see why this shouldn't work: $fh = fopen("COM1","rb"); then just treat $fh as a normal filehandle and read as normal. Jill -Original Message- From: Waldemar Brand Neto [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 6:47 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN

RE: [PHP-WIN] multiple selections and checkboxes

2003-03-18 Thread Jill . Ramonsky
Sure thing. should change to wherever you want the checkbox to have a tick in it. Similarly should change to if you want it to be selected. Jill -Original Message- From: toby z [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2003 9:51 AM To: php hlp list Su

RE: [PHP-WIN] GIF handling problem...

2003-03-17 Thread Jill . Ramonsky
I confess I have an idiological difficulty with the idea of helping out someone who openly admits that they're going to use the information to put even more adverts on the internet - particularly as the only thing you appear to be "selling" is more adverts. (I do have SOME morals, you know). I mea

RE: [PHP-WIN] basic sessions...

2003-03-07 Thread Jill . Ramonsky
I don't know the answer to this, but one thought that springs to mind is maybe it's considered "rude" to send cookies to people if you don't actually need them. I'm only guessing. Don't take this as definitive. Cheers, Jill -Original Message- From: Radovan Radic [mailto:[EMAIL PROTECTE

RE: [PHP-WIN] WIN 2000 ACCESS VIOLATION PROBLEMS

2003-03-07 Thread Jill . Ramonsky
OK, no need to shout. It's okay to speak in lower case, you know. We _can_ hear you. Jill -Original Message- From: Daniel Masson [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] WIN 2000 ACCESS VIOLATION PROBLEMS RECENTLY I INS

RE: [PHP-WIN] $_Post doesn´t work

2003-03-05 Thread Jill . Ramonsky
I believe it's called $_POST, not $_Post. I could be wrong, but I was given to understand that variable names (as opposed to function names) were case sensitive. Jill -Original Message- From: Oliver Steimer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 10:06 PM To: [EMAIL PROTE

RE: [PHP-WIN] Re: Include virtual?

2003-02-28 Thread Jill . Ramonsky
Not sure I understand this. We all know you can do include("path-relative-to-current-directory/filename"); We all also know you can do include("/path-relative-to-root-of-server/filename"); The original question was, basically, can you do include("path-relative-to-root-of-website/filename"). And i

RE: [PHP-WIN] using frames

2003-02-24 Thread Jill . Ramonsky
Nah. I've actually done this. *IT CAN BE DONE SERVER SIDE* using PHP. Here's what you do. The link(s) in question have to look like this: click here Here, "whole_page.php" is the "topmost" php script, the master one, the one that controls everything else. It's a php script which generates a

RE: [PHP-WIN] user selectionz ?????

2003-02-21 Thread Jill . Ramonsky
The good news is it's possible. The bad news is that it's not possible using PHP alone. You can't do client-side stuff with a server-side script. You need to write that bit in Javascript, I'm afraid, so the code can run on the user's browser. Jill -Original Message- From: toby z [mailt

RE: [PHP-WIN] Force a user to download a text file from a link

2003-02-21 Thread Jill . Ramonsky
Yeah, but the title of this thread says to download a TEXT FILE, not a Word document. No-one with any sense would ever download a Microsoft Word document off the internet by choice, unless they had a serious amount of trust in the web site owner, were browsing over a secure connection using SSL,

RE: [PHP-WIN] Force a user to download a text file from a link

2003-02-21 Thread Jill . Ramonsky
Far be it from me to question the wisdom of tweaking the headers, but why do you need them at all? Why can't you just do: click here which, so far as I can see, will load said text page into the user's browser window as soon as they click on the link. If the user then wants to save it, t

RE: [PHP-WIN] Visual C++ with PHP

2003-02-18 Thread Jill . Ramonsky
I don't think you actually NEED anything fancy. Just run it from the command line, surely? > php -q filename.php You can configure many good text editors to run commands like that. (TextPad can do it for at start), so you can click on a menu item to run the command instead of needing a DOS box, b

RE: [PHP-WIN] reading lines from a file

2003-02-11 Thread Jill . Ramonsky
Hey, it's not our place to say what someone else can and cannot code. If someone asks me "What's the function that reads a line from a file?" I'm happy to answer it. What they want to use that function for is not my problem - nor yours. In this forum we can hopefully get answers to questions alon

RE: [PHP-WIN] reading lines from a file

2003-02-11 Thread Jill . Ramonsky
Yes fgets() It's in the section Filesystem functions. (What a surprise) You might like the function file() also. Jill -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 12:25 PM To: Chris Kranz; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] re

RE: [PHP-WIN] code change in new version?

2003-02-05 Thread Jill . Ramonsky
Typos aside, that should have read: actually it's just $_POST["tireqty"] + $_POST["oilqty"] + $_POST["sparkqty"]; (new way) Of course, you can improve readability by doing $tireqty = $_POST["tireqty"]; $oilqty = $_POST["oilqty"]; $sparkqty = $_POST["sparkqty"]; and then you can subsequently us

RE: [PHP-WIN] code change in new version?

2003-02-05 Thread Jill . Ramonsky
actually it's just $POST["tireqty"] + $_POST["oilqty"] + POST["sparkqty"]; (new way) Of course, you can improve readability by doing $tireqty = $POST["tireqty"]; $oilqty = $_POST["oilqty"]; $sparkqty = POST["sparkqty"]; and then you can subsequently use the expression... $tireqty + $oilqty + $s

RE: [PHP-WIN] Something like trim()

2003-02-01 Thread Jill . Ramonsky
Or just $cleanstring = ereg_replace("[ \t\n]+"," ",trim($dirtystring)); Jill -Original Message- From: Cam Dunstan [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 2:24 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Something like trim() Cybot, try this function

RE: [PHP-WIN] Re: Counter problems!

2003-01-30 Thread Jill . Ramonsky
Yes, Jochem's right. One thing though, Radovan. If your script WRITES TO the file "counter.txt" then I assume that script's directory must give write permission to the whole world. That is a very dangerous thing to do. There would be nothing to stop a hacker from saving arbitrary binary (or PHP) c

RE: [PHP-WIN] Re: Counter problems!

2003-01-30 Thread Jill . Ramonsky
For reasons of scope, you may need to first use $count outside the braces. This would give you... "; ?> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Re: Counter problems!

2003-01-30 Thread Jill . Ramonsky
Try this... "; ?> -Original Message- From: Radovan Radic [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 1:06 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Counter problems! Yes, but what if you refresh the page? Or type in the address bar index.php and press enter, i thin

RE: [PHP-WIN] Wierd Windows Problems

2003-01-30 Thread Jill . Ramonsky
Actually I think it's that opening and closing tags must have the SAME case. I don't think they have to be all lower case though. Thus must be matched with , with , and with . I still don't know if any of this will help the original questioner, but at least we're encouraging good practice. Jil

RE: [PHP-WIN] Wierd Windows Problems

2003-01-30 Thread Jill . Ramonsky
I don't know if this is relevant, but that's dodgy HTML. Tag attributes should always be quoted, thus: Add It may not make any difference, but I thought I'd mention it just in case it does. Jill -Original Message- From: Chris Deam [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2

RE: [PHP-WIN] maximun execution time

2003-01-28 Thread Jill . Ramonsky
The function you want is called set_time_limit() Jill -Original Message- From: Bobo Wieland [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 5:36 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] maximun execution time Is there some way to get around the time limit of maximum execu

RE: [PHP-WIN] Redirecting to index.php

2003-01-28 Thread Jill . Ramonsky
The simple answer is that is just happens, all by itself, as if by magic. All you have to do is create a file called "index.php", and delete any files called "index.htm" or "index.html". (You might also want to make sure you don't have any files called stuff like "home.html" or "default.html", as

RE: [PHP-WIN] Politely?

2003-01-27 Thread Jill . Ramonsky
ty all about pray tell and what has it got > to do with php? If someone is posting dirty ditties can they send again > because I missed them completely. Jill's reply... I think I'm missing the same thing actually. I'm Jill Ramonsky, and after I posted the following (whi

[PHP-WIN] Politely?

2003-01-24 Thread Jill . Ramonsky
Wow! I've only been on this mailing list for about half a hour, and I've only sent two emails (this is the third). What kind of a reputation do I have already? And how did I get it? Do you know something I don't? Why should anyone assume I would ever be anything other than polite? Should I just q

[PHP-WIN] Configuring a web server I haven't written yet...

2003-01-24 Thread Jill . Ramonsky
Hi guys, I'm writing a web server for Windows. I want to know how to make it support PHP. Here's the easy bit (which I know how to do)... 1) A client requests a web page called "anything.php" 2) The server notices the extension ".php", looks this up in the server's configuration settings, and say