Re[2]: [PHP] Cookies

2005-11-17 Thread Richard Davey
Hi Robert, Thursday, November 17, 2005, 3:39:43 PM, you wrote: *lol* I do that sometimes... with Javascript too. :) it's amazing what you can break by doing that! Cheers, Rich -- Zend Certified Engineer PHP Development Services http://www.corephp.co.uk -- PHP General Mailing List

Re[2]: [PHP] Cookies

2005-11-17 Thread Richard Davey
Hi Dan, Thursday, November 17, 2005, 3:56:43 PM, you wrote: You can check on every page load, but I'm sure thats over kill for most public facing sites to catch some Yahoos who have too much time on their hands. Is that a new technical term for 'hacker' ? :) Cheers, Rich -- Zend Certified

Re[2]: [PHP] Cookies

2005-11-17 Thread Richard Davey
Hi Ben, Thursday, November 17, 2005, 4:24:11 PM, you wrote: In order to set one and then check if it exists or not, I have to set it on one page, and then test it on the next page load - In this case, I don't figure out how I need to send information from page to page until they have already

Re: [PHP] better way to mix html and php code?

2005-11-16 Thread Richard Davey
Hi afan, Wednesday, November 16, 2005, 4:12:53 PM, you wrote: always wondered what's better way to mix html and php code. Here are three ways of the same code. Which one you prefer? (And why, of caurse :)) Honestly, I wouldn't pick any of them :) But if I had to (i.e. forced at gun-point or

Re: [PHP] Error Messages, Windows, and Tequila

2005-11-16 Thread Richard Davey
Hi Jay, Wednesday, November 16, 2005, 4:36:25 PM, you wrote: Does anyone know (I have error reporting set so high it would make your head swim) why errors wouldn't be output to a browser window when they occur? For instance, I typed the following; Are you 100% Tequila-worm sure you've got

Re: [PHP] PHP Framework

2005-11-15 Thread Richard Davey
Hi Yonatan, Tuesday, November 15, 2005, 2:54:27 PM, you wrote: I want to start using a framework to my future sites and I saw that there are quite alot of options out there at the net, if anyone got any experience with frameworks I would really like to receive some suggestions,

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jochem, Tuesday, November 15, 2005, 4:34:28 PM, you wrote: so how many people actually _need_ to write portable code? ok so many you are starting a project which will become a runaway success but until it starts receiving alot of attention use of short-open-tags is probably not your

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jim, Tuesday, November 15, 2005, 5:25:58 PM, you wrote: I don't know, but those who do should not use short tags. And those who hope to should not get into the habit of using short tags. And for the vast majority remaining, who write closed-apps for clients?? It will be when you have to

Re[2]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Robin, Tuesday, November 15, 2005, 6:18:06 PM, you wrote: Short tags have been deprecated for years. Both the manual and the php.ini file itself advise people not to use them. Personally I think it's about time they were turned off by default, but that's bound to annoy a lot of people

Re[4]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Robin, Tuesday, November 15, 2005, 7:53:55 PM, you wrote: I did quote the note concerning them in its entirety. If I had simply quoted the manual as saying be sure not to use short tags then I could see your point regarding lack of context. But I didn't. Not in the message I was replying

Re[4]: [PHP] Is echo tag reasonably portable?

2005-11-15 Thread Richard Davey
Hi Jim, Tuesday, November 15, 2005, 8:01:01 PM, you wrote: Still best practice is to use long tags. Suppose you write a closed-app for a client who makes a business decision to move it to a hosted server that does not allow short tags... The down side is, the app will break. The up side is,

Re: [PHP] file get contents

2005-11-14 Thread Richard Davey
Hi Ross, Monday, November 14, 2005, 9:44:45 AM, you wrote: $lines = file_get_contents('../shared/acessibility_box.htm'); In this file I have the a self submitting link a href=? $_SERVER['PHP_SELF']; ??text_size=small class=size1A/a The problem I think is this code is inserted after the

Re: [PHP] post and variables

2005-11-10 Thread Richard Davey
Hi Ross, Thursday, November 10, 2005, 10:39:48 AM, you wrote: How do I use $_POST with variables. Cant find an example of this anywhere on php.net if ($_POST['$table_name== 1']) { if ($_POST['form_element_name'] == 'whatever') There are many examples of this all over the web. You need to

Re: [PHP] Unable to send variables to MySQL table

2005-11-09 Thread Richard Davey
Hi Stewart, Wednesday, November 9, 2005, 7:15:39 PM, you wrote: The script executes with no errors, but when I check the table, the table is still empty. I can manually insert the data directly into the table, and when I echo the variables in the script, the values are displayed whe I run

Re: [PHP] Query regarding total count of pages in a site....

2005-11-08 Thread Richard Davey
Hi Suresh, Tuesday, November 8, 2005, 1:28:47 PM, you wrote: I need to find the number of webpages in a site.. is there any inbuilt variables in php to find it. I need to find the number of socks in my washing basket. Does PHP have an inbuilt function to do it? No, of course it

Re[2]: [PHP] No forums?

2005-11-08 Thread Richard Davey
Hi Richard, Wednesday, November 9, 2005, 12:40:12 AM, you wrote: There are no decent PHP forum software packages that aren't riddled with security problems and really nasty PHP code. I sincerely wish the preceding statement were false, as my clients ask me for forums and I just say No. I

Re[2]: [PHP] No forums?

2005-11-08 Thread Richard Davey
Hi Murray, Wednesday, November 9, 2005, 1:34:12 AM, you wrote: Hmmm, thank you for mentioning this forum, I wasn't previously aware of it. I know phpBB has been criticized previously for behind-the-scenes code quality, though it seems like a fairly mature online forum package while using it.

Re: [PHP] Security Issues - Where to look?

2005-11-07 Thread Richard Davey
Hi Richard, Monday, November 7, 2005, 9:50:59 PM, you wrote: I've heard that php is not particularly secure, making it problematic if you intend to create a web site with commerce, etc. Is there a particular news group that addresses security issues? I'm looking for some guidlines on

Re: [PHP] No forums?

2005-11-05 Thread Richard Davey
Hi, Saturday, November 5, 2005, 3:09:01 AM, you wrote: AFAIK, there are no official forums for PHP. Considering the fact that PHP is a web development tool, such distaste for message boards is ironic at the least. So why exactly there aren't any forums on php.net? How about some good

Re[2]: [PHP] No forums?

2005-11-05 Thread Richard Davey
Hi, Saturday, November 5, 2005, 11:30:29 PM, you wrote: Start now and we'll check in on your progress in a years time :) You're joking, but I might actually do it. I was thinking about such forum before. It could be useful for many purposes. It would be *extremely* useful, but I imagine

Re: [PHP] Pictureupload

2005-11-03 Thread Richard Davey
Hi twistednetadmin, Thursday, November 3, 2005, 4:50:33 PM, you wrote: I have made this script to upload pictures into a picturegallery on a website. The script works just as I expected, but with one huge flaw. It doesn't work from every users computer. I can upload pictures with no

Re: [PHP] php mail function vs smtp server

2005-10-31 Thread Richard Davey
Hi Clive, Monday, October 31, 2005, 10:10:02 AM, you wrote: does anyone know whats better/uses less resource etc: If I run a loop to send a 1000 emails, should I use php's mail fucntions or send directly to the servers smtp server. Use PEAR Mail Queue. Cheers, Rich -- Zend Certified

[PHP] Anyone know where 5.1 RC1 has gone?

2005-10-31 Thread Richard Davey
Hi, PHP 5.1 RC1 was on the site two days ago, but has since been removed. I can see it in Googles cache, and snapshots are in CVS, but no Release Candidate. Does this mean an RC2 is imminent? :) Cheers, Rich -- Zend Certified Engineer http://www.launchcode.co.uk -- PHP General Mailing

Re: [PHP] PHP version check

2005-10-28 Thread Richard Davey
Hi Andrew, Friday, October 28, 2005, 7:41:21 AM, you wrote: How can I query for PHP version? phpversion() ! Cheers, Rich -- Zend Certified Engineer http://www.launchcode.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GUID or any other unique IDs

2005-10-25 Thread Richard Davey
Hi Denis, Tuesday, October 25, 2005, 10:01:48 AM, you wrote: I am in a need of GUID generator but it seems that PHP doesn't have this as a built-in feature. uniqid() ? Bearing in mind of course that no unique ID generator can ever be 100% unique unless it keeps a record of previously

[PHP] Preference for User Permissions system

2005-10-21 Thread Richard Davey
Hi php-general, I'm interested to know what everyones preference is for user permissions / roles in php apps? For example do you employ a Unix style groups system, is there a ready-rolled class or package you use, or have you just built your own and stick with it? Cheers, Rich -- Zend

Re: [PHP] Invoking a DLL with PHP

2005-10-17 Thread Richard Davey
Hi Jay, Monday, October 17, 2005, 3:20:58 PM, you wrote: Does anyone have any insight to this type of process? Would I have to build a PHP extension and compile the DLL as part of PHP's configuration? Ideally the DLL would be a black box that could be accessed utilizing functions that I

Re[2]: [PHP] Invoking a DLL with PHP

2005-10-17 Thread Richard Davey
Hi Jay, Monday, October 17, 2005, 4:15:58 PM, you wrote: Unfortunately I may not be able to have the DLL re-built with the COM interface. It is an older DLL containing engineering functions and it is huge. The real dingle here is that I only need to access some of the functionality of the

Re: [PHP] OPTIMIZING - The fastest way to open and show a file

2005-10-14 Thread Richard Davey
Hi Ruben, Friday, October 14, 2005, 12:29:09 PM, you wrote: What can I do to make faster opening files? ** Source code: if(file_exists($filename)){ $modified_date=filemtime($filename);

Re: [PHP] Question about including files and server load

2005-10-14 Thread Richard Davey
Hi Jay, Friday, October 14, 2005, 2:21:57 PM, you wrote: I was wondering isn't this putting a bigger load on a server by including so many files for each function? Also, I was wondering what everyone's opinion was on this approach in terms of maintenance. Do you think it's better practice to

Re: [PHP] Trouble figuring out a Walk through an Array

2005-10-13 Thread Richard Davey
Hi Phillip, Thursday, October 13, 2005, 4:56:30 PM, you wrote: Having trouble figureing out a certain walk through an array. And I am not finding the help I need in the manual or anything. I have an associative arr ($arr) With about 20 elements in it. Ten of which are required. So I have

Re[2]: [PHP] Obsession with BC, take 2

2005-10-13 Thread Richard Davey
Hi, Friday, October 14, 2005, 1:07:04 AM, you wrote: Let me get it straight. There are two ways of running PHP four and five on one server. First one is by using five's compatibility mode, and it breaks some of the old scripts. The second one is by using two different apache modules. It

Re: [PHP] Check if an url is a jpg image

2005-10-12 Thread Richard Davey
Hi Tommy, Wednesday, October 12, 2005, 10:48:55 AM, you wrote: Is it possible to check if an url is a jpg image from php? #1 Quick and unreliable: Check if there is a .jpg or .jpeg as the final characters of the URL string. #2 Bit more complex, very expensive: fopen() the URL, download the

Re: [PHP] Obsession with BC

2005-10-11 Thread Richard Davey
Hi, Tuesday, October 11, 2005, 5:41:53 PM, you wrote: Recently, I asked my hosting provider when they are going to switch to PHP5. They replied that it will not happen any time soon, since they will install PHP5 only on new servers. Their reasoning was simple: PHP5 will inevitably break some

Re[2]: [PHP] Obsession with BC

2005-10-11 Thread Richard Davey
Hi, Tuesday, October 11, 2005, 7:14:05 PM, you wrote: Issue: I think BC slows down the evolution of the language. I know for sure it makes some people less willing to upgrade. And there are ways of avoding unnecessary BC maintenance altogether. Beyond not staying stuck in the past? Not

Re: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Richard Davey
Hi Dan, Monday, October 10, 2005, 7:43:31 PM, you wrote: How secure is it to save a password in $_SESSION. i.e. $_SESSION['password'] is it safe and is it practical? No, and no (well, not if you want to be safe) More to the point - why would you ever want to? If you've found yourself in

Re[2]: [PHP] storing passwords in $_SESSION

2005-10-10 Thread Richard Davey
Hi Jay, Monday, October 10, 2005, 7:36:12 PM, you wrote: I would think it neither safe nor practical. Once a user has logged in having the password in SESSION would be useless. Agreed totally, I am curious as to why this question seems to get asked a LOT though. I wonder what it is that

Re: [PHP] date comparisions...

2005-10-07 Thread Richard Davey
Hi aaronjw, Friday, October 7, 2005, 7:34:11 PM, you wrote: if ($discountResult[dateexpired] date(U)) { //dosomething } else { //do something else } Anyway... it's supposed to read: IF the expired date is past the current date... disallow dosomething otherwise... let it go.

Re[2]: [PHP] date comparisions...

2005-10-07 Thread Richard Davey
Hi, Friday, October 7, 2005, 7:55:45 PM, you wrote: dateexpired is: 1128052800 which translates into: 2005-09-30 00:00:00 Basically, I'm just trying to figure out when the dateexpired is. IF it is past the current date then I am erroring out and if it's under the current date... I'm

Re: [PHP] Detect file size BEFORE upload it

2005-10-06 Thread Richard Davey
Hi Ruben, Thursday, October 6, 2005, 7:38:35 AM, you wrote: The problem is that I was able to detect file size after complete file is transfered. I need to detect file size before all file is transfered, in order to cancel it and preserve server resources. Any ideas? The only way to do

Re: [PHP] new ways to add an html body?

2005-09-25 Thread Richard Davey
/email.html'); Will save embedding all that HTML into your PHP scripts. You could then do simply variable replacement on $mail_body to customise the messages if you so wish. -- Best regards, Richard Davey Zend Certified Engineer -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] specifying a font in PHP-generated email

2005-09-20 Thread Richard Davey
Hello Kenn, Tuesday, September 20, 2005, 9:32:47 PM, you wrote: I'm attempting to create an HTML email via PHP and cannot get the email to render in the correct font. I've made several stabs at it, the most recent one below. The same code that works just fine on a web page won't work for me

Re: [PHP] Restarting windows from php

2005-08-10 Thread Richard Davey
just tested shutdown -i on Apache (in WinXP) and it ran without any problems. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http

Re[2]: [PHP] Restarting windows from php

2005-08-10 Thread Richard Davey
with restart -t = Set the timeout for shutdown (xx seconds) 01 = The timeout value Open a command prompt, type in it. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer I do not fear computers. I fear the lack of them. - Isaac Asimov

Re[4]: [PHP] Restarting windows from php

2005-08-10 Thread Richard Davey
command. RL Win 98 SE, I believe. RL I've got XP on my laptop, and if I cared enough about Windows, I RL guess I could test that too... ... and it would work. Yes of course it's version specific (NT range up, 2K, NT, XP, etc) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP

Re: [PHP] Server-Client connection via TCP port with PHP

2005-08-09 Thread Richard Davey
considerable chapter on Socket Functions. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer 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

Re: [PHP] parallel execution of php code?

2005-08-08 Thread Richard Davey
an INSERT IGNORE which won't duplicate data if it already exists. Or possibly REPLACE INTO - depends how you need this to work (i.e. retain the oldest copy of the data, or keep the newest). Look in the MySQL manual for those two functions for more info. Best regards, Richard Davey -- http

Re: [PHP] Possible to read JavaScript results into a string?

2005-08-08 Thread Richard Davey
request failed! HTTP/1.1 400 Bad Request in c: BD \Inetpub\wwwroot\test.php on line 2 Your code will work providing that PHP is not running in Safe Mode and allow_url_fopen is enabled in your php.ini file. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services

Re: [PHP] Logging fatal errors and timeout

2005-08-08 Thread Richard Davey
is not being logged. Fix the above :) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer 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

Re: [PHP] set variables based on HTTP_HOST

2005-08-08 Thread Richard Davey
? switch ($_SERVER['HTTP_HOST']) { case 'name1.host.com': $header = .. break; } etc - then you can combine multiple hosts into one section and have a default set at the bottom. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend

Re: [PHP] lack of understanding of sessions

2005-08-08 Thread Richard Davey
the PHPSESSID cookie in existence. If not, that's the problem. If so, what does it say? S In the session_is_registered-part, the var seems to be empty, too. Why? Because even 4.0.6 shouldn't be using that function. If you want to check for the existence of a variable, use isset(). Best regards, Richard

Re: [PHP] Re: Logging fatal errors and timeout

2005-08-08 Thread Richard Davey
the middle of your site) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer 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

Re: [PHP] Generating a 404 status message with header()

2005-08-08 Thread Richard Davey
the 404 EG directive. The header 404 is correct - check to see if your script contains any extra white-space somewhere that is causing the header to fail? (i.e. a carriage return after the closing php tag). Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend

Re[2]: [PHP] set variables based on HTTP_HOST

2005-08-08 Thread Richard Davey
chains in the loop (firewall, network, server, apache, php, etc). I would say that as it stands you've done the best you can for this little section of code, but perhaps some others might post more ideas if they have them. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development

Re: [PHP] Re: Logging fatal errors and timeout

2005-08-08 Thread Richard Davey
in the install section somewhere) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer 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

