[PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-27 Thread Eddie
ke it is a problem with a library possibly? An strace reports that PHP is trying to search for libraries in /usr/local/mysql/lib/mysql, but if I put them in there, it still doesn't function correctly. Any help is more than appreciated. Thank you very much, Eddie -- PHP General Mailing List (http:

[PHP] strange session problem

2003-03-17 Thread Eddie Lien
till buggy? Eddie Lien R&D Department UUSS Technology, Inc./Taiwan Tel: +886-2-2609-6898

[PHP] Newsgroups????

2001-12-17 Thread Eddie Shipman
Just signed up for the mailing list because I couldn't access the newsgroups, what's going on there? __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at

[PHP] Re: Terms used in search engine.

2001-09-13 Thread Eddie Shipman
> Two brothers torn apart by Chaos, while the fortress > endures, the great leader will succumb , The third > big war will begin when the big city is burning" - > - Nostradamus 1654 This is not a true quote from Nostradamus. Actually he died many years ealier. Better research it before using it

[PHP] Re: Parsing old .CAL-Files

2001-09-20 Thread Eddie Shipman
Here is a link to the file format: http://www.wotsit.org/download.asp?f=calendar If you just need a converter, let me know. I can probably program one quickly using Delphi. > Do you remember the calendar.exe in good'ol Win3.11? I have several > .CAL-Files which I want to convert for using them i

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Eddie Drapkin
Yeah, it doesn't work here, either. On Thu, May 21, 2009 at 11:44 AM, Shawn McKenzie wrote: > Ashley Sheridan wrote: > > Tedd, I've got a fairly simple calendar script in PHP here > > > http://www.ashleysheridan.co.uk/coding.php?group=php&article=coding_php_calendar.phpwhich > could be adapted

Re: [PHP] -less layouts; Ideas welcome

2009-05-21 Thread Eddie Drapkin
I'd be more fond of unrolling some of those loops and feeding the data into a proper template than tweaking what looks like really half-arsed code. On Thu, May 21, 2009 at 11:57 AM, Ashley Sheridan wrote: > On Thu, 2009-05-21 at 10:44 -0500, Shawn McKenzie wrote: > > Ashley Sheridan wrote: > > >

Re: [PHP] SECURITY PRECAUTION BEFORE SUBMITTING DATA IN DATABASE

2009-05-21 Thread Eddie Drapkin
Suhosin is completely not-related to SQL, though, I don't know why you'd bring it up... > > > > On Thu, May 21, 2009 at 3:42 PM, Shawn McKenzie wrote: > >> Michael A. Peters wrote: >> > Sumit Sharma wrote: >> >> Hi, >> >> >> >> I am designing a php website for my client which interact with >> datab

Re: [PHP] urgent CSS question

2009-05-22 Thread Eddie Drapkin
Moral of the story: if you use css classes ending in numbers, you're probably a rapist and/or murderer. On Fri, May 22, 2009 at 11:46 AM, Shawn McKenzie wrote: > Daniel Brown wrote: > > On Fri, May 22, 2009 at 08:02, Michael A. Peters > wrote: > >> If I recall - it is illegal to end a css class

Re: [PHP] IE can't download, FF can: SSL ? Need special headers?

2009-05-22 Thread Eddie Drapkin
or even just str_replace(' ' , '_', $name) consistent and works, no? On Fri, May 22, 2009 at 2:21 PM, Bastien Koert wrote: > On Fri, May 22, 2009 at 1:36 PM, Dee Ayy wrote: > > > Acceptable results, but could be better. > > > > basename works correctly for only Safari (filenames with spaces are

Re: [PHP] Unsubscribe from php-general@lists.php.net

2009-05-22 Thread Eddie Drapkin
:( On Fri, May 22, 2009 at 2:55 PM, Tom Merriam wrote: > -- > Tom Merriam > Cell: 512.639.5589 Home: 512.869.6401 > twmerr...@gmail.com >

Re: [PHP] fgets function for very large files

2009-05-23 Thread Eddie Drapkin
On Sat, May 23, 2009 at 2:58 AM, Ashley Sheridan wrote: > > If it's a CSV, I'd recommend using phpMyAdmin directly to import it into > the database, assuming you are using a MySQL database that is. It's > using tried and tested code for large files like that. > > Tried and true to be what, exactly

Re: [PHP] templating engine options

2009-05-23 Thread Eddie Drapkin
I've had a lot of success with Savant3: www.phpsavant.com becuase it's pretty featureful yet fast(er than the alternatives I tested). On Sat, May 23, 2009 at 7:01 PM, Nathan Rixham wrote: > LinuxManMikeC wrote: > >> On Sat, May 23, 2009 at 4:21 PM, Nathan Rixham wrote: >> >>> Hi All, >>> >>> Ju

Re: [PHP] Container or Calling Class

2009-05-24 Thread Eddie Drapkin
You can call methods from a classes's parents like so class foo { protected method bar() { echo "in foo!"; } } class foobar extends foo { public function bar() { parent::bar(); } } $fb = new foobar(); $fb->bar(); will output "in foo!"; On Sun, May 24, 2009 at 3:58 PM, Nathan Rixham wrote:

Re: [PHP] Re: General Web Development Editor/IDE

2009-05-24 Thread Eddie Drapkin
I use Zend Studip (I coughed up the fee, and it's worth it) for PHP, JS, HTML and CSS> THere's a WYSIWYG HTML editor built in, and that's the only drawback I hear from a lot of people about PHP IDE's. And, it's built on Eclipse, so while I work on WIndows at work, I can keep the exact same setup

Re: [PHP] Container or Calling Class

2009-05-24 Thread Eddie Drapkin
is no different. On Sun, May 24, 2009 at 7:52 PM, Nathan Rixham wrote: > Eddie Drapkin wrote: > >> You can call methods from a classes's parents like so >> class foo { >> >> protected method bar() { >> echo "in foo!"; >> } >> >>

Re: [PHP] Comparing strings (revisited)

2009-05-24 Thread Eddie Drapkin
With the initial explode, I may be wrong but I don't think it's possible to force every entry to be string-typed. However, this little snippet could help: $foo = explode(';', $db); foreach($foo as &$bar) { $bar = settype($bar, 'string); } which will set each element's type to string, but is hardl

Re: [PHP] Container or Calling Class

2009-05-24 Thread Eddie Drapkin
e a possibility. > > In fact, probably just a bad idea. > > (I see so much of that in this list: "I need to..." followed by a > description of some bizarre construct. I want to scream "No! You have > painted yourself into a corner! Test your assumptions, or go bac

Re: [PHP] change server time

2009-05-24 Thread Eddie Drapkin
If you want to change the server time ocmpletely and independent of PHP, you're going to have to do it from the shell. On Sun, May 24, 2009 at 11:36 PM, Sumit Sharma wrote: > Yes, I works on windows as well well. Was looking for india time zone found > it as putenv("TZ=Asia/Calcutta");. Thanks a

Re: [PHP] php dev environment

2009-05-25 Thread Eddie Drapkin
-- Forwarded message -- From: Eddie Drapkin Date: Mon, May 25, 2009 at 3:24 AM Subject: Re: [PHP] php dev environment To: Lester Caine Vim? Vi? PFT If you're gonna CLI, CLI *like a man* and use emacs! On Mon, May 25, 2009 at 3:21 AM, Lester Caine wrote: >

[PHP] Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
> if many requests are made the server will eventually go down because it will > over the server. > ** > > > From: Eddie Drapkin > Subject: Re: [PHP-DEV] PHP scalability problem > To: "tRace DOliveira" > Cc: intern...@lists.php.net > Date: Wednesday, May 27, 2009,

[PHP] Re: [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
ith me that when building a large web application that people > would rather choose ASP.Net over PHP if people had to choose between those > two ? > --- On *Wed, 5/27/09, Eddie Drapkin * wrote: > > > From: Eddie Drapkin > Subject: Re: [PHP-DEV] PHP scalability problem >

[PHP] [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
So it inflicts less strain > upon the web server. So I am trying to solve the problem of the strain that > PHP causes on ther server. > --- On *Wed, 5/27/09, Eddie Drapkin * wrote: > > > From: Eddie Drapkin > Subject: Re: [PHP-DEV] PHP scalability problem > To: "tRace

[PHP] [PHP-DEV] PHP scalability problem

2009-05-26 Thread Eddie Drapkin
t; I also thought that it's PHP that causes the processes. Thanks that helps > me alot. So the problem is not with the language itself but the web > server(Apache)? > > --- On *Wed, 5/27/09, Eddie Drapkin * wrote: > > > From: Eddie Drapkin > Subject: Re: [PHP-DEV]

Re: Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Eddie Drapkin
Your code might not, but you sure do! Spending all that time writing require statements = :( On Thu, May 28, 2009 at 9:49 AM, Tony Marston wrote: > > wrote in message > news:000e0cd6ad1a9f7d3d046af89...@google.com... > > Two things: > > > > 1. Try using the fully qualified path (ie /var/www/fo

Re: Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Eddie Drapkin
to meet your deadlines! :) On Thu, May 28, 2009 at 10:53 AM, Tony Marston < t...@marston-home.demon.co.uk> wrote: > "Eddie Drapkin" wrote in message > news:68de37340905280737t3e1ad844y188ab8fa08f17...@mail.gmail.com... > > Your code might not, but you sure do! Spend

Re: Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Eddie Drapkin
mon.co.uk > > wrote: > > > > > "Eddie Drapkin" wrote in message > > news:68de37340905280801m6964d355l2d6d8ef773f3b...@mail.gmail.com... > > > There's a huge difference between laziness and opting in to use an > > > incredibly useful (and easy to pr

[PHP] Autoloading with namespaces in 5.3.0

2009-05-30 Thread Eddie Drapkin
Hey, I'm looking to start playing with 5.3.0, and thus by extension, namespaces. One of the things that I definitely need support for is autoloading, and the docs aren't exactly explicit in some (obvious to me) cases. I have an autoloading class that internally handles file-not-found errors and t

Re: [PHP] Autoloading with namespaces in 5.3.0

2009-06-01 Thread Eddie Drapkin
Sat, May 30, 2009 at 1:51 PM, Eddie Drapkin wrote: > >> Hey, I'm looking to start playing with 5.3.0, and thus by extension, >> namespaces. One of the things that I definitely need support for is >> autoloading, and the docs aren't exactly explicit in some (obviou

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Eddie Drapkin
> > > daniel.br...@parasane.net || danbr...@php.net > http://www.parasane.net/ || http://www.pilotpig.net/ > 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW1 > > Completely off topic, but www.pilotpig.net is down or buggered or something! Looks like a squatter to me >.>

Re: [PHP] Re: PHP scalability problem -- APC vs EAccelerator

2009-06-02 Thread Eddie Drapkin
ff" with those last two links, but you can easily spend several hours on the first two links and all four offer pretty impressive advice. Let me know if there's anything else I can do for you :) --Eddie On Mon, Jun 1, 2009 at 9:44 PM, Daevid Vincent wrote: > Eddie can you explain the

Re: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread Eddie Drapkin
e ultimate product will be much better than if you had elected to work alone. That's all I've got --Eddie On Tue, Jun 2, 2009 at 9:48 AM, Lists wrote: > Angus Mann wrote: > >> Hi all. >> >> I'm working on a PHP project for my own personal business use. I

Re: [PHP] PHP Help

2009-06-02 Thread Eddie Drapkin
There's a few things about your post I'd like to comment on. One, if you're not using APC, I definitely agree with the fact that you're just wasting resources. However, you mention micro-optimizations and say that they're hardly useful, but in some cases it's a huge difference. ' vs. " is like a

[PHP] Re: [PHP-DEV] PHP scalability problem

2009-06-02 Thread Eddie Drapkin
Kinda like where you have the website > "bluehost" restricting the amount of processes a person can use. They > restrict you because of PHP and the processes a person uses, more pressure > the web server will have. > > --- On *Wed, 5/27/09, Eddie Drapkin * wrote: >

Re: [PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-02 Thread Eddie Drapkin
High-performance builds of mysql are still faster. And with 5.4 integrating a lot of performance boosts, I'd expect MySQL to retain that lead for a lot longer. There's also a lot more guides / support for MySQL around, as well as having a more robust choosing of UDF's, if you were to need them.

Re: [PHP] MySQL after oracle, still Wise?, was Web application design .......

2009-06-03 Thread Eddie Drapkin
Sadly, Mr. Saran wasted a lot of time writing a pluggable backend db layer, as one is built into PHP now, PDO: http://us2.php.net/pdo Sybase / MsSQL: http://www.php.net/manual/en/ref.pdo-dblib.php Postgres: http://us2.php.net/manual/en/ref.pdo-pgsql.php Oracle: http://us2.php.net/manual/en/ref.pdo

Re: [PHP] Web friendly file names

2009-06-03 Thread Eddie Drapkin
Why not just urlencode() the filename? (and suggest people use a URL shortening service and/or provide one) On Wed, Jun 3, 2009 at 12:31 PM, Richard Heyes wrote: > Hi, > > > I have a file uploader module that allows users to upload documents and > of > > course people are using all kinds of file

Re: [PHP] Web friendly file names

2009-06-03 Thread Eddie Drapkin
> You mean like this? This would work as a good file name to be on the server > and link to? > > $filename = urlencode($_FILES['myfile']['name']); > move_uploaded_file($_FILES['myfile']['tmp_name'], $filename); > > Think that would do th

Re: [PHP] Web friendly file names

2009-06-03 Thread Eddie Drapkin
t; work fine, on the other hand. On Wed, Jun 3, 2009 at 1:00 PM, Skip Evans wrote: > Oh, of course that makes sense, and I suppose the PHP move_uploaded_file() > function has no problem with weird and crappy file names? > > Skip > > Eddie Drapkin wrote: > >> Well, erm,

Re: [PHP] Using File_exists?

2009-06-03 Thread Eddie Drapkin
just initially, and this might be a typo but $FilePath = "http://localhost:/HarrisAutomate/output/WebImagesHiRes/$ImageName";; //$BackupPath = "http://localhost:/HarrisAutomate/WebImagesHiRes/output/backup/";; $FilePath has an /output/ that $BackupPath doesn't. Also, make sure you don't

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Eddie Drapkin
Another camper on the AES / Rijndael bandwagon. I don't think there's even been a theoretical attack point for anything >128 bit, but I could be wrong. And re: sha1, sha1 isn't an encryption algorithm... On Wed, Jun 3, 2009 at 9:28 AM, Bruno Fajardo wrote: > Hi there! > > Try out AES. > http:/

Re: [PHP] Query Regarding a Player

2009-06-03 Thread Eddie Drapkin
But it's client side software and you can't rely on it existing for general use. On Wed, Jun 3, 2009 at 2:52 PM, Ashley Sheridan wrote: > On Wed, 2009-06-03 at 09:18 -0500, haliphax wrote: > > On Wed, Jun 3, 2009 at 8:14 AM, Hemant Patel > wrote: > > > Hi All, > > >I hope you all ar

Re: [PHP] PHP Graphing Libraries...?

2009-06-05 Thread Eddie Drapkin
I've had a lot of success with flot, but that's a jQuery plugin, so it may not be exactly what you need. If you're just making graphs for client side viewing, it ought to be sufficient, though. On Fri, Jun 5, 2009 at 8:33 AM, li...@mgreg.com wrote: > > On Jun 5, 2009, at 5:26 AM, Richard Heyes

Re: [PHP] php applications

2009-06-09 Thread Eddie Drapkin
Depends on how you look at it, I'd take the perspective that that's a non-normal approach to the language and demonstrates a fuller understanding of the language. Same as if you put (and I do) "wrote an asynchronous socket server in PHP." Despite the position PHP developers are usually applying f

Re: [PHP] php applications

2009-06-09 Thread Eddie Drapkin
While the technology is pretty immature at the moment, due to its under-use no doubt, saying that PHP is never the tool for a desktop application is pretty inane. While the primary developmental lifecycle is geared towards web development (who's arguing that?), there's nothing really pervasive pre

Re: [PHP] PHP as Server Side for a Web Database Application.

2009-06-10 Thread Eddie Drapkin
Dan, I do appreciate when you share your pillow talk with the list at large. Cheers, Eddie On Wed, Jun 10, 2009 at 9:06 AM, Robert Cummings wrote: > Daniel Brown wrote: > >> On Wed, Jun 10, 2009 at 01:41, R. S. Patil wrote: >> >>> Hi, >>> >>> We

Re: [PHP] PHP as Server Side for a Web Database Application.

2009-06-10 Thread Eddie Drapkin
The question then becomes whether he was one of the boring catchers and just sort of "sat there" or was "actively discussing" with you. On Wed, Jun 10, 2009 at 9:11 AM, Robert Cummings wrote: > Eddie Drapkin wrote: > >> Dan, I do appreciate when you share y

Re: [PHP] Preventing XSS Attacks

2009-06-10 Thread Eddie Drapkin
The problem with using a database escaping string for output escaping is that something like (despite being the world's lamest XSS) location.href('google.com') Would output mostly the same and with some cleverness, it wouldn't be too hard to get that to function properly with a full fledged XSS a

[PHP] Form handling

2009-06-10 Thread Eddie Drapkin
d, array $options) or form_handler::requireRegex($field, $regex), etc. Thoughts? Thanks in advance, --Eddie

Re: [PHP] Preventing XSS Attacks

2009-06-10 Thread Eddie Drapkin
On Wed, Jun 10, 2009 at 2:08 PM, Ashley Sheridan wrote: > On Wed, 2009-06-10 at 19:03 +0100, Ashley Sheridan wrote: > > On Wed, 2009-06-10 at 23:17 +0530, Sudheer Satyanarayana wrote: > > > Ashley Sheridan wrote: > > > > On Wed, 2009-06-10 at 23:05 +0530, Sudheer Satyanarayana wrote: > > > > > > >

Re: [PHP] detect cli sapi

2009-06-10 Thread Eddie Drapkin
if(PHP_SAPI == 'cli') { } or if(php_sapi_name() == 'cli') { } On Wed, Jun 10, 2009 at 3:42 PM, Tom Worster wrote: > what's a reliable way to detect that the sapi is cli, including in a > included scripts? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http

Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Eddie Drapkin
try set_time_limit(0) ? On Thu, Jun 11, 2009 at 8:05 AM, Ford, Mike wrote: > On 11 June 2009 12:00, Ashley Sheridan advised: > > > On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote: > >> Hi! > >> I'm stuck. > >> I don't understand why the php CLI dies after 3 hours in my script. > Any

Re: [PHP] order by what?

2009-06-11 Thread Eddie Drapkin
On Thu, Jun 11, 2009 at 11:35 AM, PJ wrote: > Robin Vickery wrote: > > > > > > 2009/6/11 PJ mailto:af.gour...@videotron.ca>> > > > > How can order by be forced to order alphabetically and ignore accents > > without stripping the accents for printout? This is a problem for > both > > c

Re: [PHP] truncate a mb-string to a given octet length?

2009-06-12 Thread Eddie Drapkin
Correct me if I'm wrong, but should varchar 255 with a utf8 character set mean 255 unicode characters, not octets? On Fri, Jun 12, 2009 at 11:50 AM, Tom Worster wrote: > say a table in the db has a varchar(255) column, 255 being the max number > of > octets of strings that can go in the column.

Re: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Eddie Drapkin
The better question is why are you using MyISAM tables? Unless there's a legitimate reason to prefer MyISAM over InnoDB, you should be using InnoDB. On Fri, Jun 12, 2009 at 2:01 PM, Nitsan Bin-Nun wrote: > There is no way to avoid it since whenever you delete a row in a myisam > table you creat

Re: [PHP] phpMyAdmin, localhost, mysql overhead

2009-06-12 Thread Eddie Drapkin
ly don’t know the differences betwen MyISAM and InnoDB yet but I’ll > google for it right now. > > > > Thank u. > > > > *Zechim* > > > > *De:* Eddie Drapkin [mailto:oorza...@gmail.com] > *Enviada em:* sexta-feira, 12 de junho de 2009 15:05 > *Para

[PHP] Uniquely identifying an array... as a key to another array

2009-06-14 Thread Eddie Drapkin
ste of both ram and CPU time. Is there a better way? Thanks, Eddie

Re: [PHP] how to extract fields from associative array into different variables

2009-06-15 Thread Eddie Drapkin
You could use list() a la list($foo, $bar) = mysql_fetch_row(); On Mon, Jun 15, 2009 at 4:19 PM, PJ wrote: > Jay Blanchard wrote: > > [snip] > > Is there an easier or simpler way to do this? > > [/snip] > > > > http://us2.php.net/manual/en/function.mysql-fetch-row.php > > > In what way would thi

Re: [PHP] how to extract fields from associative array into different variables

2009-06-16 Thread Eddie Drapkin
I'm going to assume that your table is setup to have the rows BookID and AuthorName, adjust accordinging: function makeInsertQuery(array $authors, $bookId) { $sql = "INSERT INTO book_authors (BookID, AuthorName) VALUES ('$bookId', '"; foreach($authors as &$author) { $author = mysql_real_esca

Re: [PHP] how to extract fields from associative array into different variables

2009-06-16 Thread Eddie Drapkin
exist) { $key = array_search($exist, $authors); unset($authors[$key]); } } makeInsertQuery($authors, $bookId); } Probably needs some tweaking, both of them, as I'm writing compleletly off the cuff, but the logic should be about right :) On Tue, Jun 16, 2009 at 8:59 AM, Eddie Dra

Re: [PHP] Re: Help: PHP version not up to date after "apt-get install php5-dev"

2009-06-17 Thread Eddie Drapkin
Why not just compile it yourself? On Wed, Jun 17, 2009 at 3:34 PM, Shawn McKenzie wrote: > Philipp Schaffner wrote: >> Dear PHP [hard]core expert >> >> After  "apt-get install php5-dev" on Linux (Debian, Ubuntu, Hardy Heron) >> with an already existing and functioning PHP5 interpreter "phpinfo()"

Re: [PHP] how to extract fields from associative array into different variables

2009-06-18 Thread Eddie Drapkin
Total nitpick, but foreach is a control structure, not a function :P On Thu, Jun 18, 2009 at 8:40 AM, Yuri Yarlei wrote: > > You can try use the foreach function. > > ex: > if ($res = mysql_query ($sql, $db)) { >  /* I personally prefer "res" for "resource", not "results" */ >  while ($r = mysql_f

Re: [PHP] aesthetic beauty in conception, execution

2009-06-18 Thread Eddie Drapkin
It's the greatest movie I've ever seen. Canadians, Jesus, vampires and lesbians, what hte hell else could you ask for in a film? On Thu, Jun 18, 2009 at 3:50 PM, Paul M Foster wrote: > On Thu, Jun 18, 2009 at 01:58:26PM -0500, Skip Evans wrote: > >> Okay, had to chime in here... >> >> Jesus Chris

Re: [PHP] Mastercard Securecode

2009-06-19 Thread Eddie Drapkin
I've not heard of anything like that, but turning the C API into an extension would be a huge plus for PHP and I heartily recommend it (as long as it's not me writing it ^.^)! On Fri, Jun 19, 2009 at 4:14 AM, Ian wrote: > Hi, > > A search of google has been unsuccessfull so I am posting here in th

Re: [PHP] This Friday's OT Thread

2009-06-19 Thread Eddie Drapkin
Wait, that's not how everyone else gets ready for a coding marathon? You guys are doing it wrong! On Fri, Jun 19, 2009 at 7:03 PM, Dotan Cohen wrote: >>> I'm self-employed. I don't plan on ever laying myself off. >> >>    Mind out of the gutter, Rob.  Words like "self," "laying," and >> "off" wil

Re: [PHP] share code between sites

2009-06-21 Thread Eddie Drapkin
The same document root and different Vhosts? On Sun, Jun 21, 2009 at 4:01 PM, Lars Nielsen wrote: > Hey List > > Is there any good approach to share code between multiple sites? The > code might be on the same server but on different domains. > > best regards > > Lars > > > -- > PHP General Mailin

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Eddie Drapkin
Why not give a presentation, like in the first few, about compiling PHP for yourself, as that's a pretty useful skill that's oft neglected? On Tue, Jun 23, 2009 at 4:12 AM, Per Jessen wrote: > Manuel Aude wrote: > >> I'm giving a PHP course next semester (3 hours all saturdays for 22 >> weeks) and

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Eddie Drapkin
Cons: 1. Can't easily edit information in the database 2. Can't display raw for the user (e.g. edit a forum post) 3. Uses more space in the DB 4. Isn't as easily indexed 5. Breaks il8n support of internal search engines (sphinx, lucene, etc.) You're NEVER supposed to santize before inserting in th

Re: [PHP] Perl GD

2009-06-23 Thread Eddie Drapkin
I think you've got the wrong mailing list, man. On Tue, Jun 23, 2009 at 11:11 AM, Chris Denman wrote: > Hi! > > Just installed the latest release of GD on my Centos 5 server with no > installation issues and all libraries OK. > However, getting lots of: > > [13973]ERR: 24: Error in Perl code: Bad

Re: [PHP] modifying within foreach

2009-06-23 Thread Eddie Drapkin
It's just foreach($foo as $key => &$item) { } You can't assign the key by reference >.> On Tue, Jun 23, 2009 at 3:04 PM, Ashley Sheridan wrote: > On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote: >> Andres Gonzalez wrote on 06/23/2009 12:26:38 PM: >> >> > I want to modify $resul

Re: [PHP] CSV file

2009-06-24 Thread Eddie Drapkin
or $arr = file('foo.csv'); $count = count($arr); On Wed, Jun 24, 2009 at 5:19 PM, Richard Heyes wrote: > Hi, > >> To do the line count first, you have to read the whole file, how would >> you do it? > > Something like this: > > $fp = fopen('/tmp/foo', 'r'); > $count = 0; > > while (!feof($fp)) { >

Re: [PHP] Re: Progressbar

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 9:58 AM, Stuart wrote: > 2009/6/25 tedd : >> At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: >>> >>> 'Twas brillig, and tedd at 24/06/09 15:24 did gyre and gimble: The biggest problem in uploading a file is figuring out how large it is. You can't find that out

Re: [PHP] Re: Progressbar

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 10:29 AM, Stuart wrote: > 2009/6/25 Eddie Drapkin : >> On Thu, Jun 25, 2009 at 9:58 AM, Stuart wrote: >>> 2009/6/25 tedd : >>>> At 8:30 AM +0100 6/25/09, Colin Guthrie wrote: >>>>> >>>>> 'Twas brillig,

Re: [PHP] Re: Progressbar

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 12:52 PM, Bastien Koert wrote: > On Thu, Jun 25, 2009 at 11:51 AM, Michael A. Peters wrote: >> Martin Scotta wrote: >>> >>> I found extremely un-productive editors or IDEs like Eclipse or Zend >>> Studio. >>> >>> I use SciTE. >>> >>> It don't has any feature you are talking

Re: [PHP] OT mysql pivot table problem

2009-06-25 Thread Eddie Drapkin
You'd be much, much better off creating a query by concatenating ", ($uid, $groups[$i])" into one huge insert query. YOU SHOULD NEVER, EVER EVER EVER EVER RUN QUERIES IN A LOOP! On Thu, Jun 25, 2009 at 4:11 PM, Matt Giddings wrote: > Thanks for taking the time to provide an example.  I'm going t

Re: [PHP] Removing empty values from array

2009-06-25 Thread Eddie Drapkin
On Thu, Jun 25, 2009 at 5:00 PM, Ashley Sheridan wrote: > On Thu, 2009-06-25 at 17:52 -0300, Martin Scotta wrote: >> Hi all >> >> I have this in a simple routine... >> >> for($i=0, $if=count($array); $i<$if; ++$i) >>       if( $array[$i] == '' ) >>       { >>               array_splice( $array, $i,

Re: [PHP] Does php have multithread, shared object(like jsp application)

2009-06-25 Thread Eddie Drapkin
PHP doesn't support threading. On Thu, Jun 25, 2009 at 10:59 PM, WenDong Zhang wrote: > Hi guys: > > Now days I want to develop a web application like a chat room. the requests > per seconds maybe very large, so I want to save some common info into to > memory (quick access). > > So, I want to kno

Fwd: [PHP] What does this mean?

2009-06-25 Thread Eddie Drapkin
Just getting this back on the list >.> -- Forwarded message -- From: Eddie Drapkin Date: Fri, Jun 26, 2009 at 2:36 AM Subject: Re: [PHP] What does this mean? To: Jason Carson It's used in key value combinations in several places. When building an array: $foo =

Re: [PHP] Does something like this exist?

2009-06-29 Thread Eddie Drapkin
Have you looked at class_parents()? http://www.php.net/manual/en/function.class-parents.php On Mon, Jun 29, 2009 at 4:42 PM, Christoph Boget wrote: >>> * What files are include in which scripts >> pecl.php.net/package/inclued  - an awesome tool, will show you >> includes/require calls to other one

Re: [PHP] Re: Scope woe

2009-06-30 Thread Eddie Drapkin
It should be passed into the constructor as a parameter. If you're using OOP properly, there's no reason to use $GLOBALS, ever. Any variable in the $GLOBALS array exists twice in memory, so just keep that in mind, if you plan to use it. On Tue, Jun 30, 2009 at 8:43 AM, Peter Ford wrote: > Luke w

Re: [PHP] Re: Scope woe

2009-06-30 Thread Eddie Drapkin
On Tue, Jun 30, 2009 at 10:44 AM, Luke wrote: > > > 2009/6/30 Eddie Drapkin >> >> It should be passed into the constructor as a parameter.  If you're >> using OOP properly, there's no reason to use $GLOBALS, ever.  Any >> variable in the $GLOBALS

Re: [PHP] Re: Scope woe

2009-06-30 Thread Eddie Drapkin
; static? >> >> Also, if I'm not using OOP properly, Eddie, how would I use it properly to >> prevent this situation? >> >> Thanks, >> > > Hmmm, I didn't notice the method was static - that means my idea really won't > work... > > I

Re: [PHP] Re: Scope woe

2009-06-30 Thread Eddie Drapkin
On Tue, Jun 30, 2009 at 12:37 PM, Paul M Foster wrote: > On Tue, Jun 30, 2009 at 11:17:17AM -0400, Eddie Drapkin wrote: > > > >> >> I wouldn't really recommend going with a singleton in this situation, >> as there exists a different solution (my other post :P) a

Re: [PHP] exasperated again - shot in the foot

2009-06-30 Thread Eddie Drapkin
On Tue, Jun 30, 2009 at 4:50 PM, Bastien Koert wrote: > On Tue, Jun 30, 2009 at 4:48 PM, PJ wrote: >> PJ wrote: >>> Could somebody please explain to me what is wrong with this code? >>> In my script it works, returns the correct id, but when I try it in a >>> test pages, nothing in the world gets i

Re: [PHP] Re: Scope woe

2009-06-30 Thread Eddie Drapkin
> You are correct as there was no metaphor in here at all!  This, "It > helps to think of classes like cars on a highway", is almost a simile, > but on the whole I would probably say that you were using an analogy :-) > HEIL SPELLCHECK! I bow to my grammar nazi superior *bow* -- PHP General Mai

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-04 Thread Eddie Drapkin
if you want a pure opcode cache, APC is a great choice. APC should //not// be used for persistent RAM storage. Memcached is much faster and designed for that aim, while not being tied to the webserver. On Sun, Jul 5, 2009 at 2:10 AM, Brandon Johnson wrote: > you think this is similar to http://w

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-04 Thread Eddie Drapkin
On Sun, Jul 5, 2009 at 2:43 AM, Paul Scott wrote: > Eddie Drapkin wrote: >> if you want a pure opcode cache, APC is a great choice. >> >>> you think this is similar to http://www.danga.com/memcached/ or you think >>> this method would be faster ? Which do you say

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Eddie Drapkin
> -=- (from other discussion) > Interesting that facebook uses both. The fedora maintainer for the apc rpm > listed it as conflicting with memcache. If you can use both, that's a fedora > packaging but that should be fixed. I've never seen, nor heard of, a full scale caching implementation that do

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Eddie Drapkin
On Mon, Jul 6, 2009 at 1:45 AM, Jason Carson wrote: >> Hello everyone, >> >> I am trying to create a PHP login script using cookies but am having some >> troubles. Here is my setup >> >>     index.php -> authenticate.php -> admin.php >> >> I want a login form on index.php that allows me to login wi

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Eddie Drapkin
On Mon, Jul 6, 2009 at 2:01 AM, Jason Carson wrote: >> On Mon, Jul 6, 2009 at 1:45 AM, Jason Carson wrote: Hello everyone, I am trying to create a PHP login script using cookies but am having some troubles. Here is my setup     index.php -> authenticate.php -> adm

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Eddie Drapkin
mpossible to create a rainbow table and run rainbow table attacks on your database. It costs nearly nothing to do, in terms of resource usage and any sort of human comprehensible scheme to store those hashes is easily broken. I've seen "{$user}{$randomCharacter}{$password}" used before, and I'd never recommend something so simple. --Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-07-09 Thread Eddie Drapkin
> I called him "intolerant" because he jumps on issues which other people just > don't care about. > > I called him "small minded" because he concentrates on small issues which > simply don't matter in the great scheme of things. That sounds like fair > comment to me It's just like those people who

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

2009-07-09 Thread Eddie Drapkin
e overly ornery about a point so trivial? It seems like you're trying to turn this into a "Fight the Power" battle, when the only power you're fighting are your peers. --Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP headers and include()

2009-07-09 Thread Eddie Drapkin
"?>" at the end of a file followed by some whitespace. The solution was to remove the ?> from the end of all the files and I haven't closed an entire file since. Perhaps that might be it? --Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Trapping

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 10:56 AM, Floyd Resler wrote: > I'm having a hard time getting my head around this problem.  I have to > connect to a FoxPro database using an ODBC driver.  Sometimes when I connect > I get an error.  The error doesn't occur all the time and usually another > connect attempt

Re: [PHP] Error Trapping

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 11:39 AM, Floyd Resler wrote: > Eddie, >        Thanks for the tip.  It suddenly occurred to me what I was doing > wrong.  I do use an error trap but I was telling my script to stop running > after the error.  So, now I ignore it and continue through

Re: [PHP] HELP SQL INJECTION

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 3:50 PM, Daniel Brown wrote: > 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 dow

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

2009-07-10 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 8:25 PM, Govinda wrote: > How do I  get > basename(__FILE__) > or > htmlentities($somevar) > to be evaluated  in a heredoc? > > > Govinda > govinda.webdnat...@gmail.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www

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

2009-07-11 Thread Eddie Drapkin
On Sat, Jul 11, 2009 at 2:01 PM, Daniel Brown wrote: > 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_re

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

2009-07-11 Thread Eddie Drapkin
On Sat, Jul 11, 2009 at 11:03 AM, Daniel Brown wrote: > 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 acce

  1   2   >