RE: [PHP] British Pound

2002-09-19 Thread Richard Black
I assume you mean how do you display a British Pound in HTML The escape pound; Should do what you want. HTH Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED

[PHP] Building PHP for windows

2002-09-12 Thread Richard Black
== Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Server date and time

2002-09-10 Thread Richard Black
Hi Christian, PHP code runs on the server, so any of the date/time functions which the language provides will give you the date/time on the server, rather than the client. HTH, Richy == Richard Black Senior Developer, DataVisibility Ltd - http

RE: [PHP] Calculating Totals from table columns without a second query to the DB

2002-09-06 Thread Richard Black
of alternatives - or at least understanding what you're doing enough to be able to think of alternatives - and thinking about stuff rather than just doing it the way you always did are the key points here. Just my tuppence... Richy == Richard Black Senior Developer

RE: [PHP] question

2002-09-04 Thread Richard Black
Can you provide a bit more info??? Maybe a real life example of what you're trying to accomplish??? Richy == Richard Black Senior Developer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 951 3481 Email: [EMAIL PROTECTED] -Original

RE: Betr: RE: [PHP] question

2002-09-04 Thread Richard Black
; } (I've condensed the multiple echo statements into one to reduce the number of lines, but this is more about the logic) Depending on what your query is searching on and returning, you may be able to do it in a single query. HTH, Richy == Richard Black Senior

RE: [PHP] Anybody have a sucessfull use of ADO and php together ?

2002-09-02 Thread Richard Black
I don't know anything about Visual Foxpro, so I may be barking up the wrong tree here, but... Is there anyway you can use ODBC??? The ODBC functions work pretty well. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http

RE: [PHP] whats wrong with this?

2002-08-28 Thread Richard Black
out the PHP manual - http://www.php.net/manual/ - for more info HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Chris Barnes

RE: [PHP] Help with script - if possible

2002-08-28 Thread Richard Black
AND booking_end B is '$book_end_date' BETWEEN booking_start AND booking_end C is villa_id = '$place' HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original

[PHP] OO code and private functions

2002-08-16 Thread Richard Black
Can I make a function private in PHP, so that it can only be called from within an object of that class??? Just discovering the wonders of OO PHP... :-) == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435

RE: [PHP] [Class] Behaviour global variables

2002-08-14 Thread Richard Black
== Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Tim Stoop [mailto:[EMAIL PROTECTED]] Sent: 14 August 2002 14:27 To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] fruity arrays

2002-08-13 Thread Richard Black
... HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] relocation

2002-08-13 Thread Richard Black
Or even header(Location: index.php?var=valuevar2=value2); And you would probably want to follow that with exit; Rather than break; HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504

RE: Re[2]: [PHP] Credit Card suggestions

2002-08-13 Thread Richard Black
Doesn't md5 generate a 128 bit binary number??? That means there are 3.4028236692093846346337460743177e+38 possible combinations which can be generated. So surely the odds of 2 strings producing the same md5 code are 1 in 3.4028236692093846346337460743177e+38??? Having said that, I guess

[PHP] Bug reporting site

2002-08-01 Thread Richard Black
Anyone else having trouble getting to http://bugs.php.net ??? == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] Problem Running my Scripts from IIS...

2002-07-16 Thread Richard Black
Sounds more like it's to do with the php.ini settings on the IIS box than IIS itself. http://www.php.net/manual/en/configuration.php#ini.error-reporting HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com

RE: [PHP] Final Year Computer Science Project involving PHP

2002-07-12 Thread Richard Black
to evaluate it for me. So not only did that section of the report get virtually written for me, but I got some fantastic feedback and ideas. Just my 2p... == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504

RE: [PHP] How to set focus in a form field

2002-07-11 Thread Richard Black
You can do it with JavaScript. Something like: script language=JavaScript document.formname.fieldname.focus(); /script At the bottom of the page, replacing formname and fieldname with the appropriate values, obviously... HTH Richy == Richard Black

RE: [PHP] Re: Wildcard

2002-07-10 Thread Richard Black
) { $query .= $where_string; } And then run the query as normal. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: César Aracena

RE: [PHP] A simple javascript problem

2002-06-25 Thread Richard Black
Why is that a javascript problem? It may be that the guestbook expects the action variable to be registered as a global variable, but your server has this feature turned off. What is it not ddoing correctly?? Richy == Richard Black Systems Programmer

