Re: [PHP] How php works?

2006-12-19 Thread Rory Browne
That's nice. It's also not what I asked. I asked what it was that made it GPL-incompatible. 6. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes PHP software, freely available from ". I don't re

Re: [PHP] Detecting naughty sites

2006-11-28 Thread Rory Browne
I didn't mean something quite that simple, or as an absolute solution. I meant something slightly more advanced, but based on that idea. From a robot point of view, what do you think is the difference between the php archives and a porn site? On 11/28/06, Paul Novitski <[EMAIL PROTECTED]> wro

Re: [PHP] Detecting naughty sites

2006-11-28 Thread Rory Browne
If the sites home page contains the words sex, babes, and a few other choice words, which I'll leave to your imagination, then chances are it's a porn site. On 11/28/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Dave Goodchild wrote: > Hi all. I am building a web app and as part of it advertisers c

Re: [PHP] Running AMP from CD

2006-11-27 Thread Rory Browne
http://www.wellho.net/solutions/general-windows-running-apache-and-mysql-from-a-cd.html On 11/27/06, Paul Scott <[EMAIL PROTECTED]> wrote: On Mon, 2006-11-27 at 03:39 -0800, Ryan A wrote: > Any help appreciated, even if its a one line link, thanks in advance! Our team ships our products as an

Re: [PHP] To install a small program from a web browser

2006-11-25 Thread Rory Browne
But he still wants to install programs without knowledge to the users of his membership site (and no it's not a pornography site...I don't do pornography sites). Let me paraphrase that. He still wants to circumvent the users security, and install programs without their knowledge. Incase I ha

Re: [PHP] security question

2006-11-23 Thread Rory Browne
Sorry didn't quite get that finished - hit send by accident ( and had it go to one person, instead of to the list ). Few quick tips - not all strictly security related, but may affect security. Devel

Re: [PHP] Please hack my app

2006-11-22 Thread Rory Browne
If you need your code audited ( or site hacked, or any other PHP security related stuff), and you have a budget for it. and if you can find him you can hire - Chris Shiflett. google for brainbulb. On 11/22/06, Ivo F.A.C. Fokkema <[EMAIL PROTECTED]> wrote: On Wed, 22 Nov 2006 09:53:00 +, S

Fwd: [PHP] Highjack?

2006-11-13 Thread Rory Browne
-- Forwarded message -- From: Rory Browne <[EMAIL PROTECTED]> Date: Nov 13, 2006 7:12 PM Subject: Re: [PHP] Highjack? To: [EMAIL PROTECTED] On 11/13/06, bruce <[EMAIL PROTECTED]> wrote: eric... you say how embarrasing regaring the $path.'foo' i'

Re: [PHP] PHP product licensing...

2006-11-12 Thread Rory Browne
Google for ASP Loophole. On 11/12/06, Jon Anderson <[EMAIL PROTECTED]> wrote: I'll get right to the point, then explain after... I'm looking to release some PHP code as partially open-source. Basically a GPL-like license for non-commercial use, and proprietary license for anyone else. I'm won

Re: [PHP] PHP, MySQL- Interested?

2006-11-10 Thread Rory Browne
I fully endorse this as a project for you to learn php better. Having a project is the only way you'll learn. Keep in mind however that there are already frameworks which do the same thing. Check out cakePHP, or php on trax - the former AFAIK has better docs. On 11/10/06, John Sladek <[EMAIL P

Re: [PHP] list of countries

2006-11-07 Thread Rory Browne
A MySQL list would have been a better place for this. Then again Most people on the MySQL list would have known about http://dev.mysql.com/doc/world-setup/en/world-setup.html where as people on this are less likely to. On 11/7/06, James Tu <[EMAIL PROTECTED]> wrote: Does anyone have a list of

Re: [PHP] 'View as HTML' Conversions

2006-11-07 Thread Rory Browne
Check out Alfresco. It's basicly a (E)CMS, which you upload word / excel / etc. It may do everything you want, or you may be able to extract the parts you want and leave the rest, or it may be of no use to you whatsoever. It basicly sets up an OOo daemon, and connects to it to do its conversion

Re: [PHP] Microsoft Partners With Zend

