RE: [PHP-WIN] Re: Executing .exe files Issues

2009-01-22 Thread George Pitcher
>| "Alice Wei" wrote in message >| news:snt101-w180f682380dc32dbf85bf9f0...@phx.gbl... >| >| Hi, PHP Window Users: >| >| I have a snippet of code as in the following: >| >| | $filename="Test123.txt"; >| shell_exec("C:\Inetpub\wwwroot\hello.exe -f$filename") or die ("Failed"); >| >| ?> >| The hel

RE: [PHP-WIN] Anyone running Winword on Windows 2003 Server?

2009-01-15 Thread George Pitcher
Sascha, >| after a lot of testing on my Windows 2k3 server I stopped trying >| to use Winword through COM, because the returned Word COM object >| never worked (I could neither open or create a document, nor >| could I even retrieve version infos from the Word instance, >| nothing ever worked). >|

RE: [PHP-WIN] IE Explorer Problems.

2008-11-26 Thread George Pitcher
Allen, I had cross-browser problems earlier this year. Solved by moving to the following header: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Hope this helps. George, in Edinburgh >| -Original Message- >| From: Allen W

RE: [PHP-WIN] I don't know what I'm doing wrong

2008-09-11 Thread George Pitcher
Hi, >| (This is my connections.php) >| require_once("Connections/connection.php");  //database connection >| Warning: require_once(Connections/connection.php) >| >| I have a feeling that my issue is contained within:   >| (include_path='.;C:\php5\pear') It might be a slip of typing but you sa

RE: FW: [PHP-WIN] Com++ Word AND PHP?

2007-10-08 Thread George Pitcher
> Gustav Wiberg wrote: Mis-attributed. This was in my reply to Gustav. > > I do this on my WinNT server - in fact its the only thing left > stopping me > > from moving to Linux! > > "COM functions are only available for the Windows version of PHP." My point exactly. When I am able to create a Wo

RE: [PHP-WIN] open/download file not under www-root

2007-09-04 Thread George Pitcher
Gustav, > Windows 2003 Server/PHP 5.0.1 > > Is it possible to download a file from a server that is at for > example u:/documents/ which is not under the www-root? > How would I reference that file. (I just want to open it -for > example a word-file) Yes, you can. I actually let my [registered]

RE: [PHP-WIN] Warning: Cannot modify header information

2007-04-08 Thread George Pitcher
Sam, > I have to different pages (forms) one.php and two.php I created > two different pages (onemysql.php and twomysql.php) to handle > myql data for each of them I add header("Location: one.php"); > to onemysql.php > And header("Location: two.php"); to twomysql.php > one.php works fine.

RE: [PHP-WIN] Configuration problem?

2006-05-23 Thread George Pitcher
Daniel, It may use C:\Windows\php.ini on your box, but mine is definitely using C:\PHP\php.ini. On my NT boxes, I have the following at the end of httpd.conf: # configure the path to php.ini PHPIniDir "C:/php" But no reference at all on my XP box. George in Oxford > -Original Message-

[PHP-WIN] calling/running a .jar from inside php

