Re: [PHP] Friday's Question

2013-09-23 Thread Eric K. Dickinson
54, Only when the surface of the desk is problematic. On 09/20/2013 12:58 PM, Larry Martell wrote: On Fri, Sep 20, 2013 at 10:51 AM, Tedd Sperling t...@sperling.com wrote: Hi gang: Do you use a Mousepad? My reason for asking is that I've used a Mousepad ever since mice first came out (back

[PHP] Does Scope-Resolution Operator Always Follow 'parent'?

2013-03-10 Thread Eric James Michael Ritz
Hello everyone, I have a question about the `parent` keyword: is there any valid situation where it can appear without the `::` operator following? I am asking to fix a bug in php-mode[1] for GNU Emacs. Consider the following code: echo $parent; echo parent::$foo; echo

[PHP] A Recent Emacs Mode for PHP

2012-12-22 Thread Eric James Michael Ritz
Hello everyone, I do not know how many PHP developers use GNU Emacs for writing code. But I assume it must be a decent amount since there are multiple PHP modes for Emacs floating around the Internet. For months I have worked to improve one of those modes, what seemed to be the most popular:

[PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file

2012-09-21 Thread edward eric pedersson
Hi My host, Host Papa (yes, they are rubbish) has disabled mod_deflate, mod_gzip and php_value auto_prepend_file so can't use them in .htaccess file. I would move host but I did not realise this was the case until I wanted to make use of them. I am tied in for three years so need to find a

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
Hello Frank,   As far as I know I am not doing anything in terms of trying to write or use my own function.  What I am trying to do is use what PHP provides.    Thank you   Eric H. Lommatsch Programmer Pivotal Data Incorporated  2087 South Grant Street Denver, CO 80210 Tel 303-777-8939

RE: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
When I try this method:   $interval = $dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]); I get the following error when I run the page: Fatal error : Call to undefined method DateTime::diff() in /var/www/evalHomeLime.php on line 254       Thank you   Eric H. Lommatsch Programmer

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
Actually for what I need this is exactly what i was looking for.  I am converting an asp page that was calculating this difference using VBA functions and I was trying to duplicate things as they were in that page.     Thank you   Eric H. Lommatsch Programmer Pivotal Data Incorporated

[PHP] Question about date calculations

2011-12-29 Thread Eric Lommatsch
end date. Can someone point me in the direction of what I need to do to have the comparisons I am doing work. Eric Lommatsch.

Re: [PHP] Re: Preferred Syntax

2011-12-17 Thread Eric Butera
On Sat, Dec 17, 2011 at 12:59 AM, Adam Richardson simples...@gmail.com wrote: On Fri, Dec 16, 2011 at 11:53 PM, Eric Butera eric.but...@gmail.com wrote: To all the people who responded to this thread: It is 2011 - please stop writing code like this. To the OP: I'm glad you're asking

Re: [PHP] Re: Preferred Syntax

2011-12-16 Thread Eric Butera
On Thu, Dec 15, 2011 at 5:46 PM, Ross McKay ro...@zeta.org.au wrote: Jim Lucas wrote: I second this example, with one minor change, I would add '{' and '}' around variables. echo HTML a style=text-align:left;size:14;font-weight:bold   href=/mypage.php/{$page_id}{$page_name}/abr HTML; This

Re: [PHP] Sniping on the List

2011-11-15 Thread Eric Butera
On Mon, Nov 14, 2011 at 12:51 PM, George Langley george.lang...@shaw.ca wrote:        Am concerned over the number of posts that appear to be from people trying to over-inflate their self-importance.        If you are the world's best coder, then help those of us who aren't. If you happen to

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 11:16 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Oct 28, 2011, at 9:43 AM, Stuart Dallas wrote On 28 Oct 2011, at 12:54, Daniel Brown wrote: On Fri, Oct 28, 2011 at 05:03, Adam Richardson simples...@gmail.com wrote: Well, Daniel, I'll bet you never thought

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 12:02 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 11:51, Eric Butera eric.but...@gmail.com wrote: Mr Brown, You're not going to try and pawn this thread off as the Friday Distraction, are you?    No, I'm waiting for someone else to set

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process each row. However, it runs out of memory a little after a

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 3:29 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 13:25, Jim Long p...@umpquanet.com wrote: Eric: Thanks for your reply. process row here is a comment.  It doesn't do anything.  The script, exactly as shown, runs out of memory, exactly as shown

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 18:36, Nathan Nobbe quickshif...@gmail.com wrote: Hi gang, Thinking database i/o would be the slowest part of a request in your new zf / amf app? Leave it to Zend_Amf to burn more cycles marshaling

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 7:24 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera eric.but...@gmail.com wrote: On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 18:36, Nathan Nobbe quickshif...@gmail.com

[PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Eric
I have this problem when using php because my computer recognizes the characters . and .. as an existing file when I use file_exists. Also I want to check $_POST[username] for characters other then A-Z a-z and 0-9. If it contains anything other then, I would like to prompt the user but I can't

[PHP] RE: How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Eric
if(preg_match('(.*)^[A-Za-z0-9]+', $_POST['username']) !== 0) { echo p style=\color:red;font-weight:bold;margin-left:95px\; echo Username must only contain A-Z and 0-9/p; include(register.html); exit; } I used the code above but I now get this error message Warning: preg_match()

[PHP] Re:

2011-09-22 Thread Eric
Thanks Very much I used, preg_match('/[[:punct:]]/', $_POST['username']) !== 0 and it works without errors. The reason I can't just use is_file which I wish I could is because windows doesn't allow question marks or some wierd character. It decides to not allow php to make the file if there are

Re: [PHP] Querying a database for 50 users' information: 50 queries or a WHERE array?

2011-09-14 Thread Eric Butera
On Wed, Sep 14, 2011 at 4:12 AM, Dotan Cohen dotanco...@gmail.com wrote: On Wed, Sep 14, 2011 at 06:05, chetan rane chetan.d.r...@gmail.com wrote: Hi, There are 2 peoblems with subselect 1. You cant use a limit on the nested select 2. Id the number of elements in the in clause exceeds the

Re: [PHP] Re: Stop PHP execution on client connection closed

2011-09-13 Thread Eric Butera
On Tue, Sep 13, 2011 at 4:01 AM, Marco Lanzotti ma...@lanzotti.com wrote: Il 13/09/2011 09:39, vikash.i...@gmail.com ha scritto: You can use ob_start() to start output buffering and ob_end_flush() to send some data in the middle of script  - that way  your php script will send some data to

Re: [PHP] Querying a database for 50 users' information: 50 queries or a WHERE array?

2011-09-13 Thread Eric Butera
Oh no, he stole your internet points! On Tue, Sep 13, 2011 at 10:44 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: yeer tai yeer...@hotmail.com wrote: select * from table where userID in(1,2,3,etc) From: a...@ashleysheridan.co.uk Date: Tue, 13 Sep 2011 15:29:26 +0100 To:

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Eric Butera
On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar titiolin...@gmail.com wrote: Other good point is: always set a timeout connection when you're getting the RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more faster then file_get_contents). Multithreading in PHP with cURL

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Eric Butera
On Sat, Sep 10, 2011 at 1:47 PM, Sean Greenslade zootboys...@gmail.com wrote: On Sat, Sep 10, 2011 at 4:35 AM, muad shibani muad.shib...@gmail.comwrote: I want to design an application that reads news from RSS sources. I have about 1000 RSS feed to collect from. I also will use Cron jobs

Re: [PHP] Upgrade or Die?

2011-06-26 Thread Eric Butera
On Sat, Jun 25, 2011 at 12:13 AM, ad...@buskirkgraphics.com wrote: The message for Netscape was very clear, the development community refused to write for it they had started a precedence that could not be forgotten. I say communities will not forget this act and remove the browser from their

Re: [PHP] Performance gain when not using prepared statements?

2011-06-17 Thread Eric Butera
On Fri, Jun 17, 2011 at 4:55 AM, Vitalii Demianets vi...@nppfactor.kiev.ua wrote: On Friday 17 June 2011 04:50:00 Daevid Vincent wrote: I've seen too many people over the years try and rally against common sense practices like using prepared statements for perhaps a marginal gain of

Re: [PHP] Doctrine madness!

2011-06-17 Thread Eric Butera
On Fri, Jun 17, 2011 at 3:19 PM, Jim Lucas li...@cmsws.com wrote: On 6/16/2011 3:15 PM, Nathan Nobbe wrote: what it really amounts to is php is good at doing 1 thing and 1 thing only, generating web pages.  for anything else, including command line scripts that run for more than 30 seconds,

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 12:51 PM, Nathan Nobbe quickshif...@gmail.com wrote: Hi gang, If anyone out there has some experience w/ Doctrine now would be a great time to share it! So I'm writing a batch importer and noticed memory usage climbing during script execution. In the debugging

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To: php-general@lists.php.net Subject: [PHP] Doctrine madness! Hi gang, If anyone out there has some

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 7:32 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 2:58 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun 16

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 9:50 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Thursday, June 16, 2011 5:53 PM To: Daevid Vincent Cc: php-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun 16

Re: [PHP] Best authentication system

2011-06-04 Thread Eric Butera
On Sat, Jun 4, 2011 at 2:44 PM, Adam Tong adam.to...@gmail.com wrote: Hi, I'm running a site for which I need an authentication system. I have already my own (that is too simplistic and not very secure). I want some advice here. I checked PEAR, but as there are several options there, I was

Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-03 Thread Eric Butera
On Fri, Jun 3, 2011 at 11:56 AM, Daniel Brown danbr...@php.net wrote:    First of all, a happy Friday to all here.  Hopefully some of you will be able to pass this on to your boss and get sent home early.    Second, as dreamed up in the previous thread, I've decided to take a few moments this

Re: [PHP] phpsadness

2011-06-03 Thread Eric Butera
On Fri, Jun 3, 2011 at 12:37 PM, Jasper Mulder lord_fa...@hotmail.com wrote: Stuart Dallas wrote: [SNIP] And this is where we disagree. Everyone is entitled to an opinion, and they're also entitled to express that opinion, whether through humour or simple statement. Somehow in your

Re: [PHP] phpsadness

2011-06-03 Thread Eric Butera
On Fri, Jun 3, 2011 at 1:05 PM, Marc Guay marc.g...@gmail.com wrote: What's PHP?  I thought this was the top-posting-etiquette-discussion-and-simmering-race-war group. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I just wanted to do

Re: [PHP] How can a UTF-8 string can be converted to an array of Bytes?

2011-05-25 Thread Eric Butera
On Wed, May 25, 2011 at 8:15 AM, Eli Orr (Office) eli@logodial.com wrote: Hi, Since a UTF-8 is a multi-bytes mechanism I get for 2 or 3 bytes  UTF-8 encoded character a single character How can it be break into the REAL bytes array that represent the UTF-8 string  and how  can we

Re: [PHP] observer pattern

2011-05-23 Thread Eric Butera
On Mon, May 23, 2011 at 5:14 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Eric Butera [mailto:eric.but...@gmail.com] Sent: Friday, May 20, 2011 2:25 PM To: PHP Subject: Re: [PHP] observer pattern [whoops didn't hit reply-all] On Wed, May 18, 2011 at 5:18 AM

Re: [PHP] observer pattern

2011-05-20 Thread Eric Butera
[whoops didn't hit reply-all] On Wed, May 18, 2011 at 5:18 AM, Ken Guest k...@linux.ie wrote: Lo, so, I'm wondering - how many of you use the observer pattern in php; and if so, do you implement it 'standalone' or with the spl classes? Is there any particular advantage to doing it your way;

Re: [PHP] New to list and to PHP

2011-02-20 Thread Eric Butera
On Sun, Feb 20, 2011 at 8:38 PM, tolga kacmazto...@gmail.com wrote: 21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: 21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com  wrote: On 18 February 2011

Re: [PHP] SQL insert () values (),(),(); how to get auto_increments properly?

2010-02-14 Thread Eric Lee
On Sat, Feb 13, 2010 at 7:41 PM, Jochem Maas joc...@iamjochem.com wrote: Op 2/13/10 11:36 AM, Eric Lee schreef: On Sat, Feb 13, 2010 at 6:55 PM, Jochem Maas joc...@iamjochem.com mailto:joc...@iamjochem.com wrote: Op 2/13/10 10:08 AM, Lester Caine schreef: Rene Veerman

Re: [PHP] SQL insert () values (),(),(); how to get auto_increments properly?

2010-02-13 Thread Eric Lee
() | +--+ |4 | +--+ 1 row in set (0.00 sec) So, let's say three records was inserted, and the first inserted id was 1. You get id from 1 to 3. ! This will not work on transaction-based insert ! Just a thought and tested on mysql but not on php. Regards, Eric -- PHP General

Re: [PHP] SQL insert () values (),(),(); how to get auto_increments properly?

2010-02-13 Thread Eric Lee
correct way from both of you. May I ask what is a sequences ? Thanks ! Regards, Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to secure this

2010-02-12 Thread Eric Lee
be the wrong question) is how can I not give away the password to all and sundry yet still provide a self-contained URL? How about RESTful like checking ? It is much like what Rob said already. but join all params by order and md5 it altogether Regards, Eric, MD5() (or SHA()) hash

RE: [PHP] RE: SOAP connect error

2010-02-11 Thread Eric Lommatsch
Eric H. Lommatsch Programmer 360 Business 2087 South Grant Street Denver, CO 80210 Tel 303-777-8939 Ext 23 Fax 888-282-9927 er...@360b.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax error in class

2010-02-10 Thread Eric Lee
2010/2/11 Jim Lucas li...@cmsws.com Dasn wrote: I got the syntax error. Why? only constant literal is allowed. You can think that it is static complie but not on runtime . Regards, Eric, Read the first paragraph on the following page. http://us3.php.net/manual/en/language.oop5

[PHP] SOAP connect error

2010-02-09 Thread Eric Lommatsch
:8080 I get millions of meaningless results. Can someone please help to figure out how to get more meaningful information from soap_fault for this problem so that I can figure out how to fix it. Thank you Eric H. Lommatsch Programmer 360 Business 2087 South Grant Street Denver, CO 80210 Tel 303

[PHP] RE: SOAP connect error

2010-02-09 Thread Eric Lommatsch
-Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Tuesday, February 09, 2010 3:07 PM To: Eric Lommatsch Cc: php-general@lists.php.net Subject: Re: SOAP connect error Eric Lommatsch wrote: Hello, I am working with the SOAP package of PHP and I am trying make

Re: [PHP] stream_select() not working on regular files?

2010-02-03 Thread Eric Lee
; } } Regards, Eric, Regards, Dennis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload

2010-01-30 Thread Eric Lee
is the current of it ? Regards, Eric, Thank you. Kind regards Ali -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how do I use php://memory?

2010-01-29 Thread Eric Lee
a sample test from the manual with fopen like this, ?php $fp = fopen('php://memory', 'r+'); if ($fp) { fputs($fp, line 1\n); } rewind($fp); echo stream_get_contents($fp); ? console output F:\wc\trunkphp -f m.php line 1 Regards, Eric, -- Thanks! -Shawn http://www.spidean.com -- PHP

[PHP] exception throw from __autoload could not be catched on php 5.3.1

2010-01-28 Thread Eric Lee
in advance ! Regards, Eric,

Re: [PHP] exception throw from __autoload could not be catched on php 5.3.1

2010-01-28 Thread Eric Lee
On Fri, Jan 29, 2010 at 1:19 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Fri, 2010-01-29 at 13:02 +0800, Eric Lee wrote: Hi php-dev pros, I got an issue about catching exception throw from __autoload on php 5.3.1. The manual state that exception throw from __autoload could

Re: [PHP] exception throw from __autoload could not be catched on php 5.3.1

2010-01-28 Thread Eric Lee
Hi all and thanks for Ryan, I apologize ! ! I have missed out the small class_exists call before it. Thanks. Regards, Eric, 2010/1/29 Ryan ryansu...@gmail.com 于 2010-1-29 13:19, Ashley Sheridan 写道: On Fri, 2010-01-29 at 13:02 +0800, Eric Lee wrote: Hi php-dev pros, I got

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Eric Lee
embeded and the important of comma operator when ` echo ` data use echo 'something', 'other' but not echo 'something' . 'other' Eric, Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Eric Lee
but just few more suggesions. Hope these help Eric, Regards,