Re: [PHP] Write from form to DB

2005-08-03 Thread Richard Davey
into your database. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer 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] Write from form to DB

2005-08-03 Thread Richard Davey
coding preference. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer 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

Re[2]: [PHP] Error Suppression with '@'

2005-08-02 Thread Richard Davey
it's a bad thing to use. When it comes to the mysql/i functions however I will suppress the error and use my own error checking to avoid blank pages / unsightly warnings. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer I do

Re[2]: [PHP] Multipage form redux

2005-07-27 Thread Richard Davey
for all forms of course, it depends what the nature of the process is, but it's certainly an option. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General

Re: [PHP] Object Inheritance, get_class() and a static function call

2005-07-26 Thread Richard Davey
? Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services Zend Certified Engineer 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] running number

2005-07-25 Thread Richard Davey
a starting off number of 12345? If there is no real reason to do this, then use an auto-increment column in MySQL and let that do all the hard work 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

Re: [PHP] Trimming Text

2005-07-15 Thread Richard Davey
occurrence of a '' and the last occurance of '' - if the first is LESS than the second value, then you're in the middle of a tag. This of course doesn't handle nested tags. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Richard Davey
MP suggestions for this problem? Providing you feel it's safe / user friendly to do so, just increase the time-out: set_time_limit() 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

