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 < > lasthack...@gmail.com> 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
> What about onclick='window.open("http://domain.com/path/to/generated/pdf";, "_blank")' ? Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
to see that pseudo code. I'm sure there are many here that would like to see that too. Anyway, this topic of threading in PHP has already been discussed heatedly. I'm sure it's already been submitted as feature request. As with all feature request, it's up to the dev. :) Ch

Re: [PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Tommy Pham
hreads? What about synchronizing? Like you said, fix the program right? Then shouldn't that be fixed in PHP at the core rather than a hack after? Cheers, Tommy > > -- Alex > -- > The trouble with programmers is that you can never tell what a programmer > is doing until it’s too late. ~Seymour Cray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
ase_string; >>       Line 61:                 case 0: >>       Line 77:                 case 1: >>       Line 131:                 case 2: >> >> Haven't looked at the entire file or source code but that looks close >> enough to me... ;) > > Thanks a lot for

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
do not break). > > more details, attempted fixes, etc.: > http://stackoverflow.com/questions/10843600/ > > Thanks for any thoughts/tips of any kind > -Govinda Have you tried http://htmlpurifier.org/phorum/ and did you noticed "Since the project has been suspended, please only

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, siefke_lis...@web.de 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
t; This is your clue on how to fix. What version of PHP are on Windows and Ubuntu? If different, perhaps upgrade your CentOS' PHP? If the same exact version on all 3 OSes, then consult CentOS :). HTH, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
Win2008 (x86 & x64), Win7 (x64), and Win2008R2. Easiest is get IIS7 or IIS7.5 (Vista, Win08, Win7, Win2008R2 - including in a VM) and current version IIS PHP Manager. HTH, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
you want... What you're asking for ATM is someone to write the code for you which is not how it works. You need to provide some code, or even pseudo code at least... HTH, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding Rows In PHPMYADMIN

2012-04-02 Thread Tommy Pham
ames > > "Need Web Design" Check Out**** > > My Site: http://kjwebsitedesign.com > > "*Flexible in Cost, Time, and Service."* > > ** ** > 1) Wrong list for the question 2) Since you've chosen this line of profession, pick up a "SQL Fundamentals" or "Fundamentals of SQL" book HTH, Tommy

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
rly? If there's no firewall or if it's configured properly, is the account valid and have the right permissions? Is the MySQL server running on the default port 3306? If you don't know how to configure each of the above mentioned, allow me to introduce you a new friend,

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
ooting that much variances will take a lot of time. Do you have root access? Was the OS installed via standard distribution? Did someone reconfigured and recompiled the kernel and system? I'd suggest you start compiling from source of the following: * MySQL client - same version (pref

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

2012-03-01 Thread Tommy Pham
. That's like asking us how to get water without telling the location of the water: ocean, lake, underground, etc.. You get the idea. Best regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2012-03-01 Thread Tommy Pham
isset($employees[$employeeID]['subordinates']) && !empty($employees[$employeeID]['subordinates'])) foreach ($employees[$employeeID]['subordinates'] => $subordinateID) { // access subordinate's info via $employees[$subordinateID] } else echo "{$emp

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

2012-02-28 Thread Tommy Pham
facility does rolling file logging, DB, e-mail, syslog, etc. (I've used the log4j and log4net before.) Very handy and flexible, IMO. HTH, Tommy [1] http://logging.apache.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2012-02-27 Thread Tommy Pham
n to kernel version (if Linux/Unix), NICs and driver version, configurations, etc.? It would help if specify OS type and kernel version. Best regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2012-02-07 Thread Tommy Pham
nce() would > instantiate the class and then return the new object to the caller. > > As you can see, that's a peculiar way of setting up your code for a > specific purpose. Other design patterns do other things and dictate > setting up things in other ways. > Here's a cod

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

2012-01-13 Thread Tommy Pham
"` " . $string; >        //echo $update_sql_statement; >        //outputs UPDATE `test_table` SET `FirstName`='John', > `LastName`='Smith', `Age`='90' where PersonID=1 > >        if (mysql_query($update_sql_statement,$link )) >        { >                return mysql_affected_rows ($link); >                mysql_close($link); >        } >        else >        { >                echo "error SQL FAILS " . mysql_error(); >                mysql_close($link) ; >                die; >                return null; >        } > > } > Use MySQLi library and simplify your life [1]. Best regards, Tommy [1] http://php.net/class.mysqli and http://php.net/class.mysqli-stmt and http://php.net/class.mysqli-result -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
4RC2 as mysqlnd 5.0.10-dev - 20111026 - $Revision: 318612 $ Thanks again, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 5.3.9RC2 and 5.4RC2

2011-11-26 Thread Tommy Pham
4 which I need to do some testing as how I can implement that into my existing apps!!! That's just awesome!! Thanks for all your continuous hard work :) Platform: Win08R2/IIS7.5 SP1 with current patches running PHP as FastCGI. Applications: drupal, joomla, mediawiki, wordpress, and a few of

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

2011-11-25 Thread Tommy Pham
ly bended? What about prone to rust or chemical reactions with long term exposure to chlorinated water? What cables are needed for each purpose and is the proper gauge of the cable being used? Insufficient gauge will lead to fire. After you have a firm understanding of the materials/technologi

Re: Re: [PHP] include

2011-11-21 Thread Tommy Pham
>> standard php practice to load php files with include -- what were you >> expecting here? > > I'm looking for confirmation that: > >  include $fn; > > is an allowed form of the include statement. > RTFM [1] example #6 ;) HTH, Tommy [1] http://php.net/function.include -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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
include it ;) If this is running as web app, you can use header [1] and pass the criteria for next phase of the operation as URL parameters. But doing this is going to kill the server side with too many unnecessary round trips. Which clearly demonstrates point 2 and 3. You should look into Int

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
to install Acrobat Reader? Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Novice MySQL problem

2011-11-14 Thread Tommy Pham
types comes in, aside from getting into hot debate/discussion about pros & cons of natural vs surrogate keys even if you don't have large amount of data ;) Regards, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysqli question

2011-11-12 Thread Tommy Pham
se variables represent the similar meaning, the suggested approach would be $file and $line respectively. It would make things easier to read and less confusing when you're troubleshooting, IMO. If you have everything done in classes [1] and put all your DB access in an abstraction layer cla

Re: [PHP] create file after form completion

2011-10-29 Thread Tommy Pham
have guessed). Do you mean not to include the email in my reply? > Sorry about that. > > Where as this line is bottom posting. Meaning you'd be posting bottom/below the reply, which is the preferred method on this list. Regards, Tommy

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
ticed that you used MySQL extensions. Have you tried MySQLi to see if there's any difference? Regards, Tommy

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

2011-10-27 Thread Tommy Pham
hire/contract one or become > one > > :) > > I'm working on becoming one ontop of web designer and programmer :) > Good luck, that's a LOT of reading. I'd estimate that's about 3k+ pages of reading. :) > > > > > > Regards, > > Tommy > >

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
D controller, like 3ware's. Also, the controller should be in slot PCI-X or, preferably, PCI-e. Regards, Tommy

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 >> deal...@gmail.co

[PHP] Re: Ms Web PI and PHP

2011-10-20 Thread Tommy Pham
On Thu, Oct 20, 2011 at 5:15 AM, Joseph Adenuga wrote: > > Dear Tommy, > > Good day to you. I'm trying to install Microsoft's Web Platform as advised > in your last message below. But, I don't know which application to install > from the list provided from th

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
id; $order = $category_order; - if ([3] execute prepared statement === false) throw new Exception('Error executing prepared statement '.$sql; - end loop / iteration - close db connection However, using this method will have a performance issue if the number of records you're updating is large regardless of which 'category' was changed. Good luck, Tommy [1] php.net/mysqli.prepare [2] php.net/mysqli-stmt.bind-param [3] php.net/mysqli-stmt.execute [4] php.net/language.exceptions

Re: [PHP] Local variable protection

2011-10-12 Thread Tommy Pham
defined. Is there a way to > this? Is there a way to examine the input buffer, or anything that has been > read into the interpreter so far? Certainly those values exist within the > memory of the process, which can be accessed through other methods. > > I'd be very happy if anyone is able to say it is not possible to do this, > and explain why. > > Ben > > Regards, Tommy [1] php.net/reserved.variables.globals

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

2011-10-09 Thread Tommy Pham
boss wants now, then another, and another... etc... Eventually, you're going to through the same thing I did. Good luck, Tommy

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

2011-10-08 Thread Tommy Pham
ieces of information, such as the current time. But if a majority of your page is being generated at the time that it is served, you need to look for some other solution." [1] Last time I checked, SSI, either on httpd or IIS, doesn't have any means to do dynamically, including generating

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
Regardless of how dynamic any site is, there's a always some kind of pattern. What you need to do is identify that pattern and do what you need accordingly. What about having PHP read those files to be included and output without having to rely on SSI mechanisms? I'm just curious... since PHP is OOP and, IIRC of SSI, the use of SSI limits the full potential of OOP and PHP. Is the control of the application and configurations beyond yours? Regards, Tommy

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

2011-10-08 Thread Tommy Pham
Regardless of how dynamic any site is, there's a always some kind of pattern. What you need to do is identify that pattern and do what you need accordingly. What about having PHP read those files to be included and output without having to rely on SSI mechanisms? I'm just curious... since PHP is OOP and, IIRC of SSI, the use of SSI limits the full potential of OOP and PHP. Is the control of the application and configurations beyond yours? Regards, Tommy

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
t; >> Sometimes... It is dropping the last $mailmessage line... The payment > method in the actual email it sends... > >> > >> Anyone have any ideas? I'm stumped > > > > Hi there. First thought is perhaps it is not getting a value for > paymentMethod and if it doesn't exist, will the line still get added? > > I would always check to see if every post variable isset, before > adding the line. Can write a default line in its place if missing. > > The variable is being set with a default value of nothing else... But for > some reason it's not bringing it through when the form is submitted... > > Any other ideas? hehe :) > > Have you tested with the same payment method to see if somewhere in your code or a hiccup in the server is causing the problem? Does that happen to any or certain payment method (including blank entry)? I'm guessing it may happen with only certain payment method. From the line if(!empty($errorCount)) {, I presume you have a mechanism in place to sanitize and validate inputs? I'd suggest you start troubleshooting from there. If this is still development phase, try to bypass that mechanism for a quick confirmation that is causing the problem. Regards, Tommy

Re: [PHP] Namespaced code with SabreDAV

2011-10-06 Thread Tommy Pham
e. I don't know how the SabreDAV framework looks like but you may want to look at how Zend framework loads their class as to give you some idea what you may need to do in your autoload to circumvent SabreDAV being not 5.3 namespace declaration. You may also want to take a look at CodeIgniter's autoloading mechanism. Regards, Tommy

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
y consumption is a major concern, you may want to save to the file locally until the import/migration is done as there maybe a situation where you'll need to review the data and, thus, saving the time and bandwidth of having to re-download the data. Regards, Tommy

Re: [PHP] book quest

2011-09-29 Thread Tommy Pham
>> latter and there's nothing wrong with the official manual, try > downloading > >> the chm or single html file and print as you go. No need to lug around > >> thick that manual/reference ;) > >> > >> Regards, > >> Tommy > > > >

Re: [PHP] PHP5 cgi Suexec htaccess rewrite issue

2011-09-29 Thread Tommy Pham
his feature (03/17/2002) ; Set to 1 if running under IIS. Default is zero. ; http://php.net/fastcgi.impersonate Note that the above is from old config file and is configured for PHP to run as FastCGI on IIS7.5. There maybe recent changes regarding httpd and impersonation. Go through the php.ini and make all relevant changes regarding 'cgi'. Regards, Tommy

Re: [PHP] book quest

2011-09-28 Thread Tommy Pham
l > the > questions I have ever needed to ask since. > > Jim Lucas > > > 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 with the official manual, try downloading the chm or single html file and print as you go. No need to lug around thick that manual/reference ;) Regards, Tommy

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
you think and what actually happened are 2 different things. Always confirm. Regards, Tommy

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

2011-09-19 Thread Tommy Pham
risons since the point of having students certified is that they could get a job quickly. Best wishes, Tommy

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

2011-09-19 Thread Tommy Pham
hardware demanding. Simply put, if your company currently using any MS products, Exchange, SQLServer, etc. and is midsize+, then it maybe justifiable to use SharePoint, not just the free version. Else, if you just need a CMS that's the lowest TCO and easier to maintain, stick w/ PHP and Open Source, IMO. Regards, Tommy

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

2011-03-25 Thread Tommy Pham
un rises I receive and when it sets I forgive -> > http://moj.skavt.net/gleskovs/ > Always in Heart, Grega Leskovšek > I don't know if you have Flash in your tool belt but have you considering using it? It may simply your life with various browsers and their versions across di

[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
cripting language such as Perl, PHP, Python, etc…as well as the actual scripts themselves). LoadRunner testing does show a marked improvement for Apache compiled under VC 2008 in stability under rigorous condition. Minimum system required: Windows 7, Windows Server 2008 R2, Windows Vista, Windo

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   >