Re: [PHP] Speed of sending email .. can I put them in a queue rather than wait?

2010-01-26 Thread Eric Lee
Hi, all I'am doubted about installing a local mail server for just low volume mailing. May I ask all yours professional what do you think about it ? Thanks in advanced. Regards, Eric, -- Jim Lucas NOC Manager 541-323-9113 BendTel, Inc. http://www.bendtel.com -- PHP General

Re: [PHP] Magic Methods not working

2010-01-26 Thread Eric Lee
= new test(); $db = $t-database; if (is_object($db)) { echo $db-varname; } ] ] ] Regards, Eric, -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reliable way to identify Ogg types?

2010-01-26 Thread Eric Lee
! Are there are any more things you need to concern ? Thanks, Regards, Eric, On Wed, Jan 27, 2010 at 11:23 AM, Michael A. Peters mpet...@mac.com wrote: When I use fileinfo on an uploaded Ogg file, the mime it returns is Application/Ogg which is almost useless. Is there a reliable php way, preferably

Re: [PHP] Upload file on IE8

2010-01-25 Thread Eric Lee
from the options dialog. Did you enabled this already ? If not, you may give it a shoot to see than ! Hope this help Eric, Regards,

Re: [PHP] Foreign Characters Break in MySQL

2010-01-21 Thread Eric Lee
Hi, all, I'am not able test it out now. Did you tried to change the collation to utf8_bin from utf8_general_ci ? Eric, Regards, On 1/22/10, Ryan Park ryanhp...@live.com wrote: Forgot to reply all. You can see that it's in the middle of the sql statement. It looks fine here but some how

