Re: [PHP] How to execute local applications on the client

2005-06-07 Thread Rory Browne
Sort of. There are two ways to do this(that I can think of, and neither of them are too reliable. Consider this: how would you like if any random website, could run any program they liked on your computer? This could range from word/excel, to less amicable programs like ones that control your

Re: [PHP] linux php editor

2005-06-06 Thread Rory Browne
Cut the red, connect the blue, and green.. In seriousness though I like vim, and Kate. On 6/6/05, John Nichel [EMAIL PROTECTED] wrote: Greg Donald wrote: On 6/6/05, John Nichel [EMAIL PROTECTED] wrote: You newbies and your fancy editors. Back in my day, you got vi, and you

Re: [PHP] linux php editor... Quanta +... The best!

2005-06-06 Thread Rory Browne
Is there a particular reason why you changed the subject? It screws up threads on some clients - including mine. On 6/6/05, Andy Pieters [EMAIL PROTECTED] wrote: On Monday 06 June 2005 21:41, Clive Zagno wrote: what php GUI editors do you recommend. Ive used bluefish before, any other

Re: [PHP] Frames or iframes? (Basically The devil or deap sea or A rock and a hard place etc) - - - - (0T)

2005-06-05 Thread Rory Browne
On 6/4/05, Ryan A [EMAIL PROTECTED] wrote: Hey, .swf files are not cached by the browsers? Seems they are, so you don't need to care about frames. Simply output the html needed to load the flash file each time, the flash will be downloaded only once. .. Yep, but the

Re: [PHP] ampersands in href's

2005-06-05 Thread Rory Browne
I actually forgot that 's are supposed to be amp;'ed when putting them into SGML(HTML . XML, etc). I retract my previous statments on the matter. On 6/4/05, Jack Jackson [EMAIL PROTECTED] wrote: Rory Browne wrote: On 6/4/05, Jack Jackson [EMAIL PROTECTED] wrote: Hi, Rory Rory Browne

Re: [PHP] autocomplete a field

2005-06-04 Thread Rory Browne
On 6/4/05, xfedex [EMAIL PROTECTED] wrote: Hi, Anyone know if theres a way to disable this feature for user using old browsers or not suporting JS/XML? Put your JS Code in html comments, like as follows... script ... !-- JS_CODE_HERE() //-- /script Thanks, pancarne. -- PHP

Re: [PHP] Exporting to MS Word or Excel

2005-06-04 Thread Rory Browne
On 6/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To export it exactly as displayed (like when you print to a virtual printer to generate a PDF) might be tricky, but you can definitely create Excel and I believe Word files without even having Excel or Word installed. If you DO have

Re: [PHP] ampersands in href's

2005-06-04 Thread Rory Browne
I think you have the idea. The 's are used to seperate the various variables. If you want to set $p to something like 'Tom Jerry' then personally I'd do something like: ?php $p = Tom Jerry; $s = Cat Mouse; printf(a href='{$_SERVER['PHP_SELF']}?p=%ss=%s, urlencode($p), urlencode($s)); ? On

Re: [PHP] ampersands in href's

2005-06-04 Thread Rory Browne
On 6/4/05, Jack Jackson [EMAIL PROTECTED] wrote: Hi, Rory Rory Browne wrote: I think you have the idea. The 's are used to seperate the various variables. If you want to set $p to something like 'Tom Jerry' then personally I'd do something like: ?php $p = Tom Jerry; $s = Cat

Re: [PHP] Accessing DLL from PHP

2005-06-03 Thread Rory Browne
On 6/2/05, Rory McKinley [EMAIL PROTECTED] wrote: Richard Davey wrote: snip If the DLL has a COM interface then you can use PHP to talk to it, the process is actually quite straight forward (depending on what the DLL actually does of course). Best regards, Richard Davey snip Hi

Re: [PHP] Site Design Strategy

2005-06-03 Thread Rory Browne
On 6/3/05, Greg Donald [EMAIL PROTECTED] wrote: On 6/3/05, Angelo Zanetti [EMAIL PROTECTED] wrote: what you are looking for is a CMS system something like www.plone.org also there is an rich text HTML area which you can use on your site, check this out:

Re: [PHP] Quick q, most prolly 0T

2005-06-03 Thread Rory Browne
On 6/2/05, Ryan A [EMAIL PROTECTED] wrote: Hi Chris, Thanks for replying I noticed a site that is using php, but he is has shortened the url so that the filename was not shown.. eg: somesite.com/?a=1 How did they do that? It's called a directory index. Examples include

Re: [PHP] htmlArea - a 'client editor'

2005-06-03 Thread Rory Browne
htmlArea afaik only works on MSIE 5+. It doesn't work on Mozilla/Firefox/etc. On 6/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Ryan A: Do you mean htmlArea? http://www.dynarch.com/projects/htmlarea/ .. we used htmlArea in one of our projects and were quite happy with the simple

Re: [PHP] .INC files

2005-06-02 Thread Rory Browne
I do not agree. Not agreeing with Rasmus on a PHP list, can be seriously damaging to your credability, unless you really know what you're talking about and have a solid argument. Having that said, I personally use .inc.php - .inc as Rasmus said, to denote include files, and .php because I

Re: [PHP] Accessing DLL from PHP

2005-06-02 Thread Rory Browne
I'm not too sure, but that sounds like a job for ffi. I think you'll find ffi at pecl.php.net, although, be warned that I've never used ffi, nor have I read any reports as to how well it worked. On 6/2/05, Rory McKinley [EMAIL PROTECTED] wrote: Hi list I do not have much programming

Re: [PHP] Questionary Development - Continued

2005-06-02 Thread Rory Browne
On 6/2/05, Chris Boget [EMAIL PROTECTED] wrote: That being the case, you may want to consider ajax, so that users answers are recorded as soon as they make them. What's 'ajax'? Link please? www.google.com thnx, Chris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Questionary Development - Continued

2005-06-02 Thread Rory Browne
Sorry I thought I'd sent this to the list. On 6/1/05, Rory Browne [EMAIL PROTECTED] wrote: http://www.adaptivepath.com/publications/essays/archives/000385.php www.wikipedia.org/wiki/AJAX On 6/1/05, Ryan A [EMAIL PROTECTED] wrote: That being the case, you may want to consider ajax

Re: [PHP] [Files suffix] .inc.php files

2005-06-01 Thread Rory Browne
moving outside the webtree is the best option, where practical. Calling the files whatever.inc.php allows you to disallow access to .inc.php files via the apache config file. On 6/1/05, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, May 31, 2005 10:55 am, Leif Gregory said: Hello Martin,

Re: [PHP] Questionary Development

2005-05-31 Thread Rory Browne
On 5/31/05, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, May 28, 2005 10:08 am, ...helmut said: I have a form that contains 100 questions. To make it easier on the user, I will divide it into 5 sections (20 questions per section), then all the information will be written to a db. What

Re: [PHP] php forum and (almost certainly 0T) client editor

2005-05-31 Thread Rory Browne
I don't know as much about forums today, as I did a few years ago, but AFAIK most GUI BBCode Editors are simple html wysiwyg tools, that convert to bbcode in the background. On 5/31/05, Ryan A [EMAIL PROTECTED] wrote: Hey guys (and girl...as we have one on the list...(that i know of)), Can

Re: [PHP] TEST

2005-05-31 Thread Rory Browne
It sometimes takes a while for posts to get through to the list. On 5/31/05, Martin Zvarik [EMAIL PROTECTED] wrote: test dammit, doesnt work -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Questionary Development - Continued

2005-05-31 Thread Rory Browne
That being the case, you may want to consider ajax, so that users answers are recorded as soon as they make them. On 5/31/05, ...helmut [EMAIL PROTECTED] wrote: Hello All, Thank you for all the wonderful ideas, there are so many things that can be over look when working by yourself. When

[PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Rory Browne
. -- Disclaimer: This has been a weak attempt at jest. Only 2 cute and fluffy bunny rabbits were harmed during this endeavour. On Mon, 2005-05-30 at 19:49, Ryan A wrote: Hehe, well put...a few things you forgot to write: Ryan A and Rory Browne got so irritated because its like talking

Re: [PHP] Re: How to make a script sleep for 5 seconds?

2005-05-30 Thread Rory Browne
On 5/31/05, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, May 30, 2005 7:17 pm, Peter Brodersen said: On Mon, 30 May 2005 21:08:29 -0400, in php.general [EMAIL PROTECTED] (Robert Cummings) wrote: Sorry to hijack this thread but I was wondering how to make a script sleep for 5 seconds?

Re: [PHP] novice: how to run .sql script from php?

2005-05-29 Thread Rory Browne
). Where did you get the execQuery() from? If you have an execQuery() function that allows you to do multiple queries seperated by semicolons, then you're sorted. 1 not very good but does the job. thanks for all the help tony yau Rory Browne [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Questionary Development

2005-05-29 Thread Rory Browne
If you insist on doing this serverside, then personally I'd probably use hidden form fields. If you're open to doing it client side, then I'd probably out the information into five div sections, only one of which would be visible at any one time. using dhtml. What you want is the CSS visibility

Re: [PHP] Re: Free penetration test

2005-05-28 Thread Rory Browne
Okay: 1: Calm down. You're sensationalism and paranoia make you look like a nutcase.(no offence) 2: That would be irrelevant because nothing changes for the anybody that follows the link with or without the aff code. The service is still free Obviously we don't consider it irrelevent. That's

Re: [PHP] novice: how to run .sql script from php?

2005-05-27 Thread Rory Browne
I'm assuming that the .sql file consists of a list of MySQL queries, that when performed sequentially will set up your system. That being the case, the perfered way ot install the thing is to do a 'mysql [host/username/password parameters] file.sql'. I believe you can also run file.sql scripts

Re: [PHP] Building multi-page Word docs with PHP?

2005-05-27 Thread Rory Browne
If it were that important, then you could probably figure out a way to get OOo, to do it through Uno. On 5/25/05, Brent Baisley [EMAIL PROTECTED] wrote: I've only read about being able to generate a Word document if you are running under Windows (which I am not). I gave up long ago trying to

Re: [PHP] Building multi-page Word docs with PHP?

2005-05-27 Thread Rory Browne
Before we get ahead of ourselves, can we ask what OS you're using George? If you're using Windows, then you have COM. If you're not insane, then you'll have to use unix tools. For turning documents TO word docs, then the only way I can think of is to script OOo in some way. I'm assuming that

[PHP] CGI's on Apache

2005-05-27 Thread Rory Browne
Hi all. I know this isn't php related, but I'm not subscribed to an apache mailing list, and this is probably the closest of all the mailing lists I'm subscribed to, to the topic. I tried to enable CGI in my $HOME/public_html directory, by adding the ExecCGI option, to the Directory

Re: [PHP] Voting Polls and preventing multiple votes

2005-05-27 Thread Rory Browne
On 5/26/05, Dan Rossi [EMAIL PROTECTED] wrote: Hi there I am mocking up a quick voting poll system, however I would like to put hooks in place to prevent users posting more than once, voting bots etc. You could use a captcha(www.captcha.net afaik), to prevent bots from voting. Is there a way

Re: [PHP] how to convert char into number

2005-05-27 Thread Rory Browne
www.php.net/chr or www.php.net/ord forget which is which - I always have to check. On 5/25/05, Jeremy Reynolds [EMAIL PROTECTED] wrote: What function do I use to convert an ASCII character into it's equivalent number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: [PHP-DB] Letters loop

2005-05-27 Thread Rory Browne
or foreach(range('A', 'Z') as $letter){ echo option value='$letter'$letter/option } www.php.net/range On 5/27/05, Rory Browne [EMAIL PROTECTED] wrote: I didn't see the OP, but: for($i = 'A'; $i != 'Z'; $i = chr(ord($i) +1)){ echo \toption value=\$i\$i/option\n; } On 5/26/05

Re: [PHP] Re: [PHP-DB] Letters loop

2005-05-27 Thread Rory Browne
I didn't see the OP, but: for($i = 'A'; $i != 'Z'; $i = chr(ord($i) +1)){ echo \toption value=\$i\$i/option\n; } On 5/26/05, Stephen Johnson [EMAIL PROTECTED] wrote: Then this is what I would suggest. $alph = array('*', 'A', 'B','C'...etc) ; $i=0; EchoSelect name=foo;

Re: [PHP] Re: Free penetration test

2005-05-27 Thread Rory Browne
On 5/27/05, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, on 05/27/2005 02:30 PM Ryan A said the following: You may want to try Security Space services. They perform many types of security checks remotely including penetration tests that may reveal serious vulnerabilities in your servers.

Re: [PHP] fopen for http://

2005-05-27 Thread Rory Browne
On 5/27/05, Jay Paulson [EMAIL PROTECTED] wrote: Hello all- I was wondering if anyone knew of a way to call a web site using fopen. Let me tell you how things are set up and what I'm trying to do. I can call fopen to read a site and then echo it back out. That's not a problem. The

Re: [PHP] Recursion: Ugh!

2005-05-26 Thread Rory Browne
This would have been easier if you'd posted the php code to create the array, as opposed to the output of print_r. I did this: ?php $arr = array( array( 'name' = 'food', 'children' = array( array( 'name' = 'meat',

Re: [PHP] SMarty and commercial php (a little 0t)

2005-05-21 Thread Rory Browne
I was wondering if its a good idea to template via smarty and include smarty with my code? also instructions to setup smarty when setting up the application i made? Good idea compared to what? Compared to a different templating library, compared to writing your own templating library, or

Re: [PHP] SMarty and commercial php (a little 0t)

2005-05-21 Thread Rory Browne
Yep, left myself quite open there...should have been more specific. I will not write a templating library myself because there are so many out there, it would be a learning experience of course but other than that I think it would be rarely needed. I meant bundling it along with the

Re: [PHP] ZEND Certification

2005-05-21 Thread Rory Browne
sentence indicates is that not everyone here is experienced. Everyone has to start somewhere, and this list encourages learning, as well as black-voodoo-magic-trick swapping. I have looked at yellow pages, seems like you're not there either, Rory Browne... That might have something to do

Re: [PHP] Search problem

2005-05-21 Thread Rory Browne
On 5/21/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I need to build up a search module for a shop. If I make a basic search (product title for example) it is ok. $query = SELECT product_id FROM products WHERE title LIKE '%$title%'; But i need an advance search for more than one

Re: [PHP] How to confirm subscriptions by e-mail on a PHP site ?

2005-05-20 Thread Rory Browne
You can either email them an URL containing an activation code, which would have them activate in their browser. If you don't understand the terms .forwared, or MTA, you should probably either learn more about them or skip to the third paragraph. If you want them to activate using their email

Re: [PHP] ZEND Certification

2005-05-20 Thread Rory Browne
On 5/20/05, Martin Zvarik [EMAIL PROTECTED] wrote: Hi, anyone has taken ZEND PHP Certification Exam??? Yes. Loads of people here have taken it. Loads of other people here set the questions. Please can you give me some information about it? I'm sure you'll get lots of useful and encourageing

Re: [PHP] Can I prevent Server variables from being spoofed ?

2005-05-20 Thread Rory Browne
Not only can the user agent string be easly spoofed, but as a result of its abuse by certain webmasters(mostly Banks) Browsers such as Opera, and I believe Konqueror, have a setting that allows you to change the user agent string as a configuration option. The UserAgent is a hint. It is most

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rory Browne
if you have an image generated by http://www.example.com/createimage.php , you could always refer to it as http://www.example.com/createimage.php/{no_of_seconds_since_unix_epoch}.png On 5/19/05, Rahul S. Johari [EMAIL PROTECTED] wrote: On 5/19/05 10:59 AM, Murray @ PlanetThoughtful [EMAIL

Re: [PHP] hey dip shit

2005-05-18 Thread Rory Browne
This list could really use an active moderator. Um no. You can't moderate what's already in peoples mailboxes, and if you're going to have all posts manually approved before delivery, then you're going to seriously affect the responsiveness of the list. Besides that post was harmless, was

Re: [PHP] hey dip shit

2005-05-18 Thread Rory Browne
I didn't say anything about approval before delivery, and I really can't see how an active moderator would screw up the list. You mean having someone around who can remove email addresses subscribed to the list that generate bounces would be a bad thing? Fair enough. That just wasn't my

Re: [PHP] hey dip shit

2005-05-18 Thread Rory Browne
Hell, I'll do it...if there are no objections from the established list members (like that will happen ;) John has my vote for what it's worth :) Ah why not? The man has a vision. /me seconds Jochams vote for John. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Jakarta Tomcat and PHP

2005-05-18 Thread Rory Browne
I don't know if you checked out www.php.net/java but it seems to be what you're looking for. On 5/18/05, Evert | Rooftop [EMAIL PROTECTED] wrote: My guess would be looking for how to use PHP as a CGI in tomcat. So check out the manual for CGI stuff. grt, Evert Chris Holden wrote: Hi,

Re: [PHP] Sending a string with $_POST/$_GET

2005-05-18 Thread Rory Browne
You don't set $_GET variables, like $_GET['name'] = whaever and expect to do something along the lines of echo $_GET['name'] in another page. To assign a value as a GET variable on another page, then you make the url of the other page whatever.php?name=value Then in whatever.php you can do

Re: [PHP] Responses in my email.

2005-05-18 Thread Rory Browne
This is primarly a mailing list. Not a news group. The whole idea of a mailing list is that you get every message mailed to you. If you don't want this then unsubscribe. You could always filter out any email sent to php-general, or containing the term [PHP] in the subject. On 5/18/05, Robert

Re: [PHP] Cache

2005-05-17 Thread Rory Browne
Probably, but not serializing at all, and stuffing the data directly into shared memory would perhaps be faster, at least as I vaguely understood the results of a thread on serialization on this very forum from a month or two ago. (Check archives for serialize shared memory and Rasmus

Re: [PHP] PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread Rory Browne
I don't think php-gtk is currently suitable. As of 22 April Andrei was considering a very early alpha release. Taking that into consideration I'd doubt if it's stable enough yet for production. Gtk 1 is afaik obsolete. If you're going to jump to a different language, then I'd seriously consider

Re: [PHP] WINBINDER! WOOT! Re: PHP-GTK, or something else, for desktop app development?

2005-05-16 Thread Rory Browne
On 5/16/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I missed the original post, but if you're looking at doing Windows desktop development and want a GREAT alternative to GTK, definitely check out Winbinder! Rubem and crew have done an awesome job (even though he modestly calls it an

Re: [PHP] Firefox COM object

2005-05-16 Thread Rory Browne
XPCOM is similar to COM, except that it is Cross Platform, and doesn't support DCOM. On 5/16/05, Dang Nguyen [EMAIL PROTECTED] wrote: Hello, I would like to write some PHP scripts to automate web testing. I already have a framework that uses the COM class to automate the tests in IE. Now,

Re: [PHP] Cache

2005-05-16 Thread Rory Browne
Interesting idea. Using three identifiers, as a key. md5() returns a 32 hex-digit value. That means that there are can only be a maximum of 3.4 * 10^38 possible outcomes for the md5(). This means that there there is a 1 in 340 chance of a collision between

Re: [PHP] Components

2005-05-16 Thread Rory Browne
Thank you I will look into it ;) but right now I'm also looking for the php-developers' opinions. So, what are your ideas about this? AFAIK Prado recently won a fairly well respected PHP Contest. I think the results speak for themselves. On 5/17/05, Evert | Rooftop [EMAIL PROTECTED] wrote:

Re: [PHP] php works in IE not Firefox?

2005-05-14 Thread Rory Browne
it seems more likely that the server is having issues. On 5/14/05, Simon Allison [EMAIL PROTECTED] wrote: By the time a properly executed script(executed on the remote server) gets to your computer, regardless of the fact it was done in php(or any other server side language for that matter) it

Re: [PHP] Hello, I'm new...

2005-05-14 Thread Rory Browne
I only really put in the bit about the community site as a sort of statement about where I would like to go in my php quest. When I recently looked at asp.net, Microsoft had a Community starter kit/framework which included all the basic modules/applications needed to get such a site up and

Re: [PHP] Hello, I'm new...

2005-05-14 Thread Rory Browne
AFAIK, PHP doesn't offer that kind of packaged approach. Perhaps there's a major difference between the way MS approaches things and the way PHP/open source does. Traditional ASP, and PHP, were fairly similar. ASP.NET and PHP are two very different solutions, to what is possibly the same

Re: [PHP] Hello, I'm new...

2005-05-13 Thread Rory Browne
A community website. Explain. Decide what features you want this community site to have. Once you've figured out(or explained) what type of services you want to offer to your community, and then check out hotscripts.com, or google. Three scripts that come to mind, are phpgroupware, phpbb, and

Re: [PHP] Hello, I'm new...

2005-05-13 Thread Rory Browne
Well now I don't even know what a framework is. I was expecting someone to say Oh, you should use model view controller or something. All the answers seem to be applications. Are applications frameworks? I never checked the dict def of a framework, but I always considered them to be

Fwd: [PHP] Pfpro PHP

2005-05-13 Thread Rory Browne
Forgot to cc to list I'm assuming you're running ./configure, which should be a shell script. I can't remember whether is's a /bin/sh or /bin/bash script, but if it's /bin/sh try modding the first line, which should #!/bin/sh to #!/bin/sh -x, similarly a /bin/bash script would be modded to show

Re: [PHP] Pfpro PHP

2005-05-13 Thread Rory Browne
dump the out put to a file output.txt Can you please see the file and tell me what is the problem? -- Sincerely, Rezk Mekhael -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Friday, May 13, 2005 12:04 PM To: Rezk Mekhael Subject: Re: [PHP] Pfpro PHP I'm

Re: [PHP] Form handling

2005-05-13 Thread Rory Browne
What other methods would be good to use? Using a giant if statement? Did you read my code for this? It consisted of two lines, which basicly did the same thing as your massive ugly switch statment. It also does a limited amount of error-checking, in that it checks to make sure that the file

Re: [PHP] Form handling

2005-05-12 Thread Rory Browne
Personally I'm lazy, but I'd probably go with something along the lines of $filename = sprintf(step%d.php, (int)($_SESSION['step']) ); require ( file_exists($filename) ? $filename : step1.php ); same results in two lines of code - was one line, but I split it into two lines to make it more

Re: [PHP] Re: A couple questions about templating

2005-05-11 Thread Rory Browne
Anyways, I restructered my code, and as far as I can see there is nothing wrong with the code, except for that it simply doesn't work :) That's usually considered a fairly serious problem. I'm probably missing something blatently obvious but I'll post it and maybe someone can spot why this

[PHP] protect your CSS files, and possibly other extenstions as well...

2005-05-11 Thread Rory Browne
Sorry Richard if you received this twice. Okay let me get this straight: You protect your includes by making sure that they have a protected string defined? You pass JS and CSS through PHP, and output a 404 unless they've got a HTTP_REFERER variable set to whatever you want it to be? I guess

[PHP] Generating a php file

2005-05-11 Thread Rory Browne
You can start by clarifying. I had to read your message three times before I got a vague understanding. What I'm hearing is that you want to put something like ?php $msg = get_message(); ? into a string? You are having difficulty doing this because you are finding that your string contains the

[PHP] Generating a php file

2005-05-11 Thread Rory Browne
= $_SERVER[QUERY_STRING]; $somevar = \'%s\'; ?' , $this-somevar ); On 5/11/05, Dan Rossi [EMAIL PROTECTED] wrote: On 12/05/2005, at 6:03 AM, Rory Browne wrote: You can start by clarifying. I had to read your message three times before I got a vague understanding. What I'm hearing is that you

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread Rory Browne
This has all been done before, and in a number of ways. If you really *must* build your own templating class, go and thoroughly review the code of those that already exist: Smarty, Savant, paTemplate, FastTemplate, etc. Figure out how each solved the problems. Then determine if you can

