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

2005-07-11 Thread Richard Davey
bility reasons, 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.ph

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

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

2005-07-11 Thread Richard Davey
c set of safe html tags and I provide a preview GD> function. Even after that, if the user goofs up 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 -

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

2005-07-13 Thread Richard Davey
ile which 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?

Re: [PHP] searching multiple fields

2005-07-14 Thread Richard Davey
%' OR blahblah LIKE '$search%' etc If you want to add extra conditions 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 Se

Re: [PHP] $PHP_SELF or echo $PHP_SELF

2005-07-14 Thread Richard Davey
ther 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
a user called bruceg_webmaster with all of BG> the editing privileges. Of course 'password' is changes with the BG> password used to connect 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 be

Re: [PHP] Win2000 easier than Win2003 ??

2005-07-14 Thread Richard Davey
und errors. Just 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 co

Re: [PHP] array help

2005-07-14 Thread Richard Davey
ding that (1) $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

Re: [PHP] Trimming Text

2005-07-15 Thread Richard Davey
last 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

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Richard Davey
artial file? Does anyone have any 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 f

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

2005-07-15 Thread Richard Davey
I gave you 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 Mailin

Re: [PHP] skewed up images

2005-07-15 Thread Richard Davey
120 cropped piece, then you can do whatever 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] running number

2005-07-25 Thread Richard Davey
r is/are there better ways? Do you HAVE to have 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 S

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

2005-07-26 Thread Richard Davey
in the code posted) Wouldn't get_parent_class() work in this situation? 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 Mail

Re[2]: [PHP] Multipage form redux

2005-07-27 Thread Richard Davey
, they can always come back and finish the job off - whenever they want, avoiding cookie and session time-out issues. This won't work 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.c

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

2005-08-02 Thread Richard Davey
is why in most cases 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

Re: [PHP] Write from form to DB

2005-08-03 Thread Richard Davey
27;t forget to validate your user input before slamming it directly 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

Re[2]: [PHP] Write from form to DB

2005-08-03 Thread Richard Davey
a "Really Bad Thing", probably just a personal 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 Mail

Re: [PHP] parallel execution of php code?

2005-08-08 Thread Richard Davey
wed by INSERT you could use 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. Bes

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

2005-08-08 Thread Richard Davey
led BD> to open stream: HTTP 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.launchcod

Re: [PHP] Logging fatal errors and timeout

2005-08-08 Thread Richard Davey
produces a RG> fatal error and fatal error 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 Maili

Re: [PHP] set variables based on HTTP_HOST

2005-08-08 Thread Richard Davey
able with a variable! So why not do that? Perhaps a switch block would serve your needs better? switch ($_SERVER['HTTP_HOST']) { case 'name1.host.com': $header = .. break; } etc - then you can combine multiple hosts into one section and have a

Re: [PHP] lack of understanding of sessions

2005-08-08 Thread Richard Davey
sing that function. If you want to check for the existence of a variable, use isset(). 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] Re: Logging fatal errors and timeout

2005-08-08 Thread Richard Davey
etter than displaying the error across 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

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

2005-08-08 Thread Richard Davey
parently, this does not trigger 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.launchcod

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

2005-08-08 Thread Richard Davey
k and pre-set values even if they had managed that, you'd still only ever include a valid header. You have to draw the line somewhere with security - nothing will ever be 100% safe because there are so many chains in the loop (firewall, network, server, apache, php, etc). I would sa

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

2005-08-08 Thread Richard Davey
for more details (it's 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

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

2005-08-09 Thread Richard Davey
the quite 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.ph

Re: [PHP] Restarting windows from php

2005-08-10 Thread Richard Davey
user has the correct permissions to do so. The warning most likely comes from IIS, or your php.ini settings - I 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 Ce

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

2005-08-10 Thread Richard Davey
#x27;. -r = Shutdown 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

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

2005-08-10 Thread Richard Davey
h had no shutdown 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 --

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

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

2005-09-25 Thread Richard Davey
('path/to/your/html/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:/

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

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

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 allo

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 i

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 caus

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 s

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 rea

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 co

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] 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); > if(time()<($modifi

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

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 b

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

[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 C

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 genera

Re: [PHP] PHP version check

2005-10-27 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] 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 En

[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 L

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 pro

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 l

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] 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 ensu

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 does

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."

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

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] 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] 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 > The problem I think is this code is inserted after the page headers have > been set. And so the line just generates a

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, recommendi

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 bi

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 t

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 reply

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 i

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-poin

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] Cookies