Re: [PHP] SMTP Local development to Send email in PHP; Windows Platform/ XP with no IIS

2010-01-16 Thread Eric Lee
Hi, As I know that php did't setting user name and password. So, just install any smtp server with authenticaton set to no authentication Much list IIS smtp server. Eric, Regards, On 1/16/10, Andy Shellam andy-li...@networkmail.eu wrote: Hi, Also http://www.softstack.com/freesmtp.html

[PHP] How to get a string from C library into PHP via SWIG?

2010-01-05 Thread Eric Fowler
of warnings, crashes, and so on. No happiness. The swig docs show how to pass strings between python, java, etc., and C, but nothing on C --- PHP. Can anyone help me with a fragment of sample code, or a link? Thanks Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] How to get a string from C library into PHP via SWIG?

2010-01-05 Thread Eric Fowler
Hm, that could work, but it does produce overhead. Thank you. Eric On Tue, Jan 5, 2010 at 1:29 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-01-05 at 13:29 -0800, Eric Fowler wrote: I have a need to call a C language function from a PHP script. The function, which I

Re: [PHP] How to get a string from C library into PHP via SWIG?

2010-01-05 Thread Eric Fowler
. :-) Eric I have a software library that parses strings into a C language structure. It is a utility for C programmers. It contains a utility function that takes the output structure and formats it as a string for display. The goal is to demonstrate the functionality

Re: [PHP] How to get a string from C library into PHP via SWIG?

2010-01-05 Thread Eric Fowler
are happy, the chars crash upon allocation. Weird. Eric On Tue, Jan 5, 2010 at 2:56 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Tue, Jan 5, 2010 at 3:42 PM, Eric Fowler eric.fow...@gmail.com wrote: Hm, that could work, but it does produce overhead. you should consider your overall

Re: [PHP] How to get a string from C library into PHP via SWIG?

2010-01-05 Thread Eric Fowler
I will expose only one function, prototyped like the foo() example I described. cstring.i is not implemented for a PHP target (wah). I think I will go the shell approach. I have enough time in this already. Eric On Tue, Jan 5, 2010 at 6:26 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Tue

Re: [PHP] not able to use mysql server

2009-12-30 Thread Eric Lee
On 12/30/09, Jignesh Thummar jignesh.thum...@gmail.com wrote: It is problem with mysql client, it's not able to connect with mysql server. Either mysql server is not running or windows firewall is blocking to the access of port 3306. Try to disable firewall. -Jignesh On Wed, Dec 30, 2009

Re: [PHP] MySQL Increment/Decrement

2009-12-28 Thread Eric Lee
Ben It seems that you can just update the column with a update query like this, update table set field = field + 1 where some condition This might be the thing you need. Eric On 12/29/09, Ben Miller b...@tottd.com wrote: I hope this isn't a bone-head question - Is there a MySQL query

[PHP] Issue with $HTTP_POST_VARS Not getting Variables

2009-12-11 Thread Eric Lommatsch
version 5.2.6 on a ubuntu linux box Thank you Eric H. Lommatsch Programmer 360 Business

RE: [PHP] Issue with $HTTP_POST_VARS Not getting Variables

2009-12-11 Thread Eric Lommatsch
Doh, I should have thought of that! Thanks, that is what happens when you use code that someone else has writen and included with a software package. At least I assumed that the code was already written correctly to accept parameters. I guess it wasn't. Thank you Eric H. Lommatsch Programmer

[PHP] Re: using mysql_close() = best practice?