RE: [PHP] Efficient PHP

2002-05-28 Thread Richard Black
I know this may have been addressed already... Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED

RE: [PHP] PHP+MySQL - Excel ?

2002-05-17 Thread Richard Black
You can use COM, if you're running on a Windows server. Haven't tried it myself, right enough... == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message

RE: [PHP] -loop question-

2002-03-04 Thread Richard Black
, and then use that string as the message body??? HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Richard Bradley [mailto:[EMAIL

RE: [PHP] -loop question-

2002-03-04 Thread Richard Black
Ooops... $i $passengerNumberl should of course read $i $passengerNumber; But you guessed that anyway, right??? Richy -Original Message- From: Richard Black [mailto:[EMAIL PROTECTED]] Sent: 04 March 2002 14:03 To: Richard Bradley; [EMAIL PROTECTED] Subject: RE: [PHP] -loop

RE: [PHP] Session variable scope - surprise!

2002-03-04 Thread Richard Black
variables. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Richard Fox [mailto:[EMAIL PROTECTED]] Sent: 04 March 2002 14:57

RE: [PHP] Session variable scope - surprise!

2002-03-04 Thread Richard Black
should see: in reg(), test=13 session variable test=12 Because $HTTP_SESSION_VARS gets populated. Its something to do with HTTP headers I think - can't remember exactly why, but I know what happens. HTH, == Richard Black Systems Programmer, DataVisibility

RE: [PHP] Session variable scope - surprise!

2002-03-04 Thread Richard Black
to be registered in the session it has to be a global variable in the first place. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From

RE: [PHP] Session variable scope - surprise!

2002-03-04 Thread Richard Black
. Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] I can't find the problem - parsing error

2002-02-27 Thread Richard Black
Swap round the and \ before the number 10 ie \10\ should be \10\ HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -Original Message- From: Pax

RE: [PHP] IE and Netscape

2002-02-19 Thread Richard Black
The problem isn't php related - its HTML. Try changing nbsp for nbsp; The semicolon is, strictly speaking, required for proper HTML syntax, but IE lets you get away with not having it. I guess Netscape doesn't. HTH, Richy == Richard Black Systems

[PHP] odbc functions

2002-02-04 Thread Richard Black
in SQLPrimaryKeys I don't really know what the modifier and owner parameters should do, and suspect thats where the problem lies. I tried them as , % and . Running PHP 4.0.4 on NT 4.0 Workstation, with Access 97 Richy. == Richard Black Systems Programmer

RE: [PHP] special chars in SQL string

2002-01-04 Thread Richard Black
Doesn't putting a backslash in front of the offending character escape it?? Isn't that what the PHP addslashes() function does??? Richy -Original Message- From: Daniel Harik [SMTP:[EMAIL PROTECTED]] Sent: 03 January 2002 19:00 To: [EMAIL PROTECTED] Subject:[PHP] special

[PHP] Checking for characters in string

2002-01-04 Thread Richard Black
not. Whats the most compact way to do this? substr? ereg? Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] Standard output (printf) question...

2001-12-21 Thread Richard Black
As far as I'm aware PHP does output to stdout. Whether or not we can actually access that stream is another question, and one I don't know the answer to. However, I do have a suggestion... Have you looked at the output buffering functions? They seem to implement what you're trying to do...

[PHP] PHP / SSL

2001-12-20 Thread Richard Black
, pointers??? All the documentation I've come across thus far doesn't really cover anything like this Richy == Richard Black Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com Tel: 0141 435 3504 Email: [EMAIL PROTECTED] -- PHP General

RE: [PHP] Re: max # of characters for links to work in emails?

2001-12-19 Thread Richard Black
Don't think thats necessarily true - what about news.bbc.co.uk or games.yahoo.com. Neither of them fits into the spec you described there... Richy -Original Message- From: Jerry Verhoef (UGBI) [SMTP:[EMAIL PROTECTED]] Sent: 19 December 2001 08:41 To: 'Chris Lee'; [EMAIL

RE: [PHP] Checking a frames url..

2001-12-17 Thread Richard Black
You can get the URL of a frame using JavaScript - maybe you could pass this in somehow to the PHP script??? -Original Message- From: Necro [SMTP:[EMAIL PROTECTED]] Sent: 17 December 2001 08:59 To: [EMAIL PROTECTED] Subject:[PHP] Checking a frames url.. Lo all, I am

