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

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

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

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

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

[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

[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

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

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

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

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

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] [Q] mail() & security

2005-04-04 Thread Eric Gorr
I wanted to setup a good 'contact me' page on my website. I do not want to reveal my e-mail address, so I was going to use a form. The PHP script with the actual mail() function would define the To and Subject parameters, so these could not be faked. I also plan to use a captcha. The only conce

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Eric Gorr
would seem that addslashes would just make the body text look messy for no reason. www.php.net/htmlentities It seems as if strip_tags strip out everything that htmlentities would change and would therefore be unnecessary. -- == Eric Gorr === http://www.ericgorr.net ===

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Eric Gorr
Chris W. Parker wrote: It seems as if strip_tags strip out everything that htmlentities would change and would therefore be unnecessary. strip_tags() and htmlentities() both perform seperate functions (hence they have different names). htmlentities() encodes special characters, strip_tags() strips

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Eric Gorr
Josip Dzolonga wrote: Eric Gorr wrote: Any other suggestions? Well see this example : function clean_body($body_text) { if(ini_get('magic_quotes_gpc')) $body_text = stripslashes($body_text); // If magic_quotes are on, strip the extra-added slashes return htmlentities(

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Eric Gorr
Chris W. Parker wrote: > Or in a less extreme case, your computer get hijacked and used to send spam because you used htmlentities() instead of strip_tags(). Well, this is why I asked the question to begin with. I am concerned (as everyone _should_ be) about such things and desire to do my best to

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Eric Gorr
Anthony Tippett wrote: http://www.devshed.com/c/a/PHP/PHP-Security-Mistakes/ thank you for the suggestion. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Q] mail() & security

2005-04-04 Thread Eric Gorr
Anthony Tippett wrote: http://www.devshed.com/c/a/PHP/PHP-Security-Mistakes/ Actually, I am familiar with everything this document mentions. Unfortunately, this document does not discuss what one might need to be concerned about when passing text to the body parameter of the mail() function. If

Re: [PHP] [Q] mail() & security

2005-04-05 Thread Eric Gorr
Richard Lynch wrote: On Mon, April 4, 2005 2:00 pm, Eric Gorr said: I wanted to setup a good 'contact me' page on my website. I do not want to reveal my e-mail address, so I was going to use a form. The PHP script with the actual mail() function would define the To and Subject parameters

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Charles Hamel wrote: Hi I am bulding a secure intranet.(php, mysql, apache) I am using a session and Mysql to handel the user accounts. Everythying works fine with that. The client now needs to share word/pdf document with the registered user. I created a secure directory using .htaccess for thi

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Duncan Hill wrote: On Wednesday 06 April 2005 16:32, Eric Gorr typed: Perhaps, https? HTTPS is a transport security layer, not an authentication or access control layer. I understand that. However, some pages can only be accessed if a user uses https. I though this might be the case here, but

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
"Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] IE dropped support (or severely neutered it) for username:password in URLs a while back. If anyone is interested, I found this document which appears to provide more details... http://support.microsoft.com/kb/834489 -- PH

Re: [PHP] secure document : solution wanted

2005-04-06 Thread Eric Gorr
Richard Lynch wrote: On Wed, April 6, 2005 9:14 am, Eric Gorr said: "Duncan Hill" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] IE dropped support (or severely neutered it) for username:password in URLs a while back. If anyone is interested, I found this document

Re: [PHP] Re: Barcodes [Solved]

2005-04-18 Thread Eric Wood
- Original Message - From: "Mike Smith" I'm using a script to generate the barcodes (3 of 9 or Code39): http://www.sid6581.net/cs/php-scripts/barcode/ This script seems to limit the input barcode to 15 characters... um... -eric woo -- PHP General Mailing List (http://w

[PHP] Re: php and mysql help

2004-04-14 Thread Eric Bolikowski
"Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you. -- PHP

[PHP] Re: C or C++

2004-04-19 Thread Eric Bolikowski
te a C++ version :) Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] nested statement problem

2004-06-11 Thread Eric Boerner
I am having a problem with a nested if statement in php. Everything works fine, but it doesn't display the information that I am trying to retrieve using a second if statement. CODE: if (($fr == 'FR') && ($xe == 'XE') && ($co == 'CO')) { print "Statement"; } elseif (($ag == 'AG') && ($rz

[PHP] Object Oriented Programming in PHP

2004-06-23 Thread Eric Marden
I'm interested in getting up to speed on OOP in PHP can anyone recommend some good titles for me to pick up? Thanks! --- eric marden http://xentek.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object Oriented Programming in PHP

2004-06-24 Thread Eric Marden
ok shortly. --- eric marden http://xentek.net --- > George Schlossnagle gave a good talk on this last night at NYPHP. His > slides aren't up yet, but they should appear here soon: > http://www.schlossnagle.org/~george/talks/ > If you want to buy a book, his Advanced PHP Programm

Re: [PHP] ibill.com

2004-06-24 Thread Eric Marden
process. That's kind of a quick overview (from memory) of the process I used on one of my projects, but it's been a while since i've used iBill. -- --- eric marden http://xentek.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Posting Data to MySQL

2004-06-24 Thread Eric Marden
more managable chunks, than it is working with a 1000 line file. --- eric marden http://xentek.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Posting Data to MySQL

2004-06-24 Thread Eric Marden
lumns, and not 20 or 40 per row looking for a particular artist and / or title. Hope this helps I know I gave you more theory than code, but this should get your going in the right direction. -- --- eric marden http://xentek.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] custom tags

2004-07-06 Thread Eric Emminger
Hi George, How about this? parse the html as xml and replace the component tags with whatever php/html code output that result to a file include the file from previous step Eric On Tue, 6 Jul 2004 15:56:26 -0500, George Lantz <[EMAIL PROTECTED]> wrote: > I am looking for a way to par

Re: [PHP] MySql DB access upon browser close

2004-07-06 Thread Eric Emminger
Hi Frank, I think you could use window.location="test.php?time=xxx" in the onUnload instead of opening a new window. Eric On Mon, 5 Jul 2004 14:08:14 -0400, Frank Voorburg <[EMAIL PROTECTED]> wrote: > Hi, > > Any help with the following is appreciated. I want to us

Re: [PHP] Login Verification

2004-07-10 Thread Eric Schwartz
On Sat, 10 Jul 2004 20:47:47 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Hi everyone. > > I have a quick question regarding the above. currently I have a form that > posts to another page. However, rather than wait until they get to that page > to verify their login are there conventions that ar

[PHP] Trouble with arrays from within MySQL results where clause

2004-07-12 Thread Eric Boerner
Hello all, I am having trouble setting array data from within a MySQL results query. I have modified data from the result and wish to enter it into it's own array ($data). That then is used to generate a graph. The following code basically gives me an empty array... I am pulling out a timestamp a

RE: [PHP] Trouble with arrays from within MySQL results where clause

2004-07-12 Thread Eric Boerner
Nevermind, I figured it out. Simple case of duh... $data[] = array('$time' => '$time','$aval' => 'aval'); Should have been: $data[] = array('$time' => "$time" ,'$aval' => "aval"); Thank

Re: [PHP] using Cc: with mail()

2004-07-14 Thread Eric Schwartz
On Wed, 14 Jul 2004 10:55:18 -0500 (EST), Amanda Hemmerich <[EMAIL PROTECTED]> wrote: > Ok, I am trying to fix a bug on a site I didn't write, and I looked for > examples on www.php.net and couldn't find what I needed. > > Here is the line of code in question: > > mail($email, "XXX - Conference R

[PHP] PHP XL2Web?

2004-07-19 Thread Eric Marden
t. thanks! -- --- eric marden http://xentek.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] QuickTime question

2007-08-15 Thread Eric Butera
On 8/15/07, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > Given: > > http://www.webbytedd.com/bb/ice/ > > How can I play the movie inside the page instead of going to another page? > > I know that I could use phpclasses, but that seems an overkill. > > I think something like this -- > > $file_sour

[PHP] Compiling PHP 5.2.3

2007-08-30 Thread Eric Gorr
I am attempting to compile PHP 5.2.3 and am having trouble with the configuration step: configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. I cannot figure this one out. Any help would be

[PHP] make test failures (was Re: [PHP] Compiling PHP 5.2.3)

2007-08-30 Thread Eric Gorr
pack.phpt] = Are these failures expected? On Aug 30, 2007, at 2:43 PM, Eric Gorr wrote: I am attempting to compile PHP 5.2.3 and am having trouble with the configuration step: configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. Th

Re: [PHP] PHP Debugger

2007-09-04 Thread Eric Gorr
I would suggest taking a look at Zend Studio. http://www.zend.com/products/zend_studio On Sep 4, 2007, at 5:28 PM, shiplu wrote: Hello, i need a good php debugger. It should provide the facility of step by step execution in real time. Is there any? Do any of you know about this? I am hav

Re: [PHP] php5: capital "I" letters in func/class method names do not work with turkish locale in php5

2007-09-06 Thread Eric Butera
On 9/6/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 9/6/07, Roman Neumüller <[EMAIL PROTECTED]> wrote: > > I'm a german web-designer living in Turkey. > > Sometimes I use opensource software like gallery2 or WP to have customers > > have some > > nice web albums or blog. The turkish translation file

[PHP] How to clean up extended charset or ASCII characters on form input?

2007-09-12 Thread Eric Wood
ger as it double encodes on each submission. newegg.com does a good job to maintaining extended characters (presenting them back to the user) and keeps them from getting out of hand. How do other do this? thanks, -Eric Wood

Re: [PHP] back-button question

2007-09-17 Thread Eric Butera
On 9/17/07, Πρεκατές Αλέξανδρος <[EMAIL PROTECTED]> wrote: > I'a writing first time so sorry if i reapeat but > i wanted to say this in my own words and angle. > > My question is : > > Lets assume that we'r going throught php/html files > > a-> b --> c > |<| > > > 1)From a

[PHP] Access name of variable in $_POST array

2007-09-21 Thread Eric Lommatsch
PHP.net site and googled this as well I have not yet been able to find the syntax that I need to get the names of the variables in the $_Post array. Can someone point me to the place in the PHP manual where I can find the syntax to get the name of a variable in the $_POST array? Thank you Eric H

RE: [PHP] Access name of variable in $_POST array

2007-09-24 Thread Eric Lommatsch
is already designed to work with. If I am not putting the field names in the file along with the data this other program ignores the file I am creating. What I need as an output is something that looks similar to: FirstName : Eric LastName: Lommatsch The point of the

RE: [PHP] Access name of variable in $_POST array

2007-09-24 Thread Eric Lommatsch
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 4:12 PM To: Eric Lommatsch Cc: php-general@lists.php.net Subject: Re: [PHP] Access name of variable in $_POST array Please include the list when replying. Eric Lommatsch wrote: > -Origi

[PHP] Compile issue

2007-09-26 Thread Eric Butera
The last version of PHP I've been able to compile on my work machine was 5.2.2. It is a PowerPC OS X 10.4.10. I'm curious if anyone else has had this problem. I'm sure it is something stupid I'm doing but I can't seem to figure it out. I can still compile 5.2.2 just fine so nothing on that end

<    1   2   3   4   5   6   7   8   9   10   >