2009-10-27 Thread Eric Bauman
On 24/10/2009 7:36 PM, Kim Madsen wrote: Hi PHP closes an open db connection when the script is done. I've read somewhere that in PHP6 this behaviour will dissapear, is this true? In that case using mysql_close() would definetly be best practice in all current scripts, to make it portable. A

Re: [PHP] Re: Insult my code!

2009-10-12 Thread Eric Bauman
On 12/10/2009 9:21 PM, David Otton wrote: 2009/10/11 Eric Baumanbaum...@livejournal.dk: As before, please feel free to insult my code. ;-) Any and all feedback is of course most appreciated. I know you're more concerned with structure, but your checkInt() method is arguably buggy/has an un

[PHP] Re: Insult my code!

2009-10-11 Thread Eric Bauman
On 7/10/2009 5:34 PM, Eric Bauman wrote: Hi there, I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to implement a super-tiny MVC framework. I've created some mockups of how the framework might be used based around a very simple 'bank', but I'm

Re: [PHP] Insult my code!

2009-10-08 Thread Eric Bauman
On 8/10/2009 1:20 AM, Andrea Giammarchi wrote: So far I stopped at the first line, the constructor, where I can spot with what I can read SQL injections everywhere I hope here is a proper validation there, 'cause as is, sounds truly dangerous, since you are not using bindParams or other PDO

[PHP] Re: what is php4 popularity?

2009-10-08 Thread Eric Bauman
On 8/10/2009 4:28 PM, Paul M. wrote: Hey guys, does anyone have a good link for an article where php4 popularity trends are examined? The best way for me to know php4 % and php5 %. I appreciate any good suggestions. Here's a pretty graph comparing PHP version usage and time:

Re: [PHP] Insult my code!

2009-10-08 Thread Eric Bauman
. They are invented so the codes will going to be much more clean, readable, reusable, maintainable. Running codes is not enough. Eric asked about how his MVC structure looks. And we are trying to help what we know about MVC. He didn't asked if the code is fine for running. So giving an answer The real key

[PHP] Insult my code!

2009-10-07 Thread Eric Bauman
Hi there, I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to implement a super-tiny MVC framework. I've created some mockups of how the framework might be used based around a very simple 'bank', but I'm trying to get some feedback before I go and

Re: [PHP] Insult my code!

2009-10-07 Thread Eric Bauman
: Eric Bauman [mailto:baum...@livejournal.dk] Sent: Wednesday, October 07, 2009 9:35 AM To: php-general@lists.php.net Subject: [PHP] Insult my code! Hi there, I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to implement a super-tiny MVC framework. I've

Re: [PHP] Insult my code!

2009-10-07 Thread Eric Bauman
On 7/10/2009 7:25 PM, David Otton wrote: 2009/10/7 Eric Baumanbaum...@livejournal.dk: Any thoughts would be much appreciated! One observation. Model isn't a synonym for Database Table - models can be anything that encapsulates business logic. Requiring all your models to inherit from Model

Re: [PHP] new php script and sqlite

2009-09-08 Thread Eric Boo
On Tue, Sep 8, 2009 at 9:41 PM, Paul M Fosterpa...@quillandmouse.com wrote: On Tue, Sep 08, 2009 at 11:20:01AM +0800, Eric Boo wrote: Hi, I'm currently using a text file to store data which the php script will read and write back to. I've a few questions: 1) I'm thinking of using sqlite

[PHP] new php script and sqlite

2009-09-07 Thread Eric Boo
with much configuration. Is sqlite included with most php setups? 2) Should I be using sqlite 2 or 3? Thanks for your time! Regards. Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting URL's to hyperlinks.

2009-08-29 Thread Eric
should encode the url before printing as usual way $url = htmlentities('http://www.mysite.com/index.php?act=1t=10'); echo a href=\{$url}\mysite/a; - Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
the prompt, at least with these. $filename = 'somefile.tif'; $filesize = filesize($filename); header('Content-Type: application/force-download'); header('Content-disposition: attachement; filename=' . $filename); header('Content-length: ' . $filesize); Eric I

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: Eric blueray2...@yahoo.com To: a...@ashleysheridan.co.uk; Ralph Deffke ralph_def...@yahoo.de Cc: php-general@lists.php.net Sent: Saturday, August 29, 2009 5:01 PM Subject: Re: [PHP] File Open Prompt? - Original Message - From: Ashley Sheridan

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread Eric
- Original Message - From: Adam Jimerson vend...@charter.net To: php-general@lists.php.net Sent: Friday, August 28, 2009 11:21 AM Subject: [PHP] Re: Best way to test for form submission? On 08/27/2009 11:09 PM, Adam Jimerson wrote: This question might give away the fact that I am a

