Re: [PHP] REQUEST

2013-05-29 Thread Tommy Pham
On Wed, May 29, 2013 at 9:30 AM, Stuart Dallas wrote: > On 29 May 2013, at 17:26, Last Hacker Always onpoint < > [email protected]> wrote: > > > HEY GUYZ I KNOW, I KNOW THIS IS NOT A PLACE FOR SOMETHING LIKE THIS SO > BUT > > HEY I HAVE A LITTLE TINY QUESTION FOR MY COOL GUYZ. > > > > DOES AN

Re: [PHP] Re: target question

2013-03-25 Thread Tommy Pham
On Mon, Mar 25, 2013 at 10:21 AM, Jim Giner wrote: > In light of the apparent lack of any solution, I have embarked on changing > all my report choices to use multiple forms with different target attribs as > needed. For many of them not a big deal, but for several it adds a degree > of difficult

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Tommy Pham
On Mon, Mar 4, 2013 at 9:47 AM, Angela Barone wrote: > Hello, > > I have a script that counts hits to all the pages in my site and > emails me a report nightly. However, it also counts my visits to my site, > and when I'm coding, I'm hitting a lot of my pages, repeatedly. I'd like to

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Tommy Pham
On Wed, Oct 31, 2012 at 9:27 AM, Alex Nikitin wrote: >> >> That's all understood but there are times when that one request from >> the visitor requires many sub-requests like connection to DB and >> making SOAP calls. > > > I would say it's more than just "there are times", that's how a typical >

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Tommy Pham
On Wed, Oct 31, 2012 at 6:46 AM, Alex Nikitin wrote: > Hey guys (and/or gals), > > I have heard this question entirely too many times, I think at some point > Rasmus just stopped responding to it. The real reason that PHP is not > threaded has nothing to do with PHP internal or extension thread sa

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tommy Pham
On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner wrote: > In this case, I do think that your insert statement is incorrect - I could > be wrong. I think the VALUES clause s/b just 'VALUE'. Also if you added > MYSQLI_ERROR to your error handling you should get a very helpful message. > VALUES also wor

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Tommy Pham
On Wed, Sep 12, 2012 at 7:18 AM, Tonix (Antonio Nati) wrote: > Il 12/09/2012 16:08, Tommy Pham ha scritto: > >> On Wed, Sep 12, 2012 at 6:53 AM, Tonix (Antonio Nati) >> wrote: >>> >>> Is there a way to force a PHP script to bind to a prefixed IP? >>>

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Tommy Pham
On Wed, Sep 12, 2012 at 6:53 AM, Tonix (Antonio Nati) wrote: > > Is there a way to force a PHP script to bind to a prefixed IP? > > Actually, while you can assign more IPs to Apache for listening, assigning > domains to specific IPs, it looks like any PHP script can freely choose > which IP to bin

Re: [PHP] Display Array Tree as Menu - Can't figure out how to find depth with something over 2 levels

2012-08-16 Thread Tommy Pham
On Thu, Aug 16, 2012 at 11:05 AM, Tristan wrote: > Thanks David, Here's my tree creation. I'm trying to either put depth count > on each array or run through the tree and figure it out after. I just can't > figure out where to put it :D > > Great very lightweight script to create a tree from paren

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Tommy Pham
On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe wrote: > Hi all, > > Strangely PHP seems to let each class have its own layer of private scope > for member variables. If a subclass defines a member variable of the same > name as one defined in the parent the values are maintained independently > in

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-01 Thread Tommy Pham
On Thu, May 31, 2012 at 11:17 PM, Govinda wrote: >> >> You need to get better tools.  I found this with Notepad++ for Windows >> searching "case" within *.php files filter within the root directory >> of the extracted zip/tarball: >> >>  H:\data\Downloads\dev\PHP\htmlpurifier-4.4.0\library\HTMLPur

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Tommy Pham
On Thu, May 31, 2012 at 10:48 PM, Tommy Pham wrote: > On Thu, May 31, 2012 at 10:33 PM, Govinda > wrote: >> Hi guys >> >> anyone here using HTMLpurifier and CSStidy together?  (like e.g. to allow >> users to create their own external style sheets via form input

Re: [PHP] is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-05-31 Thread Tommy Pham
On Thu, May 31, 2012 at 10:33 PM, Govinda wrote: > Hi guys > > anyone here using HTMLpurifier and CSStidy together?  (like e.g. to allow > users to create their own external style sheets via form input) > > ...for example, in the way this post's answer explains how to use > HTMLpurifier and CSSt

Re: [PHP] Re: Crudin - CRUD INterface Generator - Open Source Project

2012-05-25 Thread Tommy Pham
On Fri, May 25, 2012 at 3:53 PM, Maciek Sokolewicz wrote: > On 25-05-2012 23:09, Rodrigo de Almeida Rodriguez wrote: >> >> Hi, >> >> I am the creator of a open source project called Crudin >> (http://crudin.smarc.com.br/en) >> >> Crudin is a system for generation of fron-ends in the MySQL, writted

Re: [PHP] Serving a .dmg via readfile?

2012-04-25 Thread Tommy Pham
On Wed, Apr 25, 2012 at 9:04 PM, Tommy Pham wrote: > On Wed, Apr 25, 2012 at 8:54 PM, Brian Dunning wrote: >> Hey all - I'm having no luck serving a .dmg from my online store. I stripped >> down the code to just the following to debug, but no matter what I get a >

Re: [PHP] Serving a .dmg via readfile?

2012-04-25 Thread Tommy Pham
On Wed, Apr 25, 2012 at 8:54 PM, Brian Dunning wrote: > Hey all - I'm having no luck serving a .dmg from my online store. I stripped > down the code to just the following to debug, but no matter what I get a > zero-byte file served: > >  header('Content-Type: application/x-apple-diskimage');   /

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Tommy Pham
On Thu, Apr 19, 2012 at 12:40 PM, [email protected] wrote: >                Hello, > > On Thu, 19 Apr 2012 15:17:06 -0400 > "Steven Staples" wrote: > >> Ok, so I was wrong... ;)   it does happen >> >> Try this: >> $sql = "INSERT INTO bloggen (date, autor, title, teaser, content) >>        VALU

Re: [PHP] Customized Session Handler can not work for PHP 5.1.6 and CentOS 5.5

2012-04-15 Thread Tommy Pham
On Sat, Apr 14, 2012 at 9:27 AM, Mingda wrote: > Hi, All, > > System: CentOS 5.5; PHP version is 5.1.6. > > I met a strange problem associate with session_save_handler in current > environment(The same code can work well in my local windows platform and > ubuntu system). > This is your clue on ho

Re: [PHP] desk top interactive environment

2012-04-09 Thread Tommy Pham
On Mon, Apr 9, 2012 at 6:54 PM, Kirk Bailey wrote: > I am not ABLE to create it yet. Anyone else able to? > Hmm... Google "php desktop" ... notice the 2nd link. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php in windows

2012-04-09 Thread Tommy Pham
On Mon, Apr 9, 2012 at 7:05 PM, Kirk Bailey wrote: > The edition of php for windows I instaklled does not work. Which flavor of > windows php DOES work properly in windows? > > -- Did you configure it properly??? I've run it fine from XP (x86 & x64), Win2003 (x86 & x64) Win2008 (x86 & x64), Win7

Re: [PHP] image inventoryer

2012-04-05 Thread Tommy Pham
quot;,"jpg","png"): #if the file type is in > a list of acceptable types, >        print ''        # print out the material to > return surrounding >                                                             # the file name > > > > > > > On 4/5/2012 10:34 PM, Tommy Pham wrote: &g

Re: [PHP] image inventoryer