Re[2]: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Richard Davey
doesn't involve the php.ini file at all - try looking in the PHP manual for the function given. 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

Re: [PHP] skewed up images

2005-07-15 Thread Richard Davey
it is you wanted to do with it. 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] searching multiple fields

2005-07-14 Thread Richard Davey
you can do so like this: SELECT * FROM blah WHERE (name LIKE '$search%' AND id 10) OR area LIKE '$search%' 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

Re: [PHP] $PHP_SELF or echo $PHP_SELF

2005-07-14 Thread Richard Davey
['PHP_SELF']? Either would work. 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] cannot connect to MySQL server and not sure why

2005-07-14 Thread Richard Davey
in the actual script. and I double BG checked that to be correct as well. Any suggestions? Sure.. where is $success set? I don't see it being set anywhere :) 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: [PHP] Win2000 easier than Win2003 ??

2005-07-14 Thread Richard Davey
don't use IIS - use Apache instead. It's an extremely easy install process, one I documented fully on this mailing list no more than a few weeks ago. 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: [PHP] array help

2005-07-14 Thread Richard Davey
) $table hasn't been set elsewhere in your script as a string, or (2) $table has been set as an array ($table = array()) prior to being used. 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

Re: [PHP] 404 error - why???!!

2005-07-13 Thread Richard Davey
GSII I copied to my /windows/system32 folder. This won't fix the 404 (sorry), but the php.ini doesn't go in system32, it just goes in the Windows directory. Do you only get 404s on PHP files? What happens if you copy an .html file into the same location and request that? Best regards, Richard Davey

