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

Re: [PHP] get me off

2006-02-06 Thread Richard Davey
On 6 Feb 2006, at 19:20, Chandler Zwolle wrote: stop i hate ur mailing list and i cant get off Your sexual issues are of no interest to us. Cheers, Rich -- http://www.corephp.co.uk Zend Certified Engineer PHP Development Services -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] large files and readfile

2006-02-06 Thread Richard Davey
On 6 Feb 2006, at 17:21, Daniel Bondurant wrote: I am using php and readfile() to control the download of large files; These files can be up to 1GB.There is nothing really exciting or special about the script itself. The problem I am running into is php is loading the entire file into

Re: [PHP] PHP Application Vuln. Testing

2006-02-07 Thread Richard Davey
On 7 Feb 2006, at 16:54, Jason Gerfen wrote: Is there any product available, commercial or free which performs source code auditing which *specificly searches PHP code for SQL, XSS type of attacks or vulnerabilities? TIA. No. But there are people who can perform the service for you (Brai

Re: [PHP] global variable declaration

2006-02-08 Thread Richard Davey
On 8 Feb 2006, at 14:46, suresh kumar wrote: this is my sample code: i am having user table with SponsorID as one field in mysql database,this is my query; for($j=0;$j<5;$j++): $result=mysql_query("select * from user where SponsorID='$id [$j]' "

Re: [PHP] imagecreate

2006-02-08 Thread Richard Davey
On 8 Feb 2006, at 14:20, Ross wrote: I am trying to replace the images in a page with this code This is fine here... http://www.ecurry.net/example1.php http://www.ecurry.net/example2.php but when I try and embed in inside a html page I get a garbled mess http://www.ecurry.net/menu6.php ht

Re: [PHP] PHP !== Hypertext Pre-Processor

2006-02-15 Thread Richard Davey
On 15 Feb 2006, at 19:59, Jay Blanchard wrote: In the end it is not worth worrying about. If someone asks you what PHP stands for tell them it stands for the best darned programming language you ever saw. Not disagreeing, just wondering if people here see PHP as a programming language, o

[PHP] Problem with mail function

2001-03-26 Thread Sonya Davey / QDCEL
Hi, Can anyone help me the mail function. I am using PHP 4.04, on Windows 98,with PWS. 1.What must I configure thse settings in my php.ini file to? SMTP= localhost sendmail_from = [EMAIL PROTECTED] 2.Why does this code give me the following error?

[PHP] Prob with sending a php variable in an email

2001-03-26 Thread Sonya Davey / QDCEL
I have a problem sending a php variable ie $Username in a simple email form, example as follows: Mailto:[EMAIL PROTECTED]? subject= Web site &body=User name: Main Agent Code:"> Support Desk Thanks in advance! Sonya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

<    6   7   8   9   10   11