Re: [PHP] SQL Source Control

2007-04-11 Thread Richard Davey
Jochem Maas wrote: lets forget that updating SQL schemas on massive DBs will likely take so much time that you will have to plan in downtime on the systems involved ... that's clearly out of the scope of this question. Yes, this was part of the problem (and reason for my original post). At th

Re: [PHP] Posting a variable

2007-04-11 Thread Richard Davey
[EMAIL PROTECTED] wrote: Quoting Robert Cummings <[EMAIL PROTECTED]>: On Wed, 2007-04-11 at 09:59 -0700, [EMAIL PROTECTED] wrote: 1- your mysql query statement is better to have a WHERE part too. 2- I would use mysql_fetch_row instead of mysql_fetch_assoc Ummm, why would you want to reduce c

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Davey
Jim Moseby wrote: I remember, way back when, transferring multiple files was simple. The good ole days of ZModem. Maybe todays technology will catch up eventually. ;^) I doubt it :) Things were so much more optimised back then! I remember packaging all my mail up into QWK bundles, download

Re: [PHP] Download multiple sound files?

2007-04-12 Thread Richard Davey
[EMAIL PROTECTED] wrote: And POP3 probably existed long before the old BBS', so it's not that things got LESS efficient, it's just that we didn't NEED to bundle bunches of emails together into a single file because of crappy dialup connections and crappy modems and the necessity of keeping trans

Re: [PHP] Dreamhost! PHP as CGI!???

2007-04-13 Thread Richard Davey
Micky Hulse wrote: I think I just read that PHP is ran as CGI on Dreamhost... this does not sound good. Can anyone confirm? If you've got access to your account with them, you can confirm it yourself. Check the output of a phpinfo(). What do you all think? Good? Bad? Not *that* terrible

Re: [PHP] Dreamhost! PHP as CGI!???

2007-04-13 Thread Richard Davey
Micky Hulse wrote: Lol, funny you should mention that... Within a few days of getting an account, my server went down with a bunch of other folks... I guess it was a "DOS" attack or something. It will be the first of many :) Oh and hey... you'll soon experience the sporadic "will it or won't

Re: [PHP] IE6 & PHP

2007-04-13 Thread Richard Davey
elk dolk wrote: I have a bunch of thumbnail images that link to larger versions of the images and want to line them up in rows across the screen , using CSS I put them into a separate DIV. To get them to line up horizontally across the window I use CSS to FLOAT each DIV to the left, CSS looks

[PHP] PDO SQLite driving me mad!

2007-04-13 Thread Richard Davey
Hi all, I really don't know what is going on here. Can anyone shed some light on this please? I'm trying to store an image in a SQLite database using PDO. The code given on http://uk2.php.net/manual/en/ref.pdo.php under Example 1669 is basically wrong - you can't beginTransaction() on a stat

Re: [PHP] Shiny Floor (web 2.0) effect with GD Library

2007-04-16 Thread Richard Davey
Graham Anderson wrote: Has anyone created that web 2.0 "shiny floor" effect with the GD Library? I have seen it dynamically created by passing variables into a Flash movie. Has this been done with GD? http://reflection.corephp.co.uk Cheers, Rich -- Zend Certified Engineer http://www.corep

Re: [PHP] PHP Development IDE's/Editors

2005-02-09 Thread Richard Davey
s everything I need (and then some) for the development work I do every day. For HTML I still use Homesite + TopStyle. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde -- PHP Ge

Re: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Richard Davey
Hello Mirco, Thursday, February 10, 2005, 2:09:21 PM, you wrote: MB> BTW. What is STFU? Something you probably should have done before insulting the majority of list members. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young e

Re: AW: AW: [PHP] Student Suspended Over PHP use.[Incredibly OT]

2005-02-10 Thread Richard Davey
out world politics frivolity for trolls, yes I guess I do. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating a varable with a name held in a string

2005-02-10 Thread Richard Davey
or "variable variables" in the PHP manual for more info. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Spam and this list

2005-03-01 Thread Richard Davey
ny list at all that displays the authors email address as the From: address could ever protect you from spam of any kind. Sure you can munge the email addresses on the archives, but you can't stop a bot from subscribing or monitoring the usenet gateway. Best regards, Richard Davey -- http://ww

Re: [PHP] Program flow?

