Re: [PHP] nl2br() question

2009-09-26 Thread Daniel Brown
On Sat, Sep 26, 2009 at 11:22, tedd wrote: > Hi gang: > > The manual says: > >   http://www.php.net/nl2br > > That I could use the function like so (Example #2): > >   $new = nl2br($string, false); > > But when I do, I get: > >   Warning: Wrong parameter count for nl2br() in /home... > > What's up

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Daniel Brown
On Fri, Sep 25, 2009 at 19:30, Caner Bulut wrote: > > I will be out of office between 18th - 28th of June. That's fantastic. Have a nice ten-day vacation nine months from now. Thanks for letting us know so far in advance! ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.p

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Daniel Brown
On Fri, Sep 25, 2009, Caner Bulut wrote: > > Is there a stable or standart directory layout for PHP project (like web > sites)?. The very plain, simple answer is: no. There are similarities between projects, and common, logical reasons for doing them but nothing that would quite earn th

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Daniel Brown
On Mon, Sep 14, 2009 at 15:56, mm w <0xcafef...@gmail.com> wrote: > Hello Daniel > > How Andrea showed up, seriously you can be a good coder but you cannot > be without a minimum of social skills and education, I have the > feeling to be a Circus. Honestly, my opinio

Re: [PHP] PHP GURU NEEDED

2009-09-14 Thread Daniel Brown
On Mon, Sep 14, 2009 at 15:50, mm w <0xcafef...@gmail.com> wrote: > Hello, Jerome > > I would like to apologize because this kind of behavior is not a good > point for the image of the community, > > folks please, if your are interested in this position, just send your > resume and your references

Re: [PHP] PHP6 Stable Release Schedule

2009-09-04 Thread Daniel Brown
On Fri, Sep 4, 2009 at 17:42, Bobby Pejman wrote: > Hi, > > Does anyone know when the stable release of PHP6 be ready for download?  I > hear there's a lot of goodies in version 6 including built-in Caching. > Yum.  Also, will PHP ever implement the Strict mode similar to Perl's 'using > Strict'?

Re: [PHP] IRC and English

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 17:02, Jessi Berkelhammer wrote: > As a monolingual North American, I am also very uncomfortable with this > thread. > > A rant about abbreviations/IRC jargon is an appropriate discussion for list, > but criticizing how non-native English speakers write English is not. This >

Re: [PHP] Fwd: Current PHP Global Network Statistics

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 15:10, Eddie Drapkin wrote: > > Why is 5.1.6 such a popular release for the PHP mirrors? It's a common distro release, particular for RPM's (CentOS, Fedora, RHEL). In fact, that's why I set that as the minimum version in the requirements during the upgrade operation:

[PHP] Fwd: Current PHP Global Network Statistics

2009-09-01 Thread Daniel Brown
your development box(es)? Please share your thoughts with the class. ;-P -- Forwarded message -- From: Daniel Brown Date: Tue, Sep 1, 2009 at 14:05 Subject: Current PHP Global Network Statistics To: PHP Mirrors List    ALL:    As you may now already know, after completing the

Re: [PHP] IRC and English

2009-09-01 Thread Daniel Brown
On Tue, Sep 1, 2009 at 13:36, Ashley Sheridan wrote: > I'll second that, I've not once seen you use txt spk, 744t speak, or any > other abominable mess that passes for language these days! 744t speak is that like 733t speak 2.0? ;-P -- daniel.br...@parasane.net || danbr...@php.net http

Re: [PHP] IRC and English

2009-08-31 Thread Daniel Brown
On Mon, Aug 31, 2009 at 21:06, Paul M Foster wrote: > I'm sorry, but is anyone else annoyed by people who attempt to use IRC > jargon on mailing lists? For example, substituting "u" for "you". Oddly > enough, I'm seeing this primarily in foreign language posters, not in > native English speakers. I

Re: [PHP] security question of ZCE exam

2009-08-25 Thread Daniel Brown
On Tue, Aug 25, 2009 at 00:07, Augusto Flavio wrote: > > Answers: (choose 2) >    Error messages will contain sensitive session information >    Error messages can contain cross site scripting attacks >    Security risks involved in logging are handled by PHP > X    Error messages give the percepti

Re: [PHP] to a css file requires .css ???

2009-08-16 Thread Daniel Kolbo
Daniel Kolbo wrote: > Hello, > > I realize this is more of an html question than a php, but I was hoping > someone here would know what's going on. > > I am linking to a stylesheet and it is requiring me to use *.css > extension. I want to use a .php extension (and have

[PHP] to a css file requires .css ???

2009-08-16 Thread Daniel Kolbo
Hello, I realize this is more of an html question than a php, but I was hoping someone here would know what's going on. I am linking to a stylesheet and it is requiring me to use *.css extension. I want to use a .php extension (and have the php engine generate css). However, whenever i use a .php

Re: [PHP] Can php be cause a strain on a web server

2009-08-09 Thread Daniel Brown
On Sun, Aug 9, 2009 at 15:03, Jerry Wilborn wrote: > You seem nice. I have my moments. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at http://twitter.com/pilotpig -- PHP General

Re: [PHP] Can php be cause a strain on a web server

2009-08-09 Thread Daniel Brown
On Sat, Aug 8, 2009 at 11:08, Jerry Wilborn wrote: > You're going to have to be more > specific.  There are very few problems where this is absolutely no solution. And you're going to have to read what he said again and understand the context of the question and answer. It requires no more sp

Re: [PHP] php external interfaces

2009-08-08 Thread Daniel Echalar
well i know the command shell_exec(), that work like console, just put de command as paramether. More info in php documentation. For COM objects for example, $word = new COM("word.application") or die("Unable to instantiate application object"); $wordDocument = new COM("word.doc

[PHP] Warning: OutsourcingRoom.com

2009-08-04 Thread Daniel Brown
Just as a heads-up, in case you guys weren't yet aware (cross-posting): Elance.com was the victim of an SQL injection attack earlier this summer (they apparently missed our billions of threads on sanity). According to their folks, only names, company names, phone numbers, and email address

Re: [PHP] Need a Linux copy of the php.ini file

2009-08-04 Thread Daniel Brown
On Tue, Aug 4, 2009 at 15:19, Bastien Koert wrote: > Trying to install php at amazon and have a version with no 'dymanic > modules'. Does anyone have a list of those modules? > > I specificially need > > curl > mysql > mysqli You have a shell with me, right? Use these instructions to copy it,

Re: [PHP] HELP - Parse Error

2009-08-04 Thread Daniel Brown
On Tue, Aug 4, 2009 at 13:47, Allen McCabe wrote: [snip="everything"] Looks like you're missing a closing bracket here: if(!empty($_POST['EMailAddress'])) { $EMailAddress = $_POST['EMailAddress']; } else { $EMailAddress = " "; // <--- Right here -- daniel.br...@parasane.net || danbr...@

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Daniel Brown
On Mon, Aug 3, 2009 at 13:54, tedd wrote: > > I had that happen a few years ago. I had/have a $20k insurance policy on my > office computers and data. However, I was very surprised to find that it > didn't cover flooding. > > Since then I keep a HD backup of everything in a waterproof safe inside a

Re: [PHP] Re: file upload question

2009-08-03 Thread Daniel Echalar
i add me to the question. 2009/8/3 Peter Ford > seb wrote: > > Hey all, > > > > i am using move_upload function to upload files to the server, but i > > want to add a feature that will allow files to be archived that have > > been uploaded already. > > > > so, the problem is: > > > > i upload a

[PHP] Re: Dan Brown

2009-08-03 Thread Daniel Brown
ALL: It's far easier to drop a line to the mailing lists and BCC a few others than to write back to many individually. Thanks for the concern and well-wishes from the many who wrote to me during the last 10 days. It's very, very kind of you, and much appreciated. I'm honored that yo

[PHP] PHPGitAdmin Project Brainstorm

2009-08-02 Thread Daniel Kolbo
Hello, I had a thought today while walking...why do all ideas come while walking under the sun rather than slouching in front of the LCD's glow? Wouldn't it be cool to develop an application that allowed one to manage Git via PHP? I'm thinking, sorta like how the PHPMyAdmin project helps people

Re: [PHP] regex - filtering out chinese utf8 characters

2009-07-30 Thread Daniel Kolbo
Merlin Morgenstern wrote: > Hi there, > > I am trying to filter out content that is not ascii. Can I do this with > regex? For example: > > $regex = '[AZ][09]'; > if (preg_match($regex, $text)) { > return TRUE; > } > else { > return FALSE; > } > > The reason I

Re: [PHP] preg_match too greedy

2009-07-29 Thread Daniel Kolbo
b wrote: > On 07/29/2009 07:48 PM, Daniel Kolbo wrote: >> >> code works (no match) for me too on php 5.2.6 build date May 2 2008 >> 18:01:20 with dumbdows NT. >> >> preg_match fails but for a reason other than what I think you may be >> expecting. It fails

Re: [PHP] preg_match too greedy

2009-07-29 Thread Daniel Kolbo
Jim Lucas wrote: > Ben Dunlap wrote: >> Jim Lucas wrote: I expected 'no match' but get 'match'. >> [8<] >>> cut/paste your code and it works for me. >> Works for me as well. I get 'no match' from PHP 5.1.2, 5.2.6, and 5.2.8. What >> version do you have? > > PHP 5.2.5 with Suhosin-Patch 0.9.6.

Re: [PHP] Expand Variables in String

2009-07-29 Thread Daniel Kolbo
e string, if you are sure the $str has no " inside you > can omit it. > > Jonathan > > On Wed, Jul 29, 2009 at 5:43 PM, Daniel Kolbo wrote: >> Hello, >> >> Is it possible to force a string to expand variable names after the >> string has been set and before th

[PHP] Expand Variables in String

2009-07-29 Thread Daniel Kolbo
Hello, Is it possible to force a string to expand variable names after the string has been set and before the variable's been defined without having to do a string replace or preg_replace? for example, "; $var = "Variable Contents"; echo $str.""; $str_expanded = $str;//would like this to expand $

Re: [PHP] OOP Design Software

2009-07-26 Thread Daniel Kolbo
Caner BULUT wrote: > Hi Daniel, > > You can use Eclipse with plugin PDT or Zend Studio. They can track your > classes and methods. They can remember your methods and classes also they > have code completion abilities. > > Thanks > Caner. > > -Original Mes

[PHP] OOP Design Software

2009-07-26 Thread Daniel Kolbo
Hello, Is there an objected oriented programming software that can help me keep track of my methods and properties of my objects. My memory is not what it used to be, and i'd like to have a quick 'overview' or layout of all the objects I have to work with. Maybe the software would even let make

Re: [PHP] Question on code profiling

2009-07-24 Thread Daniel Kolbo
Andrew Ballard wrote: > On Thu, Jul 23, 2009 at 11:31 PM, Andrew Ballard wrote: >> From what I can tell, the numbers I see in WinCacheGrind >> look like they are off by about a factor of 10 pretty >> uniformly. >> >> Andrew >> > > Apparently the difference is indeed WinCacheGrind, as a number of >

[PHP] prepending concatenating assignment operator

2009-07-24 Thread Daniel Kolbo
Hello, I know the appending concatenating assignment operator: $str_name = "Foobar"; $str_name .= " Sr"; echo $str_name;//Foobar Sr But is there a shortcut assignment operator for prepending concatenation? $str_name = "Foobar"; //$str_name =. "Mr "; // i know this is not allowed, but is there so

Re: [PHP] This is the kind of [expletives deleted] answer that is certain to prevent bugs being reported.

2009-07-24 Thread Daniel Brown
On Fri, Jul 24, 2009 at 15:25, Per Jessen wrote: > Daniel Brown wrote: >>     In reality, those are canned responses.  Jani didn't type that up >> himself, he just selected it from a drop-down that we have. > > In all honesty, that only makes it worse.  To make an eff

Re: [PHP] This is the kind of [expletives deleted] answer that is certain to prevent bugs being reported.

2009-07-24 Thread Daniel Brown
On Fri, Jul 24, 2009 at 13:18, Per Jessen wrote: > > As for being aggressive - well, being fobbed off with an RTFM when > > 1) I've spent some time and effort in testing, documenting and reporting > the bug, and > 2) the behaviour is at best undocumented, > > well, yes, it p.. me off.  It's jus

Re: [PHP] Internal PHP caching methodology

2009-07-18 Thread Daniel Kolbo
Daniel Kolbo wrote: > Eric Butera wrote: >> On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbo wrote: >>> Hello, >>> >>> Call me a dreamer...but I got to ask. >>> >>> Is there any software for helping speed up PHP by utilizing internal PHP >&g

Re: [PHP] Internal PHP caching methodology

2009-07-17 Thread Daniel Kolbo
Eric Butera wrote: > On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbo wrote: >> Hello, >> >> Call me a dreamer...but I got to ask. >> >> Is there any software for helping speed up PHP by utilizing internal PHP >> caching? >> >> I am not talking a

Re: [PHP] php.net down?

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 21:55, Michael A. Peters wrote: > > They probably just have their asp.net module misconfigured. IIS crashed. We tried to CTRL+ALT+DEL, but it didn't work. We've been on the phone with Tech Support for nine hours, and hope to be able to install Service Pack 31 next wee

Re: [PHP] php.net down?

2009-07-16 Thread Daniel Kolbo
Thijs Lensselink wrote: > Anybody noticed php.net is down? > > It's responding to pings. But no pages load. > > I noticed this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 20:24, Eric Butera wrote: > > Interesting content on that site, Dan! One of those situations where I bought a domain name with the intent and desire to do something, and wound up converting it to personal usage. In this case, doing nothing but putting up random crap to

[PHP] Re: [HEADSUP] rsync going temporarily down

2009-07-16 Thread Daniel Brown
2009/7/16 José Miguel Santibáñez A. : > > Hi, here (http://cl.php.net) we lost all documentation... > > I'll try a re-sync manually, but nothing happenes... Just a heads-up for those of you reading the newsgroup in real-time and emailing me directly or contacting off the PHP General list, do n

[PHP] Internal PHP caching methodology

2009-07-16 Thread Daniel Kolbo
Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal PHP caching? I am not talking about the external php cache/header control. Smarty caching doesn't give me the control I need either. I would like to cache to a finer level than pag

Re: [PHP] Add php.net to my browser search box

2009-07-16 Thread Daniel Brown
On Thu, Jul 16, 2009 at 11:59, Martin Scotta wrote: > Hi all! > > I'd like to add php.net to my browser search box. > Most browser can do it by "looking" at some XML provided by the site. I had written one about two and a half years ago. It's the dumbest, simplest thing, and yet it's now been

Re: [PHP] I have an idea

2009-07-15 Thread Daniel Brown
On Wed, Jul 15, 2009 at 15:30, Ashley Sheridan wrote: > Done! In order to never lose, don't play ;) That's what I had expected. ;-P About eleven years ago, a co-worker and I each wanted the same day off. I had seniority, but decided to play fair with him and give him a shot. I told him

Re: [PHP] IP to geo-location advice

2009-07-15 Thread Daniel Brown
On Wed, Jul 15, 2009 at 08:14, Patrick wrote: > > Could anyone give me some advice on the best way to do IP to > geo-location with php using open source code? Advice: RTFM. ;-P http://php.net/geoip -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www

Re: [PHP] mod primary key field - newbie question

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 17:35, c...@hosting4days.com wrote: > newbie question ... I have a MySQL table where I want to update (renumber) > the primary numeric key field. The response you received from Floyd was accurate, but next time, please keep these kinds of questions on the appropriate li

Re: [PHP] A prepared statements question

2009-07-12 Thread Daniel Brown
2009/7/12 Eddie Drapkin : > > This is just my opinion, of course :) Which is welcome. Preferrably, on the php-db@ list, but welcome nonetheless. ;-P -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedica

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-12 Thread Daniel Brown
Top-posting. This would be an excellent question for Prune (CC'd) to field, based on the error message. Prune? On Sun, Jul 12, 2009 at 17:49, Govinda wrote: >> On Sat, Jul 11, 2009 at 19:57, Govinda >> wrote: >>> >>> I have been using PEAR's tableInfo() to remind myself about the co

Re: [PHP] Establishing PHP Session From a Different Host

2009-07-12 Thread Daniel Kolbo
Daniel Brown wrote: > On Sun, Jul 12, 2009 at 12:37, Daniel Kolbo wrote: >> Hello, >> >> How does one continue a php session on a different domain (domain B) >> than the domain (domain A) that started the session? > > Simple answer: you don't. > &g

Re: [PHP] Establishing PHP Session From a Different Host

2009-07-12 Thread Daniel Brown
On Sun, Jul 12, 2009 at 12:37, Daniel Kolbo wrote: > Hello, > > How does one continue a php session on a different domain (domain B) > than the domain (domain A) that started the session? Simple answer: you don't. Extended answer: you can, but only if the domains r

[PHP] Establishing PHP Session From a Different Host

2009-07-12 Thread Daniel Kolbo
Hello, How does one continue a php session on a different domain (domain B) than the domain (domain A) that started the session? That is, I want to hand-off a session to another domain, but I do not see how to do this as one cannot set a cookie for another domain (for valid reasons). I was think

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-12 Thread Daniel Brown
On Sun, Jul 12, 2009 at 03:08, Eddie Drapkin wrote: > > Two things: > 1) I've never head of an email list changing their rules to cater to a > fringe crowd, like Nokia 6020 users. > 2) Why does every thread lately degrade into chatter about top/bottom > posting? *looks RIGHT AT D. Brown* Re: (

Re: [PHP] RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-12 Thread Daniel Brown
On Sun, Jul 12, 2009 at 09:45, Ashley Sheridan wrote: > > Yeah, I'll put it down to old age and not my reading laziness! You're just lucky Tedd got to you first, Ash. I was going to fairy-slap you for messing up the rotation! You've been here, what, about a year now? ;-P And here's hop

Re: [PHP] A prepared statements question

2009-07-11 Thread Daniel Brown
[Redirected to PHP-DB: php...@lists.php.net] On Sun, Jul 12, 2009 at 00:31, Jason Carson wrote: > Hello everyone, > > I am having a problem getting my prepared statements working. Here is my > setup... > >    index.php -> authenticate.php -> admin.php > > 1)index.php has a login form on it so

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 19:57, Govinda wrote: > I have been using PEAR's tableInfo() to remind myself about the columns in > the table..  but now I want to see as much data as possible about the table > and its contents *without* using PEAR.   (I.e. just using built in stuff for > mysqli.) Thi

[PHP] RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-11 Thread Daniel P. Brown
Ladies and Gentlemen: First of all, if you're new to the list, welcome. At the risk of bragging about our collective talents, you are now a member of a community that is home to what may be some of the best talent in web development you'll find on the Internet. I'm not speaking of myself

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 19:46, Zareef Ahmed wrote: > I always said :  Being good and Being FORCED to be good  are two different > things... and PHP normally don't force us to be good that why PHP is the > most popular programming language with a large code base which WORKS but > not as per the stan

Re: [PHP] mysql_real_escape_string wants a string or a "resource"?

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 17:51, Govinda wrote: > > as in a db connection That's essentially a resource in reference to an object. -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at ht

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 17:37, tedd wrote: > > I'm sure some clever person could come up with something better. Probably not. Now, on to NOWDOC -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedi

Re: [PHP] mysql_real_escape_string wants a string or a "resource"?

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 17:46, Stuart wrote: > > You're looking at the documentation for mysqli_real_escape_string but > using mysql_real_escape_string - notice the i in mysqli in the first > function name. For the longest time, we were having a problem in the docs where some mirrors were erro

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 14:15, Eddie Drapkin wrote: > [snip!] > which would be cast to a string (as an undefined constant) and then [snip!] That's exactly the point I was waiting for someone to make. I wanted someone to question why it was a Bad Idea[TM] to leave the key unquoted and typecast

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:45, Eddie Drapkin wrote: > > If that's true, then we've found an error reporting bug! I've never > seen an error/warning raised, even with my usual > "error_reporting(E_ALL | E_STRICT | E_DEPRACATED)"!  The warning is > raised here, though: > $foo = $bar[hello]; > > but n

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:30, Gary wrote: > It is a bit freindlier here, those folks over at dreamweaver have a lot in > common with pipe-smokers, fly fisherman and sail boat captains... > > I dont really recall where I got the XAMMP from, so I dont really understand > the german reference.  I did

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
t; > $foo = << $bar[hello] > EOT; > > echo $foo;  //echos out goodbye > ?> It works fine because you're forcing PHP to cast 'hello' in your array from a simple boolean TRUE to the string equivalent. Bad, Eddie! Stay off the couch! > Something this s

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:35, Daniel Brown wrote: > >    It works fine because you're forcing PHP to cast 'hello' in your > array from a simple boolean TRUE to the string equivalent. sed "s/string equivalent/literal 'hello' string/g" (The wa

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 13:07, Gary wrote: > Ahh the list of responses is endless > > 1. Its just you My wife keeps telling me the same thing, so you're in good company, Gary. > 2. Please, if you want to see people bite, go over the the adobe/dreamweaver > group, there are some people ove

Re: [PHP] XAMMP-Mysql Crashing

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 11:47, Gary wrote: > I have an issue that Mysql will not start on my local machine. I noticed a > few days ago on a restart that I got an error saying that Mysqld had > encountered a problem and had to close. I did not pay any attention to it > because I was not working in i

[PHP] Re: [PHP-DB] Checking Special Characters

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 02:41, Manu Gupta wrote: > Dear All, > I have to design a databse where I need to check for date > using date as datatype in mysql I am having problems while inserting it > > Can you help me with it?? Google. > Also I am having problems with eregi(), erege(); This

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 11:05, tedd wrote: > > Side note: Paul Novitski showed me using an underscore for heredocs: > > $html =<<<_ > whatever > _; > > That I thought was kind of neat. To me it makes heredocs stand out and are > more uniform. I used $html =<< daniel.br...@parasane.net || danbr

Re: [PHP] Re: How to authnticate and use contents from ${HOME}

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 10:52, wrote: > Hi Isaac, > >> Installing LAMP is not a good idea for productive servers. Always stick >> with >> the Packages of your distribution to get all upgrades. No offense toward the poster of this information, but this is probably the most ludicrous advice I'v

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-11 Thread Daniel Brown
On Sat, Jul 11, 2009 at 10:42, Ashley Sheridan wrote: > > The braces ensure that PHP doesn't stop parsing the variable name once it > reaches the [. By default, it will only match a variable name up to the [ > sign, so you couldn't access arrays without the braces. Couldn't have said it better

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 20:25, Govinda wrote: > How do I  get > basename(__FILE__) > or > htmlentities($somevar) > to be evaluated  in a heredoc? You don't. Instead, you have to store the output from those in a variable (or array), then place it into the HEREDOC it. basename(__FILE__), 'siz

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 18:11, Chris Payne wrote: > > Sorry I post at the top because i'm legally blind and it's easier but > i'll try to post at the bottom :-) > > This is the main site on my server: > > http://www.oxyge.net > > I just took out the offending code at the end of the index page to ge

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:48, Chris Payne wrote: > Hi, > > Yes their IP is from Russia by Chinese in origin. > > How can this be prevented? > > Thank you all SO much for your help, it is very appreciated. So would be your move to bottom-posting (with nods to the jihad that was the longest thr

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:37, Chris Payne wrote: > Hi everyone, > > Hmmm i'm not sure it is an SQL Injection now, done a lot more checking > and it is inserting code at the end of every index.htm index.html > default.html and index.php pages on my site. > > Ooooh what fun :-) Wouldn't happen

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:28, Govinda wrote: > > yes, look for posts with this subject line: > Re: [PHP] best way to properly build an include path *regardless*  from > where I am calling the include? > > (just don't ask me to explain everything that those good souls were trying > to teach me in t

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 17:24, J.P. Trosclair wrote: > > I've spent the better part of this afternoon looking through google and the > archives for different variations on terminology before resorting to > subscribing and posting to this list. Will go back to digging based on your > suggestion. Tha

Re: [PHP] php.ini directive include_path variables

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 16:56, J.P. Trosclair wrote: > I'm wondering if there is a way to dynamically set the absolute path of an > include directory based on the document root of the site via htaccess or > some other method other than in the scripts themselves within the site. Please check th

Re: [PHP] PHP not running properly

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 15:44, Togrul Mamedbekov wrote: > Hello Sir or Madam, > > We just updated our PHP 5.2 software. And when I try to run the php info > script! I get a blank screen! What do you see when you view the source of the page with phpinfo() ? -- daniel.br...@parasane.net || da

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 15:48, Chris Payne wrote: > Hi everyone, > > My server appears to be the victim of a chinese hack-attack and I > believe they managed to change pages via SQL Injection, do any of you > have any ideas how to lock down my forms so MySQL cannot be used from > my forms? Fir

[PHP] Re: [PHP-WEBMASTER] Show Source QUESTION

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 02:47, David Lee wrote: > I was wanting to have a page called source.php like you guys, and have it > display the source code for the pages, but I've looked at the source code for > you guys source.php page and I can't seem to make it work on my server. > > Like how do you

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 13:23, workerho...@studysite.eu wrote: > hmm, the infrastructure ist good, this is just this query > so to solve my problem i could run mysql on the application server and store > just this table > and read the query from them, it could solve my problem litte, i hope so!

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 13:07, workerho...@studysite.eu wrote: > hi andrew i think you understand my problem a little, > but if 100 user load this query at the same time, the two mysql server had a > lot to do! > so i think to cache this query as xml to the application server local make > thinks fa

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 12:59, Andrew Ballard wrote: > > I understood the question to be how to improve performance by caching > MySQL results into an XML document (which, given that it was posted > here) within a PHP script. Perhaps this is not the correct > interpretation, but if so it would be r

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Daniel Brown
Chris; From my understanding of your question, your message (included below in its entirety) is better sent to the MySQL General list, which I've CC'd on this reply. If you haven't yet, please subscribe there at mysql-subscr...@lists.mysql.com to follow the thread for responses. If I

Re: [PHP] open source event calendar

2009-07-10 Thread Daniel Brown
On Fri, Jul 10, 2009 at 03:13, Joey wrote: > Hello All! > > Does anyone know of a good open source calendar app? > > Hopefully one that has ongoing development etc. > > ( sorry asked this before, but can't find a web list to search for the > previous results, php.net has a list that is not searchab

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 16:47, Bastien Koert wrote: >> >>        My sincerest apologies.  I have been a complete jackass this entire >> time and every single one of you has been correct.  From this point >> forward I vow to keep my God damned mouth shut unless spoken to. Heh. Methinks there be

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 16:55, tedd wrote: > > Now, do I remember email? No not really. As I understand it, email came > about under ARPANET and converted to the Internet in the early 80's. So > unless he has been doing email and participating on something other than > what's known, I would have to

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 11:57, Tony Marston wrote: > > Violating a license agreement is against the law, top posting is not. Laws are rules set forth by mortal man. I have the right by your own word to choose not to obey this particular one. Your arguments hold no water, your experience h

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Daniel Brown
On Thu, Jul 9, 2009 at 09:54, Tony Marston wrote: > > I called him "intolerant" because he jumps on issues which other people just > don't care about. Point #1: You're obviously wrong, as this thread has already received more replies than most on-topic, PHP-centric threads. > I called him "sm

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 13:02, Tony Marston wrote: > I do not regard that as a concrete rule, and certainly not one worth > bothering about. Lots of newsgroups I visited before coming here allowed top > posting, so it is arrogant for someone to say "I personally don't like top > posting, so I'll mak

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 12:38, Tony Marston wrote: > What rules? I never agreed to abide by any rules before I started posting to > this group. My newsreader assumes top posting by default, so I have been top > posting for the past 10 years. If you don't like it then it is your problem, > not mine.

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 12:14, Tony Marston wrote: > No it isn't. That's just your personal preference. Mine is different. Uhh Tony, if that's in response to me, you're wrong. Please read the rules before posting what you believe to be fact. ;-P -- daniel.br...@parasane.net || danbr...

Re: [PHP] Host that allows edit of php.ini

2009-07-08 Thread Daniel Brown
On Wed, Jul 8, 2009 at 04:27, Matthew Croud wrote: > Apologies if this type of question is frowned upon in the mailing list, > however I would like to pop the question to those in the know. > > Can anyone recommend a UK host that allows you to edit ( or a copy of ) the > php.ini file, > allowing me

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Daniel Brown
First, a reminder to several (including some in this thread) that top-posting is against the law here. On Wed, Jul 8, 2009 at 09:48, Martin Scotta wrote: > $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' > and passwd = md5( concat( \'' . $username .'\', \'@\', \'' . $pass

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 17:46, Jeff Weinberger wrote: > > One question - that I for some reason have not found - is there a list of > the numerical values of the E_* constants somewhere? You bet: http://php.net/manual/en/errorfunc.constants.php -- daniel.br...@parasane.net || danbr...@php.ne

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 11:03, Jeff Weinberger wrote: > > This seemed like it would be the perfect solution...but alas it did not > work. 22527 seems right, but after changing php.ini to that and restarting > php and apache, I am still getting "Deprecated..." messages. Dumb question, Jeff: are

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 18:16, Govinda wrote: > > this is great, but then I still do not have a solution that will work for > any level deep of dir/ . > I.e. this- > dirname(dirname(__FILE__)) > gives the correct first part of the path to document root like > $_SERVER['DOCUMENT_ROOT'] does > only wh

Re: [PHP] un-de-re-deprecation

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 13:29, Christoph Boget wrote: [snip="facts"] > > Ok, so I'm curious, why was is_a() added back in when it was tossed > out on it's head in 5.0? This is just how things operate with the core folks. In actuality, that's not just PHP that does it: most projects (and indeed

Re: [PHP] What is this called?

2009-07-06 Thread Daniel Brown
On Mon, Jul 6, 2009 at 11:15, Miller, Terion wrote: > > It seems like Pagination except I already have that in place for all records, > so maybe I'm just looking for a way to page the search results... > Boss kept referring to "partitioning results" By definition, yes, but if you use the term

<    4   5   6   7   8   9   10   11   12   13   >