RE: [PHP] Form help

2001-03-22 Thread Jon Haworth
You could have a check for the HTTP_REFERER variable, if it doesn't contain "application.php", chances are they didn't come from that page. it's not a good idea to rely on $HTTP_REFERER for anything, and especially for this. a referer is only reported when the user follows a hyperlink, so

RE: [PHP] Response.Write [OK]

2001-03-21 Thread Jon Haworth
You could investigate www.php.net/echo, I think it's what you're after. Cheers Jon -Original Message- From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 12:05 To: [EMAIL PROTECTED] Subject: [PHP] Response.Write [OK] Hi, I have built a shopping cart and have made

RE: [PHP] get filename?

2001-03-20 Thread Jon Haworth
$FileName = $PHP_SELF; HTH Jon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 20 March 2001 13:20 To: [EMAIL PROTECTED] Subject: [PHP] get filename? Hi Whats the best method to get the filename of the file I am using. E.G if the file is called

RE: [PHP] install

2001-03-14 Thread Jon Haworth
It's truly amazing what you can find three clicks away from the main page of www.php.net. http://www.php.net/manual/en/installation.php HTH Jon -Original Message- From: hananet [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 12:53 To: [EMAIL PROTECTED] Subject: [PHP] install how to

RE: [PHP] Print form variables in PHP

2001-03-12 Thread Jon Haworth
If the ACTION attribute of the form points to your PHP script, the variables should automagically appear, i.e. $result would be "1", $age would be "23", and $name would be "john". Failing that you could investigate the explode() function. However, if the form isn't controlled by you, how come is

RE: [PHP] Dynamic Links..

2001-03-08 Thread Jon Haworth
As a quick caveat you need to be *very* careful you're not obfuscating the target site copyright infringement, anyone? -Original Message- From: Richard S. Crawford [mailto:[EMAIL PROTECTED]] Sent: 08 March 2001 00:02 To: Ashwin Kutty; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject:

RE: [PHP] dates from db

2001-03-07 Thread Jon Haworth
If it's stored as a unix timestamp you can format it any way you like. [www.php.net/date] If it's stored as a string in the -MM-DD hh:mm:ss format, you can use substr(0,10) [www.php.net/substr] to get the first 10 characters and only display those. HTH Jon -Original Message- From:

RE: [PHP] no-resubmit on reload/refresh

2001-03-06 Thread Jon Haworth
Javascript? (I know it's generally horrible, but it's good for this sort of thing) Stick this in your head.../head: script language="JavaScript" type="text/javascript"!--Begin var submitcount=0; function jsCheck() { if (submitcount == 0) { submitcount++;

RE: [PHP] Screen Size?

2001-02-27 Thread Jon Haworth
Just remember that not everyone surfs with their browser window maximised. IIRC there's a window.innerheight and .innerwidth in NN's model, but not in IE's sigh Cheers Jon -Original Message- From: Todd Kerpelman [mailto:[EMAIL PROTECTED]] Sent: 26 February 2001 19:03 To: PHP

RE: [PHP] newbie question

2001-02-23 Thread Jon Haworth
Get an SQL database engine and off you go. MySQL is a good place to start, and it comes in a Mac OS/X flavour that you can download at http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.33-apple-rhapsody5.5-po werpc.tar.gz. Check out www.mysql.com for more info. HTH Jon -Original

RE: [PHP] Making .phtml an extension

2001-02-21 Thread Jon Haworth
You would add "phtml" to the line in your server config file that determines which extensions are handled by PHP To give more info we'd really need details of which server software you're running, and whether it's hosted by an external company or if it's in your bedroom. Cheers Jon

RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Jon Haworth
Shouldn't that be $result = mysql_query($sql,$db) or die("Couldn't execute query."); So you're querying the database, and not the connection? HTH Jon -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: 16 February 2001 17:27 To: PHP Subject: [PHP] MySQL

RE: [PHP] stupid problem!

2001-02-15 Thread Jon Haworth
This is because your server is set up to parse .php files as php, and .html files as html. If you have access to your httpd.conf or whatever, you can set it to include .html files in the php parsing. If not, you'll have to stick with calling your php files .php. HTH Jon -Original

RE: [PHP] parse error driving me nuts ...

2001-02-15 Thread Jon Haworth
Instead of if ((mysql_num_rows($result)) = 1) try if ((mysql_num_rows($result)) == 1) HTH Jon -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: 15 February 2001 15:34 To: [EMAIL PROTECTED] Subject: [PHP] parse error driving me nuts ... hi, can anyone help me spot

[PHP] Problems with date() - what have I missed?

2001-02-13 Thread Jon Haworth
Hi list. I have a strange problem with a PHP script (WinNT/Apache/PHP4/MySQL). The line of code $dayname = date("D", mktime(0,0,0,$cmonth,$eventdate,$cyear)); should, if I understand it correctly, fill the variable $dayname with the three-letter abbreviation of the day of the week for

RE: [PHP] Problems with date() - what have I missed?

2001-02-13 Thread Jon Haworth
the screen Cheers Jon -Original Message----- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: 13 February 2001 14:38 To: '[EMAIL PROTECTED]' Subject: [PHP] Problems with date() - what have I missed? Hi list. I have a strange problem with a PHP script (WinNT/Apache/PHP4/MySQL). The li

RE: [PHP] Netscape not resolving $PHPSELF ??

2001-02-13 Thread Jon Haworth
Is the script in the root? I seem to remember reading about problems with this and Netscape (although that sounds so strange I'm doubting myself here :-) Try shoving it in a subdirectory and see what happens. It's got to be worth 30 seconds to find out - I'd do it right now only I don't have

RE: [PHP] good free/cheap IDE for PHP

2001-02-09 Thread Jon Haworth
I'm sticking my vote in for Edit Plus 2 (www.editplus.com), although there are approx. 1,000,000 editors that would be suitable for your needs. I suggest a visit to www.download.com and a search for "text editors". Cheers Jon -Original Message- From: Dennis von Ferenczy [mailto:[EMAIL

RE: [PHP] sending mail with PHP from web

2001-02-07 Thread Jon Haworth
Can we see some code? I run a very similar thing (sending mails to around 500 people whose details are stored in a MySQL database and accessed via PHP) - the only difference is my OS is NT4 not FreeBSD. -Original Message- From: Yamin Prabudy [mailto:[EMAIL PROTECTED]] Sent: 07 February

RE: [PHP] Questions about simple php problems

2001-02-07 Thread Jon Haworth
One exception, on the main page, I have "index.html" which is simply a copy of "Index.php" renamed. This is so that requests to www.server.org/ will come up correctly. Probably there's a place to fix that in apache, but I haven't gone after it yet. There is a way to fix this on

RE: [PHP] Dear Friends Future Millionaire:

2001-02-07 Thread Jon Haworth
If I'd sent $5 off for every spam I've received someone else would be a millionaire by now. -Original Message- From: Duncan Hill [mailto:[EMAIL PROTECTED]] Sent: 06 February 2001 21:00 To: [EMAIL PROTECTED] Subject: Re: [PHP] Dear Friends Future Millionaire: On 2001-02-06, Hi Tech

RE: [PHP] newbie mail() function

2001-02-07 Thread Jon Haworth
You're missing a semicolon on line 8. HTH Jon -Original Message- From: Angerer, Chad [mailto:[EMAIL PROTECTED]] Sent: 07 February 2001 16:37 To: [EMAIL PROTECTED] Subject: [PHP] newbie mail() function Hello! I am very new to php programming. I have been experimenting around with

RE: [PHP] For My Information

2001-02-02 Thread Jon Haworth
Over 60% of websites use Apache. Many people using MySQL and PHP also run Apache for the complete open source solution. This is cheap to set up, and easy to get support for (there's even a mailing list called AMP - Apache/MySQL/PHP). And, IIRC, those on NT 4.0 Workstation don't *have* IIS. It's

RE: [PHP] upload_max_filesize

2001-02-01 Thread Jon Haworth
It's usually in your system root, but you could have put it somewhere else when you installed PHP. If you're on Windows it's liable to be in \windows\system, \windows\system32, \winnt\system, or \winnt\system32. Most OSes come with a Find Files command these days (just a thought). Once you have

RE: [PHP] Pricing for PHP programming???

2001-02-01 Thread Jon Haworth
Of course, this might also be something to do with the fact that if one place is charging 80p/litre and one is charging 90p/litre, where are you going to spend your cash, given there's no difference between the petrol? -Original Message- From: thor [mailto:[EMAIL PROTECTED]]

[PHP] RE: test

2001-02-01 Thread Jon Haworth
No, I didn't get it -Original Message- From: ybcat [mailto:[EMAIL PROTECTED]] Sent: 01 February 2001 15:47 To: [EMAIL PROTECTED] Subject: test OK? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] mail( ) question

2001-01-30 Thread Jon Haworth
If you've copied-and-pasted that script, you might want to correct this line: scrip language="JavaScrip" Both the words "script" and "Javascript" have a T on the end of them :-) On the other hand, why don't you just use PHP for the whole thing? Get the e-mail address from a form, make the

RE: [PHP] Beginner in php!

2001-01-24 Thread Jon Haworth
Hi, welcome to the wonderful world of PHP... grin You can use any text editor you like to write your PHP, my personal favourite is EditPlus 2 (www.editplus.com), but this is holy war territory so try a few out and see which one you get on with best. There are loads of great tutorials all over

RE: [PHP] Checking if files are there?

2001-01-24 Thread Jon Haworth
Yep. $file = @fopen (. The @ sign suppresses the warning messages. Should work fine after this. HTH Jon -Original Message- From: Sam [mailto:[EMAIL PROTECTED]] Sent: 24 January 2001 12:19 To: 'php' Subject: [PHP] Checking if files are there? Hi all, I was wondering if

[PHP] Integration of PHP with MS Outlook?

2001-01-24 Thread Jon Haworth
Hi list, Is it possible to get PHP to create entities in Outlook, specifically tasks and calendar entries? TIA Jon Please visit us on the Internet: http://www.witanjardine.co.uk 'The information included in this e-mail is of a confidential nature and is intended only for the addressee. If

RE: [PHP] multple select forms... going to hit my head against a wall ..

2001-01-23 Thread Jon Haworth
Sorry, my bad. I should have spotted the cunning way he used the word "array", really :-) Eyes closing. More coffee. glug aahaahhhrrrghhh Cheers Jon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 23 January 2001 12:45 To: J

RE: [PHP] Calendar program

2001-01-18 Thread Jon Haworth
This should achieve a similar effect as that URI: ?php echo "404 Document Not Found"; ? ;-) Cheers Jon -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: 18 January 2001 13:56 To: [EMAIL PROTECTED] Subject: [PHP] Calendar program Does a calendar program

RE: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Jon Haworth
But, you know, the look and feel of a site is pretty important and an HTML editor goes a long way toward managing that part. If you can find an editor that helps you set up some style sheets that carry across all your pages without you having to type in all the code for every page, you're

[PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
Hello list, Just a quickie. Does anyone have a code snippet for calculating the day of the week given a date? I was hoping I could feed a string like "20010116" to a function and have it return "Tuesday" - it doesn't have to be exactly this date format that is used for the input, but I do need

RE: [PHP] WML/WAP and PHP

2001-01-16 Thread Jon Haworth
I seem to remember reading something very recently, possibly on this list, about WML. IIRC, if you drop out of PHP at any point the rest of the document gets treated as text/html. Try something like ?php header("Content-type: text/vnd.wap.wml"); echo("wmlcardpHello world!/p/card/wml"); ? and

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
break; case 5: $day = "Friday"; break; case 6: $day = "Saturday"; break; } Ugh. I'll try your method. Cheers Jon -Original Message----- From: Andrew Rush [mailto:[EMAIL PROTEC

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
] Sent: 16 January 2001 16:03 To: Jon Haworth Subject: Re: [PHP] Working out the name of the day given a date On Tuesday, January 16, 2001, at 10:56 AM, Jon Haworth wrote: Just a quickie. Does anyone have a code snippet for calculating the day of the week given a date? I was hoping I could feed a s

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
Gah. I read that lower case l as a number 1. Time to get new glasses/switch to 640x480 mode. Thanks to everyone for your help. Cheers Jon -Original Message- From: Andrew Rush [mailto:[EMAIL PROTECTED]] Sent: 16 January 2001 16:03 To: Jon Haworth Subject: Re: [PHP] Working out

RE: [PHP] Problem with Exec()

2001-01-15 Thread Jon Haworth
| | It should also be noted that the system interaction functions (namely, | passthru(), exec(), system() and popen()) are | broken/incorrectly implemented, | actually, its windows that's incorrectly implemented, but be | that as it may, the | functions do not work with windows). Well, I

[PHP] Problem with Exec()

2001-01-12 Thread Jon Haworth
Hello list, I'm having a problem with Exec and Sendmail, on PHP-4 running under Apache 1.3.14 on Windows NT. When I go to a DOS prompt and enter d:\sendmail\sendmail -t -messagefile=d:\sendmail\msg.txt it works fine. When I have any of the lines exec ("d:\sendmail\sendmail.exe -t

RE: [PHP] to be persistent connected or not to be persistent connected

2001-01-10 Thread Jon Haworth
In your Apache httpd.conf, do you have the line KeepAlive On - this is the Apache directive to turn on persistent connections. You will also want to play with the MaxKeepAliveRequests directive, if you set it to 0 then it will allow an unlimited number of connections. There may be more to it

<    1   2   3   4