2005-03-01 Thread Richard Davey
you code around it. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Pear DB class not PHP5 strict compatible?

2005-03-07 Thread Richard Davey
the DB package itself? It included and worked fine when I switched to PHP 4, but that isn't an option for this project. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde -- PHP G

Re: [PHP] How to call a function from $classname

2005-03-15 Thread Richard Davey
Hello André, Tuesday, March 15, 2005, 3:42:44 PM, you wrote: AP> What do I have to do to call a function from $classname? Like: $classname->test( ); Erm, you do exactly that. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear c

Re: [PHP] Mod Rewrite help

2005-03-21 Thread Richard Davey
7;ll be passed to query.php each time. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Mod Rewrite help

2005-03-21 Thread Richard Davey
RD> Definitely more than one way to skin this cat, but the following will RD> work: RD> RewriteEngine on RD> RewriteRule ^baseball.htm/ /query.php?q=baseball [L] Erm, self-correcting myself here - don't have the / after .htm! Best regards, Richard Davey -- http://www.launc

Re: [PHP] Why not @ ?

2005-03-22 Thread Richard Davey
ess and you'd see a %20 instead, etc. The browser will convert it back for display purposes *within the actual browser* (i.e. title bar, status bar) but the actual text really contains a %40. If you don't want this behaviour, don't URL encode the email address. Best regards, Richar

Re: [PHP] Getting form name

2005-03-22 Thread Richard Davey
ny suggestions on how to get the form name? Stick a hidden input field in your form that contains the name of it. You cannot extract it from any super-global, it's not passed in that way. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not

Re: [PHP] Postgresql & PHP

2005-03-22 Thread Richard Davey
Hello Danny, Tuesday, March 22, 2005, 6:07:55 PM, you wrote: DB> Any recommendations on books for postgresql & PHP usage. Just get a good book on Postgres, the PHP side of it can be easily picked-up from the PHP manual itself. Best regards, Richard Davey -- http://www.launchcode.co.u

Re: [PHP] if statement probable bug

2005-03-24 Thread Richard Davey
Hello TheI2eptile, Thursday, March 24, 2005, 2:05:14 PM, you wrote: T> So here is what I would call a bug, but maybe it's thought to be so: Try it with strict (data-type) comparisons, i.e.: if ($var === "AS") Then you won't get the "bug". Best

Re: [PHP] delete file

2005-03-24 Thread Richard Davey
Hello William, Thursday, March 24, 2005, 2:08:13 PM, you wrote: WS> How can I let user delete a uploaded image file in the server's WS> directory? unlink() Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I

Re: [PHP] Include file

2005-03-29 Thread Richard Davey
e variables inside single quotes. Try this: include "../includes/$include"; Same goes for anything in PHP, i.e.: $test = "apple"; $word1 = "eat the $test"; $word2 = 'eat the $test'; Try this and see the difference the quotes make. Best regards, Richard Dave

Re: [PHP] asking comment

2005-03-30 Thread Richard Davey
effort. Just check for the actual file itself. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parsing... the hell of PHP

2005-03-30 Thread Richard Davey
Hello Mário, Wednesday, March 30, 2005, 2:51:02 PM, you wrote: MG> Here is my last (of many) attempt: MG> $url = ".HtmlEntities($url)."\">"."; $url = "" . htmlentities($url) . ''; Best regards, Richard Davey -- http://www.launchcode.co.u

Re[2]: [PHP] asking comment

2005-03-30 Thread Richard Davey
_WARNING's all over the place then yes. Personally, I'm not. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] asking comment

2005-03-30 Thread Richard Davey
e way the OP is doing it is IMHO messy to begin with, but was obviously a solution born out of frustration. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Maili

Re[4]: [PHP] asking comment

2005-03-30 Thread Richard Davey
e it involves DB overhead it ensures relatively bullet-proof uniqueness and no warning generation / suppression. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP Gen

Re[2]: [PHP] How to format every secound row in a database result

2005-03-30 Thread Richard Davey
ver you need and echo them where required: $bgcolor = ($bgcolor === '#daf2ff' ? '#c9e1ef' : '#daf2ff'); Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac

Re[6]: [PHP] asking comment

2005-03-30 Thread Richard Davey
ion for the original problem of renaming uploaded files and keeping them unique. Appending a datetime to a file, or using a loop that hopes you get a unique name within 100 iterations is wildly far from "bullet proof" in just about every respect. Best regards, Richard Davey -- http://www.l