Re[2]: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-11 Thread Richard Davey
, that I've yet to see anyone provide a coherent reason not to use. 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

Re[4]: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-11 Thread Richard Davey
Hello Greg, Monday, July 11, 2005, 3:46:24 PM, you wrote: GD On 7/11/05, Richard Davey [EMAIL PROTECTED] wrote: I gave several valid good usability reasons, that I've yet to see anyone provide a coherent reason not to use. GD Misuse of CPU cycles. So if you wanted to allow a user to say

Re[6]: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-11 Thread Richard Davey
I allow a specific GD time span in which to edit the post to correct the goof. Ditto. I just don't force them to use HTML. 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

Re[2]: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-09 Thread Richard Davey
, a whole can of worms that you'd better be absolutely sure you have faultlessly checked and double-checked, because as you know there's no room for error these days. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack

Re[4]: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-09 Thread Richard Davey
it. May as well just give them your server reboot button while you're at it and ask not to touch. 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[5]: [PHP] Re: Security, Late Nights and Overall Paranoia

2005-07-09 Thread Richard Davey
if you do allow font you're then parsing for color= and nothing else, with potential variable width colours. After a short while you'll find yourself having to write an HTML validator tool (and I'm sorry but I have *never* seen one that worked flawlessly yet). Best regards, Richard Davey

Re: [PHP] TimeStamp BEFORE 1970

2005-07-07 Thread Richard Davey
the thought of using it - you can always pour over the source code to look at their methods and see how they handle it. 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

Re: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
if (!$result) you could do: if (mysql_num_rows($result) 0) ... that way you know that the user already exists. 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

Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
(providing username was indexed) would make count() a far quicker and less expensive query than selecting and bring back data and then doing absolutely nothing with it (somewhat pointless imho) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear

Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
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[4]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
scenario again I feel. 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] trouble with file upload page using PHP

