Re: [PHP] Building SoapClient as an extension

2010-09-20 Thread Phpster
It's already done http://wso2.com/products/web-services-framework/php/ Bastien Sent from my iPod On Sep 20, 2010, at 19:20, Jon Drukman j...@cluttered.com wrote: Is it possible to build SoapClient as a loadable extension? For various reasons, I don't want to have to recompile PHP from

Re: [PHP] 1984 (Big Brother)

2010-09-15 Thread Phpster
Next we'll be suggesting sharks with frikking laser attached to their heads to guard the door! Bastien Sent from my iPod On Sep 15, 2010, at 19:53, Matty Sarro msa...@gmail.com wrote: Ooooh, how about a pressure sensor on his seat??? Like the ones they have in cars to make that little

Re: [PHP] Re: [!! SPAM] Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Phpster
On Sep 13, 2010, at 17:49, Tim Thorburn immor...@nwconx.net wrote: On 9/13/2010 9:10 AM, Steve Staples wrote: here's a silly idea... put the database on his computer (or the entire app). that way, when he's *there* he is logged in. if the computer is off, he's not there, the app wont

Re: [PHP] Re: Removing link on the fly, but leave link text

2010-08-31 Thread Phpster
On Aug 31, 2010, at 16:26, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-08-31 at 17:15 -0300, Jo?o C?ndido de Souza Neto wrote: Theres an eror. The correct is: $pattern = array( /a [^]/, //a/ ); $text = preg_replace($pattern, , $text); -- Joo

Re: [PHP] changing form based on variable

2010-07-20 Thread Phpster
On Jul 20, 2010, at 13:28, David Mehler dave.meh...@gmail.com wrote: Hello, I've got a form, it's sticky, and it can either display on an insert or update. Depending on whether i'm wanting to do an insert or update the area the form gets it's input changes. So, i've got a name field, if

Re: [PHP] communication protocol

2010-07-06 Thread Phpster
Amfphp ( www.amfphp.org) is what you might be looking for. It converts php based content into the flex digestible format. Bastien Sent from my iPod On Jul 6, 2010, at 17:41, Augusto Flavio afla...@gmail.com wrote: Hi List, I'm looking for a chat support likes the livezilla. The

Re: [PHP] communication protocol

2010-07-06 Thread Phpster
Try rest based or comet for chat Bastien Sent from my iPod On Jul 6, 2010, at 22:41, Augusto Flavio afla...@gmail.com wrote: Hi again, I'm thinking about in how to do the communication between web chat in browser client, the server and the operator desktop client. I'm thinking in web

Re: [PHP] Credit Card encryption

2010-05-31 Thread Phpster
On May 31, 2010, at 1:24 AM, Paul M Foster pa...@quillandmouse.com wrote: On Sun, May 30, 2010 at 03:30:28PM -0400, Phpster wrote: snip I work with some of the largest retailers in north America if not the world, and I can confirm that the security measures taken to enforce pci

Re: [PHP] Credit Card encryption

2010-05-30 Thread Phpster
On May 30, 2010, at 10:50 AM, tedd tedd.sperl...@gmail.com wrote: At 12:43 PM +0200 5/30/10, Peter Lind wrote: On 30 May 2010 07:49, Paul M Foster pa...@quillandmouse.com wrote: -snip- Does anyone have a better solution? I'm sorry if the following sounds a bit harsh, but in matters like

Re: [PHP] localize string (date)

2010-05-22 Thread Phpster
On May 22, 2010, at 12:07 PM, tedd tedd.sperl...@gmail.com wrote: At 8:00 PM +0100 5/21/10, Ashley Sheridan wrote: What sort of format is that date, English or American? For example: dd-mm- or mm-dd-? Thanks, Ash Ash: I don't think it's called English or American -- as Churchill

Re: [PHP] Displaying errors

2010-05-17 Thread Phpster
On May 17, 2010, at 1:18 AM, Rene Veerman rene7...@gmail.com wrote: On Sun, May 16, 2010 at 1:39 PM, Malka Cymbalista malki.cymbali...@weizmann.ac.il wrote: Hi all, we are running Apache 2.2.6 and PHP 5.2.6 on a Linux machine. If someone gets an error when displaying a php web page, he

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread Phpster
On May 11, 2010, at 8:36 PM, shiplu shiplu@gmail.com wrote: I dont own a windows computer. I found phpcoder.sf.net. it uses eaccelerator to encode. This is good. But the problem is latest version of e-accelerator discontinued the encoder. So may be, an older version will do it. Didn't

Re: [PHP] PHP Encoder like IonCube

2010-05-10 Thread Phpster
On May 10, 2010, at 7:36 AM, Peter Lind peter.e.l...@gmail.com wrote: On 10 May 2010 13:25, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-05-10 at 12:42 +0600, shiplu wrote: On Mon, May 10, 2010 at 6:28 AM, donald sullivan don...@nixspot.com wrote: bcompiler is available,

Re: [PHP] Problem with IE7 caching

2010-05-07 Thread Phpster
On May 7, 2010, at 8:06 PM, Charlene Wroblewski cwemagazi...@charter.net wrote: I tried this and it doesn't work. I still have to do the CTRL- Refresh to get it to refresh the page. On May 7, 2010, at 2:27 PM, Karl DeSaulniers wrote: Try, header('Cache-control: private, no-cache,

Re: [PHP] Problem with IE7 caching

2010-05-07 Thread Phpster
On May 7, 2010, at 8:41 PM, Karl DeSaulniers k...@designdrumm.com wrote: On May 7, 2010, at 2:06 PM, Charlene Wroblewski wrote: I have a problem with IE7. It has a tendency to cache output produced by PHP. It occurs in a few ways: * I make a minor change to a php program, but you

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:23 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've been thinking about this problem for a little while, and the thing is, I can

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:54 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 07:58 -0400, Phpster wrote: On Apr 26, 2010, at 7:23 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52

Re: [PHP] Does PHP support multi-thread ?

2010-04-18 Thread Phpster
Not all libraries are thread safe, so no. 2 seconds with a google search would have given you the same answer. Bastien Sent from my iPod On Apr 18, 2010, at 9:17 AM, ttplayer f...@qq.com wrote: Hello, everyone, please answer me. Thank you. Does PHP support multi-thread ? -- PHP General

Re: [PHP] Replacing a special character

2010-04-18 Thread Phpster
On Apr 18, 2010, at 8:59 AM, Michael Stroh st...@astroh.org wrote: I have this form that people use to add entries into a MySQL database. Recently I've had some users insert − in their entries ins tead of - which is causing some issues with scripts down the line. I 'd like to replace the −

Re: [PHP] Re: Allowing multiple, simultaneous, non-blocking queries.

2010-03-28 Thread Phpster
On Mar 28, 2010, at 2:45 PM, Nathan Rixham nrix...@gmail.com wrote: Adam Richardson wrote: Threading is only realistically needed when you have to get data from multiple sources; you may as well get it all in parallel rather than sequentially to limit the amount of time your application

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Phpster
Rob's approach is what I use as well, if faced with this issue. It's quick and simple to do. Bastien Sent from my iPod On Mar 13, 2010, at 12:47 PM, Robert Cummings rob...@interjinn.com wrote: MEM wrote: Hello all, If possible, I would like to ask and have your help about the methods

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread Phpster
I'd go with a mysql data modelled approach as it will allow mysql to do lots of the heavy lifting during analysis as you've mentioned. If there are a lot of entries, it's gonna get complex and expensive memory-wise to manage XML or session based datasets. Plus having each question as it's

Re: [PHP] Revision control?

2010-03-09 Thread Phpster
I believe pear has some stuff for subversion. Bastien Sent from my iPod On Mar 9, 2010, at 7:21 PM, Tom Sparks tom_a_spa...@yahoo.com.au wrote: Is there a Revision control class that I can use in a php program? tom_a_sparks -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP / mySQL Project... Real men use 'cat'

2010-02-23 Thread Phpster
Depends on what you do with them! Bastien Sent from my iPod On Feb 23, 2010, at 6:42 AM, Richard Quadling rquadl...@googlemail.com wrote: On 23 February 2010 00:28, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]

