Re: [PHP] Re: A question

2005-04-16 Thread Rory Browne
On 4/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On 16 Apr 2005 Khorosh Irani wrote: > > > How I can find it in phpinfo() ? > > Another (simpler) approach is: not as versitile though. php_sapi_name() is better suited to situations where you will do something differently depending on

Re: [PHP] Re: A question

2005-04-16 Thread Rory Browne
you write a script containing and only. You access that script through your web browser, and it will return a variety of useful information. Amongst it will be information labeled as SERVER API. If you are running as an apache module, Apache will appear in the box beside it. If you are using CGI,

Re: [PHP] php and linux shell script

2005-04-15 Thread Rory Browne
I don't think you'll find anything in PHP as simple as the shell script version of dialog, but you may be able to bang something together like that using ncurses. Probably handier if your time is more important than the machines, to just use the shell version using one of the Program Executions fu

Re: [PHP] a new it company

2005-04-14 Thread Rory Browne
ith free speech you have to live with the odd incident like this. > > Dan Tappin (Dan T) > > On Mar 9, 2005, at 11:29 AM, Jochem Maas wrote: > > > Rory Browne wrote: > >> SPAMMER > >> From your email address I'm assuming that your name is Sharvan Saxe

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

2005-04-12 Thread Rory Browne
I was wondering that as well. While I was at it, I wondered why not use __to_str(), as per the PHP coding guidelines. While I'm at it, why is grass green, and milk white? On Apr 12, 2005 10:27 AM, Richard Davey <[EMAIL PROTECTED]> wrote: > Hello Tim, > > Tuesday, April 12, 2005, 10:07:44 AM, you

[PHP] SQL ternary thing

