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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
31 matches
Mail list logo