Re[2]: [PHP] Include file

2005-03-30 Thread Richard Davey
;path/' . $file Can the compiler handle the in-line variables quicker than string concatenation? It'll take a C guru who knows the PHP code well to answer this fully. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I

Re: [PHP] Cannot connect to database when using Zend studio debugger

2005-03-31 Thread Richard Davey
in the Zend Studio properties for your project? Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Define Paths question

2005-03-31 Thread Richard Davey
Hello Jackson, Thursday, March 31, 2005, 3:20:11 PM, you wrote: JL> What am I doing wrong when I try to make this: JL> Be sure you don't define a reserved word, but to get the above working do: include_once(INCLUDES . 'include.php'); Best regards, Ri

Re: [PHP] entrepreneur/startup projects..

2005-04-02 Thread Richard Davey
rt of question on to be honest (i.e. this isn't a PHP question) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Why does PHP have __toString() and not just toString()

2005-04-12 Thread Richard Davey
l under the "Magic Methods" section for more info / examples. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is the syntax correct?

2005-04-12 Thread Richard Davey
les": L> $order = "ASC" L> break; L> } I.e.: $order = "DESC"; Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple Problem

2005-04-12 Thread Richard Davey
rs). What relationship does the Users table have to the Products table? You may need something more along the lines of: SELECT blah FROM products LEFT JOIN users ON users.UserID = products.UserID WHERE users.UserID = $userID But that's just a best-guess based on what you've given s

Re: [PHP] Finding records within 15 minutes from now?

2005-04-12 Thread Richard Davey
something like that, going from memory here) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trying to load mysql extensions

2005-04-13 Thread Richard Davey
hould be using the php_mysqli.dll ideally. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] uploading file

2005-04-13 Thread Richard Davey
o wait for a long time for uploading a file that will ms> fail. This isn't possible with PHP alone. You could do it by using some kind of client-side uploader (Java applet, maybe a JavaScript post-back, etc), but not PHP by itself. Best regards, Richard Davey -- http://www.launchcod

Re[2]: [PHP] uploading file

2005-04-13 Thread Richard Davey
the script. If i find it i will post it here. Sure, you can discard the file if it's over the file size limit - but ONLY after it has been uploaded, which is what the original poster wanted to avoid. PHP, being server-side in nature, doesn't make this possible. Best regard

[PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Richard Davey
tored in a MySQL text field? Any issues re: displaying them again once extracted? Or on validating foreign data input on web forms? Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - I

Re[2]: [PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Richard Davey
list since the start of April - I checked before posting) then I'm afraid it didn't even come close to covering any of the issues raised, it was simply one post with one specific reply. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do no

Re[2]: [PHP] Any experience with multi-language PHP sites?

2005-04-14 Thread Richard Davey
peat. Thanks, I have been looking at the mb functions earlier on and the string/regexp/mail functions they overload, will take this over to the i18n list I guess, is more appropriate there even if it is massively low-traffic in comparison. Best regards, Richard Davey -- http://www.launch

Re: [PHP] reverse MD5 ???

2005-04-21 Thread Richard Davey
s a one-way hashing algorithm. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 1 web site, 3 servers, 3 countries - best practises?

2005-04-21 Thread Richard Davey
gards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-21 Thread Richard Davey
This is nothing to do with domain names, I was simply asking if anyone had experience of handling one site spread across multiple remote located servers from a PHP/SQL perspective (syncing content, user accounts, etc). Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Developme

Re[2]: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-22 Thread Richard Davey
alable Internet Architecture talk at ApacheCon this year. Both these things are addressing the design issues I'm now faced with, I'm just extremely surprised no-one here has encountered them before. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Serv

Re[2]: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-22 Thread Richard Davey
u don't need to do this"), but in reality that's not really yet the case. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Documentation for VAR

2005-04-23 Thread Richard Davey
hod can access it) but unlike true PHP constants (those created with define) the value of the variable can be manipulated from just about anywhere. It is of course PHP4 only and is depreciated in PHP5. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services &quo

Re[2]: [PHP] Why wont apache parse my php on wamp set up?

2005-04-25 Thread Richard Davey
:) To the original poster - what exactly happens? Do your PHP scripts appear as plain text or simply blank pages? If you've not set-up the paths correctly ensure you've got the required PHP DLLs in your Windows directory for a start. Best regards, Richard Davey -- http://www.launc