2005-04-06 Thread Rory Browne
Hi I appreciate this is an SQL issue, more than a PHP issue, but since it isn't a DB specific issue, and I'm planning on using it with PHP(and I'm not subscribed to any SQL lists), I thought I'd post it here. I have a table a bit like the following: create table thing (name char(10), value boole

Re: [PHP] Re: Create MDB File

2005-03-31 Thread Rory Browne
m within a PHP script). > > The CSV export idea isn't an option in this case. > > Has anyone found a way to create an MDB file (with a single table) from > PHP? > > ...Rene > > > On 28-Mar-05, at 7:18 PM, Rory Browne wrote: > > > MDB suggests Access

Re: [PHP] RE: Best Server OS

2005-03-29 Thread Rory Browne
I'd stick OSX in somewhere between fedora and windows. Where do you get these security ratings? How does sendmail, or bind appear in these ratings? Some ratings suggest that windows is more secure than Unix!! You don't need a gui in a server. On Tue, 29 Mar 2005 11:10:18 -0500, Gerald Artman

[PHP] Re: Create MDB File

2005-03-28 Thread Rory Browne
MDB suggests Access, so why not simply create a CSV, or some other generic format file from your MySQL, and import it into access, using COM/OLE, and save it as an MDB file. On Mon, 28 Mar 2005 22:14:07 +0100, Shaun <[EMAIL PROTECTED]> wrote: > Thanks for your reply, > > but this only works on W

[PHP] Re: Best Server OS

2005-03-28 Thread Rory Browne
Phil Depends on (a) What you want. (b) Who you are, and what your background is. What you want: If you want stability, then I'd go with Debian Stable. If you want proactive security then I'd go with OpenBSD. I'm not suggesting that OpenBSD is less stable than Debian, but I reckon that more peop

Fwd: [PHP] `ls -l /` does not reproduce same info than when executed in bash.

2005-03-10 Thread Rory Browne
Forwarding to list - forgot to cc. -- Forwarded message -- From: Rory Browne <[EMAIL PROTECTED]> Date: Thu, 10 Mar 2005 18:50:41 + Subject: Re: [PHP] `ls -l /` does not reproduce same info than when executed in bash. To: Hans Deragon <[EMAIL PROTECTED]> Perha

Re: [PHP] a new it company

2005-03-09 Thread Rory Browne
SPAMMER >From your email address I'm assuming that your name is Sharvan Saxena. It seems like too much of a coincidence that the contact person on that site(Tanuj Saxena), and your good self, have the same surname. Because it seems your are a spammer, and a liar(you concealed your alleged connect

Re: [PHP] how to move files from one place to another ?

2005-02-28 Thread Rory Browne
I think you should read his post before telling him to RTFM. AFAICT He wants to move the files, not copy them. I think the command he is looking for is infact http://www.php.net/rename , which isn't immediately obvious, when you are infact moving and not just renaming. It's only something you'd con

Re: [PHP] Help Required: How to call .vbs file from .php file?

2005-02-25 Thread Rory Browne
Okay: You need to be explain yourself in a MUCH CLEARER manner. You want to 'call' a 'vbscript' from a php file. What exactly do you mean? Do you want to run server-side vbscript, or do you want to run client-side vbscript. Do you want to use asp-style vbscript to generate html, or do you want to

Re: [PHP] Word file to PDF

2005-02-25 Thread Rory Browne
> Run PHP on a windows platform that has MSWord and the PDF printing libraries > installed. Use PHP's COM support to load an MSWord object and see if you can > get it to load the word document and print it out as a PDF file. Once it is > printed to the file, you can use PHP to read the file and do

Fwd: [PHP] Word file to PDF

2005-02-24 Thread Rory Browne
Sorry - forgot to cc this to the list. [off-topic] Any idea if there is any way to set up gmail so that it automaticly replys to the list. -- Forwarded message -- From: Rory Browne <[EMAIL PROTECTED]> Date: Thu, 24 Feb 2005 13:12:15 + Subject: Re: [PHP] Word file to

Re: [PHP] Hi ALL

2005-02-23 Thread Rory Browne
Sorry didn't mean to accuse you of attacking. Just had a more hectic day than usual, and maybe lost it a bit. Anyway, this is rapidly getting off topic, so.. On Wed, 23 Feb 2005 16:52:25 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > Rory Browne wrote: >

Re: [PHP] Hi ALL

2005-02-23 Thread Rory Browne
our facts straight. I think my 'giving back' greatly outweighs my 'taking' from this and any other tech forum that I've ever used. I'll provide you with a sample if necessary. On Wed, 23 Feb 2005 12:35:29 +0100, Jochem Maas <[EMAIL PROTECTED]> wrote: > Rory Browne

Re: [PHP] Hi ALL

2005-02-22 Thread Rory Browne
How to use this list best: Search the archives at lists.php.net for [NEWBIE GUIDE] It was written by Jay Blanchard earlier this year I believe. Read it. Then read this: http://www.catb.org/~esr/faqs/smart-questions.html Then try learning PHP from the PHP manual. If you come across a problem, the

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-09 Thread Rory Browne
> In all my years of attending Church I never once heard anyone > discussing Linux. Must be a denominational thing. Dear Brethren, As a follower of st iGNUtious I am troubled by the spiritual blindness I see evident in the comment I see here before me. Did not the prophet RMS teach the true path?

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-09 Thread Rory Browne
And if you question the political motivations jfgi for osama bin linux. On Wed, 9 Feb 2005 17:22:47 +, Rory Browne <[EMAIL PROTECTED]> wrote: > > In all my years of attending Church I never once heard anyone > > discussing Linux. Must be a denominational thing. > &g

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-08 Thread Rory Browne
This question is as much about politics, and religion, as it is technical. I like mandrake, but I haven't used a distro yet, in which everything 'just worked'. Each distro I tried had some bug in it. Can't remember what they were, and they were easly circumvented, but if you don't know much about

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Rory Browne
On Tue, 25 Jan 2005 11:36:17 -0600, Greg Donald <[EMAIL PROTECTED]> wrote: > On Tue, 25 Jan 2005 17:15:37 +0000, Rory Browne <[EMAIL PROTECTED]> wrote: > > I think sending it to the list every so often, via cron isn't the best > > way to handle it. I've r

Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Rory Browne
I think sending it to the list every so often, via cron isn't the best way to handle it. I've read it once, I don't see the point in getting it again. Perhaps, is the list admins were willing, it could be set up to be sent to all newbies, as part of the subscription process. To ensure that it is re

Re: [PHP] Re: Get name of extending class with static method call

2005-01-11 Thread Rory Browne
I was kinda thinking about all that too, for a project I'm currently doing, in that I wanted to be able to create a singleton, without having to put the singleton code in each class. The only hack I could think of was to use debug_backtrace() to get the line of source that contained the call, and

Re: [PHP] Which script runs first?

2005-01-08 Thread Rory Browne
I don't know much about frames(I hate the things), but the only thing I'd count on would be that the main frame will be loaded first. would it be possible to load your session variables in this? Another possibility would be to have the left frame do the loading of variables, and have the frame on

Re: [PHP] preg match

2005-01-07 Thread Rory Browne
I'm not sure what you're trying to do with preg_match, since the parameters you send to it, are from the database, and an undeclared variable $msg(which is what exactly). Unless you give us examples of the arguments to preg_match, and what you expect the results should be, as well as what they are

Re: [PHP] Re: Persistent PHP web application?

2005-01-03 Thread Rory Browne
I've only skimmed this(have to go soon), but it sounds like something you could port the FastCGI dev library to PHP for(perhaps using SWIG). Bare in mind that this is just from the top of my head, and is probably irrational. On Mon, 03 Jan 2005 16:21:35 -0200, Manuel Lemos <[EMAIL PROTECTED]> wro

Re: [PHP] Re: critique this code please

2005-01-02 Thread Rory Browne
Nothing too serious, but saying as you did ask for a critique, I'll tell you things I'd have done differently. That DOES NOT necessarly mean that my way is better than yours, but may be something you need to take into consideration. // TEMPLATE function te

Re: [PHP] How to enable ftp in php5?

2005-01-02 Thread Rory Browne
depends on where you got PHP. If you compiled from source then you need to add --with-ftp or --enable-ftp in your ./configure command. Do a ./configure --help to find out more, ie which one. If you got it with an RPM based linux distro, then you probably need to install a php-ftp rpm. Oh, and sho

Re: [PHP] Is there any way that PHP will issue a warning when using undeclared vars?

2005-01-02 Thread Rory Browne
Unless I'm mistaken, which is quite possible considering that its been years since I set my error_level, to anything other than E_ALL, but I think you need to 'bitwise or' the error_levels instead of 'bitwise and' them. The default setting IIRC is E_ALL & ~E_NOTICE, which means all errors except E

Re: [PHP] handling large files w/readfile

2004-12-31 Thread Rory Browne
I'd go with Richards Basic idea, but if you're outputting a 100Mb file I'd use a hell of a lot bigger chunks than 4K. With the syscall and loop overhead, i'd go with at least half a megabyte, or more likely 2Mb depending on your amount of memory. To do this you'd change Richards echo fread($fp,

Re: [PHP] ereg function

2004-12-31 Thread Rory Browne
The ereg function doesn't have the capability to test the age of the person viewing your page. You have to depend on them to input their age in some way. Your answer depends on how your age is submitted. Assuming it is submited as $_POST['age'], you could perhaps use ereg("0*[7-9]$", $_POST['age']

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Rory Browne
Kilimajer <[EMAIL PROTECTED]> wrote: > Rory Browne wrote: > > Apologies Marek if you recieved this twice, I mailed you instead of > > the list first time around. > > > > me.is_confused() == true; > > > > What does it matter whether errors show at the top

Re: [PHP] Warnings on the bottom of the pages on Linux

2004-12-30 Thread Rory Browne
Apologies Marek if you recieved this twice, I mailed you instead of the list first time around. me.is_confused() == true; What does it matter whether errors show at the top or bottom of the page. They are probably different errors that show up, some of which show at the top, and others of which s

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Rory Browne
Sorry if you recieved this twice. Head's wreaked today, and I keep making mistakes, such as posting to a person instead of to the list. If you're using apache2 then you need to add something along the lines of --with-apxs to your ./configure line. With apache1.3 it was --with-apxs=/path/to/apxs. I

Re: [PHP] PEAR DB vs ADODB

2004-12-28 Thread Rory Browne
Haven't done much with either of them, besides reading docs, but I'd lean towards ADODB for its exception handling(with php5), if you need error handling. Having that said, I haven't really a clue what I'm talking about in this regard, so I'll be listening in with interest. On Wed, 29 Dec 2004 1

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-28 Thread Rory Browne
> $a = $b ^^ $c You sure? It didn't work for me, and it isn't listed in the PHP manual. I used: to test it and got a syntax error. I suppose you could use the bitwise one as a bit of a hack, so long as you 'boolean-ised' both arguments first. eg $a = (!!$b) ^ (!!$c); // or even $a = !$b ^

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-27 Thread Rory Browne
I think what this highlights is that the or operator isn't supposed to be used in that way. It is simply supposed to be used to add a back door to failed function calls. ie mysql_connect(args) or die("mysql connection failed") If you want to return true when either $a or $b is true, then use ||. e

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-26 Thread Rory Browne
I think what Jose is trying to say, is that because 'or' has a lower precidence than =, you are interpreting the expression wrong. $b1 = is_null($x) or ($y > 5); is the same as ($b1 = is_null($x)) or ($y > 5) This assigns the value of is_null($x) to $b1, regardless of the result of ($y > 5). It'

[PHP] getting name of class from a parent

2004-12-14 Thread Rory Browne
Hi I need a way to create an instance of a class, from a parent of that class. Lets say I have the following code: You may be wondering why I don't just " $instance = new utility_class " - the reason is that I want to only create one of these instances. I don't want any more than one instance

Re: [PHP] PHP cross platform IDE

2004-12-14 Thread Rory Browne
I use kdevelop. I'm not sure how cross-platform it is, since I've never tried to get it working on a non-linux machine, but it should run anywhere KDE will run. I'm not sure what you'd need to do to get it running on Windows. Vim is a text editor, albeit a very good one, but Not an IDE, even thoug

Re: [PHP] Classes and Functions

2004-12-12 Thread Rory Browne
your question is hard to answer. The difference between classes and functions is like the difference between a toolbox, and a spanner. A class is a container, that contains functions, and variables, or as they are called in Object-Oriented-Speak(methods, and properties). A method is a function tha

Re: [PHP] php variables in a backtick command

2004-12-11 Thread Rory Browne
I'm not sure about variable expansion with backticks(I don't use backticks, if necessary I use shell_exec() instead). I'm just after installing a fresh SuSE 9.1, and php is giving me a segfault at the minute, with that particular code, but if you were using double quotes you could: $command = "add