[PHP] PHP 5, mySQL and Win XP. I NEED HELP

2005-05-09 Thread Rory Browne
Sorry - forgot to CC to list. Personally I have a feeling that if you take out the :3306, your script might just work. I read somewhere that on unix, mysql used a unix socket whenever the hostname was localhost. On unix localhost:something means that something is a unix socket, when it would

Re: [PHP] Reducing size of htm output

2005-05-09 Thread Rory Browne
But I remember gz encoding works fine with IE 5. Shouldn't be a problem with 5.5. Did you try downloading the same compressed page twice, and checking the server logs, to see if it loaded from cache the second time around? Cheers, Prathap -- Original Message ---

Re: [PHP] numbers as strings

2005-05-09 Thread Rory Browne
For the most part you can simply treat them as strings. What is happening that shouldn't be happening, or what should be happening, but isn't? let us say $a = 1; $b = 2; $c = 0; $str_a = (string)$a; $str_b = $b I would like to be able to $str = $c.$a.$b; Does that not work? What happens

Re: [PHP] Re: [PHP-DEV] make new return a reference to existent object

2005-05-09 Thread Rory Browne
I think Leonardo might have a point here. Built-in support for Singletons could be a nice feature, without the use of static functions, would be nice. I wouldn't use the 'new' keyword however. I think something along the lines of existing, or ref $ref = existing TEST; // which would return an