Re[2]: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Richard Davey
package then accept my apologies and ignore this) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Restricting browser's a password manager pop-up

2005-04-28 Thread Richard Davey
lem. Give it a shot and see which combination works for you. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] please help me send html email from php scripts instead of simple text

2005-04-28 Thread Richard Davey
e the exact CG> same form emailed to me with the same pretty format of a form instead of CG> just a variable name and the value. Save yourself some hassle and use the excellent free PHPMailer class library. http://phpmailer.sourceforge.net Best regards, Richard Davey -- http://www.la

Re[2]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
atever may have been set. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[3]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
en set. Err, replace $total with $first in my comment above. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re[2]: [PHP] Skipping function arguments!

2005-04-28 Thread Richard Davey
'll make me start using them mind you) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Restricting browser's a password manager pop-up

2005-04-28 Thread Richard Davey
o it's a valid method. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image Generation: Centering Text

2005-05-02 Thread Richard Davey
ont I would use imagettfbbox() instead to get the width of the text and then center that accordingly. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http

Re: [PHP] Selective user access to download file

2005-05-04 Thread Richard Davey
user's access to the file. Sounds nice.. have fun ;) Best regards, Richard Davey PS - There was supposed to be a question somewhere I guess? -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov --

Re: [PHP] Sending htm as it's being generated

2005-05-08 Thread Richard Davey
est regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Any alternative to POST method FTP uploads from client computer?

2005-05-08 Thread Richard Davey
language can only deal with a file once it hits the server, if you want to check files client side before they're uploaded, you need a client side language. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the

Re: [PHP] text with $

2005-05-09 Thread Richard Davey
luck. $string = "hello\$world"; Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] text with $

2005-05-09 Thread Richard Davey
I'm sure creating a variable variable is useful in lots of circumstances, this isn't really one of them and doesn't solve the original posters problem. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear t

Re: [PHP] Getting parameters from the URL

2005-05-20 Thread Richard Davey
how to make it right ? Try dumping out the whole of $_GET to see if you are receiving anything at all: Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov -- PHP General Mailin

[PHP] How do you handle device detection?

2004-04-11 Thread Richard Davey
ned to. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript help

2004-04-13 Thread Richard Davey
er functions is finished When your PHP function has finished, just get it to output window.close and the window will shut down. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] smarty

2004-04-14 Thread Richard Davey
ng logic to a display block based on a user status? Personally I don't use smarty*, but even I can see the benefits it offers. * only because I don't build web sites for clients, I build them for one specific company and we have our own template system in-house. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] smarty

2004-04-14 Thread Richard Davey
f you keep playing that card, soon enough you've written your own Smarty replacement, which is somewhat ironic, no? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_fetch_array problem? O.o

2004-04-14 Thread Richard Davey
hen I use mysql_fetch_row($query) then I have problems, What error does it give you? What actually happens? Post some of your code perhaps? More info needed, mysql_fetch_row certainly works so whatever the cause, it's AYE (at your end). -- Best regards, Richard Davey http://www.phpcommunity.org

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
cond here again, but even so :) Using spaces instead of tabs is only useful if you're going to share or make your code available for public consumption. Under any other scenario the benefit difference is negligible at best. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/2

Re: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Richard Davey
u could check everything.. from strings to integers, to string length, to IP address (flood control), to duplicate entries, etc etc etc. Really a "how long is a piece of string" scenario here. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General M

Re[2]: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Richard Davey
s from their server. I added strip_tags to prevent someone from GT> running code on my server. Have I got my a** covered? From cross site scripting attacks - yeah. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] transformation to htm file when downloaded

2004-04-15 Thread Richard Davey
erver (usually Apache) has to serve the PHP file to your browser before your browser can save it. It's at that stage Apache converts it from the code you write to the HTML/text it outputs. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
o run happily (read: quickly). I'm using it on a P4 3GHz. For the HTML side of things it is useless, so I have Homesite 5 open alongside it nearly all of the time, but then I rarely mix my PHP code with raw HTML anyway, so this isn't a big issue for me. Anyway, just my observations. -- B

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
KB of blank spaces would not get transferred as such. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
te most of the time - it doesn't have code completion of any of that stuff, but for quick hack scripts I don't need it either. If PHP is your job, it's worth every penny. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http:/

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
s list actually care-less about it :) There is no "right or wrong", it's down to personal preferences. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File upload fails over 500k