RE: [PHP] Re: PHP 4.1.0 released

2001-12-11 Thread Richard Black
Um, excuse me for pointing out the obvious, but isn't that the 4.0.6 Windows binaries? And wasn't the question about the 4.1.0 Windows binaries??? Which aren't on php.net yet.. Richy -Original Message- From: Stefan Rusterholz [SMTP:[EMAIL PROTECTED]] Sent: 11 December 2001

RE: [PHP] encryption

2001-12-06 Thread Richard Black
MySQL has a PASSWORD() function which encrypts passwords for you!!! Retrieving the user records using the username and encrypted password as selection criteria will either bring back the appropriate record (ie the log in worked) or no record (ie password/username supplied were incorrect) HTH

RE: [PHP] Maximum execution time of 30 seconds exceeded

2001-12-06 Thread Richard Black
The timeout is set in php.ini -Original Message- From: Christoph Starkmann [SMTP:[EMAIL PROTECTED]] Sent: 06 December 2001 17:09 To: [EMAIL PROTECTED] Subject:[PHP] Maximum execution time of 30 seconds exceeded Hi everybody! I wrote a script just to do some local

RE: [PHP] Access denied for user

2001-12-06 Thread Richard Black
I would hazard a guess that you have supplied a username/password/host combination that isn't valid. Check in the mysql.user table, and check that there is an entry there for the user and host. Thepassword should be encrypted so you won't know if its what you're typing, but you should be able

RE: [PHP] Displaying content on the fly

2001-11-23 Thread Richard Black
Try using the flush(); function. It flushes all output to the browser, and allows exactly the type of thing you're talking about here -Original Message- From: Darren Gamble [SMTP:[EMAIL PROTECTED]] Sent: 23 November 2001 16:17 To: '[EMAIL PROTECTED]' Subject:[PHP]

RE: [PHP] Flash programming

2001-11-22 Thread Richard Black
Ming comes with a utility called swf2php or something like that, which MAY be able to convert a SWF file to PHP script that you can then work with. I say MAY, because the results are sometimes a bit unpredictable, and certain Flash constructs can cause it to fail miserably. But you might be

Re: [PHP] Yet Another Mysql Problem

2001-11-22 Thread Richard Black
I've been using phpmyadmin 2.2.1 and found that importing data from a script requires you to be at the main page for the database, rather than the table page. Submitting it via the table page says it was executed successfully, but it wasn't. Haven't had time to look at whats causing it. I

RE: [PHP] keeping my code!

2001-11-14 Thread Richard Black
Theres the Zend Encoder, but this is a bit pricey if you don't have a company to pay for it. Don't know if theres any free alternatives or not -Original Message- From: Ye Tun [SMTP:[EMAIL PROTECTED]] Sent: 14 November 2001 11:39 To: [EMAIL PROTECTED] Subject:[PHP]

RE: [PHP] Can If Else statements be split into code blocks??

2001-11-13 Thread Richard Black
Try putting curly brackets around the if and else clauses. I'm guessing the embeded html form counts as another statement in the program, which means you want to execute 2 statements if the strstr is true. I ALWAYS use curly brackets, even if I'm only executing one statemenet in my if, and

[PHP] Problems with headers in redirect

2001-11-13 Thread Richard Black
Hi, I'm hoping someone can help me with this one... I'm doing redirects to various types of file (Flash, Office, DWF etc) and have found a problem with IE5. I pass the script a document ID, and it retrieves the document record from a database, which stores the location of the file on the web

RE: [PHP] PHP/MySQL

2001-11-12 Thread Richard Black
Try putting single quotes around the strings: $Query = INSERT INTO table_name (Obj,Descrip) VALUES ('keyboard','Device to pound on when frustrated.'); Another thing that would be useful is to use the mysql_error() function in your die, which will give a better indication of the problem

[PHP] Lotus Domino PHP

2001-11-12 Thread Richard Black
Hi, Can anyone tell me the latest on whether or not PHP can talk tirectly to Lotus Domino/Notes??? I've had a look through the archive, and as far as I can see there was a project to do this which was going to be made available at the start of the year, but I've not seen any mention of this