2006-11-06 Thread Rory Browne
On 11/6/06, Martin Cetkovsky <[EMAIL PROTECTED]> wrote: Jay Blanchard wrote: > [snip] > I guess that's sorta what I'm afraid of... PHP# > (like the did to Java -> J++ -> C# ) > > Don't get me wrong. C# is a great language (probably one of the few > things > that M$ did right), and I'd LOVE t

Re: [PHP] Pear

2006-11-04 Thread Rory Browne
I don't know about the command line pear app, but I don't see how they either (a) could, or (b) would want to, stop you from using the individual pear libraries. Unless they scan all the files you ftp to your site. Just upload the ones that you require. Some downloadables that use the Pear libra

Re: [PHP] Is there such a thing?

2006-10-31 Thread Rory Browne
Do these qualify? http://www.roadsend.com/home/index.php?SMC=1&pageID=compiler http://www.priadoblender.com It would be helpful if people would read the link the OP provided, as opposed to just the URL to that link. The page isn't about compiling PHP source into a binary. It's about creati

Re: [PHP] Interchange.

2006-10-18 Thread Rory Browne
Where are you from, and (more importantly) where do you want to go? On 10/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote: I want to go to a foreign country to work for about one year to increase my experience.

Re: [PHP] book on PHP security

2006-10-18 Thread Rory Browne
Essencial PHP Security, Published by O'Reilly, and written by Chris Shiflett I've never read it, but "Book", "PHP Security", and "Chris Shiflett" in the same sentence means you're in for a treat. Any serious discussion on this list security related generally involves a request for input from Chr

Re: [PHP] Interchange.

2006-10-15 Thread Rory Browne
What exactly do you mean about a professinal interchange in a foreign country? On 10/15/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote: Hello everyone. Firstly my apology for the off topic. I'm a PHP professional since 2000's. In a quite near future i'm interested in have a profess

Re: [PHP] Crossing over to the Darkside?

2006-10-14 Thread Rory Browne
On 10/14/06, Ross <[EMAIL PROTECTED]> wrote: Hello, Having used php for a while now and am fairly competent I was persuaded by a collegue to look into asp.net. I decided to download the free trial of VS2005 and start with a few tutorials. I am very suprised how easy things like user auhtenti

Re: [PHP] Help converting C to PHP

2006-09-23 Thread Rory Browne
Whoops - sorry replied directly to Richard instead of to the list. Submission process is simply to post to the list. It's probably a good idea ( and acceptable ) to just post an SHA1(MD5 for this purpose is compromised) hash of your code before the deadline, and submit your actual code shortly af

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Rory Browne
That aside, I think that it would be very beneficial to the community as a whole if a contest was started that encouraged readability and good practices. The scoring and judging could be done by a panel, but I think that it would be more fun if the community itself was able to vote on various att

Re: [PHP] Help converting C to PHP

2006-09-22 Thread Rory Browne
On 9/22/06, Kevin Waterson <[EMAIL PROTECTED]> wrote: This one time, at band camp, "Curt Zirzow" <[EMAIL PROTECTED]> wrote: > what about using: > php.net/pi > > note the precision description. > > or are we talking about a different pi. The goal of the codegolf.com challenge is to print pi t

Re: [PHP] Accessing .mdb Ms Access file from Linux without ODBC

2006-09-07 Thread Rory Browne
what does this have to do with PHP? I would assume that he's trying to do it on Linux through PHP. http://mdbtools.sourceforge.net/ http://pecl.php.net/package/mdbtools

Re: [PHP] OT - PHP Hosting Service in UK?

2006-09-05 Thread Rory Browne
> > Why? If they're not hosting it in-house, why does it matter where on > the globe it is? Request latency due to distance and intermediate hops. The shorter the distance and fewer hops the faster those little images, stylesheets, and various other embedded media will load. This won't be very n

Re: [PHP] php-general mailing list active?

2006-08-22 Thread Rory Browne
Check out lists.php.net On 8/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Would someone kindly let me know if there is activity on > [EMAIL PROTECTED] I have not gotten posts for a few days now, > and I'm having no luck connecting to the help, owner or admin addresses. Thanks Jochem,

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Rory Browne
ailto:[EMAIL PROTECTED] > Sent: Wednesday, August 16, 2006 5:20 PM > To: Rory Browne > Cc: php-general@lists.php.net > Subject: Re: [PHP] Espanol en esto lista > >> Hablo espanol, pero lo que Rory dice es verdad, hay otra lista en espanol. >> Pero, si quieres, you tratare en