2004-04-15 Thread Richard Davey
Hello Gawain, Thursday, April 15, 2004, 9:47:50 PM, you wrote: G> I have no idea where the apparent 500k choke point is coming from... Any ideas? Check the MAX_FILE_SIZE setting in your upload form - some people claim it has no relevance, but they're wrong :) -- Best regards, Richa

Re: [PHP] File upload fails over 500k (solved)

2004-04-15 Thread Richard Davey
ts.. next time I'll read the new posts in reverse order, sorry for duplicating what you figured out already! -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] PHP editor

2004-04-15 Thread Richard Davey
at CPUs are way cheaper than bandwidth. Which leads us full circle again to the "personal preference" argument. It works for you because of Turke, for someone who doesn't it is less efficient. Like I said, YMMV. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/2

Re: [PHP] Unwanted e-mails

2004-04-16 Thread Richard Davey
t; list(s). That would be the part at the bottom of the emails that says "To unsubscribe, visit: http://www.php.net/unsub.php"; If you never even subscribed in the first place - I reckon someone is playing aroun with your email account. Your password might be compromised. -- Best re

[PHP] addslashes vs. mysql_real_escape_string

2004-04-18 Thread Richard Davey
nual it is just used to escape the ' character, but that is exactly what addslashes() will do anyway. Is mysql_real_escape_string tolerant of magic quotes? i.e. will you end up with double-quoted strings like: "it\\'s a lovely day" if you call it too many times? --

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

2004-04-19 Thread Richard Davey
. The more logical solution is to code a form system that can handle users "going back" a page without erroring. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and HTTP requests

2004-04-19 Thread Richard Davey
orm a GET request using the standard file functions (fopen for example) because all the parameters can be passed on the Query String). However to make your life easier, and to support POST methods, just get yourself the excellent free class - Snoopy. I think the web site is just snoopy.sourceforge.ne

Re: [PHP] PHP Web Hosting

2004-04-19 Thread Richard Davey
ing company before my site just goes away. Ditch them and go with Pair Networks (www.pair.com). Easily the best out there, have used them since 1997! -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] <button> tag

2004-04-20 Thread Richard Davey
mean ? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: <button> tag

2004-04-20 Thread Richard Davey
form is RL> posted. In all fairness to IE, it WILL send the value of each button - but PHP cannot distinguish between them all because you have given them all the same name! :) RL> Does allow this sort of functionality? If it has a unique name, sure: Alternatively, if you need

Re[2]: [PHP] Re: <button> tag

2004-04-20 Thread Richard Davey
ot;, one for "edit", etc. They can all have the same action/method (i.e. go to the same PHP script). -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] <button> tag

2004-04-20 Thread Richard Davey
Hello Mike, Tuesday, April 20, 2004, 11:15:07 AM, you wrote: FML> Bzzt! Completely wrong. See FML> http://www.w3.org/TR/html401/interact/forms.html#h-17.5. Yeah, already covered this. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailin

Re[2]: [PHP] PHP vs PERL?

2004-04-22 Thread Richard Davey
Hello John, Thursday, April 22, 2004, 2:37:30 PM, you wrote: JN> Uh-oh, does that mean an Atheist has to use ASP??? ;) You meant satanist, surely? ;) (or a masochist!) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.

Re: [PHP] What's wrong with this IF statement?

2004-04-22 Thread Richard Davey
Hello Robert, Thursday, April 22, 2004, 8:02:55 PM, you wrote: RS> $cat_id = $cats[id_num]; Try this: $cat_id = $cats['id_num']; You need to quote array elements otherwise PHP expects a constant. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html --

Re[2]: [PHP] virtual domain own php.ini

2004-04-22 Thread Richard Davey
even the original issue I don't believe. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] virtual domain own php.ini

2004-04-22 Thread Richard Davey
. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] TRUE or true?

2004-04-22 Thread Richard Davey
te on this, more of an overall poll-count (and any sound arguments for A vs. B, or should I say T vs. t) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing variables

2004-04-22 Thread Richard Davey
$estabID = $_GET['te_es_n_id']; -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] online php books

2004-04-22 Thread Richard Davey
oreilly.com/ The best $10 a month you'll ever spend! -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >