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 wrote: > Is it possible to build SoapClient as a loadable extension? For various > reasons, I don't want to have to recompile PHP from scratch. It would

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 wrote: > Ooooh, how about a pressure sensor on his seat??? Like the ones they have in > cars to make that little airbag light illumin

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

2010-09-13 Thread Phpster
On Sep 13, 2010, at 17:49, Tim Thorburn 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 work (and

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 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( >>"/]>/", >>"//" >> ); >> >> $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 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 it's set to insert,

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

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 wrote: > Hi List, > > > I'm looking for a chat support likes the livezilla. The livezilla is a great >

Re: [PHP] Security Issue

2010-06-07 Thread Phpster
On Jun 7, 2010, at 8:54 AM, Igor Escobar wrote: Hi Folks! The portal for which I work is suffering constant attacks that I feel that is PHP Injection. Somehow the hacker is getting to change the cache files that our system generates. Concatenating the HTML file with another that have a

Re: [PHP] image thumbnail from blob data

2010-06-06 Thread Phpster
On Jun 6, 2010, at 5:51 PM, Paul M Foster wrote: On Sun, Jun 06, 2010 at 09:55:20PM +0100, Ashley Sheridan wrote: Having said that, it's not generally a good idea to store images as blobs in my experience. It can create slowdowns in database access, and increases the amount of space

Re: [PHP] Credit Card encryption

2010-05-31 Thread Phpster
On May 31, 2010, at 1:24 AM, Paul M Foster wrote: On Sun, May 30, 2010 at 03:30:28PM -0400, Phpster wrote: 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 compliance are not something

Re: [PHP] Credit Card encryption

2010-05-30 Thread Phpster
On May 30, 2010, at 10:50 AM, tedd wrote: At 12:43 PM +0200 5/30/10, Peter Lind wrote: On 30 May 2010 07:49, Paul M Foster wrote: -snip- Does anyone have a better solution? I'm sorry if the following sounds a bit harsh, but in matters like these I prefer blunt directness. A few notes. 1

Re: [PHP] localize string (date)

2010-05-22 Thread Phpster
On May 22, 2010, at 12:07 PM, tedd 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 once said "We are

Re: [PHP] Displaying errors

2010-05-17 Thread Phpster
On May 17, 2010, at 1:18 AM, Rene Veerman wrote: On Sun, May 16, 2010 at 1:39 PM, Malka Cymbalista 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 does not get any error message on the screen. The

Re: [PHP] PHP Encoder like IonCube

2010-05-11 Thread Phpster
On May 11, 2010, at 8:36 PM, shiplu 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 configured it yet. Shi

Re: [PHP] PHP Encoder like IonCube

2010-05-10 Thread Phpster
On May 10, 2010, at 7:36 AM, Peter Lind wrote: On 10 May 2010 13:25, Ashley Sheridan wrote: On Mon, 2010-05-10 at 12:42 +0600, shiplu wrote: On Mon, May 10, 2010 at 6:28 AM, donald sullivan wrote: bcompiler is available, but with the correct tools data can still be extracted. http:/

Re: [PHP] Problem with IE7 caching

2010-05-07 Thread Phpster
On May 7, 2010, at 8:41 PM, Karl DeSaulniers 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 can't see it in IE

Re: [PHP] Problem with IE7 caching

2010-05-07 Thread Phpster
On May 7, 2010, at 8:06 PM, Charlene Wroblewski > 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, must-revalidate');> header('Ex

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:54 AM, Ashley Sheridan wrote: On Mon, 2010-04-26 at 07:58 -0400, Phpster wrote: On Apr 26, 2010, at 7:23 AM, Ashley Sheridan wrote: > On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: > >> On 26 April 2010 12:52, Ashley Sheridan >> wr

Re: [PHP] getting content exceprts from the database

2010-04-26 Thread Phpster
On Apr 26, 2010, at 7:23 AM, Ashley Sheridan wrote: On Mon, 2010-04-26 at 13:20 +0200, Peter Lind wrote: On 26 April 2010 12:52, Ashley Sheridan wrote: I've been thinking about this problem for a little while, and the thing is, I can think of ways of doing it, but they're not very ni

Re: [PHP] Replacing a special character

2010-04-18 Thread Phpster
On Apr 18, 2010, at 8:59 AM, Michael Stroh 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 − character with -

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" wrote: Hello, everyone, please answer me. Thank you. Does PHP support multi-thread ? -- PHP General Mailing Lis

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

2010-03-28 Thread Phpster
On Mar 28, 2010, at 2:45 PM, Nathan Rixham 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 / script is sit

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Phpster
Most if that stuff should only be in the db as a reference and when editing te lists. The actual user acessed data should sit in simple XML files that can be passed to the client, broken out by category or prod line. The reasons are simple, database access time is going to suck, no matter w

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 o

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 wrote: MEM wrote: Hello all, If possible, I would like to ask and have your help about the methods and procedures that

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 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 unsubscribe, visit: http://www.ph

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 wrote: On 23 February 2010 00:28, Daevid Vincent wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] On Mon, 2010-02-22 at 14:39 -0800, Don W

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

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 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 set up a server or do a

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 wrote: Hey guys, As many of you might know, i to

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 you

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 wrote: Phpster wrote: Yep, love those race conditions. We have them all over the app cuz the app ciders don't know shit! Mmmm... apple cider.

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 wrote: i haven't had the pleasure yet of writing for sites that generate so many hits/sec that they'd update t

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 wrote: On Tue, 2010-02-02 at 23:19 +0100, Rene Veerman wrote: function getMax($table, $field) If I saw this sort

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 wrote: Hey all, Anyone ever use the Magento shopping cart? Pluses, minuses, opinions? I have a client that

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
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 : I am trying

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 wrote: 2010/1/19 : I am trying for the first time to use cookies. The manual contains the statement "Cookies are part of the HTTP header, so setcookie() must be cal

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

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 wrote: On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings wrote: ... They almost always make your shit run faster. You know they make medicine for that? ;-) Andrew -- Tacos? Bastien Sent from my iPod -- PHP General Mailing List (http:

Re: [PHP] MySQL Increment/Decrement

2009-12-29 Thread Phpster
On Dec 29, 2009, at 3:10 AM, muzy 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: UPDATE table SET

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 wrote: Merry Christmas from Ottawa, Canada :) Errr... uh.. I mean +1 :D Rene Veerman wrote: +1 from Amsterdam :) & a happy, productive & profitable new year to all a ya. On

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" wrote: Good Day, I need help in in validating a form. The for is valdated be a javascript frist then if all th

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" wrote: Hi all. I'w writing a PHP app that is designed to run over a LAN, so internet connection for the

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" 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 PHP based and is eas

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 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 Mailing List (http://w

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 wrote: Hi, thanks for reading, I hope you can help: In my main file for

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 r> wrote: Hi people, I have some doubts abou

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 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 card into said "only cli

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 wrote: Good Morning all, Having a look at the time zone

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 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 privileges for them ..any sampl

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" 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 to my PHP script an

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 iPo

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

2009-11-09 Thread Phpster
On Nov 9, 2009, at 1:04 AM, leledumbo 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 external .js file. The problem i

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 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... so, we're all on boar

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 to

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 wrote: I am programming a shopping cart. So far I have used $_SESSION['order'][$reference]['quantity'] = 0; if the customer cha

Re: [PHP] Limit query/function time

2009-10-22 Thread Phpster
Have you run an explain plan on the query? Bastien Sent from my iPod On Oct 22, 2009, at 4:14 PM, Philip Thompson wrote: Hi all. I'm running into a random issue where sometimes it take several minutes (up to 10 or 15) to complete a query. According to 1 or 2 references, this may be a

Re: [PHP] French characters

2009-10-19 Thread Phpster
On Oct 19, 2009, at 9:29 AM, "Don" wrote: This doesn't not seem to be having an affect as the French characters are still written scrambled. "Mert Oztekin" wrote in message news:E2C046087E10D943811A0BD0A4E8316D1BD2E81C11@ ankara.anadolusigorta.pvt... You may use UTF-8 both in your code a

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 wrote: Can't you just use the 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 code you mean to run.

Re: [PHP] Web Site Directory Layout

2009-09-25 Thread Phpster
On Sep 25, 2009, at 6:50 PM, "Caner Bulut" 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 you to userheir l

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" 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 colomn would be so

Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread Phpster
On Sep 11, 2009, at 3:50 AM, Ashley Sheridan 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 will need to handle that

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 wrote: I assume that I can get increment

Re: [PHP] user permissions

2009-08-27 Thread Phpster
On Aug 27, 2009, at 9:02 PM, Ben Dunlap 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 when managing users, it's

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 wrote: Use Database Online table for user sessions. 2009/8/27 Balasubramanyam A : Hello, I've written a simple application, where users need to login to access the features of the application. I want to develop login system such that, i

Re: [PHP] user permissions

2009-08-27 Thread Phpster
On Aug 27, 2009, at 2:55 AM, "John" 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) Have a table w

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

2009-08-26 Thread Phpster
On Aug 26, 2009, at 12:31 PM, "David Stoltz" 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 the server conn

Re: [PHP] Issue with the huge import script

2009-08-16 Thread Phpster
On Aug 15, 2009, at 9:15 PM, Devendra Jadhav 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 imported. Here is my l

Re: [PHP] Another date exercise

2009-08-15 Thread Phpster
On Aug 15, 2009, at 3:57 PM, tedd 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: August 5, 2009 Aug

Re: [PHP] Synchronizing autonumber fields

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

Re: [PHP] Sending email w/ attachments

2009-08-11 Thread Phpster
On Aug 10, 2009, at 11:22 PM, Skip Evans wrote: Bastien Koert wrote: Use PHPMailer or one of the other classes available...makes life so much easier Kick Ass!!! Yes! Wow! Was that a breeze! That class rocks! Thanks tons, Bastien! I have to admit when I first saw your reply I

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 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 on another site it still works

Re: [PHP] Notification system

2009-08-07 Thread Phpster
On Aug 2, 2009, at 7:59 AM, Dušan Novaković 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 automatically reported

Re: [PHP] Re: Buffered Logging?

2009-08-07 Thread Phpster
On Aug 7, 2009, at 9:25 PM, Waynn Lue 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 our database on .

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Phpster
On Aug 6, 2009, at 5:02 PM, "Michael A. Peters" wrote: Ralph Deffke wrote: and a blob field in mysql is the right thing, however u have to have a little php scrip, however with a .png extention to get the browser displaying the picture. What is the advantage to storing an image in th

Re: [PHP] file upload question

2009-08-03 Thread Phpster
On Aug 3, 2009, at 7:04 AM, seb 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 to "upgrade" and move the

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" > 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 = mysql_query($sql) or die(mysql_error

Re: [PHP] Clean break.

2009-07-31 Thread Phpster
On Jul 31, 2009, at 5:22 PM, Paul Halliday 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 "[1/... 2) the "-0300" will d

Re: [PHP] Language translation

2009-07-26 Thread Phpster
On Jul 25, 2009, at 9:37 PM, Skip Evans 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 some of you found and wh

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

2009-07-21 Thread Phpster
On Jul 21, 2009, at 3:12 PM, Guruprasad 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 server using virtualho

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 wrote: On Fri, 2009-07-17 at 14:01 -0400, Bastien Koert wrote: On Fri, Jul 17, 2009 at 1:54 PM, Jason Pruim wrote: On Jul 17, 2009, at 11:56 AM, Bastien Koert wrote: On Fri, Jul 17, 2009 at 11:51 AM, tedd wrote: At 11:12 AM -0400 7/17/0

Re: [PHP] Internal PHP caching methodology

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

Re: [PHP] MySql Injection advice

2009-07-11 Thread Phpster
On Jul 10, 2009, at 10:12 PM, Haig Dedeyan 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 SET fname = '$fname',l

Re: [PHP] mysql cache query as xml

2009-07-10 Thread Phpster
On Jul 10, 2009, at 5:25 PM, "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 Mysql Server ( 1 more to han

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

2009-07-09 Thread Phpster
On Jul 9, 2009, at 5:50 PM, Govinda 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 " ) appearing in my HTML between t

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 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: connect failed" Any advi

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

2009-07-01 Thread Phpster
On Jul 1, 2009, at 10:56 AM, "Miller, Terion" > 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 = mysql_fetch_array ($result); $s

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 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 postgres database, but that is

Re: [PHP] check a variable after EACH function

2009-06-30 Thread Phpster
On Jun 30, 2009, at 10:48 PM, Paul M Foster 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 function. Something to be

Re: [PHP] mysql_query blocking

2009-06-27 Thread Phpster
On Jun 27, 2009, at 7:17 PM, Daniel Kolbo wrote: Phpster wrote: Bastien Sent from my iPod On Jun 27, 2009, at 4:13 PM, Daniel Kolbo 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

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 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 php call of mysql

Re: [PHP] Periodic Actions in PHP?

2009-06-14 Thread Phpster
Sleep(). ? Bastien Sent from my iPod On Jun 14, 2009, at 13:52, "Parham Doustdar" wrote: Actually, your message sparked an idea in my [slow] mind. :) I can put the PHP code in a java script, and tell javascript to call it every fifteen seconds. Best option, I think. :) Any ideas? Thanks!

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

2009-06-13 Thread Phpster
On Jun 13, 2009, at 9:11, Colin Guthrie 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 read and displayed by PH

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 Li

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" 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 big dump of data

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" 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. Any one with kno

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 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 some windows se

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, דניאל דנון wrote: I've a file of about 500,000

  1   2   >