Re: [PHP] Magnetic Stripe Reader or Barcode to PHP

2010-02-18 Thread Phpster
The inputs are simple client side devices, lime th keyboard. I used as wasp brand barcode reader and it was configured to input the value and the tab to send it to te next field. They work well and easy to set up. Bastien Sent from my iPod On Feb 18, 2010, at 5:42 PM, Daevid Vincent

Re: [PHP] Re: Report generators: experience, recommendations?

2010-02-15 Thread Phpster
On Feb 14, 2010, at 11:51 PM, Jonathan Sachs 081...@jhsachs.com wrote: On Sat, 13 Feb 2010 20:01:35 -0500, n...@ridersite.org (Al) wrote: I'm looking for a report generator which will be used to create management reports for my client from a MySQL database Has anyone had experience

Re: [PHP] Simple code obfuscation

2010-02-08 Thread Phpster
On Feb 8, 2010, at 2:32 PM, Brian Dunning br...@briandunning.com wrote: Hey all - I'm selling a custom PHP solution to FileMaker users. It uses FileMaker's PHP API, so everyone who has FileMaker Server is already set up to use it, but very few of them have any knowledge of how to

Re: [PHP] Help with regex (search/replace) please

2010-02-06 Thread Phpster
Why not just pass the value in the onclick? Onclick=doSomething(this); Would give you simple access to all the properties of that element. This.value would pass just the value. Bastien Sent from my iPod On Feb 6, 2010, at 9:43 AM, Ryan S gen...@yahoo.com wrote: Hey guys, As many of you

Re: [PHP] HTML plain text in Outlook 2007

2010-02-05 Thread Phpster
Ire ently needed to do this for a client as well. I took their word doc and converted it to HTML with open office. This created a template that I just do some search and replace to fill in the criteria. This has worked very well with outlook and hotmail and gmail. Not sure if it will fit

Re: [PHP] database abstraction layer

2010-02-02 Thread Phpster
Yep, love those race conditions. We have them all over the app cuz the app ciders don't know shit! Bastien Sent from my iPod On Feb 2, 2010, at 5:46 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-02-02 at 23:19 +0100, Rene Veerman wrote: function getMax($table,

Re: [PHP] database abstraction layer

2010-02-02 Thread Phpster
Good lord that is exacty the same logic applied in our app. It only takes about 100 users to create the issue. Bastien Sent from my iPod On Feb 2, 2010, at 6:05 PM, Rene Veerman rene7...@gmail.com wrote: i haven't had the pleasure yet of writing for sites that generate so many hits/sec

Re: [PHP] database abstraction layer

2010-02-02 Thread Phpster
Lol, damn iPod corrections. The app designers is what was meant. Bastien Sent from my iPod On Feb 2, 2010, at 8:41 PM, Robert Cummings rob...@interjinn.com wrote: Phpster wrote: Yep, love those race conditions. We have them all over the app cuz the app ciders don't know shit! Mmmm

Re: [PHP] Magento shopping cart

2010-02-01 Thread Phpster
I hear good things about magento, neve used it though. Xcart stinks. I've had to hack that before. It was painful. Bastien Sent from my iPod On Feb 1, 2010, at 4:02 PM, Skip Evans s...@bigskypenguin.com wrote: Hey all, Anyone ever use the Magento shopping cart? Pluses, minuses,

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Phpster
I converted one that was originally in classic ASP. It's terrible, with poor design and large overhead. Used for a few projects, but now use codeigniter. It's the easiest to adapt without many of the restrictions of th larger frameworks. Bastien Sent from my iPod On Jan 29, 2010, at 5:08

Re: [PHP] Cookies sessions

2010-01-19 Thread Phpster
Be aware that there is a limit of 20 cookies per domain Bastien Sent from my iPod On Jan 19, 2010, at 6:12 AM, Bruno Fajardo bsfaja...@gmail.com wrote: 2010/1/19 clanc...@cybec.com.au: I am trying for the first time to use cookies. The manual contains the statement Cookies are part of the

Re: [PHP] Cookies sessions

2010-01-19 Thread Phpster
The first setcookie call is empty which produces the errors that cause the second cookie to fail. Bastien Sent from my iPod On Jan 19, 2010, at 10:16 PM, clanc...@cybec.com.au wrote: On Tue, 19 Jan 2010 09:12:17 -0200, bsfaja...@gmail.com (Bruno Fajardo) wrote: 2010/1/19

Re: [PHP] PHP MS Sequel Server

2010-01-17 Thread Phpster
Asp blows chunks when compared to php. Poor array handling, no built in image handling etc. Better to rewrite the site than to keep using 15 year old tech that is not really being supported by Microsoft. Bastien Sent from my iPod On Jan 17, 2010, at 2:27 PM, deal...@gmail.com

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Phpster
On Jan 8, 2010, at 10:44 AM, Andrew Ballard aball...@gmail.com wrote: On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings rob...@interjinn.com wrote: ... They almost always make your shit run faster. You know they make medicine for that? ;-) Andrew -- Tacos? Bastien Sent from my

Re: [PHP] MySQL Increment/Decrement

2009-12-29 Thread Phpster
On Dec 29, 2009, at 3:10 AM, muzy p...@muzybot.de wrote: Hello Ben, I had the same question yesterday (but with SQLite) and there are at least 2 solutions. The first was already mentioned: UPDATE table SET value = value + 1 WHERE foo = bar; The second solution which also works is:

Re: [PHP] Merry Christmas!

2009-12-25 Thread Phpster
And Toronto, Ontario adds one as well Bastien Sent from my iPod On Dec 25, 2009, at 2:12 PM, Robert Cummings rob...@interjinn.com wrote: Merry Christmas from Ottawa, Canada :) Errr... uh.. I mean +1 :D Rene Veerman wrote: +1 from Amsterdam :) a happy, productive profitable new

Re: [PHP] Form validation issue

2009-12-21 Thread Phpster
Does the js function return false on the errors to block the submission? Bastien Sent from my iPod On Dec 20, 2009, at 9:43 PM, Ernie Kemp ernie.k...@sympatico.ca wrote: Good Day, I need help in in validating a form. The for is valdated be a javascript

Re: [PHP] Checking for internet connection.

2009-12-19 Thread Phpster
The next way to handle this might be to code an AIR app. Then it's a simple js trap to see if connectivity exists. Bastien Sent from my iPod On Dec 19, 2009, at 7:13 PM, Angus Mann angusm...@pobox.com wrote: Hi all. I'w writing a PHP app that is designed to run over a LAN, so internet

Re: [PHP] Open source project management tool - PHP

2009-12-17 Thread Phpster
Using projectpier and have no complaints yet. Bastien Sent from my iPod On Dec 17, 2009, at 5:24 AM, Angelo Zanetti ang...@elemental.co.za wrote: Hi guys I would like to know what open source project management tools you use for your projects. We are looking at installing one that is

Re: [PHP] Learning PHP

2009-12-12 Thread Phpster
Programming php from Eric Bastien Sent from my iPod On Dec 12, 2009, at 12:27 PM, Robert H sigz...@gmail.com wrote: What is a good beginners programming book for PHP? I like dead trees more than reading stuff on my screen, so I am looking for a book. Thanks! Bob -- PHP General

Re: [PHP] function not returning query

2009-11-23 Thread Phpster
Likely your query failed due to an error. Try adding an or die(mysql_error()) to the end of your mysql_query statement to see what that error maybe Bastien Sent from my iPod On Nov 23, 2009, at 7:22 PM, Allen McCabe allenmcc...@gmail.com wrote: Hi, thanks for reading, I hope you can

Re: [PHP] Recognizing double clicks

2009-11-22 Thread Phpster
Yep Bastien Sent from my iPod On Nov 22, 2009, at 12:34 AM, Skip Evans s...@bigskypenguin.com wrote: It just dawned on me the button may be disabled right when it's clicked to prevent a double submit? Is that doable? Skip Skip Evans wrote: Hey all, Every site I've ever stuck a credit

Re: [PHP] PHP and XML

2009-11-22 Thread Phpster
I would just use concatenations and strings to build the XML. It's not gonna matter to the flash swf when it gets the string as it will attempt the data as XML. Bastien Sent from my iPod On Nov 22, 2009, at 2:27 PM, Juan Marcelo Rodríguez Monti j...@rodriguezmonti.com.a r wrote: Hi

Re: [PHP] PHP sessions, AJAX, authentication and security.

2009-11-21 Thread Phpster
You could use a one time token on each request Bastien Sent from my iPod On Nov 21, 2009, at 6:30 AM, Angus Mann angusm...@pobox.com wrote: Hi all. A question about PHP sessions and their interaction with AJAX. I have a database containing sensitive information and users need to log in

Re: [PHP] Creating users and generating privileges for users

2009-11-21 Thread Phpster
Check out the grant command in SQL for your database Bastien Sent from my iPod On Nov 21, 2009, at 9:05 AM, tedd tedd.sperl...@gmail.com wrote: At 6:36 PM -0600 11/20/09, nitin reddy wrote: Hey can one help me in creating different users using mysql for php and assigning different

Re: [PHP] Extracting a time zone from a latitude longitude

2009-11-21 Thread Phpster
This is a simple math problem. Create am array with a start and end longitude for that timezone and run a comapre from your lay/long co- ords to see where it falls. Bastien Sent from my iPod On Nov 21, 2009, at 12:25 PM, Haig Davis level...@gmail.com wrote: Good Morning all, Having a

Re: [PHP] How to call DLL in Javascript

2009-11-17 Thread Phpster
I don't think you can di this with client side js. It would have to run outside the security sandbox and that is a bug no-no. If the dll is in the server, you could potentially call the server via Ajax to instantiate the dll and have it's output sent to the browser Bastien Sent from my

Re: [PHP] Multilingual website, texts in external JavaScript problem

2009-11-09 Thread Phpster
On Nov 9, 2009, at 1:04 AM, leledumbo leledumbo_c...@yahoo.co.id wrote: I need to create a multilingual website and my framework already gives me that facility. However, I also use JavaScript quite extensively and since XHTML 1.0 Strict doesn't allow inline script, I must use

Re: [PHP] Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)

2009-11-08 Thread Phpster
On Nov 8, 2009, at 1:20 PM, Dave M G mar...@autotelic.com wrote: Nathan, Thank you for responding. yup.. forget the new window all together, if you have it set to download as an attachment then the user won't be taken away from the page; so no need for a new window at all. Right...

Re: [PHP] Custom function for inserting values into MySQL

2009-11-02 Thread Phpster
I would take a look at some of the frameworks like codeignter to see how they do things. But like Davied mentioned a simpler way to handle the passing into the function would be Function save($table, $data) Where data is an array of key value pairs which takes your 22 parameters down

Re: [PHP] $_SESSION variables

2009-10-24 Thread Phpster
Unset($_SESSION['order'][$reference]['quantity']); will clear the entire session object Bastien Sent from my iPod On Oct 24, 2009, at 8:01 AM, Ron Piggott ron@actsministries.org wrote: I am programming a shopping cart. So far I have used

Re: [PHP] French characters

2009-10-19 Thread Phpster
On Oct 19, 2009, at 9:29 AM, Don d...@program-it.ca wrote: This doesn't not seem to be having an affect as the French characters are still written scrambled. Mert Oztekin mozte...@anadolusigorta.com.tr wrote in message news:E2C046087E10D943811A0BD0A4E8316D1BD2E81C11@

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Phpster
On Sep 25, 2009, at 6:50 PM, Caner Bulut caner...@gmail.com wrote: Hi All, Is there a stable or standart directory layout for PHP project (like web sites)?. Example; index.php img/ css/ js/ lib/ doc/ tools/ Thanks. It depends. Using of the many frameworks will force

Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-25 Thread Phpster
On Sep 25, 2009, at 3:12 PM, Geert Tapperwijn g.tapperw...@gmail.com wrote: Can't you just use the eval http://nl2.php.net/eval function, and parse the code from the include file in it? .. or is there something I'm missing her Because eval has risks if code gets injected into the

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread Phpster
On Sep 20, 2009, at 3:37 AM, Parham Doustdar parha...@gmail.com wrote: Hello there, I'm guessing that when a row in a MySQL table is removed, the ID colomns of the rows which come after that row are not changed. For example: 1 2 3 4 Now, if I want to remove the third rows, the ID

Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread Phpster
On Sep 11, 2009, at 3:50 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-09-11 at 00:19 -0400, Phpster wrote: Note that this approach has risks around race conditions. Anytime you have a construct for the id you run the risk of having it create duplicate ids. You

Re: [PHP] Creating alphanumeric id for a table

2009-09-10 Thread Phpster
Note that this approach has risks around race conditions. Anytime you have a construct for the id you run the risk of having it create duplicate ids. You will need to handle that. Bastien Sent from my iPod On Sep 10, 2009, at 6:49 PM, Ben Dunlap bdun...@agentintellect.com wrote: I

Re: [PHP] user permissions

2009-08-27 Thread Phpster
On Aug 27, 2009, at 2:55 AM, John i...@dynatechdesign.ca wrote: Hi, What is the best way to assign permissions to users? a) Each user has a list of permissions associated with that user or Nope b) Each task/permission has a list of users that qualify or Nope c)

Re: [PHP] Login should not allow users to login if the application is logged in with the same login credentials

2009-08-27 Thread Phpster
On Aug 27, 2009, at 8:01 AM, hack988 hack988 hack...@dev.htwap.com wrote: Use Database Online table for user sessions. 2009/8/27 Balasubramanyam A knowledge.wea...@gmail.com: Hello, I've written a simple application, where users need to login to access the features of the

Re: [PHP] user permissions

2009-08-27 Thread Phpster
On Aug 27, 2009, at 9:02 PM, Ben Dunlap bdun...@agentintellect.com wrote: Sort of. Create two tables a login table with user details and a specific field for a ROLE. Then create a roles table that lists the various permissions. I store this [8] This process is significantly simpler

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Phpster
On Aug 26, 2009, at 12:31 PM, David Stoltz dsto...@shh.org wrote: I'm using COM because I don't know what else to use ;-) Like I said, I'm new to PHP. Here is another way I communicate with the database, let me know if this is a better way (it requires a stored procedure): //Assign

Re: [PHP] Issue with the huge import script

2009-08-16 Thread Phpster
On Aug 15, 2009, at 9:15 PM, Devendra Jadhav devendra...@gmail.com wrote: Hi, I have to import data from one database to another, I have to import around 10(1Lac) records. First I need to check if the record is already imported or not and import only those records which are not

Re: [PHP] Another date exercise

2009-08-15 Thread Phpster
On Aug 15, 2009, at 3:57 PM, tedd t...@sperling.com wrote: Hi gang: Here's another exercise to consider. This is a date entry problem where the user can enter a date in various forms, but the return will be in a consistent format. For example, a user might enter a date in the form of:

Re: [PHP] Sending email w/ attachments

2009-08-11 Thread Phpster
On Aug 10, 2009, at 11:22 PM, Skip Evans s...@bigskypenguin.com wrote: Bastien Koert wrote: Use PHPMailer or one of the other classes available...makes life so much easier eric cartman Kick Ass!!! /eric cartman Yes! Wow! Was that a breeze! That class rocks! Thanks tons, Bastien!

Re: [PHP] Synchronizing autonumber fields

2009-08-11 Thread Phpster
On Aug 11, 2009, at 3:04 AM, Leidago !Noabeb leid...@googlemail.com wrote: Hi I have the following tables setup in MYSQL: Region 1 Region 2 HQ Tbl1 with autonumbered (PK) Tbl1 with autonumbered (PK) Tbl1

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread Phpster
On Aug 9, 2009, at 7:43 PM, John Butler govinda.webdnat...@gmail.com wrote: Hi sunday coders, I've been using this kind of logic on one PHP site I work on to display one thing or another depending on whether the form was submitted or not: and it works great on that site. But

Re: [PHP] Re: Buffered Logging?

2009-08-07 Thread Phpster
On Aug 7, 2009, at 9:25 PM, Waynn Lue waynn...@gmail.com wrote: Hey PHPers, We've been doing sampled logging to the database in our application for awhile, and now I'm hoping eventually to blow that out to a larger scale. I'm worried about the performance implications of logging to

Re: [PHP] Notification system

2009-08-07 Thread Phpster
On Aug 2, 2009, at 7:59 AM, Dušan Novaković ndu...@gmail.com wrote: Hi, Does anyone has any idea how to create notification system with combination of php, mysql and javascript. It should be something similar to facebook notification system (when someone make some action it should be

Re: [PHP] file upload question

2009-08-03 Thread Phpster
On Aug 3, 2009, at 7:04 AM, seb sebast...@triponthis.net wrote: Hey all, i am using move_upload function to upload files to the server, but i want to add a feature that will allow files to be archived that have been uploaded already. so, the problem is: i upload a file that i want

Re: [PHP] Clean break.

2009-07-31 Thread Phpster
On Jul 31, 2009, at 5:22 PM, Paul Halliday paul.halli...@gmail.com wrote: Whats the cleanest (I have a really ugly) way to break this: [21/Jul/2009:00:00:47 -0300] into: date=21/jul/2009 time=00:00:47 Caveats: 1) if the day is 10 the beginning of the string will look like

Re: [PHP] Can a range be passed to a query?

2009-07-31 Thread Phpster
On Jul 31, 2009, at 5:24 PM, Miller, Terion tmil...@springfi.gannett.com wrote: I'm still struggling with using ranges... Can they be passed to a query somehow... I have this so far but it pulls nothing: //Show all with $letter not between A and Z if ($ $result =

Re: [PHP] Language translation

2009-07-26 Thread Phpster
On Jul 25, 2009, at 9:37 PM, Skip Evans s...@bigskypenguin.com wrote: Hey all, We got a new project and language translation of content is a major priority. I've googled around and seen lots of options, but I'd like to hear from the list about more real world experiences about what

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-21 Thread Phpster
On Jul 21, 2009, at 3:12 PM, Guruprasad lgp171...@gmail.com wrote: Hi all, I have a doubt with creating and destroying sessions in PHP using session_destroy(). Supposing there is a PHP-based website hosted on a web server. Now I add another site that I developed using PHP on that web

Re: [PHP] Back from the dead with a racing question!

2009-07-18 Thread Phpster
On Jul 18, 2009, at 9:45 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-07-17 at 14:01 -0400, Bastien Koert wrote: On Fri, Jul 17, 2009 at 1:54 PM, Jason Pruimja...@jasonpruim.com wrote: On Jul 17, 2009, at 11:56 AM, Bastien Koert wrote: On Fri, Jul 17, 2009 at

Re: [PHP] Internal PHP caching methodology

2009-07-16 Thread Phpster
On Jul 16, 2009, at 5:50 PM, Daniel Kolbo kolb0...@umn.edu wrote: Hello, Call me a dreamer...but I got to ask. Is there any software for helping speed up PHP by utilizing internal PHP caching? I am not talking about the external php cache/header control. Smarty caching doesn't give

Re: [PHP] MySql Injection advice

2009-07-11 Thread Phpster
On Jul 10, 2009, at 10:12 PM, Haig Dedeyan hdede...@videotron.ca wrote: Hi everyone, I'm starting to experiment with an edit form and I am seeing the following behaviour: $fname = mysql_real_escape_string($fname); $lname = mysql_real_escape_string($lname); $sql = UPDATE phonedir

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Phpster
On Jul 10, 2009, at 5:25 PM, workerho...@studysite.eu workerho...@studysite.eu wrote: first thanks to all who have read ;-) your solution looks like the method how i done it actually, i have tested the last hours the solution with sql lite on application server the Solution: 3

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

2009-07-09 Thread Phpster
On Jul 9, 2009, at 5:50 PM, Govinda govinda.webdnat...@gmail.com wrote: The atmosphere is weird now so you all may think I am out there. . but this is a sincere question- (and not due to dumb oversight of my HTML code) I have a mysterious f character (Yes, just the letter f )

Re: [PHP] is there a way to get more info about *why* the initial (DB PEAR) connect to db is failing?

2009-07-03 Thread Phpster
On Jul 3, 2009, at 7:31 PM, Govinda govinda.webdnat...@gmail.com wrote: my code: require 'DB.php'; // $db=DB::connect('db_program://user:passw...@hostname/database'); if (DB::isError($db)) { die(Can't connect: . $db-getMessage ()); } is returning: Can't connect: DB Error:

Re: [PHP] Select and compare problems still ...

2009-07-01 Thread Phpster
On Jul 1, 2009, at 10:56 AM, Miller, Terion tmil...@springfi.gannett.com wrote: Why doesn't this work? $query = SELECT * FROM `restaurants` WHERE name ='$ucName' AND address = '$ucAddress' ; $result = mysql_query($query) or die(mysql_error()); echo $result; $row =

Re: [PHP] check a variable after EACH function

2009-06-30 Thread Phpster
On Jun 30, 2009, at 10:48 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 30, 2009 at 06:31:54PM -0500, Flint Million wrote: This might seem silly but here's what I'm trying to do Suppose I have some kind of check variable - say for example $abort_now. Or it could be a

Re: [PHP] Cleaning up automatically when leaving a page

2009-06-30 Thread Phpster
On Jun 30, 2009, at 10:59 PM, Paul M Foster pa...@quillandmouse.com wrote: On Tue, Jun 30, 2009 at 06:38:19PM -0700, Mary Anderson wrote: Hi all, I have a php application for which I have a page which creates temporary junk and puts it into a persistent store (in this case a

Re: [PHP] mysql_query blocking

2009-06-27 Thread Phpster
Bastien Sent from my iPod On Jun 27, 2009, at 4:13 PM, Daniel Kolbo kolb0...@umn.edu wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 15:15 -0400, Daniel Kolbo wrote: Hello, When a MySQL table is locked a

Re: [PHP] mysql_query blocking

2009-06-27 Thread Phpster
On Jun 27, 2009, at 7:17 PM, Daniel Kolbo kolb0...@umn.edu wrote: Phpster wrote: Bastien Sent from my iPod On Jun 27, 2009, at 4:13 PM, Daniel Kolbo kolb0...@umn.edu wrote: Ashley Sheridan wrote: On Sat, 2009-06-27 at 16:03 -0400, Daniel Kolbo wrote: Ashley Sheridan wrote: On Sat

Re: [PHP] Re: Periodic Actions in PHP?

2009-06-13 Thread Phpster
On Jun 13, 2009, at 9:11, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Parham Doustdar at 13/06/09 09:42 did gyre and gimble: Hi there, I'm going to create a small chat script with PHP. The messages you want others to see will be added to a flat file (I.E. TXT file), and

Re: [PHP] how to manage permissions for file uploader

2009-06-03 Thread Phpster
This is fairly simple to do as an http upload. With the folder above the web root, it less if an issue since general users can't gain access, a script can do all the interaction needed. Plus you can chown the permissions with php Bastien Sent from my iPod On Jun 3, 2009, at 17:24, Lamp

Re: [PHP] PHP Security

2009-06-02 Thread Phpster
H, how about some details on OS, etc Bastien Sent from my iPod On Jun 2, 2009, at 17:26, Grant Peel gp...@thenetnow.com wrote: Hi all, I am currently setting up the next generation web server for our company and am in need of general consulting/advice on php set up security issues.

Re: [PHP] Why doesn't mySQL stop a query when the browser tab is closedL

2009-06-02 Thread Phpster
On Jun 2, 2009, at 21:13, Daevid Vincent dae...@daevid.com wrote: I just noticed a horrible thing. I have a query (report) that can take 15 minutes or more to generate with mySQL. We have 500 Million rows. This used to be done in real time when we had less rows, but recently we got a

Re: [PHP] Re: PHP vs ASP.NET

2009-06-01 Thread Phpster
That would be about it, unless you need a fancy GUI with all the bells and whistles Bastien Sent from my iPod On Jun 1, 2009, at 15:35, Tom Worster f...@thefsb.org wrote: assuming one had suitable hardware, what does it cost to start developing for asp? i guess you'd need to buy a copy of

Re: [PHP] mysql_query takes long time...

2009-05-31 Thread Phpster
You can also stack the queries to run multiple rows in one insert Insert into table values (row1col1, row1col2,'row1col3'), (row2col1,row2col2,'row2col3'),...(rowNcol1,rowNcol2,'rowNcol3') Bastien Sent from my iPod On May 31, 2009, at 8:18, דניאל דנון danondan...@gmail.com wrote: I've a

Re: [PHP] Create multipart email

2009-05-28 Thread Phpster
Use phpmailer, makes it simple Bastien Sent from my iPod On May 28, 2009, at 4:47, Guus Ellenkamp ellenkamp_g...@hotmail.com wrote: I'm trying to attach an uploaded file to an e-mail which I receive in Outlook. Neither the first part, nor the second part displays properly. The header

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Phpster
On May 11, 2009, at 16:01, Miller, Terion tmil...@springfi.gannett.com wrote: The error I get is from my INSERT statement It does insert the records up to C page though... The problem area: // Build your INSERT statement here $query = INSERT into warrants (wid, name,

Re: RES: [PHP] CURL problems still

2009-05-11 Thread Phpster
On May 11, 2009, at 17:53, Miller, Terion tmil...@springfi.gannett.com wrote: Bastien, could you give me an example of what you mean? would it be $Name = like that? Thanks for the ideas everyone! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Generating dynamic PDFs

2009-05-05 Thread Phpster
There are way too many php based options to even waste time with this. Bastien Sent from my iPod On May 5, 2009, at 17:54, O. Lavell olav...@xs4all.nl wrote: Kevin Kaiser wrote: [..] All you have to do is sign up for an API key, upload your document templates and POST data to our server.

Re: RES: [PHP] inexplicable behaviour

2009-04-26 Thread Phpster
What parameters are you pasing in the link? That will be the telling point of what you are doing wrong. You could pass the search params ( though these are best kept in a session or cookie ) and the offset counter to get the next block of results. Sorry for top posting. Bastien Sent from

Re: [PHP] Change color of anything in double/single quotes

2009-04-25 Thread Phpster
On Apr 25, 2009, at 13:40, Andrew Hucks andrewphpm...@gmail.com wrote: If I have something like $string = 'hello there'; (the word hello is in double quotes, if you can't see it), how would I output it as something like font color=colorhello/font there. -- PHP General Mailing List

  1   2   >