Re: [PHP] Espanol en esto lista

2006-08-16 Thread Rory Browne
ng if there is any list in Spanish he can join. But I might be wrong :) -Original Message- From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 5:20 PM To: Rory Browne Cc: php-general@lists.php.net Subject: Re: [PHP] Espanol en esto lista > > Hablo espanol,

[PHP] Espanol en esto lista

2006-08-16 Thread Rory Browne
No tengo bastante espanol para decir lo que quiero decir aqui correctimente, pero hay lista php-general-es para los mesajes espanol. ( I don't have enough spanish to say what I want to say here correctly, but there is a php-general-es list for spanish messages. ) Eso lista es para los mesajes en

Re: [PHP] Re: Is this really a pdf?

2006-08-07 Thread Rory Browne
On 8/7/06, Colin Guthrie <[EMAIL PROTECTED]> wrote: Sjef wrote: > Is it possible to recognize if a file for upload really is a pdf (like the > function getimagesize retuns the file type of the image)? If you have a suitible mime.magic file, and your PHP has the functionality built into it, you

[PHP] HTTP_WebDAV_Server problems

2006-07-30 Thread Rory Browne
Hello All I'm trying to get a WebDAV server set up using PEAR::HTTP_WebDAV_Server, but so far I'm having little success. All I could get from the 11 Slides was that the Class had to be subclassed, and the methods overloaded, to provide the functionality. I gathered from the source-code, that I

Re: [PHP] Efficiency question

2006-07-26 Thread Rory Browne
For something like that that, unless you are doing it inside a loop, I wouldn't really worry about efficiency as much as I would about security On 7/26/06, Paul Scott <[EMAIL PROTECTED]> wrote: I have googled around a bit, but not really found anything useful... Which is more efficient? A cas

Re: [PHP] Basic PHP knowledge test

2006-07-19 Thread Rory Browne
On 7/19/06, KermodeBear <[EMAIL PROTECTED]> wrote: > Does anyone have any links/resources for a > basic php knowledge test? If not, I'll have to > write one from scratch myself, and mess up the > rest of my day of goofing off/sleeping. It wouldn't hurt to pick up one of those Zend PHP Certific

Re: [PHP] PHP 5...

2006-07-11 Thread Rory Browne
Unless there is some specific reason that you need this code to run on both php4 and php5, then inform your boss/admin that the idea of developing on php5, to deploy on php4 is nuts. If they disagree inform them that they are personally nuts( tell them some guy on the internet said so ). It may b

Re: [PHP] A way to stop spam on this list

2006-06-19 Thread Rory Browne
Do you know who the list admin is? php-general has been traditionally "admined" by users flaming people posting "bad content". This doesn't work for spam. Having that said, feel free to set up procmail or something like that, to block message with chinese/japanese characters.

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Rory Browne
So, a secure application always has to validate values from client side originated variables, independently if the values were retrieved from $_GET, $_POST, $_COOKIE or $_REQUEST . You should always validate ALL external variables. As for server side originated variables, these do not need to

Re: [PHP] GET, POST, REQUEST

2006-06-17 Thread Rory Browne
On 6/18/06, Ben Ramsey <[EMAIL PROTECTED]> wrote: On 6/17/06 5:34 PM, Satyam wrote: > Your application might require that flexibility or accepting data via > POST or GET, in which case, it is just fine. Contrary to another post > I've read, there is nothing good of register_globals, that is wh

Re: [PHP] PHP6 build help

2006-06-14 Thread Rory Browne
/me goes and bangs head against wall. On 6/14/06, Rabin Vincent <[EMAIL PROTECTED]> wrote: On 6/14/06, Rory Browne <[EMAIL PROTECTED]> wrote: > Only if (s)he''s on a debian based linux distro. > > I see from his configure output, that he's on Linux, but wh

Re: [PHP] PHP6 build help

2006-06-13 Thread Rory Browne
Only if (s)he''s on a debian based linux distro. I see from his configure output, that he's on Linux, but what makes you think he's on Debian ( or on a system with apt-rpm ) ? Run this command: sudo apt-get build-dep php5 This will get you all the packages needed to build php5, which should

Re: [PHP] is there a faster "file" command?

2006-05-31 Thread Rory Browne
As I believe someone else said, file_get_contents() is the perfered way. Bare in mind however that reading off a network will probably be slow compared to other operations. This of course depends on the speed of your network, and the complexity of the other operations.

Re: [PHP] Upload files problems

2006-05-26 Thread Rory Browne
It's very hard to read code, when either there is no comments, or the comments are in a language you don't understand. Hablo pocito Espanol, pero no entiendo bastante para entiender que quiere decir. Rory On 5/25/06, Ing. Tomás Liendo <[EMAIL PROTECTED]> wrote: Hi! When the users of my system

Re: [PHP] Re: Security Concerns with Uploaded Images:

2006-05-23 Thread Rory Browne
Use the unix command "file" to determiner what file you have. I have had the same problem... Don't depend on it. graphic.php GIF89 ANY_GIF_FOOTERS_HERE should according to file be a gif, but contains embedded php. Many thanks! Greetings Michelle Konzack -- Linux-User #280138 with

Re: [PHP] Encryption Advice

2006-05-19 Thread Rory Browne
DO NOT STORE CREDIT CARD NUMBERS!!! Period!!! If your PHP script can access them, then they are too accessible to the Bad Guys. Ditto Even if nothing else, someone could modify your code to email them the CC Numbers. It's better if, when it comes to time to checkout, you redirect your client

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-17 Thread Rory Browne
On 5/16/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, May 15, 2006 1:58 am, Jason Wong wrote: > 2) the uploaded file is a "script" (perl/php/python/etc) > In the case of (2), if the script relies on its shebang line to > execute Not necessarily -- What if I upload an "image" file named

Re: [PHP] Re: Re: Upload File (binary files?)

2006-05-15 Thread Rory Browne
On 5/15/06, tedd <[EMAIL PROTECTED]> wrote: At 12:18 AM +0200 5/14/06, Michelle Konzack wrote: >Am 2006-05-12 09:28:36, schrieb tedd: > >> But, at some point (and I forgot to mention this in my previous post) >> all programmers start thinking in collections of data and a dB >> becomes a well

Re: [PHP] Re: Upload File (binary files?)

2006-05-15 Thread Rory Browne
fference I can see is in overhead -- but then again, I may be a Moron or an Idiot like Rory Browne suggests. I notice you took the first two words of my post and ignored the rest - I also allowed the option of newbie. my biggest problem with it is the administration difficulties this presents

Re: [PHP] Re: Upload File (binary files?)

2006-05-15 Thread Rory Browne
fference I can see is in overhead -- but then again, I may be a Moron or an Idiot like Rory Browne suggests. Perhaps someone might enlighten me as to why mySQL is not suited to store images -- and prove it. And for goodness sake NO, Google is NOT always right -- it's only a collection of every

Re: [PHP] $ENV['SCRIPT_FILENAME']

2006-05-14 Thread Rory Browne
Unless there is an other piece of code filling up the $ENV array - possibly a cleaning routine. On 5/14/06, Rory Browne <[EMAIL PROTECTED]> wrote: Sorry - what's your question? I think that $ENV should be $_ENV, which in turn should be $_SERVER. On 5/14/06, Ryan A < [EMAIL PRO

Re: [PHP] $ENV['SCRIPT_FILENAME']

2006-05-14 Thread Rory Browne
Sorry - what's your question? I think that $ENV should be $_ENV, which in turn should be $_SERVER. On 5/14/06, Ryan A <[EMAIL PROTECTED]> wrote: Hi, I am going through another persons script (which is not working) and have come accross this: if (isset($ENV['SCRIPT_FILENAME'])) { $CLIENT

Re: [PHP] Wierd ass code...

2006-05-13 Thread Rory Browne
> > // Add to the running totals > @$hits["$username|$subnet"]++; > @$bytes["$username|$subnet"]+=$byte; > @$baps["$username|$subnet|$this_second"]++; > @$bapm["$username|$subnet|$this_minute"]++; > > What kind of arrays are the above? I have never seen > nor worked with arrays like them before. >

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-13 Thread Rory Browne
getimagesize() - I wouldn't worry about people trying to upload scripts - assuming you limit file-extensions to .gif, .bmp, .jpg, etc. .jpgs generally don't get executed - unless you have a screwed up webserver install. The best they will be able to do is have others download the script / code.

Re: [PHP] Uploading large files

2006-05-13 Thread Rory Browne
possibly by using CGI/php, and changing the relevent vaules, on the command line. Why don't you want to change the php.ini values if you legitimately want to upload these files? On 5/13/06, php @ net mines <[EMAIL PROTECTED]> wrote: Hi all is there a way to upload large files (e.g. 15mb) wit

Re: [PHP] LDAP Authentication

2006-05-12 Thread Rory Browne
you're approaching this wrong - google for LDAP Authentication php, and see how they do it On 5/13/06, Thomas Bonham <[EMAIL PROTECTED]> wrote: Hello, I'm trying to do a ldap authentication page. I can get there username and I don't know how to get the password from ldap. It didn't show up in

Re: [PHP] extract text from pdf

2006-05-11 Thread Rory Browne
I use twiki. Twiki search sucks. Someone wrote a Plucene based search engine. They wanted to be able to search attachments. Including Pdf files. They used ... something out of xpdf - pdf2text or pdftotext On 5/11/06, George Pitcher <[EMAIL PROTECTED]> wrote: Have a look at the iText

Re: [PHP] internal operation

2006-05-10 Thread Rory Browne
www.php.net/streams On 5/10/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Wed, May 10, 2006 4:11 am, Luke Cole wrote: > Do the file system and directory functions, perform the file system > command relative to your OS. > > e.g. > does the internal code of the function: > rename("oldname", "ne

Re: [PHP] Re: Upload File

2006-05-10 Thread Rory Browne
There are names for people who use the blob field of a MySQL db to store images. Moron, and Idiot are just two examples, but if other circumstances exist, you can say newbie as well. As a newbie I thought myself that storing images in a DB would be a nice clean solution. Voices of experience said

Re: [PHP] Convert from jpg to gif ... change dpi...

2006-05-07 Thread Rory Browne
imagemagick? On 5/7/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > > Hi there! > > Is there any way of converting a jpg to gif and change dpi on the fly? > > Best regards > Gustav Wiberg > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

[PHP] Portfolio suggestions

2006-05-03 Thread Rory Browne
It's just struck me, that even though I've been using PHP for six years, Most of my code, has either been integrated into specialised systems, or for random administrative job, I've got very little in the line of a portfolio. I'd like to rectify this, but I can't think of a suitable project. I'd

Re: [PHP] ????,????????????

2006-05-02 Thread Rory Browne
It's probably some unrenderable character set - like chinese or something like that. On 5/3/06, Chris W. Parker <[EMAIL PROTECTED]> wrote: Yes definitely. I totally agree. Please send me more on the product/service you're giving away/trying to sell to me/us. I'd really like to see/hear/experie

Re: [PHP] chop x amount of characters from the begining of a string

2006-05-02 Thread Rory Browne
function chop_two_or_3_characters_from_front_of_string($str){ $cut = rand(2, 3); return substr($str, $cut); } On 5/2/06, Jochem Maas <[EMAIL PROTECTED]> wrote: Brad Bonkoski wrote: > Perhaps this will work.. > http://www.php.net/manual/en/function.substr.php it's a long shot brad ;-) > > >

Re: [PHP] mysql and php

2006-04-14 Thread Rory Browne
Display the different ways in which you've seen php using mysql, and we'll see if any one of them is any more secure than another. Most Security issues can be left to MySQL and the MySQL API. A few pointers - Store parameters(username/password) outside the DocuementRoot. Put your server on local

Re: [PHP] How to create a photo gallery

2006-04-11 Thread Rory Browne
In fairness. www.google.com a search for php photo gallery, and php image gallery both brought up everything you need. read this: http://www.catb.org/~esr/faqs/smart-questions.html On 4/12/06, Chris <[EMAIL PROTECTED]> wrote: > > Pham Huu Le Quoc Phuc wrote: > > Please help me! > > I want to

Re: [PHP] Completing forms offline with PHP/MySQL

2006-04-09 Thread Rory Browne
I haven't thought about this much, but I'd probably create an onSubmit handler, that would hide the form in an iframe, and create a new one. I would then when they are online, submit all the forms. This would require the user to keep the browser window open and at the same page. Alternatively you

Re: [PHP] Re: make global variables accessible to functions?

2006-04-08 Thread Rory Browne
I have to agree with passing them as opposed to accessing them from inside the function Clean $a = "whatever"; function foo($a){ echo $a; } Ugly $a = "whatever"; function foo(){ global $a; echo $a; } Unless the variables in question are for all intents and purposes constant ( real co

Re: [PHP] What does this mean:

2006-04-08 Thread Rory Browne
On 4/8/06, Merlin <[EMAIL PROTECTED]> wrote: > > Hi there, > > I am somehow confused about the this command: > What does the equetion sigh mean? > > I would like to replace the > > loadJsApp(true) ?> > > so I could do something like this: > $ajax->loadJsApp(true); > echo '

Re: [PHP] Zend Certification

2006-04-07 Thread Rory Browne
My info may be dated but AFAIK the exam is $200 - so what if you have to take one one month and another the next? That (assuming PHP5 was the same price) would still only be $400. I don't want to sound petty, but what's another $200 for a second certification - having both will give you that long_t

Re: [PHP] where php at?

2006-03-27 Thread Rory Browne
> > > Jim Moseby: > > On second thought, I'm really not sorry to have brother you -- you > don't have to reply to any request for help on this list. Two-Faced SOB - One minute you're sorry, the next you're not. Make up your gd Mind. Furthermore, I'm not asking you to provide me with "how to co

Re: [PHP] Howto Execute PHP as script owner/group without CGI?

2006-03-22 Thread Rory Browne
suexec for the perl/cgi or anything_else/cgi for that matter. suphp for PHP. If speed is an issue, then you may like to consider suexec and fastcgi. On 3/22/06, chris smith <[EMAIL PROTECTED]> wrote: > > On 3/22/06, Mathijs <[EMAIL PROTECTED]> wrote: > > chris smith wrote: > > > On 3/22/06, Math

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rory Browne
I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logged in. Store the username in the session var

Re: [PHP] .DAT file with PHP

2006-03-09 Thread Rory Browne
I didn't get the file, but If the lines are seperated by 's instead of newlines, then $filename = "monkey.html"; $file_array = preg_split("//", file_get_content($filename)); $rev_array = array_reverse($file_array); $output = join("", $rev_array); This could be modded to maintain any arguments in

Re: [PHP] .DAT file with PHP

2006-03-08 Thread Rory Browne
last mail got accidently sent before completion - please reply to that, or the OP and not this. I don't have much of a problem with code that takes a less blatent inspiration of the following: $file = "filename.txt"; $file = file_get_contents($file); $file = explode("\n", $file); $file = array_re

Re: [PHP] .DAT file with PHP

2006-03-08 Thread Rory Browne
On 3/8/06, Paul Novitski <[EMAIL PROTECTED]> wrote: > > At 10:27 AM 3/8/2006, Rory Browne wrote: > >$filename = "filename.txt"; > >$file_content = join("\n", array_reverse(file($filename))); > >echo $file_content; > > > Rory, > >

Re: [PHP] LDAP and Single Sign On

2006-03-08 Thread Rory Browne
Kerberos - there is an apache module for it. On 3/7/06, Justin Cook <[EMAIL PROTECTED]> wrote: > > We are developing an intranet for my company. I would like to implement a > single sign on service. We have Active Directory on one server and the > intranet is being housed on a Redhat Linux server.

Re: [PHP] .DAT file with PHP

2006-03-08 Thread Rory Browne
$filename = "filename.txt"; $file_content = join("\n", array_reverse(file($filename))); echo $file_content; Questions? BTW I haven't tested this, so it may be completely wrong. On 3/8/06, Paul Novitski <[EMAIL PROTECTED]> wrote: > > At 07:41 AM 3/8/2006, Jabez Gan wrote: > >Sorry im new but

Re: [PHP] [JOB] LAMP Developers, Los Angeles | 70-120k

2006-03-05 Thread Rory Browne
Maybe I'm being hypocritic, and possibly wouldn't have this problem, if it was a job that only EU Citizens(as opposed to only US Citizens) could apply for, but I think it's a bit disrespectful, sending mails like this to an international audience - especially when you send so many of them. On 3/5/

Re: [PHP] not sure, what now

2006-02-25 Thread Rory Browne
On 2/25/06, Schalk <[EMAIL PROTECTED]> wrote: > > Greetings All, > > I am pretty new to PHP and are tasked to move a clients site from: > > www.domain.com/somedirectory/home.php to www.home.php Is there a .php tld? Sounds simple at first but, when I moved the files to the root of the > httpdocs

Re: [PHP] Subtracting Large Numbers

2006-02-19 Thread Rory Browne
I would guess integer overflow. On 2/17/06, Bruce <[EMAIL PROTECTED]> wrote: > > I am puzzled by the following code: > > print "MaxInt=".PHP_INT_MAX; > $AA = -190668411; > $BB = -2181087916; > print "AA=$AA"; > print "BB=$BB"; > $AA = (int)$AA + (int)$BB; > print "AA+BB=$AA"; > ?> > > On some sys

Re: [PHP] Downloading very large files

2006-02-13 Thread Rory Browne
I've seen this problem many times before, but I'm not sure what solution was found. Possible solutions: Encrypt the file, make it publicly available, and then give the right people the encryption key. Put it behind a .htaccess file allowing only the IP of the correct person - remove the .htacces

Re: [PHP] Flatfile forum?

2006-02-12 Thread Rory Browne
I'm not sure what you mean. 10 different programmers would do this 10 different ways. Personally I'd create a forum-data manipulation API, and then create a frontend to access this. I suggest you abstract the data access routines into an API of its own, so that when you come to your senses, you

Re: [PHP] Recompile PHP on pre-installed system

2006-02-08 Thread Rory Browne
If you're using a Redhat Enterprise version with a support contract then I personally don't think you should attempt to run a non-redhat php binary. Instead find out how redhat make their php-mysql or php-ldap or php-{some_other_php_module} rpm, Make an RPM, and install it like you would any other

Re: [PHP] Re: Array sizes?

2006-02-08 Thread Rory Browne
> At 01:05 AM 2/8/2006, Barry wrote: > >I don't think a "function" exists, but i would probably use (for > >benchmarking) a recursive foreach in combination with strlen. > >And add it all up. > >(This is probably some work for the PC so that's why benchmarking) > > > It would be interesting to know

Re: [PHP] Reverse Engineering of Smarty

2006-02-05 Thread Rory Browne
On 2/5/06, Sumeet <[EMAIL PROTECTED]> wrote: > > Rory Browne wrote: > > If you don't have backups, then: > > > > 1: Why do you not have backups? > > 2: Are you insane? > > hmm. totally uncalled for > > "Are you insane?" isn&

Re: [PHP] Re: Using API in other languages

2006-02-05 Thread Rory Browne
My point when I suggested that your best hope was something like webservices was your best hope, was that there is no glue code(that I know of) system. Having that said, it just occured to me that phlanger and roadsend provide this functionality. I forgot about these originally because they're lic

Re: [PHP] Reverse Engineering of Smarty

2006-02-05 Thread Rory Browne
If you don't have backups, then: 1: Why do you not have backups? 2: Are you insane? 3: What filesystem, and file recovery techniques have you researched/attempted? 4: Why do you not have backups? 5: Are you insane? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Using API in other languages

2006-02-04 Thread Rory Browne
I could be wrong on this, but I think your best hope is something using web services like SOAP, or XML-RPC. On 2/4/06, Eli <[EMAIL PROTECTED]> wrote: > Hi, > > I have a class in PHP which offers some API functions. I want to access > this API with other languages (such as C/C++, Java, Perl, etc),

Re: [PHP] Re: [Off] Cheap SSL certificates?

2006-02-03 Thread Rory Browne
> It appears that you never applied for a certificate before, or applied > for certs from CAs that don't verify information. Identification is > extremerly important when it comes to knowing whether or not to trust > the given public key. Repeating your point doesn't make it more valid. I'm not t

Re: [PHP] Re: php4 vs. php5

2006-02-03 Thread Rory Browne
On 2/3/06, Keith Proctor <[EMAIL PROTECTED]> wrote: > I need to add two numbers together, unfortunately one of them is a > string that starts with a character. I'd like to convert a string > such as 'x5' to the number 5. Don't care about it's final type as > that isn't the hard part. :) I can't

Re: [PHP] Passing Credentials

2006-01-30 Thread Rory Browne
dentials. > > Thanks again! I hope this is clearer. > > -Original Message- > From: Rory Browne [mailto:[EMAIL PROTECTED] > Sent: Monday, January 30, 2006 5:28 PM > To: News1 > Cc: php-general@lists.php.net > Subject: Re: [PHP] Passing Credentials > > You're s

Re: [PHP] Passing Credentials

2006-01-30 Thread Rory Browne
You're still not being very clear. On 1/30/06, News1 <[EMAIL PROTECTED]> wrote: > Hi. I asked a similar question last, week, but I don't think I asked it > correctly. What I am trying to do is to web into a web server that I > control (no problem here). Web into a web server? > However, from

Re: [PHP] security of uploaded gif files

2006-01-22 Thread Rory Browne
.gif etc...) > and mimetype. > > -jonathan > > > On Jan 22, 2006, at 2:58 AM, Rory Browne wrote: > > > I'd be a bit skeptical about the possibly of embedding PHP code inside > > a GIF file. Could you outline how he performed the task? > > > > On 1/22

Re: [PHP] security of uploaded gif files

2006-01-22 Thread Rory Browne
I'd be a bit skeptical about the possibly of embedding PHP code inside a GIF file. Could you outline how he performed the task? On 1/22/06, jonathan <[EMAIL PROTECTED]> wrote: > what is the best way to prevent malicious code from being uploaded > via a .gif file? A friend showed me how php could b

Re: [PHP] Earlier versions hurt PHP 5

2005-12-29 Thread Rory Browne
On 12/29/05, Rory Browne <[EMAIL PROTECTED]> wrote: > > Please don't make comments like removing older versions of PHP from the > > download page. We have delivered solutions to clients that run on PHP4. > > Those clients need the ability to conveniently download PHP4

Re: [PHP] PDF documentation

2005-12-27 Thread Rory Browne
/me thinks that the OP needs to DL the html.gz manual, procure htmldoc, chant the magic incantation(i.e. type in the correct command), and wait for his PDF document to appear. On 12/25/05, Paul Waring <[EMAIL PROTECTED]> wrote: > On 12/25/05, John Meyer <[EMAIL PROTECTED]> wrote: > > Hi, does the

Re: [PHP] PHP and email

2005-11-23 Thread Rory Browne
On 11/23/05, David Grant <[EMAIL PROTECTED]> wrote: > Hi Angelo, > > Why not send them all in one go? If you want to reduce server load, you > should perhaps adjust the 'nice'ness of the script. Because niceness would only affect the script itself and not any smtp servers it comes across along th

Re: [PHP] Get Mac Address

2005-10-11 Thread Rory Browne
> Hi Ben, > > Try: > > /* notice the backtics, and that arp on linux usually needs to run as root Which means that you either have to install sudo, or set the suid bit. > */ > $arpoutput = `/sbin/arp -a`; Do a "man arp" on linux to see what form of the arp command you want. It's a while since I