Re: [PHP] A couple questions about templating

2005-05-09 Thread Rory Browne
I am trying to make a small, fast, and simple templating class... Now I have mastered the art of variable replacement, and have made two versions. The first one I made simply used file() to load up the file into an array, Personally I think you should use file_get_contents() instead.

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

2005-05-08 Thread Rory Browne
either follow each echo call with a flush() function call, or enable the implicit_flush in php.ini, or ini_set(). I don't think output buffering as described in the php docs is particularly relevent in this case. Bare in mind that some browsers don't display data either until they have received

[PHP] Re: Reducing size of htm output

2005-05-07 Thread Rory Browne
First of all as Rasmus said, this 'compression' is barely(if at all) going to make a difference, after your pages have been compressed wth gzip, There are two reasons for this: 1 compression techniques detect repeated strings(such as spaces or newlines), and replaces them with one instance of

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Rory Browne
excuse me? since when is this considered /good/ practice??? It's one of those things that are concidered /bad/ practice according to w3... Hmmm, didn't know the w3c had an opinion on the usage of !-- //-- tags to delimit javascript. I've always been recommended to use them, to hide the script

Re: [PHP] Re: Reducing size of htm output

2005-05-07 Thread Rory Browne
Besides, whether or not it's considered good practice to comment out js to non-js-capable browsers, a lot of people do it. And for the record, I wouldn't condone the removal of comments from code that someone may need to read sometime. HTML outputted from php is generally however only meant for

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Rory Browne
Try www.phpclasses.org/phpmailer I've never used it but it's mentioned quite a lot. On 5/6/05, Bosky, Dave [EMAIL PROTECTED] wrote: Any recommendations for PHP classes that will send email messages with attachments? Thanks, Dave HTC Disclaimer: The information contained in this

Re: [PHP] compiling dynamic extensions without root access

2005-05-06 Thread Rory Browne
yes you can do if u have compiled apache to support apache dynamic extensions. It doesn't matter how you compile apache. It's how you've configured PHP, and what type of server it's running on, how the server handles multiple clients. Zeus, and IIS don't AFAIK support dl(). I reckon it's safe

Fwd: [PHP] Re: How do you declare Vars in PHP? -I know it's not necessary, but I still want to know

2005-05-05 Thread Rory Browne
Otherwise you can 'declare' them by assigning them a null/zero/empty value. $my_number = 0; $my_string = $my_array = array(); The main reason for 'declaring' variables in PHP, is so that you can use them in functions without raising an E_NOTICE. On 5/5/05, Ryan Faricy [EMAIL PROTECTED] wrote:

Re: [PHP] Re: How to declare Vars in PHP?

2005-05-05 Thread Rory Browne
Next time you double post(I'm assuming by accident), could you reply to one, of the posts declaring it void, and point people to the other, so that you don't have two people answering the same question in two different threads. On 5/5/05, Ryan Faricy [EMAIL PROTECTED] wrote: Jon M. [EMAIL

[PHP] Re: Error suppression operator (@)

2005-05-05 Thread Rory Browne
ditto everyone who said use it if you don't care about errors, but don't use it in places where you expect errors. Also don't use it in places where it can be avoided with minimal cost. For example if you have an optional field, and people usually fill it in, and rarely leave it empty, then you

Re: [PHP] to pass session from one websever to another webserver

2005-05-05 Thread Rory Browne
In that case you're probably best to have a single source for the session data, and simply pass the SessionID as a $_GET variable in the URL. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] to pass session from one websever to another webserver

2005-05-04 Thread Rory Browne
Elaborate. Do you want to pass the sesson from server_1 to server_2, and use the session on server_2 instead of server_1, or do you want to use the session on both servers at the same time, or switch frequently between both machines? On 04 May 2005 18:24:07 +0530, Balwant Singh [EMAIL PROTECTED]

Re: [PHP] Re: Can someone help me build a regular expression?

2005-05-02 Thread Rory Browne
You mite try this. I know that this work with perl. =~ m/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/ I'm not sure what the initial m does(I'm not a perl person), but the rest of the regex matches as follows. A string whose first character is a digit between 0 and 9. This is followed by an Upper case

Fwd: [PHP] Re: Can this code go faster?

2005-04-30 Thread Rory Browne
I sent this about a week ago, but I forgot to 'reply to all', and send it to the list. Thanks Rolf for pointing that out to me. I'm not totally sure, but this might work. I'm too tired to understand rolf's masks, but: ?php function bin2int($bin){ $a = bindec($bin); return ($a 128) ? ($a) :

[PHP] explode a string

2005-04-20 Thread Rory Browne
Sorry jocham, for you getting this twice. I'd assume foreach is recommended because it lends to more readable code. More readable code, is generally considered better code. Personally I'd disagree and use while( list() = each() ), because it doesn't create a copy of the array in memory,

Re: [PHP] php and linux shell script

2005-04-19 Thread Rory Browne
http://gtk.php.net/ Can you elaborate on what gtk has to do with making command line dialog boxes? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List

Re: [PHP] can I join two mp3 files with php

2005-04-19 Thread Rory Browne
Are you on Windoze or Linux. If you're on linux, I'm sure you could rig up something with mencoder. If you're on windoze, you might still be able to use mencoder, but I'm not sure, and you may find yourself with the need to explore other options. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: CFP: DLS05: ACM Dynamic Languages Symposium

2005-04-18 Thread Rory Browne
There are times when cross-posting is approperate, and times when it isn't. In this case it's approperate. In the case of replying to his cross-posting it isn't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php + flash, need some help making a small .FLA

2005-04-17 Thread Rory Browne
I've only used flash, a couple of times( many years ago ), so I can't be of very much help, but you might be able to do something with ming - http://www.php.net/ming . If I remember correctly it would involve referencing images by their URL - images which would on the backend be served up with

Re: [PHP] Need help with file permissions for PHP files

2005-04-17 Thread Rory Browne
Two things Rory a. You only replied to me, instead of the list. You have to probably click on reply to all in your mail client. I have included the lists address for this reply, so that it will appear there. Yeah sorry about that mailing you only thing. All the other lists I'm

Re: [PHP] Need help with file permissions for PHP files

2005-04-17 Thread Rory Browne
Because now it's out of order. On 4/18/05, Ryan A [EMAIL PROTECTED] wrote: PLEASE lets not start on the. Only Joking. 2. Because it reads out of order. Why? Why? Top posting is bad. III. Trimming is good, because it gets right to the point. .top posting

Re: [PHP] Re: A question

2005-04-16 Thread Rory Browne
you write a script containing ?php phpinfo(); ? and ?php phpinfo(); ? 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

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 the

Re: [PHP] Re: trying to send mail via localhost

2005-04-16 Thread Rory Browne
I'm not expert, on this area, but unless I'm mistaken, that happens when the email address you are sending the mail to doesn't exist. For example if you try to send a mail to [EMAIL PROTECTED], when the actual address is [EMAIL PROTECTED], the username monk will not exist. Check your 'to' address.

<    1   2   3   4   >