2012-04-05 Thread Tommy Pham
On Thu, Apr 5, 2012 at 7:26 PM, Kirk Bailey wrote: > > Now ai am still a novice at p[hp, how can I do this ? > Have you read any book on PHP? even the official from PHP.net? Learn the tool so you know how to use it, efficiently. Otherwise how do you know if the tool can do what you want... Wh

Re: [PHP] Adding Rows In PHPMYADMIN

2012-04-02 Thread Tommy Pham
On Mon, Apr 2, 2012 at 5:46 PM, Karl James wrote: > Hello, > > ** ** > > Hey guys, I figured out my critical error. I have a table that has a limit > of 30 rows. > > How can I add more rows to a table so that we can upload more images? > > Below is what I need to change. > > ** **

Re: [PHP] some good deals on good books

2012-03-31 Thread Tommy Pham
On Sat, Mar 31, 2012 at 12:02 AM, tamouse mailing lists wrote: > > ( I apologize if this offends anyone's sensibilities. I am not in the > employ of O'Reilly, nor is this going to make me any scratch. I just > think this is a good chance to pick up some pretty useful books. ) > Makes a lot of sen

Re: [PHP] whats wrong

2012-03-31 Thread Tommy Pham
On Fri, Mar 30, 2012 at 11:45 PM, saeed ahmed wrote: > i have made a php script with a tutorial helpi dont know where is a > error.please have a look > Your code below assumes that everything is perfect in your world. IE: no network connectivity issue, all firewall related are properly conf

Re: [PHP] Got HTML5 History API + caching LICKED, I think,

2012-03-16 Thread Tommy Pham
On Fri, Mar 16, 2012 at 1:45 PM, Stuart Dallas wrote: > >> As for my files and homepage being Huge, yep, it's made for the future or >> current fast internet connections. >> Frankly, size reduction is not on my agenda. I'll wait for the nets to >> become faster still. >> And the server should sp

Re: [PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-03-05 Thread Tommy Pham
On Mon, Mar 5, 2012 at 7:33 AM, wrote: >> > I have a MySQL server A, a server B with PHP 5.3.8 and a server C with >> > PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C >> > using an internal network. Server B and C use the same PHP application. >> > There are also same PHP

Re: [PHP] Nested database loops and completing an unordered list....

2012-03-01 Thread Tommy Pham
On Thu, Mar 1, 2012 at 4:36 PM, Jay Blanchard wrote: > [snip]…stuff…[/snip] > > I am getting close, but I am also getting frustrated. I probably need to walk > away for a bit. > > I have an array of tiers…. > > Array > ( >    [0] => TIER1DATA >    [1] => TIER2DATA >    [2] => TIER3DATA >    [3] =

Re: [PHP] Nested database loops and completing an unordered list....

2012-03-01 Thread Tommy Pham
On Thu, Mar 1, 2012 at 6:29 AM, Jay Blanchard wrote: > Good morning PHP groupies! > > I am working on this tool that will ultimately display a collapsible org > chart. The org chart is based on a nested unordered list and that is the > heart of my question. > > The NUL(nested unordered list) is ba

Re: [PHP] How do I enable more useful PHP error logging?

2012-02-28 Thread Tommy Pham
On Tue, Feb 28, 2012 at 3:14 PM, Daevid Vincent wrote: > My question is, is there a way to enable some PHP configuration that would > output more verbose information, such as a backtrace or the URL attempted? > Have you looked at log4php? [1] It's a log4j (Java based) logging facility port to PHP

Re: [PHP] MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8

2012-02-27 Thread Tommy Pham
On Mon, Feb 27, 2012 at 4:06 AM, wrote: > Hi, > > I have a MySQL server A, a server B with PHP 5.3.8 and a server C with PHP > 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C using an > internal network. Server B and C use the same PHP application. There are also > same PHP sc

Re: Re: [PHP] What's Your Favorite Design Pattern?

2012-02-07 Thread Tommy Pham
On Tue, Feb 7, 2012 at 2:31 PM, Paul M Foster wrote: > On Tue, Feb 07, 2012 at 09:02:00PM +, Tim Streater wrote: > >> On 07 Feb 2012 at 19:34, Daniel Brown wrote: >> >> > On Tue, Feb 7, 2012 at 13:56, Mike Mackintosh >> > wrote: >> >> I was curious to see what everyones favorite design patte

Re: [PHP] any security issues with this mysql_update function?

2012-01-13 Thread Tommy Pham
On Fri, Jan 13, 2012 at 7:52 PM, Haluk Karamete wrote: > I wrote a function "sql_update" which takes a $db_name, a $table_name, > a $where and finally a $data array where data is authored by using an > associative array which allows easy the pairing of field names and > field values. > > This is h

Re: [PHP] reporting errors when $ sign is missing in front of a variable

2012-01-11 Thread Tommy Pham
On Wed, Jan 11, 2012 at 8:43 PM, Haluk Karamete wrote: > > Hi, I'm coming from ASP background. > There, there is a life saver option called "option explicit". It > forces you to declare your variables using the "dim" statement. The > good thing about that is that if you were to mis-spell one of yo

[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-29 Thread Tommy Pham
On Mon, Nov 28, 2011 at 1:34 AM, Pierre Joye wrote: > On Mon, Nov 28, 2011 at 5:51 AM, Tommy Pham wrote: > >> Can someone please confirm if you're able to create/drop MySQL >> database on using phpMyAdmin with PHP 5.3.9RC2 or PHP5.4RC2? > > Please use the sqlsrv or

[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Tommy Pham
On Sun, Nov 27, 2011 at 7:32 AM, Pierre Joye wrote: > hi, > > I just uploaded two zip for sqlsrv and 5.4. I did not test them and > they are no official builds, only for testing purposes (so is 5.4 :). > > you can find them at http://www.php.net/~pierre/ > > Cheers, > Hi Pierre, I really appreci

[PHP] 5.3.9RC2 and 5.4RC2

2011-11-26 Thread Tommy Pham
Hi everyone, 5.3.9RC2 works fine with all my apps so far. 5.4RC2 broke with sqlsvr and its PDO in addition to Wincache, which I've already brought to MS' attention. What's the estimated official release of 5.4? I can't wait for the feature session.upload_progress* in 5.4 which I need to do some

Re: [PHP] Tutorial for the structure of an php-app ?

2011-11-25 Thread Tommy Pham
On Fri, Nov 25, 2011 at 4:38 PM, Andreas wrote: > Hi again, > is there a tutorial for the structure of an php-app? > > There are more than enough books and online docs that teach the basics of > PHP and of course the native mysql commands. > > I'd now rather need a help to figure out how to pull u

Re: Re: [PHP] include

2011-11-21 Thread Tommy Pham
On Mon, Nov 21, 2011 at 2:56 AM, Tim Streater wrote: > On 20 Nov 2011 at 23:46, Tamara Temple wrote: > >> Tim Streater wrote: >> >>> At the moment I'm using an instance of apache to run PHP scripts, as >>> and when required via AJAX. Having got some understanding of web >>> sockets, I'm minded t

Re: Re: [PHP] include

2011-11-20 Thread Tommy Pham
On Sun, Nov 20, 2011 at 4:44 PM, Tommy Pham wrote: > On Sun, Nov 20, 2011 at 1:34 PM, Tim Streater wrote: >> On 20 Nov 2011 at 10:36, Tommy Pham wrote: >> >> And here's another question. Can a child forked by pcntl_fork() use a socket >> that the parent obtai

Re: Re: [PHP] include

2011-11-20 Thread Tommy Pham
On Sun, Nov 20, 2011 at 1:34 PM, Tim Streater wrote: > On 20 Nov 2011 at 10:36, Tommy Pham wrote: > >> I think you're approaching this the wrong way. >> 1) have a clear understanding of PHP - syntax, capabilities, etc. > > That's what I'm doing - gathering

Re: [PHP] include

2011-11-20 Thread Tommy Pham
On Sat, Nov 19, 2011 at 2:16 PM, Tim Streater wrote: > At the moment I'm using an instance of apache to run PHP scripts, as and when > required via AJAX. Having got some understanding of web sockets, I'm minded > to look at having a small server to execute these functions as required. The > scr

Re: [PHP] Sniping on the List

2011-11-18 Thread Tommy Pham
On Thu, Nov 17, 2011 at 9:43 PM, Robert Cummings wrote: >    http://shorl.com/tebrakefesahe > ROFLMAO!!! Thanks Robert for starting off a good Friday for me :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE: [PHP] Safari and PDF

2011-11-16 Thread Tommy Pham
On Wed, Nov 16, 2011 at 4:13 AM, HallMarc Websites wrote: > Seems strange that you are given a choice. My clients have been telling me > that they are told to get the latest Acrobat Reader by Safari. Which they > have done (again why allow a plugin that isn't supported get installed to > begin

Re: [PHP] Novice MySQL problem

2011-11-14 Thread Tommy Pham
On Mon, Nov 14, 2011 at 4:11 AM, Stuart Dallas wrote: > On 14 Nov 2011, at 11:47, Jim Giner wrote: > >> Actually, no it doesn't,  since I have a well-developed sense of all of >> that, but that's not helping to answer the OP's question now, is it?  Stay >> on point. > > The OP's problem is solved,

Re: [PHP] mysqli question

2011-11-12 Thread Tommy Pham
On Sat, Nov 12, 2011 at 6:15 AM, Peet Grobler wrote: > Not sure if this is the correct mailing list to be asking this question > but here goes: > > I've got a prepared statement. > > $stmt = $dbh->prepare ("insert into test values (?, ?)") >        or die ("Error: " . $dbh->error); > $stmt->bind_p

Re: [PHP] create file after form completion

2011-10-29 Thread Tommy Pham
This line is consider 'top post'. Meaning you're posting on top of the reply. On Sat, Oct 29, 2011 at 12:12 PM, Pau wrote: > Hi, > > > > > Please try not to top post. > > sorry, but I do not understand the expression (I am not native, as you > might have guessed). Do you mean not to include the

Re: [PHP] Object size

2011-10-28 Thread Tommy Pham
On Fri, Oct 28, 2011 at 9:43 AM, QI.VOLMAR QI wrote: > Is there a function or method that calculate the object size in PHP?. > Or maybe that calculates a xml buffer of a file? I need to check a > size of a file, and if it's size is bigger than 500kb. I will need to > make another file to the subs

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

2011-10-28 Thread Tommy Pham
On Fri, Oct 28, 2011 at 9:38 AM, Jim Long wrote: > I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. > > Jim, Installed from packages or standard port tree build? Did you do any tweak for the ports build? Any special compiler parameters in your make.conf? I've noticed that you used MySQL

Re: [PHP] Exporting large data from mysql to html using php

2011-10-27 Thread Tommy Pham
On Wed, Oct 26, 2011 at 5:47 PM, Jason Pruim wrote: > > Jason Pruim > [email protected] > > The server that's running it is a home computer with a VPS installed... > It's not my dev environment :) > > Home computer used for a production environment? Wow.. I'm speechless. > The informat

Re: [PHP] Exporting large data from mysql to html using php

2011-10-26 Thread Tommy Pham
On Wed, Oct 26, 2011 at 4:14 AM, Lester Caine wrote: > Tommy Pham wrote: > >> >>Many of my customers have coming up on 20 years of data available. >> There has >>been a debate on transferring historic data to a separate database, but >>having i

Re: [PHP] Exporting large data from mysql to html using php

2011-10-26 Thread Tommy Pham
On Wed, Oct 26, 2011 at 3:23 AM, Tommy Pham wrote: > On Wed, Oct 26, 2011 at 1:40 AM, Lester Caine wrote: > >> Tommy Pham wrote: >> >>> I wonder ... The real question is what's the purpose of the DB? Is it >>> for OLAP >>> or OLTP? ;) >>

Re: [PHP] Exporting large data from mysql to html using php

2011-10-26 Thread Tommy Pham
On Wed, Oct 26, 2011 at 1:40 AM, Lester Caine wrote: > Tommy Pham wrote: > >> I wonder ... The real question is what's the purpose of the DB? Is it for >> OLAP >> or OLTP? ;) >> As for dealing with DB having millions of rows, you're crossing over into

Re: [PHP] Exporting large data from mysql to html using php

2011-10-26 Thread Tommy Pham
On Wed, Oct 26, 2011 at 12:52 AM, Lester Caine wrote: > Tommy Pham wrote: > >> It turns out the issue was actually in the pagination... I'm reworking the >>> > whole thing and stream lining it... But in the pagination that I found >>> on >>> &

Re: [PHP] Exporting large data from mysql to html using php

2011-10-25 Thread Tommy Pham
On Tue, Oct 25, 2011 at 7:06 PM, Jason Pruim wrote: > > It turns out the issue was actually in the pagination... I'm reworking the > whole thing and stream lining it... But in the pagination that I found on > the internet it used a "SELECT COUNT(*) WHERE state='{$state}'"; and the > COUNT was kill

Re: [PHP] Geo IP Location help needed...

2011-10-24 Thread Tommy Pham
On Mon, Oct 24, 2011 at 7:03 PM, Tommy Pham wrote: > On Mon, Oct 24, 2011 at 6:36 PM, DealTek wrote: > > >> >> but maybe the db is old from - Geo IP Location? hmmm . how do I check? >> >> -- >> Thanks, >> Dave - DealTek >> [email protected]

[PHP] Re: Ms Web PI and PHP

2011-10-20 Thread Tommy Pham
e downloaded applications. Please which ones > are the correct window web PI and PHP applications to download from the > list. > > I look forward to hearing from you. > > Many thank's and have a beautiful day. > > Best Wishes, > > Joseph > > --- On *Wed, 19/10/11

Re: [PHP] PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Tommy Pham
On Wed, Oct 19, 2011 at 9:26 AM, Tim Thorburn wrote: > > > Failing this, do you need Apache? If you just want a web server to test > some stuff on, you can download Microsoft's Web Platform - it will install > and configure IIS to run with PHP, IIS is only available on Windows XP Professional.

Re: [PHP] Seeking strategy/algorithm for maintaining order of records

2011-10-17 Thread Tommy Pham
On Sun, Oct 16, 2011 at 2:32 PM, Stephen wrote: > On 11-10-16 04:10 PM, Jim Giner wrote: > >> Stephen: >> >> What you describe is a multistep problem. There are many ways to show >> pictures (images) in any order you want. >> * >> >> So far, the OP has only asked how to keep his "categories"

Re: [PHP] Local variable protection

2011-10-12 Thread Tommy Pham
On Wed, Oct 12, 2011 at 4:51 PM, Benjamin Coddington wrote: > On Oct 12, 2011, at 4:24 PM, Ken Robinson wrote: > > > Quoting Benjamin Coddington : > > > >> Are there any assurances that function local variables are protected > from code calling the function? > >> > >> For example, I would like to

Re: [PHP] Server Side Include translator as PHP functions

2011-10-09 Thread Tommy Pham
On Sun, Oct 9, 2011 at 8:41 AM, Complex wrote: > Tedd, > > The crucial detail you're lookign for is my lack of choice or control > in the matter, for all sorts of reasons that are actually quite stupid > but not possible for *me* to change, and not possible for anyone else > to change quickly. Th

Re: [PHP] Server Side Include translator as PHP functions

2011-10-08 Thread Tommy Pham
On Sat, Oct 8, 2011 at 5:33 PM, Complex wrote: > Thanks for the advice, I'm aware of all that, but I'm looking for a > specific PHP solution at the moment. Unless you have advice on how I > can update the SSI includes on the larger website *without* having to > also update the PHP includes for th

Re: [PHP] Server Side Include translator as PHP functions

2011-10-08 Thread Tommy Pham
On Sat, Oct 8, 2011 at 2:31 PM, Complex wrote: > On Sat, Oct 8, 2011 at 1:09 PM, Tommy Pham wrote: > > > I think you didn't provide enough details to get a more accurate > suggestion > > of a solution, but here goes... Is 'include SSI file B' always

Re: [PHP] Server Side Include translator as PHP functions

2011-10-08 Thread Tommy Pham
My apologies I was multitasking some heavy applications/tests and had a huge spike in CPUs utilization and I accidentally clicked on send x2.

Re: [PHP] Server Side Include translator as PHP functions

2011-10-08 Thread Tommy Pham
On Sat, Oct 8, 2011 at 8:36 AM, Complex wrote: > Hello, > > Can you please tell me if there's already a set of PHP functions for > translating SSI commands to PHP? > I'm looking to do two things -- one difficult, one easy -- using PHP > on a hosted server. > > My client has web pages that use Ser

Re: [PHP] Server Side Include translator as PHP functions

2011-10-08 Thread Tommy Pham
On Sat, Oct 8, 2011 at 8:36 AM, Complex wrote: > Hello, > > Can you please tell me if there's already a set of PHP functions for > translating SSI commands to PHP? > I'm looking to do two things -- one difficult, one easy -- using PHP > on a hosted server. > > My client has web pages that use Ser

Re: [PHP] Namespaced code with SabreDAV

2011-10-06 Thread Tommy Pham
On Thu, Oct 6, 2011 at 1:45 PM, Tommy Pham wrote: > On Thu, Oct 6, 2011 at 7:37 AM, Andrew Mason wrote: > >> Hello all, >> I am trying to use the wonderful SabreDAV library to create a webdav >> share. I have a demo up and running however the framework / class i'

Re: [PHP] Problem with code...

2011-10-06 Thread Tommy Pham
On Thu, Oct 6, 2011 at 7:29 PM, Jason Pruim wrote: > > Jason Pruim > [email protected] > > > > On Oct 6, 2011, at 9:04 PM, George Langley wrote: > > > On 2011-10-06, at 6:28 PM, Jason Pruim wrote: > >> > >> >> > >> //SETUP VARIABLES > >> > >> $mailTo = "[email protected]"; > >>

Re: [PHP] Namespaced code with SabreDAV

2011-10-06 Thread Tommy Pham
On Thu, Oct 6, 2011 at 7:37 AM, Andrew Mason wrote: > Hello all, > I am trying to use the wonderful SabreDAV library to create a webdav > share. I have a demo up and running however the framework / class i'm > using is namespaced, and SabreDAV unfortunately does not have a 5.3 > style namespace d

Re: [PHP] Re: Secure data management

2011-10-05 Thread Tommy Pham
On Tue, Oct 4, 2011 at 8:01 PM, Jeremiah Dodds wrote: > On Tue, Oct 4, 2011 at 9:25 PM, Tommy Pham wrote: > > There would be a difference in performance since the the expression has > to > > be reevaluated, including the function FROM_BASE, every time versus one > time >

Re: [PHP] Re: Secure data management

2011-10-04 Thread Tommy Pham
On Tue, Oct 4, 2011 at 6:10 PM, Stuart Dallas wrote: > > On 5 Oct 2011, at 02:02, Tommy Pham wrote: > > On Tue, Oct 4, 2011 at 5:51 PM, Stuart Dallas wrote: > >> On 5 Oct 2011, at 01:13, Tommy Pham wrote: >> >> On Tue, Oct 4, 2011 at 4:49 PM, Stuart Dallas wr

Re: [PHP] Re: Secure data management

2011-10-04 Thread Tommy Pham
On Tue, Oct 4, 2011 at 6:07 PM, Jeremiah Dodds wrote: > On Tue, Oct 4, 2011 at 7:51 PM, Stuart Dallas wrote: > > As for the overhead I very much doubt there's much difference between > that and the overhead of prepared statements. > > Probably not. As an aside, I'm really struggling to find a ca

Re: [PHP] Re: Secure data management

2011-10-04 Thread Tommy Pham
On Tue, Oct 4, 2011 at 5:51 PM, Stuart Dallas wrote: > On 5 Oct 2011, at 01:13, Tommy Pham wrote: > > On Tue, Oct 4, 2011 at 4:49 PM, Stuart Dallas wrote: > >> >> On 5 Oct 2011, at 00:45, Tommy Pham wrote: >> >> On Tue, Oct 4, 2011 at 4:11 PM, Stuart Dallas

Re: [PHP] Re: Secure data management

2011-10-04 Thread Tommy Pham
On Tue, Oct 4, 2011 at 4:49 PM, Stuart Dallas wrote: > > On 5 Oct 2011, at 00:45, Tommy Pham wrote: > > On Tue, Oct 4, 2011 at 4:11 PM, Stuart Dallas wrote: > >> On 5 Oct 2011, at 00:04, Mark Kelly wrote: >> >> > Hi. >> > >> > On Tuesday 04

Re: [PHP] Re: Secure data management

2011-10-04 Thread Tommy Pham
On Tue, Oct 4, 2011 at 4:11 PM, Stuart Dallas wrote: > On 5 Oct 2011, at 00:04, Mark Kelly wrote: > > > Hi. > > > > On Tuesday 04 Oct 2011 at 21:39 Stuart Dallas wrote: > > > >> http://stut.net/2011/09/15/mysql-real-escape-string-is-not-enough/ > > > > Thanks. I followed this link through and rea

Re: [PHP] Getting meta data (of any type) for an XML file being from it's URL.

2011-10-01 Thread Tommy Pham
On Fri, Sep 30, 2011 at 3:03 AM, Richard Quadling wrote: > On 29 September 2011 23:34, Tommy Pham wrote: > > On Thu, Sep 29, 2011 at 3:27 PM, Tommy Pham wrote: > >> > >> On Thu, Sep 29, 2011 at 9:09 AM, Richard Quadling > >> wrote: > >>> > &g

Re: [PHP] Getting meta data (of any type) for an XML file being from it's URL.

2011-09-29 Thread Tommy Pham
On Thu, Sep 29, 2011 at 3:27 PM, Tommy Pham wrote: > On Thu, Sep 29, 2011 at 9:09 AM, Richard Quadling wrote: > >> Hi. >> >> I'm looking to process very large XML files without the need of first >> downloading them. >> >> To that end, SimpleXMLIt

Re: [PHP] Getting meta data (of any type) for an XML file being from it's URL.

2011-09-29 Thread Tommy Pham
On Thu, Sep 29, 2011 at 9:09 AM, Richard Quadling wrote: > Hi. > > I'm looking to process very large XML files without the need of first > downloading them. > > To that end, SimpleXMLIterator('compress.zlib:// > http://www.site.com/products.xml.gz') > is working perfectly. > > But a downside is th

Re: [PHP] book quest

2011-09-29 Thread Tommy Pham
On Thu, Sep 29, 2011 at 10:12 AM, George Langley wrote: > > On 2011-09-29, at 8:53 AM, Andy McKenzie wrote: > > >> Is there something wrong with the PHP.net manual? Or you just want > >> something physical to be able read any where and stay unplugged? If the > >> latter and there's nothing wrong

Re: [PHP] PHP5 cgi Suexec htaccess rewrite issue

2011-09-29 Thread Tommy Pham
On Thu, Sep 29, 2011 at 5:43 AM, Shaun Morrow wrote: > I am running a server with cPanel on and want to have php run as a cgi > with > Suexec enabled > > I cannot seem to rectify an issue, when I set the handler to cgi, my > rewrite > rules on one of my sites stop working > > Sample url: http://e

Re: [PHP] book quest

2011-09-28 Thread Tommy Pham
On Wed, Sep 28, 2011 at 5:29 PM, Jim Lucas wrote: > On 9/28/2011 3:26 PM, Bastien Koert wrote: > > On Wed, Sep 28, 2011 at 6:20 PM, Kirk Bailey > wrote: > >> The best book for a beginner? No, don't tell me php.net, I hear that > one > >> already, and while it is indeed good, I want something in

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Tommy Pham
On Fri, Sep 23, 2011 at 11:37 AM, Lester Caine wrote: > Tommy Pham wrote: > >> Have you looked at Quercus to see if it could run on Android? If it >> could, you >> can then run your PHP code then. >> > http://techblog.aasisvinayak.**com/deploy-php-application

Re: [PHP] 'Mobile' PHP

2011-09-23 Thread Tommy Pham
Have you looked at Quercus to see if it could run on Android? If it could, you can then run your PHP code then.

Re: [PHP] Re:

2011-09-22 Thread Tommy Pham
On Thu, Sep 22, 2011 at 9:25 AM, Eric wrote: > 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

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

2011-09-22 Thread Tommy Pham
On Thu, Sep 22, 2011 at 7:55 AM, Eric wrote: > 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 anyt

Re: [PHP] PHP installations, usage, and popularity

2011-09-20 Thread Tommy Pham
On Tue, Sep 20, 2011 at 5:00 AM, Bastien wrote: > > > On 2011-09-20, at 12:05 AM, Tommy Pham wrote: > > > ASP? Not ASP.NET? Wow... I haven't any new sites deployed in ASP in > almost > > 10 years. IIRC, ASP is nothing more but bunch of spaghetti codes and no

Re: [PHP] Installing extensions

2011-09-20 Thread Tommy Pham
On Tue, Sep 20, 2011 at 12:43 AM, tamouse mailing lists < [email protected]> wrote: > On Mon, Sep 19, 2011 at 9:03 AM, Daniel Brown wrote: > >You have to add the extensions to your php.ini file, > > Yeah, did that, still not working. > > > and - if > > using them on the web - remember t

Re: [PHP] PHP installations, usage, and popularity

2011-09-19 Thread Tommy Pham
ASP? Not ASP.NET? Wow... I haven't any new sites deployed in ASP in almost 10 years. IIRC, ASP is nothing more but bunch of spaghetti codes and no OOP. That's why attendance/registration is so low. Only main web (server side) development languages are ASP.NET (C#), Java, and PHP (listed as alpha

Re: [PHP] Re: While on the topic of PHP Web Site Stats - SharePoint...

2011-09-19 Thread Tommy Pham
I don't know about external facing and 'most web sites use SharePoint' but SharePoint is mainly used in conjunction with other midsize/enterprise MS applications such as Exchange, SQLServer and other MS products, including SSO integration with Active Directory. I've yet to see it used as standalon

Re: [PHP] opening a new window from php script

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 2:59 PM, Grega Leskovšek wrote: > I am working on CMS designed to those who are unfamiliar  with a > computer world and I want to offer a task where on a push of a button > it will save current working page in textarea/s and open this page in > a new tab or in a new window.

[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 1:44 PM, Pierre Joye wrote: > On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham wrote: > >> There used to be a VC6 binary release for PHP v5.3.3 at >> windows.php.net but I don't see a VC6 build for v5.3 now.  Any way, >> since you're using usi

Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 12:12 PM, Tommy Pham wrote: > On Fri, Mar 25, 2011 at 10:52 AM, Curtis Tammany > wrote: >> Help!! I am in a Windows environment (XP SP3 for development and Server 2003 >> for production. I have to upgrade to PHP 5.3.6. It does not appear to work >

Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Tommy Pham
On Fri, Mar 25, 2011 at 10:52 AM, Curtis Tammany wrote: > Help!! I am in a Windows environment (XP SP3 for development and Server 2003 > for production. I have to upgrade to PHP 5.3.6. It does not appear to work > with either Apache 2.2.11 or the new 2.2.17 from Apache Lounge. Apache will > run by

Re: [PHP] Probem with go-pear.bat

2011-03-14 Thread Tommy Pham
On Sun, Mar 13, 2011 at 5:49 PM, Alejandro Crosa wrote: > Hi...I try install pear by executing the go-pear.bat file, but I get a follow >  message: > > The go.pear.phar.dll is not a image valid of  windows. > > Please, any help is important for me. > > Thanks. > > Alejandro > > > See http://pear

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 2:40 AM, David Hutto wrote: >> >> As I mentioned below, if PHP is sluggish, shouldn't it be brought up >> to the PHP developers instead?  Why would you try include more >> complexity? > > I'm sure it has, it's called benchmarks. And they can't top C or > Fortran, last I saw

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 1:31 AM, David Hutto wrote: > On Sat, Mar 12, 2011 at 4:10 AM, Tommy Pham wrote: >> On Sat, Mar 12, 2011 at 12:06 AM, David Hutto wrote: >>> On Sat, Mar 12, 2011 at 2:59 AM, Tommy Pham wrote: >>>> On Fri, Mar 11, 2011 at 11:39 PM, David H

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 12:22 AM, David Hutto wrote: > This isn't a C/PHP question, or optimization, it's a matter of PHP > isn't always the center of attention, in terms of a development > process. In each language there are advocates, and it's admirable, but > ignorant in sight that what you're

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
We're going way off-topic. Perhaps start a new thread? :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Sat, Mar 12, 2011 at 12:06 AM, David Hutto wrote: > On Sat, Mar 12, 2011 at 2:59 AM, Tommy Pham wrote: >> On Fri, Mar 11, 2011 at 11:39 PM, David Hutto wrote: >>> On Sat, Mar 12, 2011 at 2:34 AM, Tommy Pham wrote: >>>> On Fri, Mar 11, 2011 at 11:26 PM, David H

Re: [PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-12 Thread Tommy Pham
On Fri, Mar 11, 2011 at 11:59 PM, David Hutto wrote: > Optimization also becomes a more manipulative, due to the stem point > of your further language utilization. If you divide your languages, > and disperse them through a C framework, you can utilize the languages > in their refined form, and if

  1   2   3   4   5   >