2005-07-06 Thread Richard Davey
into your inspired-evolution.com directory. Check the permissions setting on that folder as a first course of action. 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

Re[6]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
and a 60 Meg hard drive (or whatever) just so they learn RL to code... :-) I dunno.. I've seen shit code on every single system I've ever come across :) 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[2]: [PHP] Report

2005-07-04 Thread Richard Davey
set to delete messages matching that content, and I fear you'll have to do the same if you want to restore some sanity to your inbox. 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

Re: [PHP] Help a Norwegian student!

2005-07-03 Thread Richard Davey
to your message ;) 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] PHP Magazine

2005-07-01 Thread Richard Davey
on (and their circulations increase), rather than feeling like a grab-bag of non-specific PHP goodies as they do today. 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

Re: [PHP] MySQL error

2005-07-01 Thread Richard Davey
with - hence it's gone and turned \t into a tab, \n into a line-feed, etc. I may be wrong, but I don't think MySQL likes this, and given the error you are receiving it looks like that might be the case. Quote it with ' ' to avoid translation of the \n and \t. Best regards, Richard Davey -- http

Re[2]: [PHP] PHP vs. ColdFusion

2005-07-01 Thread Richard Davey
that wasn't ever there. Thankfully most people on this list understand that when an email arrives from an address, reply will reply to it. Having said that, it does catch a lot of noobs out. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear

Re[2]: [PHP] PHP vs. ColdFusion

2005-07-01 Thread Richard Davey
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] Re: PHP vs. ColdFusion

2005-06-30 Thread Richard Davey
as Microsoft do). Personally for me CF has the *perception* of being a very 1990s technology (regardless if it is or 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

Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Richard Davey
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] getting a filename [with no extension] out of a url

2005-06-30 Thread Richard Davey
to remove the slash at the start, pick any of the following: substr, str_replace, preg_replace, strpos, etc. 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] Finding what links on a page have been clicked

2005-06-29 Thread Richard Davey
, 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] Finding what links on a page have been clicked

2005-06-29 Thread Richard Davey
get a very busy site, as this is quite nasty overhead to be performing for every single page request :-\ There are many ways to achieve what you wish, those are just a few. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear

Re: [PHP] constant() - php5

2005-06-29 Thread Richard Davey
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] Conceptional question

2005-06-29 Thread Richard Davey
a certain level* beyond which system performance suffers increasingly. Personally I'd create sub-dirs per user. * Don't ask me what, but it's not a very high number IIRC. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack

Re[2]: [PHP] Conceptional question

2005-06-29 Thread Richard Davey
be better options these days. 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] PHP vs. ColdFusion

2005-06-29 Thread Richard Davey
at their disposal that can do what you've listed - if they wished to assign this functionality to a single tag in their template, well.. that's their choice I guess. Not everyone works around that paradigm though. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do

Re[2]: [PHP] turn off the www

2005-06-29 Thread Richard Davey
to their site) Otherwise it could cause a slight problem, with unfortunate effects if your domain is something like e-sparse.com :) 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

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