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 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 when they had one

[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 $this->paren

[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: htt

[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 workaro

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

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. Lommats

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

[PHP] Question about date calculations

2011-12-29 Thread Eric Lommatsch
ayCnt should be 13, but it is coming up as 0. Also the check date which is 12/29/2011 is being calculated as after my 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 wrote: > On Fri, Dec 16, 2011 at 11:53 PM, Eric Butera 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: [PHP] Re: Preferred Syntax

2011-12-16 Thread Eric Butera
On Thu, Dec 15, 2011 at 5:46 PM, Ross McKay wrote: > Jim Lucas wrote: > >>I second this example, with one minor change, I would add '{' and '}' around >>variables. >> >>echo <<>>   href="/mypage.php/{$page_id}">{$page_name} >>HTML; >> >>This works for $variables, $objects, and variable functions c

Re: [PHP] Sniping on the List

2011-11-15 Thread Eric Butera
On Mon, Nov 14, 2011 at 12:51 PM, George Langley 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 know a better way

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 7:24 PM, Nathan Nobbe wrote: > > > On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera wrote: >> >> On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown wrote: >> > On Fri, Oct 28, 2011 at 18:36, Nathan Nobbe >> > wrote: >> >> Hi g

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown wrote: > On Fri, Oct 28, 2011 at 18:36, Nathan Nobbe 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 the protocol! >> >> http:

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 wrote: > On Fri, Oct 28, 2011 at 13:25, Jim Long wrote: >> >> Eric: >> >> Thanks for your reply. >> >> "process row here" is a comment.  It doesn't do anything.  The >> script, exact

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 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 quarter million >

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 12:02 PM, Daniel Brown wrote: > On Fri, Oct 28, 2011 at 11:51, Eric Butera 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 som

Re: [PHP] Friday Distraction

2011-10-28 Thread Eric Butera
On Fri, Oct 28, 2011 at 11:16 AM, Tedd Sperling 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 wrote: Well, Daniel, I'll bet you never thought that your "Friday Distraction" wou

[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 odd

[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 ""; echo "Username must only contain A-Z and 0-9"; include("register.html"); exit; } I used the code above but I now get this error message Warning: preg_match() [function.preg-match]: Unknown modifier '^' in C:

[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'

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 wrote: > On Wed, Sep 14, 2011 at 06:05, chetan rane 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 subselect buffer >> you will run

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 wrote: > > > yeer tai 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: dotanco...@gmail.com; php-

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 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 the client e

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Eric Butera
On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar 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 http://devzone.zen

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Eric Butera
On Sat, Sep 10, 2011 at 1:47 PM, Sean Greenslade wrote: > On Sat, Sep 10, 2011 at 4:35 AM, muad shibani wrote: > >> 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 every 15 minutes to collect the data.

Re: [PHP] Upgrade or Die?

2011-06-26 Thread Eric Butera
On Sat, Jun 25, 2011 at 12:13 AM, 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 > systems rather than

Re: [PHP] Doctrine madness!

2011-06-17 Thread Eric Butera
On Fri, Jun 17, 2011 at 3:19 PM, Jim Lucas 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, choose an a

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 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 performance on one pa

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 9:50 PM, Daevid Vincent 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: [P

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 7:32 PM, Daevid Vincent 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: [P

Re: [PHP] Doctrine madness!

2011-06-16 Thread Eric Butera
On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent 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 12:51 PM, Nathan Nobbe 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 effort I've isolat

Re: [PHP] Best authentication system

2011-06-04 Thread Eric Butera
On Sat, Jun 4, 2011 at 2:44 PM, Adam Tong 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 not sure which o

Re: [PHP] phpsadness

2011-06-03 Thread Eric Butera
On Fri, Jun 3, 2011 at 1:05 PM, Marc Guay 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 my part to

Re: [PHP] phpsadness

2011-06-03 Thread Eric Butera
On Fri, Jun 3, 2011 at 12:37 PM, Jasper Mulder 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 response I

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 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 morning to

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) 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 reassembled the by

Re: [PHP] observer pattern

2011-05-23 Thread Eric Butera
On Mon, May 23, 2011 at 5:14 PM, Daevid Vincent 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 hi

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 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"; whichev

Re: [PHP] New to list and to PHP

2011-02-20 Thread Eric Butera
On Sun, Feb 20, 2011 at 8:38 PM, tolga 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 Quadling  wrote: > > On 18 February 2011 19:03, Pete Woodhe

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 wrote: > Op 2/13/10 11:36 AM, Eric Lee schreef: > > > > > > On Sat, Feb 13, 2010 at 6:55 PM, Jochem Maas > <mailto:joc...@iamjochem.com>> wrote: > > > > Op 2/13/10 10:08 AM, Lester Caine schreef

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

2010-02-13 Thread Eric Lee
e might be to use a generated GUID and have an > extra field which > you populate with that value for all records inserted with a single query, > as such it could > function as kind of transaction indentifier which you could use to retrieve > the newly > inserted id's with one extra query: > >$sql = "SELECT id FROM foo WHERE insert_id = '{$insertGUID}'"; > > ... just an idea. > > > > > > Hi I would like to learn more 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] SQL insert () values (),(),(); how to get auto_increments properly?

2010-02-13 Thread Eric Lee
27;cc', 3), ('bb', 99); Query OK, 3 rows affected (0.00 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select last_insert_id(); +--+ | last_insert_id() | +--+ |4 | +--+ 1 row in set (0.00 sec) So, let's say three record

Re: [PHP] How to secure this

2010-02-12 Thread Eric Lee
> > >>>> > > >>>> The idea is they can define their own height and width and it plugs > in > > >>>> as an iframe. > > >>>> > > >>>> That takes the username and password and throws it over web servic

RE: [PHP] RE: SOAP connect error

2010-02-11 Thread Eric Lommatsch
return $response; } This is working when I use the IP address of the server behind the firewall, but when I try to use the address that is open through the firewall it is not connecting. I can connect to the external IP address by entering it into the browser a

Re: [PHP] syntax error in class

2010-02-10 Thread Eric Lee
2010/2/11 Jim Lucas > 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://us

[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

[PHP] SOAP connect error

2010-02-09 Thread Eric Lommatsch
nect error :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 802

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

2010-02-03 Thread Eric Lee
On Thu, Feb 4, 2010 at 9:20 AM, Dennis J. wrote: > On 02/04/2010 02:03 AM, Ashley Sheridan wrote: > >> On Thu, 2010-02-04 at 01:41 +0100, Dennis J. wrote: >> >>> Hi, >>> I'm trying to implement something similar to"tail -f" in php but I'm >>> running into a problem. >>> The issue occurs when I'v

Re: [PHP] File Upload

2010-01-30 Thread Eric Lee
> > It might be the upload_tmp_dir no pointing to the right dir ! What 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
gt; of which file functions it works with and which it doesn't. > > Shawn I did a sample test from the manual with fopen like this, console output F:\wc\trunk>php -f m.php line 1 Regards, Eric, -- > Thanks! > -Shawn > http://www.spidean.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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 > 于 2010-1-29 13:19, Ashley Sheridan 写道: > > On Fri, 2010-01-29 at 13:02 +0800, Eric Lee wrote: > > > > > >> Hi php-dev

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 wrote: > 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

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

2010-01-28 Thread Eric Lee
e there anyone experienced this or not ? Thanks in advance ! Regards, Eric,

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

2010-01-27 Thread Eric Lee
mb and shouldn't be adhered to > absolutely, but I remember a thread a while back that showed the speed > differences between the two because of the extra parsing PHP does on > double quoted strings. > > That should be on the stackoverflow.com It compare the string parsing with or without variables 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] Reliable way to identify Ogg types?

2010-01-26 Thread Eric Lee
there are any more things you need to concern ? Thanks, Regards, Eric, On Wed, Jan 27, 2010 at 11:23 AM, Michael A. Peters 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, p

Re: [PHP] Magic Methods not working

2010-01-26 Thread Eric Lee
1000; public function __get($name) { return $this->init($name); } public function init($name) { return new test(); } } $t = 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] 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.b

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

2010-01-26 Thread Eric Lee
does't support specify username and password. But only hostname / IP Address and port only. I can not help much but just few more suggesions. Hope these help Eric, Regards,

Re: [PHP] Upload file on IE8

2010-01-25 Thread Eric Lee
t; > Thanks, > > /Ernie > > > > I remember a setting from some elsewhere IE 8 was disable set file path > location > by default 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 wrote: > > Forgot to reply all. > > You can see that it's in the middle of the sql statement. > It looks fine he

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 wrote: > > Hi, > > > > > Also http://www.soft

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 wrote: > On Tue, Jan 5, 2010 at 4

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

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

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

2010-01-05 Thread Eric Fowler
care. :-) 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 functionali

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 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

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

2010-01-05 Thread Eric Fowler
ts 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 unsubsc

Re: [PHP] not able to use mysql server

2009-12-30 Thread Eric Lee
On 12/30/09, Jignesh Thummar 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 at 11:41 AM, Sudh

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 wrote: > > I hope this isn't a bone-head question - Is there a MySQL quer

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 Progr

[PHP] Issue with $HTTP_POST_VARS Not getting Variables

2009-12-11 Thread Eric Lommatsch
and the login.php isacting as if I have not entered any parameters. Why are the parameters not being accepted? I am using php version 5.2.6 on a ubuntu linux box Thank you Eric H. Lommatsch Programmer 360 Business

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

2009-10-26 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 n

[PHP] What is the best practice for adding persistence to an MVC model?

2009-10-26 Thread Eric Bauman
I'm in the process of implementing an ultra-light MVC framework in PHP. It seems to be a common opinion that the loading of data from a database, file etc. should be independent of the Model, and I agree. What I'm unsure of is the best way to link this "data layer" into MVC. I've considered 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 Bauman: 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-noted assumptio

[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

Re: [PHP] Insult my code!

2009-10-08 Thread Eric Bauman
y 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 a

[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: http://www.nexen.n

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

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 Bauman: 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 fro

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 framew

[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] new php script and sqlite

2009-09-08 Thread Eric Boo
On Tue, Sep 8, 2009 at 9:41 PM, Paul M Foster 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: >&g

[PHP] new php script and sqlite

2009-09-07 Thread Eric Boo
ng to much 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] File Open Prompt?

2009-08-29 Thread Eric
- Original Message - From: "Eric" To: ; "Ralph Deffke" Cc: Sent: Saturday, August 29, 2009 5:01 PM Subject: Re: [PHP] File Open Prompt? > > - Original Message - > From: "Ashley Sheridan" > To: "Ralph Deffke" > Cc:

Re: [PHP] File Open Prompt?

2009-08-29 Thread Eric
will need to add some headers to the page to popup the prompt, at >> least >> > > with >> > > these. >> > > >> > > $filename = 'somefile.tif'; >> > > $filesize = filesize($filename); >> > > >> > > header('Content-Typ

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

2009-08-29 Thread Eric
re printing as usual way $url = htmlentities('http://www.mysite.com/index.php?act=1&t=10'); echo "mysite"; - 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-28 Thread Eric
exec("xcopy ".$page." ".$topage.""); >> } >> $orig_file = $topage."\\".$objectid.".0D9"; >> //echo $orig_file; >> $new_file = $topage."\\".$objectid.".tif"; >> //echo $new_file; >> >>

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

2009-08-28 Thread Eric
- Original Message - From: "Adam Jimerson" To: 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 php noob, but I am >> looking for the bes

Re: [PHP] design pattern

2009-08-14 Thread Eric Butera
On Thu, Aug 13, 2009 at 4:45 PM, Ralph Deffke 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 to have somethi

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-05 Thread Eric Butera
On Wed, Aug 5, 2009 at 3:06 AM, Ashley Sheridan 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 this >> > summ

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, Govinda 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 the others, in perhaps

Re: [PHP] Internal PHP caching methodology

2009-07-20 Thread Eric Butera
On Sat, Jul 18, 2009 at 7:14 AM, Daniel Kolbo wrote: > 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. >>>> >>>

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 Brown wrote: > 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

Re: [PHP] Internal PHP caching methodology

2009-07-16 Thread Eric Butera
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 about the external php cache/header control.  Smarty > caching doesn't give me the con

Re: [PHP] Inverting a dependency list

2009-07-16 Thread Eric Butera
On Thu, Jul 16, 2009 at 12:09 PM, Bob McConnell 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 similar wi

Re: [PHP] Email security

2009-07-14 Thread Eric Butera
On Tue, Jul 14, 2009 at 7:46 AM, Tiji varghese 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 about the > sec

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 Heuschen 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 the con

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

2009-07-09 Thread Eric Wood
FireFox addon module 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

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. > > Boney 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 everyth

[PHP] Problems with an extension

2009-06-28 Thread Eric A. Boney
clude 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

  1   2   3   4   5   6   7   8   9   10   >