Re: [PHP] File Open Prompt?

2009-08-28 Thread Eric
'; $filesize = filesize($filename); header('Content-Type: application/force-download'); header('Content-disposition: attachement; filename=' . $filename); header('Content-length: ' . $filesize); Eric Any ideas on how to make the browser give the download prompt for $new_file? Thanks, Dan You need

Re: [PHP] design pattern

2009-08-14 Thread Eric Butera
On Thu, Aug 13, 2009 at 4:45 PM, Ralph Deffkeralph_def...@yahoo.de wrote: Hi Martin, thanks for ur efforts, this is a lot of good work. for my opinion the start is a bit too much theoretical and valid for all type of application. In simple words, u are too close to the book. I would love

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread Eric Butera
On Wed, Aug 5, 2009 at 3:06 AM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-08-04 at 20:49 -0700, Steve wrote: Daniel Brown wrote:     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

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-04 Thread Eric Butera
On Tue, Aug 4, 2009 at 7:19 PM, Govindagovinda.webdnat...@gmail.com wrote: Terion, I've done a lot of backend programming, but I'm even more newbie than you in PHP...  so take this from an equal, FWIW: I think we in this work can all get dry/impersonal and grouchy at times, but to rephrase

Re: [PHP] Internal PHP caching methodology

2009-07-20 Thread Eric Butera
On Sat, Jul 18, 2009 at 7:14 AM, Daniel Kolbokolb0...@umn.edu wrote: Daniel Kolbo wrote: Eric Butera wrote: On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbokolb0...@umn.edu wrote: Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal

Re: [PHP] Inverting a dependency list

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 12:09 PM, Bob McConnellr...@cbord.com wrote: I recall, years ago, having a set of utilities that would build a call tree from application code written in C. This was useful for figuring out dependencies in code that someone else had written. I would like to do something

Re: [PHP] Internal PHP caching methodology

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 5:50 PM, Daniel Kolbokolb0...@umn.edu 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 about the external php cache/header control.  Smarty caching doesn't give me

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

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 12:09 PM, Daniel Browndanbr...@php.net wrote: On Thu, Jul 16, 2009 at 11:59, Martin Scottamartinsco...@gmail.com 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

Re: [PHP] Scope of Variables and use of global and this-var

2009-07-14 Thread Eric Butera
On Tue, Jul 14, 2009 at 6:21 AM, Anton Heuschenanto...@gmail.com wrote: This is just a general question, I am not 100% on when to use global $var , and $this-var  and how/what about the GLOBAL vars Lets say I have one file I  call config.php here I connect to the db, to ldap etc

Re: [PHP] Email security

2009-07-14 Thread Eric Butera
On Tue, Jul 14, 2009 at 7:46 AM, Tiji varghesetij...@yahoo.co.in wrote: Hello, I've implemented a contact form on my website that would email me the contents of the form and also add it to the database. Its working perfectly but I'm not too sure about the security part. I don't know much

Re: [PHP] mysterious f character appearing. Why??

2009-07-09 Thread Eric Wood
injecting that artifact during code fix-up phase. Run FF in safe mode and see if it's still there. -eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems with an extension

2009-06-28 Thread Eric A. Boney
of the header file everything still compiles and makes just fine, and after restarting the web server the extension is loaded just fine. Does anyone have any idea what would cause the extension to refuse to load with the header file included? -Eric -- PHP General Mailing List (http

Re: [PHP] Problems with an extension

2009-06-28 Thread Eric A. Boney
On Sunday 28 June 2009 11:00:48 you wrote: On Sun, Jun 28, 2009 at 10:56, Eric A. Boneymailingli...@vanhlebarsoftware.com wrote: So I am developing a custom extension and I am having a issue. I have a header file that I need included in the project. If I #include the header file

Re: [PHP] sloppiness stupidity

2009-06-18 Thread Eric Butera
On Tue, Jun 16, 2009 at 8:43 PM, PJaf.gour...@videotron.ca wrote some nonsense: I'm sorry, guys, but I am really getting po'd. Fail. Please try again. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >