RE: [PHP] <button> tag

2004-04-20 Thread Hawkes, Richard
> Some of the forms I'm using in a PHP project I'm working use the > mailto:[EMAIL PROTECTED] Sent: 20 April 2004 09:45 To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] How to disable browser's back- and refresh-Button

2004-04-19 Thread Hawkes, Richard
Yes, I think unconstructive e-mails are a little rude aren't they? So here's a bit of JavaScript that removes everything! I'll let you fiddle with the settings: Example function openWindow(webPage) { window.open (webPage, 'helpwindow', config='height=300, width=600, toolbar=no, menuba

RE: [PHP] Bar/Line Graph Tool

2004-04-16 Thread Hawkes, Richard
Excuse my ignorance... Where can I get it?! -Original Message- From: Red Wingate [mailto:[EMAIL PROTECTED] Sent: 16 April 2004 11:03 To: Hawkes, Richard; '[EMAIL PROTECTED]' Subject: Re: [PHP] Bar/Line Graph Tool PEAR has some very nice Tools for this job :-) -- red [.

[PHP] Bar/Line Graph Tool

2004-04-16 Thread Hawkes, Richard
Good morning gang, I'm looking for a snazzy line/bar graph class. I've got GD running, with just the basic fonts (I'm using an ISP, so I can't do anything about it!). Any ideas? I've tried a few of the classes at www.phpclasses.org , but they all seem to be giving me

RE: [PHP] Maths not working.. or is it me?

2004-04-15 Thread Hawkes, Richard
I don't know what you're doing wrong... But why not use base64_encode/decode, if all you're worried about is not storing the details in plain text... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 15 April 2004 10:59 To: [EMAIL PROTECTED] Subject: [PHP] Maths n

RE: [PHP] Single HTML form post affecting multiple HTML frames/PH P scripts

2004-04-14 Thread Hawkes, Richard
> So is there a way of making a single form post affect two scripts in > different HTML frames? Or a way of posting values from the second frame to > the third automatically (i.e. without the user clicking an HTML 'submit' > button)? Yes there is, and it's JavaScript! You'd need to get familiar wi

RE: [PHP] function for backing up mysql

2004-04-14 Thread Hawkes, Richard
PhpMyAdmin (www.phpmyadmin.net) is a great MySQL admin tool, and utilises the MySQL backup functions. Thanks Richard -Original Message- From: Victor SpÄng Arthursson [mailto:[EMAIL PROTECTED] Sent: 14 April 2004 08:52 To: [EMAIL PROTECTED] Subject: [PHP] function for backing up mysql H

RE: [PHP] Tables in a pdf files

2004-04-13 Thread Hawkes, Richard
> I would like to generate a table in a pdf file. These appeared on Google when I typed 'PHP PDF' http://www.php.net/manual/en/ref.pdf.php http://www.easysw.com/htmldoc/pdf-o-matic.php == This message is for the sole use

RE: [PHP] Using WinNT login

2004-04-08 Thread Hawkes, Richard
Well, it's NTLM authentication you're after, but I'm not sure if there's a PHP interface for it. Checked the web, and didn't get much response. It's basically a link to the domain server. Sorry, that wasn't much help was it?! Richard -Original Message- From: Alex Hogan [mailto:[EMAIL PRO

[PHP] Graphical Map of My Web Site

2004-04-07 Thread Hawkes, Richard
Hi Gang, I'm looking for a way to produce a graphical walk of my web site (ie following the links around). Does anybody know anything free I can use to do this? I also have an area that you login to, which then stores a session ID value, so how would I get over that element?! Cheers Richard ==

RE: [PHP] PHP security in a hosting environment

2004-04-07 Thread Hawkes, Richard
My suggestion would be to run the PHP Web Server on a different server to where you are retrieving your files. The file server can then define its own polices of what you can read/write to etc. Your web server can then map a drive to the file server, and anybody writing PHP scripts won't be able to

RE: [PHP] php and drop down boxes

2004-04-07 Thread Hawkes, Richard
Well, here's the long way of doing it that I ended up using! For my 'tournament' date (for a football web site) I have three stored values: $tournamentDay, $tournamentMonth, $tournamentYear which are evaluated for each drop-down. I might work on a neater solution actually! Cheers Richard Tourna

[PHP] For your reference, how to validate dynamic form fields.

2004-04-06 Thread Hawkes, Richard
Just spent far too long trying to figure out how to do this, so I thought I'd pass it on to you great guys, in case you need it for the future. I used PHP to create multiple form rows, each one numbered: "); } ?> This creates a number of rows, each with a unique form value name. The problem

RE: [PHP] Re: imagecreatefromjpeg

2004-04-05 Thread Hawkes, Richard
I think you'll want to use the 'imagecopyresized' function. Something like this: $thumbnail = imagecreate(100, 100); $original = imagecreatefromjpeg("uploadedfile.jpg"); imagecopyresized($thumbnail, $original, 0, 0, 0, 0, 100, 100, imagesx($original), imagesy($original)); imagejpeg

RE: [PHP] includes

2004-04-05 Thread Hawkes, Richard
If I think I understand you, your 'root' directory is the 'forums' directory, and you'll probably want to do something like: include($_SERVER["DOCUMENT_ROOT"] . "/../inc/include1.php"); The double-dots take you back a directory. Is that what you're after?! Richard -Original Message-

RE: [PHP] can I get at screen size ?

2004-04-05 Thread Hawkes, Richard
Scrap my last effort, this was the one I should have sent! Obviously replacing the web site details and PHP page name, but using the 'width' and 'height' values as you please! Cheerio (again!) Richard -Original Message- From: E.H.Terwiel [mailto:[EMAIL PROTECTED] Sent: 05 April 2004

RE: [PHP] can I get at screen size ?

2004-04-05 Thread Hawkes, Richard
I wrote a JavaScript page that redirects to a PHP page like this: Redirecter function redirectUser() { location.href="http://www.mysite.com/page2.php?width="; + screen.width + "&height=" + screen.height; } The PHP

RE: [PHP] Is There a Stack Trace for Errors?

2004-03-31 Thread Hawkes, Richard
Thank you very much. Perhaps I should RTFM eh? Much better to get good advice though wouldn't you say?! Cheers Richard -Original Message- From: Red Wingate [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 16:16 To: Hawkes, Richard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Is There a

[PHP] Is There a Stack Trace for Errors?

2004-03-31 Thread Hawkes, Richard
Hi Gang, I'm now writing the dreaded support document for the code, and I need to enhance my PHP to show error numbers so we can diagnose where it failed. All fine so far, but I've found a couple of functions that can be called from various other functions, so it's difficult to track where it came

RE: [PHP] Hinding URL[Scanned]

2004-03-31 Thread Hawkes, Richard
So we're all agreed on Frames then?! -Original Message- From: Michael Egan [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 14:43 To: Will; [EMAIL PROTECTED] Subject: RE: [PHP] Hinding URL[Scanned] Will, I had a look at this a while ago though never pursued it. If you do a search on google

RE: [PHP] Hinding URL

2004-03-31 Thread Hawkes, Richard
You could use HTML Frames, ensuring 'index.html' was your main frame. Not much PHP required though! -Original Message- From: Will [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 14:38 To: [EMAIL PROTECTED] Subject: [PHP] Hinding URL Hello all, I am hoping someone can help me. When someon

RE: [PHP] adding days to a given date

2004-03-31 Thread Hawkes, Richard
What else can it do other than convert dates to time strings Jason? -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 31 March 2004 10:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] adding days to a given date On Wednesday 31 March 2004 17:08, Hawkes, Richard wrote

RE: [PHP] adding days to a given date

2004-03-31 Thread Hawkes, Richard
You'll want to do something like this: $timeStamp = strtotime("2004-04-29"); $timeStamp += 24 * 60 * 60 * 7; // (add 7 days) $newDate = date("Y-m-d", $timeStamp); The 'strtotime' function converts all sorts of standard dates to the Unix Epoch seconds (seconds since 1/1/1970). You then just

RE: [PHP] Display/Screen Size Parameters

2004-03-30 Thread Hawkes, Richard
I had this same problem, as I wanted to resolve whether or not the device was a PDA. I couldn't see an easy way, but what I did was to have a dummy JavaScript page that grabs the screen dimensions, and then forwards on to a PHP page, with the screen size as the parameter. Something like: h

RE: [PHP] Send automatic emails

2004-03-29 Thread Hawkes, Richard
Well, you have two options (using my reasoning!): 1. Run a check script (surely every 10 minutes or more would be sufficient?) using something like 'cron' that processes all 'just' closed auctions. 2. Have a function that gets called every time any page is viewed that does the che

[PHP] API Documentation Via Comments

2004-03-24 Thread Hawkes, Richard
Hi, As you may be aware, languages like Java allow you to add comments in a certain format, which can then be translated into a full HTML API Document later. Does PHP have a facility like this? If not, has anyone written anything to do something similar? I hope so?! Thanks all Richard