[PHP] TIP parsing form row data into variables

2003-06-22 Thread George Pitcher
Hi all, This might be well known, so apologies if I'm going over old ground - I've not seen this explained this way. Last year I did a site using the variable variables method to parse row data. Now that I've moved to globals=off, I couldn't get that to work so I tried a few other options

RE: [PHP] TIP parsing form row data into variables

2003-06-22 Thread George Pitcher
it finished before Tuesday, including re-writing the code (and databases) to MS Access, rather than my development version using MySQL. Cheers George -Original Message- From: justin gruenberg [mailto:[EMAIL PROTECTED] Sent: 22 June 2003 10:14 am To: George Pitcher; PHP-General

RE: [PHP] Fw: Front Page equivalent

2003-06-22 Thread George Pitcher
Graham, PHP editors is a frequent topic on this list. I would suggest that you have a look at the archives and see if the answer is there. BTW, I only use Dreamweaver and don't have any problems. George -Original Message- From: Graham Webb [mailto:[EMAIL PROTECTED] Sent: 22 June

[PHP] Coercing a date calc - problem - or am I just dumb tryin g it this way

2003-06-21 Thread George Pitcher
Hi all, I've just written this function: $term='Michaelmas'; function f_week($w,$t) { $P=7*($w-1); if( $t == 'Michaelmas'){ $D = 06; $M = 10; $Y = 2003; } else { $D = 12; $M = 01;

RE: [PHP] Re: Passing Variables

2003-06-21 Thread George Pitcher
Nabil, That is one way but it means that Jay would have to use a form and not a link. You could set a cookie. That would work, but it relies on the user allowing cookies. George -Original Message- From: nabil [mailto:[EMAIL PROTECTED] Sent: 21 June 2003 2:58 pm To: [EMAIL

RE: [PHP] Coercing a date calc - problem - or am I just dumb tryin g it this way SOLVED

2003-06-21 Thread George Pitcher
Yeah - just dumb!. I'd put my date vars into mktime in the european order. Once I switched them it worked fine. Chers George -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: 21 June 2003 2:50 pm To: [EMAIL PROTECTED] Subject: [PHP] Coercing a date calc

RE: [PHP] Re: Passing Variables

2003-06-21 Thread George Pitcher
in Frankfurt about 18 months ago and Rasmus was talking about 'clean' URLs (ithout the 'query' string. I never did find out how though? Cheers George -Original Message- From: Jay Fitzgerald [mailto:[EMAIL PROTECTED] Sent: 21 June 2003 3:19 pm To: George Pitcher; nabil; [EMAIL PROTECTED

[PHP] Removing columns from a text file

2003-03-27 Thread George Pitcher
on best route would be welcome. Cheers George === George Pitcher HERON Technical Manager Ingenta plc 23-38 Hythe Bridge Street, Oxford, OX1 2ET T +44 (0)1865 799137 direct T +44 (0)1865 799000 switchboard F +44 (0)1865 799134 E [EMAIL PROTECTED] www.ingenta.com Ingenta: Empowering

[PHP] RE: Removing columns from a text file

2003-03-27 Thread George Pitcher
: 27 March 2003 3:38 pm To: George Pitcher Subject: Re: Removing columns from a text file If you have a unix/linux/bsd box around man cut would probably do it. Otherwise you could read it in with php and use explode(). -philip On Thu, 27 Mar 2003, George Pitcher wrote: I have a text file

RE: [PHP] what the hell in this sql

2003-03-12 Thread George Pitcher
Firstly, This isn't a php question and should be directed at a sql list or to php-db Have you lokked at erro 1064 in the manual? What does it say? There are several things that you should do before coming to the list with a problem. Without checking I suspect that you need to specify a 'JOIN'

[PHP] Parsing my big file - I'm back

2003-03-11 Thread George Pitcher
loop). Finally, I need to gather these arrays into a bigger array set at record level. Can anyone see any flaws in this approach? I've not done this sort of stuff for about 5 years, and that was using Frontier on a Mac. All helpful suggestions appreciated George === George Pitcher HERON Technical

RE: [PHP] Opening a file in a new window

2003-03-10 Thread George Pitcher
Todd, if that script is the result of a link being follwed, add target=blank to the end. George -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 5:28 pm To: [EMAIL PROTECTED] Subject: [PHP] Opening a file in a new window Thanks to your help,

[PHP] Any Tiki users on the list

2003-03-07 Thread George Pitcher
Hi, I'm trying to evaluate Tiki 1.5 but just keep getting an error message on the setup.php page: Warning: Invalid argument supplied for foreach() in C:\Inetpub\wwwroot\tiki\setup.php on line 11. I've followed the instructions in the Tiki manual. Any suggestions? George === George Pitcher

RE: [PHP] Any Tiki users on the list

2003-03-07 Thread George Pitcher
2003 9:49 am To: [EMAIL PROTECTED] Subject: Re: [PHP] Any Tiki users on the list On Friday 07 March 2003 16:09, George Pitcher wrote: I'm trying to evaluate Tiki 1.5 but just keep getting an error message on the setup.php page: Warning: Invalid argument supplied for foreach

RE: [PHP] javascript

2003-03-07 Thread George Pitcher
Well, it saves having to handle the form - so that the user still has all their entered data in the fields without having to overcomplicate the response page. You can have optional fields which aren't mandatory and you can also do number, string and date validation too. George -Original

RE: [PHP] coockies in windows xp

2003-03-05 Thread George Pitcher
Just in case - check the spelling of setcookie. There's no c before the k. George -Original Message- From: Chris Hayes [mailto:[EMAIL PROTECTED] Sent: 05 March 2003 2:45 pm To: [EMAIL PROTECTED] Subject: Re: [PHP] coockies in windows xp At 15:29 5-3-03, you wrote: having to use

[PHP] header and writing problem

2003-02-26 Thread George Pitcher
not permitted before creating the header for the redirect. can anyone suggest a workaround. Cheers George === George Pitcher HERON Technical Manager Ingenta plc 23-38 Hythe Bridge Street, Oxford, OX1 2ET T +44 (0)1865 799137 direct T +44 (0)1865 799000 switchboard F +44 (0)1865 799134 E

RE: [PHP] header and writing problem

2003-02-26 Thread George Pitcher
Ernest, That worked a treat, many thanks. George -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 9:16 am To: George Pitcher Cc: [EMAIL PROTECTED] Subject: Re: [PHP] header and writing problem At 10:02 26.02.2003, George Pitcher

RE: [PHP] Installation and/or configuration problems w 4.2.1 on N T

2002-06-12 Thread George Pitcher
almost like a server configuration issue. Almost as if the web server (Apache?) doesn't have the php extension configured correctly. -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 3:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Installation

Re: [PHP] Installation and/or configuration problems w 4.2.1 on NT

2002-06-12 Thread George Pitcher
- Original Message - From: Lazor, Ed [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 12:33 AM Subject: RE: [PHP] Installation and/or configuration problems w 4.2.1 on NT I don't know the answer, but... It sounds almost like a server

[PHP] Installation and/or configuration problems w 4.2.1 on NT

2002-06-11 Thread George Pitcher
Hi all, I have PHP running happily on three of my servers (NT/2000/Linux) and need to set it up on NT on a server 400 miles away. I have remote access to the server. I have followed the instructions for both the ISAPI version and the CGI version with no success. This is the error message I get

[PHP] Can anyone improve on this?

2002-04-08 Thread George Pitcher
Hi all, I'm working on a small solution and want to do some configuration during the initialising process. The solution is aimed at non tecchies in universities and the idea is that the system does some of the environment stuff for them. This is the first time I've done any of this stuff so I

Re: [PHP] Getting the data for MySQL and then putting it back withPHP - at a loss!

2002-02-22 Thread george Pitcher
Michael, Been there recently! You want to use variable variables: $index=0; for (index=0; $index $rowcount; $index++){ $formvar='formvar'.$index; $formvar=$$formvar; Do the last two lines for each piece of data you want to handle. Think about how you are isolating the formvars on the

[PHP] Installing php_4.0.6 on Mandarke

2002-02-15 Thread George Pitcher
Hi all, I have just installed Mandrake 8.1 with MySQL, Apache and PHP and Apache and MySQL are working but when I do the phpinfo.php file I get a 404 error even though the file is there. It is as though it cannot see php files. Any suggestions? George -- PHP General Mailing List

Re: [PHP] Printing file PDF and not seve

2001-12-14 Thread George Pitcher
Don't think so. The whole premise of PDFs is that they are downloaded to the client's machine for local viewing (even on-line). What you need to think about is what security you can build in which although not preventing storage, prevents any unwanted use such as passing on to others etc. We've

Re: [PHP] Online editor that edits all pages

2001-12-13 Thread George Pitcher
I'm using EditPlus to edit files on my server, from my laptop, but that accesses the files via the NT network, which might not be what yopu are looking for. George - Original Message - From: Andreas Landmark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 11:16

Re: [PHP] headers

2001-12-05 Thread George Pitcher
I'm a newbie but how about: header(location: http://www.xxx.yyy/somepage.php?var1=$var1) and so on. And location: needs a space after it! George _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP

Re: [PHP] very urgent assistance

2001-12-05 Thread George Pitcher
Ben, Except that its been around for a couple of years now, in various guises. SPAM! George - Original Message - From: Smith, Benjamin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 6:20 AM Subject: RE: [PHP] very urgent assistance This would have to be

Re: [PHP] FOLLOW UP on column names not liked by odbc/php/access

2001-12-05 Thread George Pitcher
Just a thought. 'Label' might be a reserved name on win as it is/was used to describe the name of a volume (drive). But then again, maybe not. George - Original Message - From: mweb [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 05, 2001 10:45 AM

[PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Hi all, I'm a PHP newbie, my main scipring being done in Blueworld's Lasso. I have used php fro time to time with Lasso to do some file handling. My question is: 'Can I run a file from a PHP script?' The file in question would be a Filemaker database file. I want to be able to open the file

[PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Hi all, I'm a PHP newbie, my main scipring being done in Blueworld's Lasso. I have used php fro time to time with Lasso to do some file handling. My question is: 'Can I run a file from a PHP script?' The file in question would be a Filemaker database file. I want to be able to open the file

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
- From: Steve Cayford [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 3:39 PM Subject: Re: [PHP] 'Running' a file from PHP script On Tuesday, December 4, 2001, at 02:22 AM, George Pitcher wrote: Hi all, I'm a PHP newbie, my

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
can do the detection bit, it's the getting the db file up and running bit I can't do. George - Original Message - From: Jon Haworth [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 4:44 PM Subject: RE: [PHP] 'Running' a file

Re: [PHP] 'Running' a file from PHP script

2001-12-04 Thread George Pitcher
Jon, Of course not, I'm a newbie! George - Original Message - From: Jon Haworth [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 5:03 PM Subject: RE: [PHP] 'Running' a file from PHP script Aha, I understand :-) Have

Re: [PHP] Cannot add header information...

2001-11-22 Thread George Pitcher
Per, Its a hard rule but you cannot sent any HTML content before the header. Try reversing the order and see if that works. George (a newbie, trying to find time to learn more) - Original Message - From: Per Waagen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 22,

[PHP] Re: [PHP-WIN] Re: Read Session in ASP in PHP

2001-11-19 Thread George Pitcher
Sorry, I'm a PHP newbie. The only way I know you can pass values to a php script is the normal way, through the URL, as in: a href=yourscript.php?var1=valuevar2=value... etc. Not strictly true. I am primarily a Lasso developer and I can pass values (and do) using Form, URL and Cookies. In

Re: [PHP] Form's : making me sick!

2001-11-13 Thread George Pitcher
I don't think that you can nest forms. George - Original Message - From: De Necker Henri [EMAIL PROTECTED] To: PHP-General (E-mail) [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 1:09 PM Subject: [PHP] Form's : making me sick! I just want to know how to make a form inside a form

Re: [PHP] Delivering NAMED pdf files

2001-10-29 Thread George Pitcher
forward to Frankfurt next week - Original Message - From: Bill Rausch [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 19, 2001 8:22 PM Subject: RE: [PHP] Delivering NAMED pdf files George, Rasmus' suggestion is correct, but he was terse

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Rasmus, Thanks for the suggestion but it didn't change anything. George - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 10:54 AM Subject: Re: [PHP] Delivering NAMED pdf files

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Arpi, Thanks for the suggestion but it didn't change anything. George - Original Message - From: Arpad Tamas [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, October 19, 2001 11:13 AM Subject: Re: [PHP] Delivering NAMED pdf files On Friday 19

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Sebastian, Just tried it - it dosn't work for me. George - Original Message - From: Sebastian [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED]; 'Php-General [EMAIL PROTECTED] Sent: Friday, October 19, 2001 12:19 PM Subject: AW: [PHP] Delivering NAMED pdf files Hi George I had

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Thanks for the [non] suggestion. I will not host these in a web-accessable directory. They are copyright materials. I've done this type of hosting previously using Frontier on a Mac and it worked fine. I thought that php was better than Frontier, though. George - Original Message -

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
- From: George Pitcher [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 12:27 PM To: speedboy; [EMAIL PROTECTED] Subject: Re: [PHP] Delivering NAMED pdf files Thanks for the [non] suggestion. I will not host these in a web-accessable directory. They are copyright

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread George Pitcher
Yes, If I download the file as it is named, it is the file I expected, only not named the way I wanted. George MrBaseball34 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... And the php page which is fileaccess.php: ?php $fp1 = D:\\Pdf\\ . $fp; $len =

Re: [PHP] php and java problem

2001-10-01 Thread George Pitcher
Nikola, I'm not a javascript user and new to php too. Is it possible to form your javascript result into a 'hidden' form value. That could then be read by the next php page. HTH George - Original Message - From: Nikola Veber [EMAIL PROTECTED] To: php forum [EMAIL PROTECTED] Sent:

[PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
Hi all, I'm having a problem with dynamically building a value list. My code: ?php mysql_connect ('localhost', 'root', 'monty'); mysql_select_db ('Heronsql'); $query = (select HEI from heronuser); // LINE 22 on original script $result = mysql_query($query, $mysql_link);

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
Thanks Gottfried, but that doesn't change the response I get. Any more suggestions. George P in Edinburgh PS I am hoping to come over to Frankfurt for the conference in November (boss might pay) - Original Message - From: [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED] Sent

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
suggestions (please)? George - Original Message - From: Maxim Maletsky (PHPBeginner.com) [EMAIL PROTECTED] To: 'George Pitcher' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 3:17 PM Subject: RE: [PHP] Building Dynamic Value list using ohp 1. this: print(option

Re: [PHP] Building Dynamic Value list using ohp

2001-09-26 Thread George Pitcher
right now. George - Original Message - From: Sheridan Saint-Michel [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 4:00 PM Subject: Re: [PHP] Building Dynamic Value list using ohp - Original Message - From: George

Re: [PHP] Building Dynamic Value list using php [SOLVED]

2001-09-26 Thread George Pitcher
as this is the login page to a system which at present runs to 45 pages of Lasso?Filemaker coding which I'm hoping to convert to PHP/MySQL (or MS-SQL as we have that and DB2 too). Thanks again George - Original Message - From: Derek Mailer [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED] Cc: [EMAIL

Re: [PHP] WEB LOG

2001-09-24 Thread George Pitcher
Hi all, I'm new to php but I would look at the concept of setting a cookie on the log-in page and then testing for that cookie on the http://therealsite page and redirecting failues accordingly. In fact that could be set into every page to make sure that people have to go thru the log-in page.

Re: [PHP] another easy cookie question - SOLVED

2001-09-21 Thread George Pitcher
Hi all, I solved my Cookie problem by making it simple: On cookietest.php I have: ? setcookie(Cookievalue, abcdefghijklmnopqrstuvwxyz0123456789, time()+3600); ? and on cookietest.lasso I have Display Cookie: [Cookie:'Cookievalue']p and the cookie is displayed properly. This will allow me

[PHP] another easy cookie question

2001-09-14 Thread George Pitcher
Hi all, This is what I have at the top of my php page (php-4.0.6-winNT). html head ?php header(Location:index.php); setcookie(Cookievalue, abcdefghijklmnopqrstuvwxyz0123456789) time()+3600); ? titleUntitled Document/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head

Re: [PHP] another easy cookie question

2001-09-14 Thread George Pitcher
/html; charset=iso-8859-1 /head Any suggestions? George - Original Message - From: Kelly Barrett [EMAIL PROTECTED] To: George Pitcher [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, September 14, 2001 11:31 AM Subject: Re: [PHP] another easy cookie question Hi George, You must output

[PHP] sending PDF to the user (www)

2001-09-13 Thread George Pitcher
(Content-Disposition: attachment; filename=$fp1); header(Content-Length: $len); readfile($fp1); ? Any suggestions? George Pitcher Edinburgh _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General

[PHP] Accessing pdf file thru php

2001-09-12 Thread George Pitcher
: application/x-octet-stream Content-Disposition: inline; filename=D:\\Pdf\\0226138097(57-77).pdf Content-Length: $len; header=($header); readfile($filename); ? I get a parse error on the line that calls the header. Can anyone help me with this please? Regards George Pitcher Technical Manager HERON

Re: [PHP] Accessing pdf file thru php

2001-09-12 Thread George Pitcher
] To: George Pitcher [EMAIL PROTECTED] Sent: Wednesday, September 12, 2001 2:52 PM Subject: Re: [PHP] Accessing pdf file thru php You should call header() for each header line. And you should only send one content type header. header(Content-type: application/pdf); header(Content-Disposition

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread George Pitcher
Andrew, I am in a similar position witha Lasso site, which I am considering php-ing. I need to do conditional redirects. George P, Edinburgh - Original Message - From: Andrew Penniman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 10, 2001 3:37 PM Subject: [PHP] PHP

Re: [PHP] NT?

2001-09-10 Thread George Pitcher
I've got PHP running under 3 environments (sort of). LinuxPPC(Mac) with Apache and MySQL NT with IIS4 and Lasso/Filemaker (not quite working yet) NT with Apache and MySQL. Installation was very easy. George P in Edinburgh - Original Message - From: nayco [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] ordering a query

2001-09-07 Thread George Pitcher
It is simply ordering them as type data rather than as type integer. Change your data type in the db. George, a newbie - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 07, 2001 9:16 AM Subject: [PHP] ordering a query Me again :) I have a query

[PHP] Delivering an authenticated pdf

2001-09-06 Thread George Pitcher
the writing out to the client. Has anyone done this sort of thing before? (Not the lasso/php stuff but pdf delivery.) The reasoning is that the user should not be able to get to the pdf unless they have been authenticated (in Lasso). Any suggestions? Regards George Pitcher Technical Manager HERON

[PHP] newbie installation help needed - LinuxPPC

2001-08-16 Thread George Pitcher
Hi all, I've been playing around a little with php/mysql/apache on my NT box but I have just set up one of my Macs as a LinuxPPC machine. I have downloaded PHP-4.0.6 but now I want to install it to work with the apache server software already installed. I'm a complete newbie as far as linux is

Re: [PHP] PHP Manual in PDF Format

2001-08-03 Thread George Pitcher
Er, that's a MySQL manual and it doesn't have much in terms of php coding i n it, IIRC. GP - Original Message - From: Augusto Cesar Castoldi [EMAIL PROTECTED] To: Andreas D. Landmark [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 03, 2001 3:51 PM Subject: Re: [PHP] PHP

Re: [PHP] ascii of euro

2001-07-27 Thread George Pitcher
According to my character map, its 0128 ... if its on the font. George, Edinburgh - Original Message - From: Alexander Wagner [EMAIL PROTECTED] To: Karl Phillipson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 27, 2001 9:25 AM Subject: Re: [PHP] ascii of euro Karl

Re: [PHP] Newbie Help (CLASS WAR!)

2001-07-27 Thread George Pitcher
Have a look at: http://www.phpbuilder.com/columns/luis2420.php3 HTH George, still a newbie after a week on php - Original Message - From: CC Zona [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 27, 2001 11:25 AM Subject: Re: [PHP] Newbie Help (CLASS WAR!) In article

<    1   2