2005-11-17 Thread Richard Davey
Hi Ben, Thursday, November 17, 2005, 3:26:04 PM, you wrote: > Is there a way to test if a user has cookies turned on or not so > that I can use cookies if the user allows them and use the URL if > the user does not allow them? Set one? :) Then check if it exists or not. This of course will not

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 (http://

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 Certifi

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 alre

Re: [PHP] Version question on WAMP setup

2005-11-18 Thread Richard Davey
Hi, Thursday, November 17, 2005, 11:55:14 AM, you wrote: > I just installed Apache 2.0.55 / PHP 5.0.5 and MySQL5.0.15 on WinXP. > All seems OK, except that when I look at the PHP configuration using > phpinfo() it reports the MySQL version as 4.1.7 . I may well be wrong, but isn't the Client API

Re[2]: [PHP] Cookie problem with IE

2005-11-21 Thread Richard Davey
Hi Kristen, Monday, November 21, 2005, 4:48:26 PM, you wrote: > I've been looking through the comments in the manual, and several > people mention privacy policies creating a problem in IE. My problem > is none of this can be duplicated on my machine (or any other so > far), and this customer is

Re: [PHP] Trying to send data via POST

2005-11-21 Thread Richard Davey
Hi Anders, Monday, November 21, 2005, 7:13:40 PM, you wrote: > I'm trying to set up a script that will post a picture file to a > hosting site. Normally, the site accepts uploads via a web form > using a POST action. How can I make this file transfer to the host > so it'll think it's posted by it

Re[2]: [PHP] Cookie problem with IE

2005-11-22 Thread Richard Davey
Hi Kristen, Tuesday, November 22, 2005, 3:21:31 PM, you wrote: > I have not looked into it, but do some internet security apps like > Norton try to block certain cookies? I've not come across this, as I > don't really use those programs, but right now I'm grasping for > straws. Yes they do - I r

Re: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi, Friday, November 25, 2005, 10:22:46 PM, you wrote: > Hello everyone, i am running PHP 5 on Windows XP Pro SP2, my $_GET > and $_POST arrays do not seem to be working, I am Sure I am spelling > them right, but i keep getting the errors: > Is this a problem with configuration or is there a bug

Re[2]: [PHP] $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi Unknown, Friday, November 25, 2005, 10:38:02 PM, you wrote: > Well it returned all values with print_r(); but i can't access > them... this is what the page returns: Post your code, there's an error in it if the $_POST etc arrays are populated, but you can't access them. Cheers, Rich -- Ze

Re[2]: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi, Friday, November 25, 2005, 10:43:20 PM, you wrote: > Doesn't that cause security problems? Yes. Post your *whole* code, not just snippets of it. Cheers, Rich -- Zend Certified Engineer PHP Development Services http://www.corephp.co.uk -- PHP General Mailing List (http://www.php.net/) T

Re[2]: [PHP] Re: $_GET and $_POST arrays not working

2005-11-25 Thread Richard Davey
Hi Matt, Saturday, November 26, 2005, 12:42:16 AM, you wrote: > I apologize, but I've never been able to access $_POST and $_GET in > any context whatsoever without first turning on the register > globals. You have a seriously foobared installation of PHP then! :) Cheers, Rich -- Zend Certifi

Re: [PHP] PHP6, UTF & strlen

2005-11-28 Thread Richard Davey
Hi Jared, Monday, November 28, 2005, 4:04:29 PM, you wrote: > Just been looking over some code, and saw > if (strlen($data) !== file_put_contents($filename, $data)) > > where $data is UTF8, so wondering if this is going to break > in PHP6, if so what s

Re: [PHP] do this OR that

2005-12-01 Thread Richard Davey
Hi Judson, Thursday, December 1, 2005, 12:40:16 PM, you wrote: > I believe I should re-write it like this: > >$total = ($mygrade/$quiz->grade) ; >if ($total > .80 | .80) { > > Is that right? Thanks in advance for your help. 'OR' is ||, but you need to

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 17:25, Mark Steudel wrote: ZS has code folding too, but just for functions. Someone else mentioned support for phpDoc, this is an awesome time saver if you want to provide clear documentation in phpdoc format. One big bummer on ZS was that it didn't have a built in FTP clie

Re: [PHP] Arrays

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 17:33, Ben Miller wrote: If I have an array, such as $Var[0] = "Dog"; $Var[1] = "Cat"; $Var[2] = "Horse"; Is there a way to quickly check to see if $Var contains "Lion" without walking through each value? Look in the manual at the function in_array() Cheers, Rich -- http:

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 17:36, M. Sokolewicz wrote: Jason Petersen wrote: On 12/6/05, Jeff McKeon <[EMAIL PROTECTED]> wrote: Vim is my editor of preference. If I have to use Windows, I usually go with Homesite (because I already have a licensed copy) or Textpad (because it's better than Notepad

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Richard Davey
On 6 Dec 2005, at 19:24, Jay Blanchard wrote: [snip] And for those interested in using a real computerFlameBate>, it's GUI also runs under MacOSX. [/snip] If they are "real" why aren't there more of them? Because they have 'real' price tags. Shame really, as OS X pisses all over Windows fr

Re: [PHP] ■PCソフト安値販 売■業界初システム

2005-12-12 Thread Richard Davey
On 12 Dec 2005, at 13:27, Paul wrote: ? On 12/12/05, dmzkaqmzdp5 <[EMAIL PROTECTED]> wrote: PCユーザーにお得な情報を一方的に配信させて いただきましたことお詫びいたします The phrase 'Japanese spam email advertising a site selling pirated software' springs to mind. Cheers, Rich -- http://www.corephp.co.uk PHP Development S

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Richard Davey
On 15 Dec 2005, at 18:31, Jonathan Duncan wrote: And for those interested in using a real computerFlameBate>, it's GUI also runs under MacOSX. http://zend.com/store/products/zend-studio/requirements.php Actually, it does not. I installed it on my Mac, hoping to try it out and it would not

Re: [PHP] What software do you use for writing PHP?

2005-12-15 Thread Richard Davey
On 15 Dec 2005, at 20:09, Jonathan Duncan wrote: One more reason to upgrade to Tiger. I am still on MacOSX 10.3.9 =( Bummer :-\ Tiger was a nice upgrade imho, but a quite costly one too. Cheers, Rich -- http://www.corephp.co.uk PHP Development Services -- PHP General Mailing List (http://

Re: [PHP] PHP/MySQL noob rides again.. into trouble

2005-12-16 Thread Richard Davey
On 16 Dec 2005, at 12:30, Paul Jinks wrote: I have a site where users can search study projects. I'd like to be able to clicks on a project title which passes a variable to this page, which then displays all the data on that project in a table. Cool - and to a noob like me, actually pretty

Re: [PHP] ftp_get, ftp_put problem

2006-01-20 Thread Richard Davey
On 20 Jan 2006, at 13:26, Antonis Varkas wrote: I am writing a php script to upload/download a file onto/from an FTP Server. I manage to connect to the server, login correctly, change directory, list all the files there but fail to get or put the file. The documentation says that ftp_get an

Re: [PHP] New identification after an error...

2006-01-20 Thread Richard Davey
On 20 Jan 2006, at 14:24, David BERCOT wrote: I use this program to force a user to authenticate : if (!isset($_SERVER["PHP_AUTH_USER"])) { header("WWW-Authenticate: Basic realm=\"Intranet SDSED\""); header("HTTP/1.1 401 Unauthorized"); } Everything is ok except a detail : if the

Re: [PHP] Basic OOP Question

2006-01-26 Thread Richard Davey
On 26 Jan 2006, at 21:42, Chris Kennon wrote: mySimpleClass = new SimpleClass(); $mySimpleClass ^ ^ ^ Cheers, Rich -- http://www.corephp.co.uk Zend Certified Engineer PHP Development Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] PHP hosting with multiple domains?

2006-01-30 Thread Richard Davey
On 30 Jan 2006, at 17:34, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: The thing I'm having trouble nailing down is one that might let me host multiple domains under a single hosting account and share bandwidth and HD space. I have a couple of domains that aren't really doing anything

Re: [PHP] html forms and php

2006-01-31 Thread Richard Davey
On 31 Jan 2006, at 16:07, Philippe Reynolds wrote: To resolve this we have to create an array out of our select name: I added the square brakets to the name...now when I select all the options on the list I can read all values individually. Here is problem...my javascripts have stopped wor

Re: [PHP] string lenght?

2006-02-06 Thread Richard Davey
On 6 Feb 2006, at 12:18, William Stokes wrote: How can I test whether a string is 1 or 2 digits long? Cast it to an int (or float if required) and strlen() it. Cheers, Rich -- http://www.corephp.co.uk Zend Certified Engineer PHP Development Services -- PHP General Mailing List (http://www.

[PHP] UK Only - Freelance PHP developer required

2006-02-06 Thread Richard Davey
Hi, I know this message is probably going to flood my inbox with agency crap and 'offshore' development ads, but hopefully something good will come of it: If you are based in the UK and provide freelance PHP development, and **have some availability** then please send me an email with a c

<    5   6   7   8   9   10   11   >