Re: [PHP] PHP via DIAL-UP?

2004-12-11 Thread Rory Browne
Assuming I understand you correctly, you want to connect to your office computer, which is running apache, from home. The fact that you are using win98 isn't particularly relevent, provided you can connect to the internet with it. Are you talking about connecting to your office computer through t

Re: [PHP] How do you work this thing

2004-12-09 Thread Rory Browne
On Thu, 9 Dec 2004 16:42:20 -0800, Chris W. Parker <[EMAIL PROTECTED]> wrote: > Wil Hitchman > on Thursday, December 09, 2004 4:40 PM said: > > > How does this work? > > It needs two D size batteries. > Or three C size batteries, depending on what the heck he is on

Re: [PHP] PHP Security

2004-12-08 Thread Rory Browne
> There are times when one needs to parse a file that ends in .jpg (or > .jpeg) as PHP. > > Specifically, broken browsers (various versions of IE) that ignore > Content-type: headers and use the URL to determine the MIME type will not > correctly display a URL such as: > > http://l-i-e.com/gd_exa

Re: [PHP] Coding Question

2004-12-05 Thread Rory Browne
If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct, and not a function, or anything that has a value. I could probably have said that better sober, and not at

Re: [PHP] [ANN]Webyog releases FREE edition of SQLyog