Re: [PHP] str_replace

2005-10-10 Thread Rory Browne
I'm not completely sure, but I think they're talking shite. If curl is a security problem, then disable curl. They seem from what you've said, to be pretty irrational. I respect security paranoia, but this is ridicules. You could try replacing every letter in the word curl with it's &#xxx; equivle

Re: [PHP] Get Mac Address

2005-10-09 Thread Rory Browne
mac address of the router. arp can be used to get the mac of a certain machine as well(identified by its IP), as well as listing out the cache of machines that have recently connected. > - tul > > Rory Browne wrote: > > On unix > > man arp > > > > on windows

Re: [PHP] Get Mac Address

2005-10-09 Thread Rory Browne
On unix man arp on windows arp/h arp/help arp/? sorry for short and sweet resp, but I'm falling asleep. On 10/9/05, Ben Sagal <[EMAIL PROTECTED]> wrote: > I have a local intranet server, running apache1.3+php4. Is it > possible to get the mac address of computes which access on of my php > page

Re: [PHP] per user php.ini

2005-10-09 Thread Rory Browne
omething concerning httpd. > > > > JB > > > > > > > Rory Browne wrote: > > why not upload a phpinfo() file and see? > > > > I'm personally not quite sure how this would work, and I'm interested > > in finding out. > > > > On 10/8/05

Re: [PHP] per user php.ini

2005-10-08 Thread Rory Browne
why not upload a phpinfo() file and see? I'm personally not quite sure how this would work, and I'm interested in finding out. On 10/8/05, James Benson <[EMAIL PROTECTED]> wrote: > Hey everyone, probably missed the bit in the manual but my current > webhost allows uploading of my own php.ini to m

Re: [PHP] array_shift not working?

2005-10-03 Thread Rory Browne
[snip] > How can i remove the 'count' from the array? www.php.net/unset > Regards, > Frank > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   >