[PHP] utf8 php howto?

2008-12-18 Thread Daniel Kolbo
Hello, I have a text file encoded in utf-8. i am using fopen/fgets/echo etc.. how do i display these utf8 characters from the file on the web? I have tried different combinations of header("Content-Type: text/html; charset=iso-8859-1"); header("Content-Type: text/html; charset=utf-8") and utf8_

Re: [PHP] utf8 php howto?

2008-12-18 Thread Daniel Kolbo
Daniel Kolbo wrote: Hello, I have a text file encoded in utf-8. i am using fopen/fgets/echo etc.. how do i display these utf8 characters from the file on the web? I have tried different combinations of header("Content-Type: text/html; charset=iso-8859-1"); header("Content-

Re: [PHP] Re: CLI in background on windows

2008-12-18 Thread Daniel Kolbo
Ondrej Kulaty wrote: What about to try run it as service? I don't know exactly how to do that but service programs run in background on my Win XP ""Fanda"" pí¹e v diskusním pøíspìvku news:7d.3d.09584.c2f7a...@pb1.pair.com... Hi, I am looking for some method, how to run php cli script on

Re: [PHP] Replacing special characters with their HTML equivalents

2008-12-21 Thread Daniel Brown
On Sun, Dec 21, 2008 at 18:30, James Colannino wrote: > Hey everyone. I have a question. I have a web scraper that grabs > information from web pages that often contain characters such as vowels > with umlots (I know I spelled that wrong.) Welcome to the list, James. Check out htmlenti

Re: [PHP] Regular expressions (regex) question for parsing

2008-12-22 Thread Daniel Brown
On Mon, Dec 22, 2008 at 15:56, Rene Fournier wrote: > > Each line should start with a $dollar sign, then some arbitrary text, ends > with a percent sign, followed by carriage-return and line-feed. Sometimes > though, the final line is not complete. In that case, I want to save those > lines too.

Re: [PHP] Online Members

2008-12-27 Thread Daniel Brown
On Fri, Dec 26, 2008 at 20:24, Stephen Alistoun wrote: > > Hi all, > > What is the best way to pick up all the members online on a website? Check the archives and STFW for examples, but the general gist is of it is to use $_SESSION tracking with activity checking. I'm just typing this in qui

Re: [PHP] Is it PHP Bug - memory leak ?

2008-12-27 Thread Daniel Brown
Hi, Pawel; On Sat, Dec 27, 2008 at 05:40, Pawel Rutkowski wrote: [snip!] > > But in PHP5 x64 I have errors like: > > /root/src/php-5.2.6/Zend/zend_hash.c(247) : Freeing 0x0E76BC50 (75 bytes), > script=ext/session/tests/session_encode_variation5.phpt > [Sat Dec 27 11:27:09 2008] Script: > 'e

Re: [PHP] Page name for form submit: REQUEST_URI or SCRIPT_NAME

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 12:31, Dotan Cohen wrote: > Is there a compelling reason to use either REQUEST_URI or SCRIPT_NAME > in the action of a form that I want to submit to the same URL that it > came from (the script parses whether or not there is a Submit to know > if it should display the form

Re: [PHP] PHP Help Needed

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 10:47, Ayemowa Toyin wrote: > Hi, > > I am new to PHP and require your help regarding a PHP Script. Below is what > I am tryin to achieve You require an RTFM and STFW session. * http://php.net/ * http://google.com/ > 1. I have created a FILE UPLOAD

Re: [PHP] PHP script gives no output or error message

2008-12-27 Thread Daniel Brown
Good afternoon, John; On Sat, Dec 27, 2008 at 03:28, John Musbach wrote: [snip!] There's a syntax error on line 19: > if(external_fud_login(fud_fetch_user($user)['id']))!=NULL) //User ID is valid > and logged in It should be: if(external_fud_login(fud_fetch_user($user['id'

Re: [PHP] Webhotel structure

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 15:27, Nordstjernealle 10 wrote: > Hi PHP experts > > What is the overall structure on webhotels, how do I remove/clean everythink > including everythinnk liek databases etc? > > Sorry if this is not the proper news group for this question, please redirect > me. > I am a

Re: [PHP] Architecture patterns in PHP

2008-12-27 Thread Daniel Brown
On Sat, Dec 27, 2008 at 18:40, Michael C. Yates wrote: [snip!] > > Micheal C. Yates You mis-spelled your name, Michael. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to

Re: [PHP] What does

2008-12-28 Thread Daniel Brown
On Sun, Dec 28, 2008 at 11:47, Jim Lucas wrote: > > short tags are enabled. Disable them in your php.ini file and you will be > good. Correct. It's shared hosting, so short_open_tags is on for compatibility's sake. That's on one of my servers, so let me know if you need a hand, Tedd. --

Re: [PHP] system() Question

2008-12-28 Thread Daniel Brown
On Sun, Dec 28, 2008 at 18:10, Rick Pasotto wrote: > > You overlooked the ampersand in front of $retval. The syntax for > 'system' is: > > string system ( string $command [, int &$return_var ] ) > > You have to pass a pointer to the variable, not the variable itself. Actually, that's not e

Re: [PHP] is_readable(http://.... text file) says not, but I can in browser

2008-12-28 Thread Daniel Brown
On Sun, Dec 28, 2008 at 13:02, John Allsopp wrote: > > $myFileLast = "http://www.myDomain.com/text.txt";; > if (is_readable($myFileLast)) > { > $fh = fopen($myFileLast, 'r'); > $theDataLast = fread($fh, 200); > fclose($fh); > echo ("The dat

Re: [PHP] POSIX 1003.1-2001 gethostname(2)

2008-12-29 Thread Daniel Brown
On Mon, Dec 29, 2008 at 16:26, Brian A. Seklecki wrote: > > All: > > Is anyone interested in adding POSIX 1003.1-2001 gethostname(2) support? I'm > interested in sponsoring a small contract development initiative. > > I need something more reliable than $_ENV[]. Not all shells export > $HOSTNAME

Re: [PHP] Architecture patterns in PHP

2008-12-29 Thread Daniel Kolbo
Michael C. Yates wrote: Hey, How do you structure your web applications? I am thinking in terms of separating presentation and logic. How is that done in PHP? And how many architecture patterns are there? Thanks Micheal C. Yates I am an amateur programmer, so take my comments with a gr

[PHP] Since I speak with some of you more than people I see in person....

2008-12-30 Thread Daniel Brown
To hell with being on-topic, since this list is generally never on-topic for an entire thread anyway. This has been a roller-coaster year for some of us --- certainly myself included --- but the year has come to a close. I want to take a moment to wish each and every one of you a safe and

Re: [PHP] PHP telnet server

2008-12-30 Thread Daniel Brown
On Tue, Dec 30, 2008 at 16:34, wrote: > > I often thought PHP would be a nice language for a MUD, if one could get the > performance out of it... > > 'Course you could always write some of the heaviest bits as extensions... Indeed. I had written a very simple control-panel-like Telnet scri

Re: [PHP] Re: Webhotel structure

2008-12-30 Thread Daniel Brown
On Tue, Dec 30, 2008 at 16:37, Dotan Cohen wrote: > 2008/12/30 Nordstjernealle 10 : >> Hi Dotan >> >> I am glad I can at least be funny. >> I must admit I am a bit lazy when it comes to write perfect english in >> mails. I believe we can do better with our time. >> In this particulary case the res

Re: [PHP] =.='' what wrong ? just simple code, however error.

2008-12-31 Thread Daniel Brown
On Wed, Dec 31, 2008 at 11:15, LKSunny wrote: > i need accuracy, how to ? No you don't. Not the level of accuracy Per was mentioning. His suggestion to round() is what you need. Just adjust the [optional] second parameter to the number of decimal places you wish to round: \n"; } ?> > "P

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe wrote: > On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten wrote: >> >> I think I was confused here about your response. After re-reading a few >> times, I see that you were enhancing Dan's response by explaining what >> call-time pass by reference is, no

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
On Thu, Jan 1, 2009 at 01:57, Jim Lucas wrote: > > Getting in some practice for new little one? :) Damn kids ;-P > Happy New Year to all, and to all a safe night! To you as well, Mr. Lucas! And now that I am done with work (for the most part), this is my official adieu to 2008. T

Re: [PHP] Sending files via POST

2009-01-01 Thread Daniel Brown
On Thu, Jan 1, 2009 at 02:35, Anders Norrbring wrote: > I'm a bit stuck.. I'm using the PEAR http_Request to send files and data as > HTTP POST, which is working fine if I in fact have the files on disk on the > server. Just using the method addFile.. Okay > But what if the file data is

Re: [PHP] Sending files via POST

2009-01-02 Thread Daniel Brown
On Fri, Jan 2, 2009 at 14:14, Anders Norrbring wrote: > *bump* Please don't "bump" threads, Anders. This is not a traditional web-based user forum. You've provided no additional data, so there is no need to bring this thread up again. If you want to get more attention to it, you will need

Re: [PHP] Sending files via POST

2009-01-02 Thread Daniel Brown
refore I felt an > urge to do something to draw some attention to this matter. That's understandable, though perhaps more than just "*bump*" would've been helpful. > And yes Daniel, I'm fully aware that my specific question isn't a PHP > general issue,

Re: SV: [PHP] Sending files via POST

2009-01-02 Thread Daniel Brown
Nathan Rixham's original email. Hope it helps! On Thu, Jan 1, 2009 at 09:35, Nathan Rixham wrote: > > after having a flick through the source it looks like a limitation of http > request; > http://pear.php.net/package/HTTP_Request/docs/latest/__filesource/fsource_HTTP_Request__HTTP_Request-1

Re: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Daniel Brown
On Sat, Jan 3, 2009 at 14:00, Behzad wrote: > > Who are we? Vampires or Blinds? Worse. We're geeks. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Daniel Brown
On Mon, Jan 5, 2009 at 14:05, Frank Stanovcak wrote: > It's been a while since I've programed (VB was on version 4) I was wondering > if any one could tell me what the diff is between char, varchar, and text in > mysql. > I know this isn't a mysql news group, but since I am using php for the > int

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-05 Thread Daniel Brown
On Mon, Jan 5, 2009 at 14:54, Robert Cummings wrote: > > It's generally worth mentioning that you can usually index char or > varchar, but not text. Actually, you can with MyISAM tables using FULLTEXT. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.

[PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: Suppose i executed the following php file at http://myhost.com/local.php http://otherhost.com/remote.php";); ?> Is there any way to get local.php to display "You are in", by only modifying local.php?

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Shawn McKenzie wrote: Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: Suppose i executed the following php file at http://myhost.com/local.php http://otherhost.com/remote.php";); ?> Is there any way to get loca

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Stuart wrote: 2009/1/7 Shawn McKenzie : Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: Suppose i executed the following php file at http://myhost.com/local.php http://otherhost.com/remote.php";); ?> Is there an

Re: [PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
c...@l-i-e.com wrote: If register_globals is "on" (ewww!) at otherhost.com, then "?safe_flag" on the URL will get in. This is one of the reasons why register_globals should be OFF. NOTE: The code you gave does not describe the circumstances whereby $safe_flag is "set". There could be all man

Re: [PHP] sorry

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 06:16, Nathan Rixham wrote: > I keep hitting reply all in thunderbird and double posting; apologies for > the additional noise (can't promise i won't keep doing it though :p) You're just following the rules, Nate. Posting Guideline #4 on http://php.net/mailinglists

Re: [PHP] sorry

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 06:28, Lester Caine wrote: > > Having hit 'reply all' in seamonkey ;) > That is the only way to reply to a number of lists such as the PHP ones. You > WILL have to keep doing it to reply easily to these lists until a 'reply > list' button appears for those lists that don't l

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 04:53, Robert Cummings wrote: > > In fact, since the only text in the message other than the stripped > attachment is "Please read the document." I am led to strongly suspect > that it was a virus. Additionally, the addition of a supposed anti-virus > check is usually added

Re: [PHP] a weired query issue

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 03:05, viraj wrote: > i have this query.. > > $sql = "SELECT `id` FROM `modules_permissions` WHERE `id` = '" . > $permissionId . "';"; While you are using PHP to develop your script, this is not at all a PHP question. Please keep MySQL questions such as this to the MyS

Re: [PHP] a weired query issue

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 09:10, tedd wrote: > > $sql = "SELECT id FROM modules_permissions WHERE id = '$permissionId' "; I was going to ask something about sanity, but then I remembered with whom it is I'm speaking. ;-P That aside, don't forget your pre-database-interaction sanity. Even a

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 09:38, Allan Arguelles wrote: > I guess its these examples that remind us that we still need to look out > for ourselves. I got used to the idea that theres so little chance that > I'd be a target, as a linux user, I've become less aware of these things. Considering one

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 10:31, Skip Evans wrote: > > From my reading I get the impression that the above statement, "Linux is > just as susceptible to viruses, worms, and other malware", is inaccurate. Unfortunately, Skip, it's 100% accurate. No operating system is completely secure, especial

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
e inherent security mechanisms available to the [self-]educated operator. It still doesn't mean that it *is* more secure simply by design. > Daniel Brown wrote: >> >>I certainly wish there were more like you! > > If only that woman who lives down the block would g

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 13:02, tedd wrote: > > Don't rely on your level of perception to determine IF software (they) have > reached a level of cognition or not. It could be they simply have nothing to > say to us or their level cognition is so foreign to us that we can't detect > it. I antici

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 13:24, Robert Cummings wrote: > > "Just as susceptible"?? Please refer me to some resources where I can > verify this statement. http://marc.info/?t=10016019247&r=1&w=2 -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotp

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 13:21, tedd wrote: > > Of what is there to know? > For what seems all, nothing; > But the un-rung bell yearns to rung; > If only to hear its tone; > The tone of being understood. > > tedd-1967 So you don't just write in ones and zeroes after all. ;-P I like it. -

Re: [PHP] a weired query issue

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 12:18, tedd wrote: > > Hey, if I were you I wouldn't be taking about sanity now that you have a > digestive system that has a two hour sleep cycle. :-) I still have seven months or so of relative calm, if all goes well. There isn't a moment that goes by that I don't ho

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 13:34, Robert Cummings wrote: > > He didn't say it had no insecurities... he said it's hard to believe > it's "JUST AS insecure". Please provide factual sources to indicate the > validity of your statement. Counter: please provide factual sources that it's not, whilst k

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 13:41, Robert Cummings wrote: > On Thu, 2009-01-08 at 13:31 -0500, Daniel Brown wrote: >> On Thu, Jan 8, 2009 at 13:24, Robert Cummings wrote: >> > >> > "Just as susceptible"?? Please refer me to some resources where I can >&

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 13:44, Robert Cummings wrote: > > I haven't made any claims. I've merely stated beliefs/opinion. You made > claims, thus the onus is on you to provide proof of said claims. While I really wish you wouldn't talk about my onus in public like that, I am of the opinion that

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 15:01, Ashley Sheridan wrote: > On Thu, 2009-01-08 at 10:10 -0500, Daniel Brown wrote: >> Linux is just as susceptible to >> viruses, worms, and other malware > I'd beg to differ. While it may be susceptible, I think it is far less > so, just beca

Re: [PHP] Re: hello

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 18:07, Nathan Rixham wrote: > > Linux Kernel 2.6.x > 161 Secunia advisories > 286 Vulnerabilities > Unpatched: 6% (10 of 161 Secunia advisories) > http://secunia.com/advisories/product/2719/ > > Vista: > 51 Secunia advisories > 80 Vulnerabilities > Unpatched: 12% (6 of 51 Se

Re: [PHP] First steps towards unix and php

2009-01-08 Thread Daniel Brown
On Thu, Jan 8, 2009 at 11:44, Frank Stanovcak wrote: > I've been a microshaft punk for some time now, and am just getting ready to > try to step over to unix on one of my own boxes. > > Does anyone have any suggestions on which flavor would be a good idea to > start with? I'm looking mostly for c

Re: [PHP] First steps towards unix and php

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 02:12, Robert Cummings wrote: > > I'll take apt over yum ANY day. But as yum system go... CentOS isn't > bad :) I'd take SMART or urpmi over yum as well, for the record. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.

Re: [PHP] Editing in a text area field

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 08:12, Stephen wrote: > I have a form to accept free text in a textarea field. The entry is stored > in a database. > > If the user enters: > > abc > def > ghi > > I want it to finally display like that. > > If they enter > > abc > > def > > ghi > > I want it to display with

Re: [PHP] Re: hello - thread on topic or not?

2009-01-09 Thread Daniel Brown
On Thu, Jan 8, 2009 at 19:21, Mattias Thorslund wrote: > I thought this was the PHP list, not the OS vs. OS list? > > Is this type of discussion now considered OK here? I recall people getting > flamed for borderline off-topic posts even, just a few years ago. You're right, Mattias. Not only

Re: [PHP] Re: hello

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 11:17, Nathan Rixham wrote: > tedd wrote: >> >> At 7:18 PM + 1/8/09, Nathan Rixham wrote: >>> >>> if it's a computer thats on, with an os, a keyboard and a network card >>> connected to the internet it's insecure. >> >> It doesn't even have to be connected to the Interne

Re: [PHP] Editing in a text area field

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 11:15, Stephen wrote: > > Thank you! That is the way I will do this. > > I may want to change to but that should be easy. (\r)?(\n)?/Ui","$1$2",$str); return $str; } $str = "This is an example of the use of this function.It should replace only double tags."; e

Re: [PHP] Re: hello

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 11:56, Nathan Rixham wrote: > > a few years ago when I first met my rach (we met online), we'd have random > conversations stretching several pages on various forums and social site > profiles we had - i'd find it massively amusing to then go in and delete all > of my replie

Re: [PHP] Re: hello - thread on topic or not?

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 10:40, Robert Cummings wrote: > > Lol, I didn't realize it was off-list or I would have posted it back so > that others could throw in their opinions or speak their mind if they > disagreed. Indeed. I think, especially with the "regulars" that have been here for years,

Re: [PHP] Re: hello

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 12:08, Nathan Rixham wrote: > > turns out the official word from php itself is that this list doesn't exist > *oh nos* > > Warning: unlink(php-general@lists.php.net) [ href='function.unlink'>function.unlink]: No such file or directory > > (or did i run it twice by accident

Re: [PHP] Re: hello

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 12:34, Andrew Ballard wrote: > > Now... you'd have really freaked out if that had actually worked! LOL Hey, good point, Andrew. Nate, you do know that was only pseudo-code, right? Don't run that in production! -- daniel.br...@parasane.net || danbr...@php.net h

Re: [PHP] Re: hello

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 12:43, Nathan Rixham wrote: > > actually i ran it in a debugger, in an ide, in a virtual machine :p in Siberia. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to

Re: [PHP] Re: Create image from HTML

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 11:51, Nathan Rixham wrote: > > only way would be if you had php running on a server with a GUI, a program > for grabbing screenshots, and some form of API to control from php (and > recieve output) That's not entirely correct (though it's the most widely-accepted solut

Re: [PHP] First steps towards unix and php

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 10:59, Frank Stanovcak wrote: > *bangs head on wall* > > Great...just what I need. More acronyms. :P Acronyms? You mean the package managers we were discussing? yum Yellowdog Updater Modified - an automated RPM management utility (works on all RH-based

Re: [PHP] Editing in a text area field

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 14:43, VamVan wrote: > > 100% I agree. Thats called the act of defensive programming. We have no > right over altering user input but yes we have right to display what we want > user see on the site. Well, of course you have the _right_ to do it --- as long as it's lega

Re: [PHP] Re: hello

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 15:31, Robert Cummings wrote: > > I lived in Scotland for many years... Scottish winters pale in > comparison to northern Canadian winters, and these in turn pale in > comparison to Siberian winters. Yeah, and from the sounds of it, Rob, you guys are about to have a hel

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 15:36, Eric Butera wrote: > > I was just talking myself. I use objects and such so I'm really not > as worried about performance either. But it was a "downside" that I > knew about from some css/js stuff I'd done a while ago. I still had 2 > files on my box from some fram

Re: [PHP] Re: hello

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 16:16, Robert Cummings wrote: > > We're at -13C right now without windchill and this is in Ottawa which is > a lot further south than I've lived in the past (Timmins, Sudbury). Yeah, no offense, my friend, but you can keep it. We're a balmy 22F (-5C) right now in Scran

Re: [PHP] Been staring at the code for too long...

2009-01-09 Thread Daniel Brown
On Fri, Jan 9, 2009 at 13:38, Jason Pruim wrote: > Okay... So I know this is a stupid question... It sure is. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out!

Re: [PHP] Re: hello

2009-01-10 Thread Daniel Brown
On Sat, Jan 10, 2009 at 01:57, Robert Cummings wrote: > > Grumble, grumble... did I mention freshwater falls from the sky and > forms vertical piles outside my home? You have a camera for a reason, Rob. Snap a few shots and we'll help pick out the next Interjinn logo. ;-P -- daniel.br...

Re: [PHP] Re: hello

2009-01-10 Thread Daniel Brown
On Sat, Jan 10, 2009 at 16:06, Robert Cummings wrote: > > Snowball hits sandcastle... promptly melts... washes sandcastle away. > > *throws another snowball at you* > > I've got LOTS more where they came from. *danbrown casts Spell of Awe and attains Level 63 Wizard. *danbrown turns you into a f

Re: [PHP] Re: hello

2009-01-10 Thread Daniel Brown
On Sat, Jan 10, 2009 at 16:21, Nathan Rixham wrote: > > are you three flirting? Are you jealous? -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP Gene

Re: [PHP] is_readable(http://.... text file) says not, but I can in browser

2009-01-11 Thread Daniel Brown
On Sun, Jan 11, 2009 at 13:07, John Allsopp wrote: > > Thanks, that worked a treat except I was getting warnings on 404. I looked > around for solutions to that and it appears curl might handle that better, > so I'm currently working on that. Many thanks tho .. let me know if you know > how to sto

Re: [PHP] is_readable(http://.... text file) says not, but I can in browser

2009-01-11 Thread Daniel Brown
On Sun, Jan 11, 2009 at 13:10, John Allsopp wrote: > > So far I'm getting a lot of *Warning*: curl_setopt(): supplied argument is > not a valid cURL handle resource in */home/myAcc/public_html/test.php* on > line *58 > * > I searched phpinfo for 'curl' and it came up nothing, so I'm just checking

Re: [PHP] is_readable(http://.... text file) says not, but I can in browser

2009-01-11 Thread Daniel Brown
On Sun, Jan 11, 2009 at 13:42, Nathan Rixham wrote: > > pedantic: really you'd want to check the http status header returned and > take the appropriate action depending on what header was returned. > > I'm sure there's a way to get the headers from a file_get_contents using one > of the stream_get

Re: [PHP] Holy crap

2009-01-13 Thread Daniel Brown
On Mon, Jan 12, 2009 at 14:30, Robert Cummings wrote: > > 2.0 is the new beta... what did you think Web 2.0 was all about? In Q3 2009, Microsoft is "improving" on that with Web 2.11 for Workgroups. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilo

Re: [PHP] Holy crap

2009-01-13 Thread Daniel Brown
On Tue, Jan 13, 2009 at 20:34, Kyle Terry wrote: > > www.idonttrustmicrosoftwithmywebsite.com/ps/i/hate/them/ Couldn't reach the site. Try restarting IIS. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server de

Re: [PHP] Holy crap

2009-01-13 Thread Daniel Brown
On Tue, Jan 13, 2009 at 20:54, Kyle Terry wrote: > > Every time I try I get this error: > > " > HTTP Error 500.22 - Internal Server Error > An ASP.NET setting has been detected that does not apply in Integrated > managed pipeline mode. > Please install .NET 5000 wrapped in SilverLight 15 wrapping

[PHP] PHP, Smarty, and Text

2009-01-13 Thread Daniel Kolbo
Hello, I've been using PHP and Smarty for several years now and I am happy with this "division" of data from presentation. With this philosophy in mind, i am a bit perplexed as to how to handle the text on my sites. That is, the text is data, so i am motivated to store the text in a databas

Re: [PHP] PHP, Smarty, and Text

2009-01-13 Thread Daniel Kolbo
Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod On Jan 13, 2009, at 9:49 PM, Daniel Kolbo wrote: Hello, I've been using PHP

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Daniel Kolbo
Robert Cummings wrote: On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: Phpster wrote: What about stripping out all the 'nuances' and just reducing it to just the text where you then control the display and using your templates and css? Bastien Sent from my iPod

Re: [PHP] Finger

2009-01-15 Thread Daniel Brown
On Thu, Jan 15, 2009 at 06:30, Sándor Tamás (HostWare Kft. ) wrote: > Hi, > > My problem is that how I can know that a valid e-mail address is exists on > the mail server? > Is there some PHP function, or protocol, or something? The quick and simple answer is no. Imagine if it was that easy

Re: [PHP] To check for existing user in database

2009-01-15 Thread Daniel Brown
Welcome to the list, Chris. Your code is going to require some rewriting to save you a lot of headaches and serious security issues down the road. So here we go: On Thu, Jan 15, 2009 at 12:46, Chris Carter wrote: */ if($_POST['submit']) { // Check to see if the user already exist

Re: [PHP] I can't get help from the binary administrator

2009-01-15 Thread Daniel Brown
On Thu, Jan 15, 2009 at 16:35, Eduardo Varela wrote: > > Does anyone know > address > subject > text > for getting a digest instead of the individual mails? You will have to first unsubscribe from the list, then subscribe to digest format at http://php.net/mailinglists If you

[PHP] Re: To check for existing user in database

2009-01-16 Thread Daniel Brown
On Fri, Jan 16, 2009 at 13:35, wrote: > Hi Daniel, > > Thanks for your help, I appreciate it. My pleasure, Chris. Please keep all replies on-list, though, so that others from the list - and, for the future, in the archives - can benefit from the discussion. > I went throug

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Daniel Brown
Well, since Nathan asked especially for the opinions of those who would disagree with him, I thought all was well On Sat, Jan 17, 2009 at 13:33, Tony Marston wrote: > > If your feeble brain can't handle the differences > then I suggest you stick with your previous language and LEAVE PHP A

Re: [PHP] Need List Advice

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 11:33, wrote: > I have been looking but can't find which PHP list is best to post info > regarding a new PHP tool. I have seen new product/service announcements on > this list, but thought there might be a better list. Any suggestions? As long as it's an announcement

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Daniel Brown
On Sun, Jan 18, 2009 at 12:36, Tony Marston wrote: > > Really? In 2007 I single-handedly designed and built an ERP system with 130 > database tables, 230 relationships and 1000 screens, all with PHP and > without an ORM and static typing. This took me 6 months. If you can't equal > that then eithe

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 12:13, Per Jessen wrote: > > Yes, I am serious, and no, I don't write php extensions etc. I don't > write many web apps anyway. I do use PHP quite a bit for command line > stuff, in fact for >95% of my scripts. Same her, Per. I actually use PHP for more command-line

Re: [PHP] Need List Advice

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 13:15, Jim Lucas wrote: > > Hey, are those Brownie Points calculated by "your" software? Isn't that a > little weighted to your favor? It's not what I initially intended when I first posted that message, but once I read Rob's reply, I knew it was going to come up eve

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 13:22, Kyle Terry wrote: >> > Aside from a few perl scripts, I have rewritten all my bash scripts in PHP. > It's just easier to manage for me. /me nods. In 2001, I started rewriting a library of Perl scripts I'd been building since 1995 (5.0.0.1), which meant rewr

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 14:37, VamVan wrote: > Why are you guys Burning your egos here? Its not the right place. It's a PHP-related general discussion, Vam. Perhaps not entirely in good manners, but it's 100% relevant. Indeed, this is the right place. That aside, as intelligent folks,

Re: [PHP] Undefined index error

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 14:32, Richard Heyes wrote: >> Notice: Undefined index: 2 in /home/raosetc/public_html/purl/p.php on line >> 19 >> >> and here is Line 19: >> >> $data = explode("/", $_SERVER['REQUEST_URI']); When I view that file, on line 19, I see: echo << Are you sure it's an array

Re: [PHP] Need List Advice

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 15:19, wrote: > > I think it means Rob has to bake us all some brownies and ship 'em out to > us... > :-) Except that it also means we know by pattern that we can't count on him to break away from the computer long enough to do that. ;-P -- daniel.br...@parasane.

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 15:08, Kyle Terry wrote: > On Mon, Jan 19, 2009 at 12:05 PM, VamVan wrote: >> I believe in Community building. My only concern was the kind of language >> used is very intimidating , that's all. > > Are you referring to bad language? An unintended pun. Nice. ;-P --

Re: [PHP] Seg Faulting PHP

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 15:12, Ian wrote: > Hi all, > > Appologies if this is the wrong list - please direct me in the right > direction should this be the case. > > I am running PHP 5.2.8 on freebsd 7.0 and am getting a Seg fault when > running one of my new programs. We run a couple of other sit

Re: [PHP] Undefined index error

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 15:39, Jason Pruim wrote: > > Only when you log into certain accounts and view the file after I had made > changes :P I figured you had already changed it, but when you're root, you don't have to log in to other accounts. ;-P > What I'm really going for is given this

Re: [PHP] 64bit vs. 32bit

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 15:56, dbrooke wrote: > Hello, > I am interested in hearing opinions about if there > are reasons to stay with a 32bit php/apache if there > is 64bit options available. What are the pros/cons > in running in the different architectures? Like running PHP/64 on CentOS5/3

Re: [PHP] Need List Advice

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 17:08, Shawn McKenzie wrote: > > Somebody used to post a weekly summary that tallied our brownie points. ;-) I'm working on it! ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server d

[PHP] Re: [PHP-DEV] maybe we could all?

2009-01-19 Thread Daniel Brown
On Mon, Jan 19, 2009 at 18:57, Nathan Rixham wrote: [snip!] > > the idea wouldn't be a framework or another php classes, more of a repo full > of common classes to save us all some time [snip!] Maybe you could call it PEAR. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://w

<    7   8   9   10   11   12   13   14   15   16   >