2004-12-05 Thread Rory Browne
t aware of), so PS Sorry for sending this to you twice Daniel. I forgot to change the reply to reply to the list first time around. On Mon, 6 Dec 2004 06:10:17 +0000, Rory Browne <[EMAIL PROTECTED]> wrote: > Regardless of the quality of the application, It is php-related > through PH

[PHP] Zend Training requirements

2004-12-03 Thread Rory Browne
Hi I was looking at Zend training requirements, on Zends website. They reportedly require Win2k/XP, and IE>5.5. Does anyone know what specific part of these training courses require Win2k/xp and IE, and whether or not it is possible to bypass this using Wine(or if it is due to a wma dep, using mo

Re: [PHP] How does one get into programming?

2004-11-27 Thread Rory Browne
Since this is a PHP list I'm assuming that you want to learn php programming. That being the case, I'd suggest that you first of all go to the PHP website and download the manual. You don't get better docs than the PHP docs, and they are an excellent learning resource for PHP. PHP is a good langu

Re: [PHP] PHP Supremacy...

2004-11-20 Thread Rory Browne
First thing you need to figure out is whether or not your manager is insane. That argument seems to come from either someone who is, or someone who hasn't a monos(monkeys) clue about software management. A few facts: dotNET runs on Linux - with the help of mono or dotGNU. Check them out, and use

Re: [PHP] inline_C installation

2004-11-12 Thread Rory Browne
Not really answering the question(considering that I'm not really sure if the last reply answered it or not) at hand, but inline_c is infact a pear package. It is written in Pure PHP. It works by writing the C Code into a file, using standard php stream functions, and then using the program exectut

Re: [PHP] Re: heredoc syntax

2004-10-20 Thread Rory Browne
What OS are you using? On windows, you may have problems with the \r\n newline system. I read somewhere that the heredoc syntax requires the use of unix-style \n's Are you getting any error messages. If it didn't work you should get a syntax error. If so what was it? On Wed, 20 Oct 2004 20:46:54

Re: [PHP] File and line that called a function?

2004-10-18 Thread Rory Browne
Sorry accidently replied off-list I basicly said to check out debug_backtrace() at http://www.php.net/debug-backtrace On Mon, 18 Oct 2004 13:56:33 -0600, Adrian Madrid <[EMAIL PROTECTED]> wrote: > Is there a way to know which file and line called a function youo are > in? I want to create an er

Re: [PHP] Zend PHP Certification test

2004-10-17 Thread Rory Browne
I've been looking all over the Zend Cert site, trying to find the passing rate, ie how many questions I have to get right in order to pass. Is this information secret, or have I just not looked in the right place. If it's the latter, please enlighten me. Thanks Rory -- PHP General Mailing List

Re: [PHP] Re: PHP5 and Multi Inheritance?

2004-10-17 Thread Rory Browne
I'm not sure, but I think the only way you are going to get MI in PHP, is if you implement if yourself. By this I mean, implementing the correct __get(), __set(), and __call() functions. On Sun, 17 Oct 2004 18:32:34 +0400, M Saleh EG <[EMAIL PROTECTED]> wrote: > Thanx Mathew > I guess I found it

Re: [PHP] Read word documents on a Linux server

2004-10-05 Thread Rory Browne
I'd also try and find a way of automating openoffice. Check first though, to ensure that the quality of the converted document is up to scratch. Having that said, OO.o has a pretty good reputation for this. On Tue, 05 Oct 2004 21:49:01 +0600, raditha dissanayake <[EMAIL PROTECTED]> wrote: > Jacob

Re: [PHP] Zend PHP Certification test

2004-09-30 Thread Rory Browne
I haven't done the exam, yet, but based on some of the practice questions, I'm getting worried. I'm finding sample questions whose answers are not covered in the book. One such question was a list(, $var) = whatever, and nowhere in the book could I find an explanation for same. I've also used coun

<    1   2   3   4