2006-04-28 Thread George Pitcher
Hi, I use iText to split and join pdf files. I have this on my WinXP laptop and get php to build a .bat file - which works fine. I also have iText on my linux server and can call that from within my php script by doing: $x = shell_exec("java -cp itext.jar com.lowagie.tools.concat_pdf blah blah);

RE: [PHP-WIN] Restarting PHP on IIS

2006-03-26 Thread George Pitcher
Well, I run IIS on Windows NT, but used to do it on my XP laptop before that was switched to Apache. I just need to restart the webserver (3 on the list) and 'Restart' is an option on XP. George > -Original Message- > From: Aaron Kenney [mailto:[EMAIL PROTECTED] > Sent: 24 March 2006 7:4

[PHP-WIN] Possibly OT - refreshing page

2005-03-15 Thread George Pitcher
Hi, I have a page with a link. If the user clicks on the link, the script builds a Word doc using RTF formated data. This is then delivered to the user via a typical header. So far, so good - it works fine. Part of the build process includes a db query which tells the db that the doc for the part

[PHP-WIN] PHP5 and UNC paths not working

2005-02-25 Thread George Pitcher
Hi, Firstly, I've trawled through Google, phpbuilder archives etc and have found lots of similar requests to this, but no solution. I need to grab some files from another machine on a local network but PHP5 won't work with the UNC path. Does anyone know a solution or a workaround? Cheers Georg

[PHP-WIN] INFO: 'Replacing' form data from a web table/database

2005-02-01 Thread George Pitcher
Sorry about the cross-posting. I've been a Filemaker user for around 10 years now. Its brilliant for small scale applications, but over recent months, I've been porting a site based on Filemaker v5 to PHP/MySQL. I am using PEARD:DB and the Smarty templating engine. One of the nice tricks in FM is

RE: [PHP-WIN] displaying neat and tidy currency notation?

2004-12-04 Thread George Pitcher
Thanks to all who responded. I did managed to write a working function last night, but I've now dropped that one in favour of the sprintf() function. Cheers George > -Original Message- > From: re_action [mailto:[EMAIL PROTECTED] > Sent: 3 December 2004 5:28 pm > To: Ge

[PHP-WIN] displaying neat and tidy currency notation?

2004-12-03 Thread George Pitcher
Hi, I want to be able to display the results of some calculations as currency such as £25.50, but round($var,2) produces £25.5. I've tried writing my own function but that just fouled up the calculation. Any tips or suggestions? Cheers George in Oxford -- PHP Windows Mailing List (http://www

RE: [PHP-WIN] What's wrong with these two programs?

2004-11-24 Thread George Pitcher
If I'm correct, 'REQUEST' will catch both 'POST' and 'GET' args. Personally, I've written a function to emulate register globals=on without actually compromising the system. It parses the arg and matches it against the various types. It helps me to maintain my lazy programming approach - not havin

[PHP-WIN] Performance question?

2004-11-07 Thread George Pitcher
Hi, I'm currently rebuilding a site previously constructed using Lasso/Filemaker. I'm using PHP5/MySQL4/PEAR::DB and Smarty. The site holds course content information for universities and colleges. My first page after logging on displays courses for the user. This lists relevant courses, their s

[PHP-WIN] 2 sites accessing 1 db - problem

2004-11-05 Thread George Pitcher
Hi, I have a master database and a customer-facing website and a staff-facing website - both connecting to the same database. I use Smarty and PEAR::DB and PHP5. I have no problem connecting from one site, but the other just generates 'could not open database' on the home page. This is happening

RE: [PHP-WIN] checking file is mounted at the end of a url -- SOLVED

2004-10-20 Thread George Pitcher
Thanks for moving me in the right direction. fopen() will test the existence of a file at the end of a url. Cheers George > -Original Message- > From: Mike [mailto:[EMAIL PROTECTED] > Sent: 20 October 2004 3:24 pm > To: 'George Pitcher'; [EMAIL PROTECTED] &

RE: [PHP-WIN] checking file is mounted at the end of a url

2004-10-20 Thread George Pitcher
nal Message- > From: Mike [mailto:[EMAIL PROTECTED] > Sent: 20 October 2004 3:24 pm > To: 'George Pitcher'; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] checking file is mounted at the end of a url > > > If you know what the local file name and path are supposed to

[PHP-WIN] checking file is mounted at the end of a url

2004-10-20 Thread George Pitcher
Hi, I'm building a site where among other things, the user (librarian) can see if a file has been mounted on a local webserver for students to download. I could provide a link so they can see if the file (pdf) can be downloaded, but I'd rather just say 'yes' or 'no'. This requires the page doing

RE: [PHP-WIN] ereg_replace help wanted

2004-09-29 Thread George Pitcher
Thanks to all who chipped in. I'm going with John Asendorf's '$pages = ereg_replace ( "[^0-9cdilmvx,]" , "-" , $pages);' which works for me. Tom wrote: > But do you really want an "A" (etc.) to be considered a dash? Yes, because it is not a valid pagerange character. Cheers, and thanks for sav

RE: [PHP-WIN] ereg_replace help wanted

2004-09-29 Thread George Pitcher
of spaces at the beginning of the process). Cheers George > -Original Message- > From: Asendorf, John [mailto:[EMAIL PROTECTED] > Sent: 29 September 2004 3:43 pm > To: George Pitcher; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] ereg_replace help wanted > > > Act

[PHP-WIN] ereg_replace help wanted

2004-09-29 Thread George Pitcher
Hi, I don't want to spend a lot of time leaning how to use this function but I have a problem that I think it can solve. I have a web form that allows the user to (amongst other things) submit a pagerange to my database. Using '-' and ',' as separators, I am able to calculate the number of pages

RE: [PHP-WIN] Hidden FORM tag in PHP

2004-09-29 Thread George Pitcher
susilo wrote: > How to input hidden type FORM tag in PHP, and the SELECT TAG form > variabel option > Not quite sure what yo mean here but if you want to have a form input type to be hidden thats HTML amd nothing to do with PHP. George -- PHP Windows Mailing List (http://www.php.net/) To unsub

RE: [PHP-WIN] Reading mapped drive with PHP5

2004-09-14 Thread George Pitcher
age- > From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED] > Sent: 14 September 2004 2:43 pm > To: [EMAIL PROTECTED] > Cc: George Pitcher > Subject: RE: [PHP-WIN] Reading mapped drive with PHP5 > > > I found this page relating to mapped drives and PHP: > http://bugs.p

[PHP-WIN] Reading mapped drive with PHP5

2004-09-14 Thread George Pitcher
Hi, No response received after my request yesterday, so I'll try again. I have a script that copies a file from a mapped drive on my local network and places it in a particular directory on my laptop. I then do somethjing with the file. While I ran PHP4.3 it worked like a dream, and since upgrad

[PHP-WIN] eregi

2004-09-13 Thread George Pitcher
Hi, I'm trying to validate page range data. This can be entered as (example) i-ix,1,23-45. I am trying to ensure that, where the user is pasting data from a web page, for instance, that uses an 'n-dash' rather than a hyphen (but could use something else), that the user is alerted to re-type the da

[PHP-WIN] Problem with mapped drive on XP - PHP5

2004-09-13 Thread George Pitcher
Hi, Having sorted most of my upgrade issues, one remains (that worked previously with v4). My code: 01 By the way, the java stuff is a set of tools that allow me to put two PDFs together and then encrypt the final file. Tha batch file then deletes the temp files leaving me with the 'locked' fi

RE: [PHP-WIN] PHP5 install woes

2004-09-11 Thread George Pitcher
rs George > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: 10 September 2004 11:10 pm > To: George Pitcher; [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] PHP5 install woes > > > george, > > are you using multiple virtual hosts? i had t

[PHP-WIN] PHP5 install woes

2004-09-10 Thread George Pitcher
Hi, I've checked the archive and couldn'tfind a solution to my problem, which is: I renamed my php 4 folder, and ini file, went through the manual install of PHP 5.0.1 and stopped and started my IIS server. I then opened my usual instance of phpinfo.php and got the usual listing. As I use MySQL,

[PHP-WIN] Slightly OT - checking if an app is running

2004-09-08 Thread George Pitcher
Hi, This is slightly off topic, but it may be that PHP can provide the solution. I am running Filemaker Pro v5 Unlimited on an NT4 Server box. I have a Filemaker plug-in that checks that the required databases are running every 5 minutes, and if not, launches them. That's fine as long as the File

RE: [PHP-WIN] Re: PHP-Java extension problem

2004-08-23 Thread George Pitcher
> [snip] > > Unknown(): Unable to load dynamic library > 'C:\PHP\extensions\php_java.dll' - > > Access is denied. > [/snip] > > maybe the webserver has not enough rights to load the extension. try > just giving everyone full access to this file, and then restart the > webserver. if it still doesn't

RE: [PHP-WIN] Re: PHP-Java extension problem

2004-08-23 Thread George Pitcher
> > Unknown(): Unable to load dynamic library > 'C:\PHP\extensions\php_java.dll' - > > Access is denied. > > Just another possibility: Several people have had luck moving the > library to > your system folder. Alas, not me. Still no joy. George -- PHP Windows Mailing List (http://www.php.ne

[PHP-WIN] PHP-Java extension problem

2004-08-22 Thread George Pitcher
Hi, I need to be able to communicate with a Java application, so thought I'd start my installing the php-java extension. Having followed all the instructions - and checked PHPBuilder etc for this error I'm stumped. The error in question is: Unknown(): Unable to load dynamic library 'C:\PHP\exten

RE: [PHP-WIN] Re: PHP extension problem in new XP site

2004-07-07 Thread George Pitcher
Jason, The revised 'path' did the trick. Ta. George > -Original Message- > From: Jason Barnett [mailto:[EMAIL PROTECTED] > Sent: 7 July 2004 8:25 am > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: PHP extension problem in new XP site > > > > And the relevant bit from the php.ini > >

[PHP-WIN] PHP extension problem in new XP site

2004-07-06 Thread George Pitcher
Hi all, I've just moved form Win2k to XP (to get my wireless card to function!) and having re-installed everything, but using the most up-to-date downloads (but not v5 yet), I'm hgaving a problem with a script that builds a PDF page from Filemaker. This is the error I get: ==

[PHP-WIN] HTML_entities woe

2004-06-29 Thread George Pitcher
I'm using fx to extract data from a FileMaker database and am encountering some HTML entity issues. This data is going into a pdf page, so isn't being displayed on the web. The copyright symbol comes out like: © and I've noticed a couple of accented characters as well. The data was put on by a M

RE: [PHP-WIN] Parsing pageranges [solved]

2004-06-29 Thread George Pitcher
Hi, Solved it but there may be a more elegant/efficient way? my code: == "; ?> George > -Original Message----- > From: George Pitcher [mailto:[EMAIL PROTECTED] > Sent: 29 June 2004 12:51 pm > To: [EMAIL PROTECTED] > Sub

[PHP-WIN] Parsing pageranges

2004-06-29 Thread George Pitcher
Hi, I have several systems running which gather, store and process bibliographic data. I have treated pageranges on the basis of two fields per range - start and end, with supplemantary ranges available as well. I've never had to deal with more than 3 ranges in a reference: chapter, references an

[PHP-WIN] PDF tip

2004-06-21 Thread George Pitcher
Hi, I thought I'd share somthing I found: iText. I had a need to join some PDFs together using php. My local Java gurus pointed me towards iText (http://www.lowagie.com/iText/). I haven't been able to fully integrate it with PHP but so far, I can loop thru the the list files I want to join (usu

RE: [PHP-WIN] executing a java app from a php script

2004-06-15 Thread George Pitcher
} the batch file but with the same negative result as before. Any suggestions? Cheers George > -Original Message- > From: Frank M. Kromann [mailto:[EMAIL PROTECTED] > Sent: 14 June 2004 6:00 pm > To: George Pitcher > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN]

[PHP-WIN] executing a java app from a php script

2004-06-14 Thread George Pitcher
Hi, I'm trying to do a bit of java execution as part of a php routine and the following just doesn't work: Even adding tha path to 'java' doesn't help. This command works fine from the command line. It adds two pdf files together. If I can get this to work, I'll also add the encryption routine

RE: [PHP-WIN] Transfering database

2004-05-26 Thread George Pitcher
Sudeep, This is a php list, you are asking a MySQL question with no relevance to php. Check the MySQL manual for Load Infile commands. I have to admit I can never get them to work on my versions of MySQL and have tended to use other methods to load tables. As I said before, with MySQLFront, you

[PHP-WIN] updating from xls -> [filter] -> mysql

2004-05-21 Thread George Pitcher
Hi, I'm thinking ahead to something I'll need to tackle in the future. My current system is Filemaker based and I can import straight from Excel spreadsheets - but with no checking available. Now that I'm re-writing into php/mysql(pear:dB)/smarty, If I can, I'd like the user to be able to select

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
> $String = implode(explode($String, $OldChar), $NewChar); > > > > -Original Message- > From: George Pitcher > To: [EMAIL PROTECTED] > Sent: 20-5-2004 15:43 > Subject: RE: [PHP-WIN] Passing +, =, - at post and get > > And doing a bit more, I find that &#

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
t;='".rtrim(str_replace("=","",$temp))."'"; } elseif (substr($temp,0,1)!="+" && substr($temp,0,1)!="-"&&substr($temp,0,1)!="*" && substr($temp,0,1)!="="){

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
ubject: RE: [PHP-WIN] Passing +, =, - at post and get > > > I hope you are not allowing the client to send T-SQL through the query > string. Consider them sending something like > File.php?Query='; drop table XXX; -- > > Charles Killmer > > -Original Message-

[PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
Hi, I want to be able to pass the '=', '+' and '-' characters both from a web form and as part of a url, to enable a better way of searching. However, these characters are choking my IIS webserver and not getting through to the script. Can anyone suggest a better way of achieving this? Cheers G

RE: [PHP-WIN] Disclaimers

2004-05-18 Thread George Pitcher
salary to the sender of this mail. > > > On Tue, 2004-05-18 at 15:49, George Pitcher wrote: > > Whilst I agree with the sentiments of Tony and B.A.T., some of > us must as a > > condition of using their employers' email facilities, add company > > disclaimers to their

[PHP-WIN] Disclaimers

2004-05-18 Thread George Pitcher
Whilst I agree with the sentiments of Tony and B.A.T., some of us must as a condition of using their employers' email facilities, add company disclaimers to their messages. As long as they don't start to appear at the top of messages, I will continue to ignore them. George in Oxford > -Origi

[PHP-WIN] post TO sql routine

2004-05-12 Thread George Pitcher
Hi, Can anyone point me to a routine that will take the POST field and its value and parse it into a suitable sql query. For example: $_POST['title'] is the post var and the user has entered "*good boy +favour -witch". It should produce the following sql snippet ( to form part of the full SQL q

RE: [PHP-WIN] Is this possible

2004-05-10 Thread George Pitcher
SION variable. Essentially this ends up > saying "That data I just requested and looked at.. Change this field all > to the same thing I just entered". > > Am I missing something or is this what you were looking for? > > -TG > > > > George Pitcher said: > &

RE: [PHP-WIN] Is this possible

2004-05-07 Thread George Pitcher
Trevor, Thanks for your well thought through response. Sorry I wasn't clear in my request. > One thing that's certain, almost EVERYTHING is possible, it just depends > on how much time and effort you're willing to put into it :) That's what I thought. > 1. You load in a recordset with roughly 5

[PHP-WIN] Is this possible

2004-05-07 Thread George Pitcher
Hi, I think this is not possible, but hopefully, someone will prove me wrong. Imagine a webform with about 50 fields (I actually have several of these forms). Theuser will see a record from a recordset and be able to navigate through the recordset. I've sorted that part out using PEAR, Smarty and

RE: [PHP-WIN] Stripping returns _SOLVED

2004-03-29 Thread George Pitcher
Sorry guys, its OK now. I was checking an earlier output (too many interruptions at work). Ta. George > -Original Message- > From: George Pitcher [mailto:[EMAIL PROTECTED] > Sent: 29 March 2004 11:31 am > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Stripping returns > &

[PHP-WIN] Stripping returns

2004-03-29 Thread George Pitcher
Hi all, I'm using php to create java classes for database access. I have a file (a few in fact) containing a list of fieldnames, one per line. So I open the file and read it line by line and create the java code. Opening reading and closing is repeated for the several stages of definition and set

RE: [PHP-WIN] OK, ahí voy...

2004-03-19 Thread George Pitcher
Surely we're still months away from a 'Holly War'. George > -Original Message- > From: Cesar Cordovez [mailto:[EMAIL PROTECTED] > Sent: 19 March 2004 2:23 pm > To: Felipe Eduardo Ortiz López > Cc: lPHP and Databases; lPHP Para Todos; lPHP For Windows; > [EMAIL PROTECTED]; LProgramación en

RE: [PHP-WIN] problems with variables

2004-02-14 Thread George Pitcher
Ciro, Tyr reading your variable as $_POST['first_name'] and see if that works. That's the default way of passing form and url variables in PHP. If you would rather do it the 'old' way (not recommended), open your php.ini file and check the 'register globals' to 'on'. George Oxford/Edinburgh >

RE: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread George Pitcher
I have both access and MySQL DBs and I have to change my method for Access to 'select top 10 [fields] from table where x=x etc order by y' MS SQLServer may need the same. George in Oxford > -Original Message- > From: Nadim Attari [mailto:[EMAIL PROTECTED] > Sent: 6 February 2004 11:33 am

RE: [PHP-WIN] building a string question

2004-02-03 Thread George Pitcher
Ron, What I do is this: Firstly, $howmany is passed as a final loopcounter from the form. for ($index = 1; $index < $howmany; $index++){ $varname = 'varname'.$index; $varname = $_POST[$varname]; //repeat process for $vars and do something } It works for me. George in O

RE: [PHP-WIN] tutorial

2004-02-03 Thread George Pitcher
This reminds me of how a few years ago whilst working on a university library project I was introduced to programming. Being Mac-based, I decided to use Frontier, to the horror of everyone else who tried (unsuccessfully) to get me onto Perl. So I checked the library for a Perl book and the only one

RE: [PHP-WIN] querying more than one db from a php page?

2003-12-15 Thread George Pitcher
ot 'global'. Thanks for the tips. George > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] > Sent: 13 December 2003 8:54 am > To: ''George Pitcher ' '; ''[EMAIL PROTECTED] ' ' > Subject: RE:

[PHP-WIN] querying more than one db from a php page?

2003-12-12 Thread George Pitcher
Hi, I am developing my main site to run on php/mysql (currently lasso/filemaker). I am also developing some individual sites to be hosted on the same server as my main one and I'd like to be able to update those smaller site databases when activity happens on the main site. I'm still a couple of

RE: [PHP-WIN] Re: Speeding up PHP?

2003-10-29 Thread George Pitcher
ERE conditions). > > --- > Andrei BEJENARU - Developer > InterAKT Online > http://www.interakt.ro/ > Tel: +4021 312.53.12 > Tel/Fax: +4021 312.51.91 > > > "George Pitcher" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > &g

[PHP-WIN] Speeding up PHP?

2003-10-28 Thread George Pitcher
Hi, I've started redesigning a website that is currently running using Filemaker/Lasso. The new site will by PHP/MySQL. I'm in the early stages but I've been doing some basic tests and I'm disappointed with the speed of PHP in building the web-page. I've set up a SQL query which takes 0.89 secs t

[PHP-WIN] Mail with Word attachment

2003-10-20 Thread George Pitcher
Hi all, I need to send MS Word attachments from PHP (they're built on the fly). I've tried PHPMailer but that doesn't like my NT box so I've gone back to php's mail() function. I'm using the following script but and the attachment is in the same webfolder as the script but when I check the email

[PHP-WIN] nuSoap timings

2003-10-10 Thread George Pitcher
Hi, I'm playing with nuSoap and have set it up on NT/IIS4 but it takes too long to handle the simplest of requests. I keep getting the 30 secionds execution time message. Anyone have any suggestions? Cheers George in Oxford -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP-WIN] imagecreate () query

2003-09-29 Thread George Pitcher
table. I'm using Win2K/WinNT servers and most of my clients are on windows. George === George Pitcher HERON Technical Manager Ingenta plc 23-38 Hythe Bridge Street, Oxford, OX1 2ET T +44 (0)1865 799051 direct T +44 (0)1865 799000 switchboard F +44 (0)1865 799134 E [EMAIL PROTECTED] www.i

RE: [PHP-WIN] SQL query problem - SOLVED

2003-09-29 Thread George Pitcher
The date format in my query works fine with Access. I solved the problem by splitting the query into two separate queries and it now works fine. Cheers George > -Original Message- > From: Disko_kex [mailto:[EMAIL PROTECTED] > Sent: 29 September 2003 1:25 pm > To: &#x

[PHP-WIN] SQL query problem

2003-09-29 Thread George Pitcher
Hi, I'm having a problem with the following query (ODBC on M$ Access): select Pack.*, Transacts.*, Extracts.* from Pack, Transacts, Extracts where ( Pack.End > date() and Pack.Term='Lent' and Transacts.Week=1 and Transacts.Pack_ID=Pack.Pack_ID and Extracts.ID=Transacts.Extract_ID) ORDER BY Pack.T

RE: [PHP-WIN] Date question?

2003-09-12 Thread George Pitcher
> >> If I have a date (2003-04-02) and want to select 9 months later, > >> how to do? > >> > > > >Try this: > > > >echo date("Y-m-d",strtotime("2003-04-02 +9 month")); > > [EMAIL PROTECTED] bats]$ echo date("Y-m-d",strtotime("2003-04-02 +9 > month")); > bash: syntax error near unexpected token `(

RE: [PHP-WIN] Re: Getting a pdf to open in Acrobat

2003-09-10 Thread George Pitcher
Acrobat Reader is installed on the machine browsing? > Cheers > Simon > > "George Pitcher" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > I use the following code to grab a pdf from a different disk > and then pass

[PHP-WIN] Getting a pdf to open in Acrobat

2003-09-10 Thread George Pitcher
Hi, I use the following code to grab a pdf from a different disk and then pass it out to a web-user. = = = = = = = = = = = = = = = = = = = The problem is that it always asks me which application to use to open the file. What do I need to do so that 'open' will always launch Acrobat? Cheers Ge

RE: [PHP-WIN] Problem writing to a file

2003-09-09 Thread George Pitcher
"Cannot write to file ($fp2)"; exit; } fclose($fp2); rename($cr.".txt",$cr.".doc"); It may be of use to someone else. Cheers George > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] > Sent: 9 September 2003

[PHP-WIN] Problem writing to a file

2003-09-09 Thread George Pitcher
So as you can see, I load a text file (actually its RTF saved as text), parse it then write it to an open txt file, then rename that as a Word doc. I'm running this on NT with PHP 4.3.2. The folder has write access for the

[PHP-WIN] install for dummies?

2003-06-25 Thread George Pitcher
Hi, after using PHP for ages, my laptop died on me and I've been trying to get PHP active on a new W2K machine running IIS5. I've tried both the installer and the binary (both as CGI and ISAPI) with no success. I've copied the php4isapi.dll file along with php.ini to winnt\system32, tried just a

[PHP-WIN] TIP - Creating 'neat' Word documents with PHP

2003-06-15 Thread George Pitcher
Hi all, I had a requirement to produce neat Word documents to send as email attachments. I looked at the COM method but couldn't get it to work (didn't really try that hard though). Anyhow, I tried another method which procuces exactly what I need. Firstly, create the document shell in Word (this

[PHP-WIN] RE: OT - Dreamweaver MX help needed

2003-06-02 Thread George Pitcher
Thanks guys, Its working fine now. Fastest response I've ever seen on any list No need for any further copies! Cheers George > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of George Pitcher > Sent: 02 June 2003 7:26 am >

[PHP-WIN] OT - Dreamweaver MX help needed

2003-06-02 Thread George Pitcher
Hi all, Sorry to waste bandwidth with this request. In a moment of madness late last night, I modified my 'MMDocumenttypes.xml' file without taking a backup first. Since then, I get a 'fatal error' message whenever I start DW. I would just re-install from scratch but my CD set is back in Edinbu

RE: [PHP-WIN] Re: Variable problems

2003-03-10 Thread George Pitcher
Your buddy probably has register globals switched on. George > -Original Message- > From: Reggie P [mailto:[EMAIL PROTECTED] > Sent: 10 March 2003 12:40 pm > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Re: Variable problems > > > Thanks, but I found out something really interesting! I was

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

2003-02-19 Thread George Pitcher
Matt, You should NEVER force a download on anyone. How do they know it isn't carrying a virus. What you should do is to send the headers that prompt a dialog box for Save or Open (I'm sure you've seen this). I'm not sure which headers you use for csv or txt files but I do this with PDFs all the

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

2003-02-11 Thread George Pitcher
Chris, et al, Nope, I never mentioned the command line at all, but it is probably how I would have done it if I hadn't passed it over to the PERL guys. It would have been useful to go through a parsing routine just to learn how its done (never know when it might be a useful trick). Even so, I st

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

2003-02-11 Thread George Pitcher
Anders, Thanks - I'll see if I can persuade one of the PERL people here to have a go. Ta. george > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2003 12:24 pm > To: George Pitcher > Cc: [EMAIL PROTECTED] >

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

2003-02-11 Thread George Pitcher
sounds like you don't really have a problem as such, you just want > someone to tell you what the code would be? > > chris kranz > fatcuban.com > > > -Original Message- > From: George Pitcher [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2003 11:59 > To: Sv

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

2003-02-11 Thread George Pitcher
Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2003 11:03 am > To: George Pitcher; [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] reading lines from a file > > > Then you need to write a parser. What's the basic problem then? > > > -Original Me

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

2003-02-11 Thread George Pitcher
Yes, eventually. I want to come up with a good method because this file is going to be supplied to me on a fairly regular basis. George > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: 11 February 2003 10:56 am > To: George Pitcher; [EMA

[PHP-WIN] reading lines from a file

2003-02-11 Thread George Pitcher
look frightening. And I would like to end up with an array with keys (fieldnames) and values. But I'm stuck at the first hurdle because I can't find out how to put a line into a string. Any pointers? George in Oxford === George Pitcher HERON Technical Manager Ingenta plc 23-38 Hyth

RE: [PHP-WIN] Re: parsing tricky text file

2003-01-28 Thread George Pitcher
anuary 2003 10:56 am > To: George Pitcher > Subject: Re: [PHP-WIN] Re: parsing tricky text file > > > In this record, that is true but having a look through a sample I have > found at least 5 fields that have 'duplicates'. > > > Are these duplicates in t

RE: [PHP-WIN] Re: parsing tricky text file

2003-01-28 Thread George Pitcher
found at least 5 fields that have 'duplicates'. I still don't see how it is going to be easy. George > > Jochem > > > George Pitcher wrote: > > Hi, > > > > I'm looking for some advice. > > > > One of my suppliers (big publisher) h

[PHP-WIN] parsing tricky text file

2003-01-28 Thread George Pitcher
eventually but I'm using FileMaker right now). Any suggestions (that do not involve a pistol)? George in Oxford === 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 sw

RE: [PHP-WIN] Politely?

2003-01-27 Thread George Pitcher
Guys, I think that the point was missed here. I'm not the original poster but my reading of it was that considering what was being undertaken might prove problematic (writing a win web-server) that the recipient might find herself prone to utter the odd swear word or curse. Nothing more than that

[PHP-WIN] Problem with extensions on W2K

2003-01-13 Thread George Pitcher
Hi all, If I uncomment the php_gd.dll extension in php.ini (after making sure that the extesnion path points to where the extensions are), I get an error message saying that it has not been able to load the said extension. Any ideas as to what I should be looking for here? Cheers George -- P

[PHP-WIN] My cookie problem is solved - details

2002-12-18 Thread George Pitcher
. Everything now works tickety-boo. This might just help someone else facing the same problem. 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

RE: [PHP-WIN] Cookies working on test but not my application

2002-12-17 Thread George Pitcher
. > When calling set_cookie( ), it is generally best only to give the first 3 > arguments ( Variable Name, Variable Value, Expire time ). > > Good luck > > Stephen > > - Original Message - > From: "George Pitcher" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTE

[PHP-WIN] Cookies working on test but not my application

2002-12-17 Thread George Pitcher
won't work in my Calendar site. Thinking it might be a 'frames' issue, I have put a test into the Frameset holder to redirect if the cookie is not being read and sure enough it dumps me out of the frameset. Does anyone have any suggestions? Please! MTIA George === George Pit

[PHP-WIN] Am I creating my cookies properly?

2002-12-16 Thread George Pitcher
et them to work either. This is all set up using PHP4.0.6 on Win NT4. Any help appeciated - this is doing my head in. 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

[PHP-WIN] Oh crumbs - My cookies are broken!

2002-12-16 Thread George Pitcher
;next page' is a frameset. I know that cookies work on this NT server because I also use Lasso on that and the cookies are working fine with that. Any suggestions? George in Oxford === George Pitcher HERON Technical Manager Ingenta plc 23-38 Hythe Bridge Street, Oxford, OX1 2ET T +44 (0)1

[PHP-WIN] Starnge parse problem

2002-12-10 Thread George Pitcher
t;.$x.""; } else { echo "".$x.""; } } } echo ""; echo ""; ?> I get this error: "Parse error: parse error, unexpected $ in c:\inetpub\wwwroot\Month2.php on line 48" Now c

RE: [PHP-WIN] Re: File Upload - extension filtering

2002-11-26 Thread George Pitcher
e: [PHP-WIN] Re: File Upload - extension filtering > > > using the mime-type is safer ;) > > "George Pitcher" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Brian, > > > > Thanks. However, I have just

  1   2   >