Re: [PHP] If date is greater than

2013-10-20 Thread Ashley Sheridan
On Sun, 2013-10-20 at 00:00 -0400, Bastien wrote: Thanks, Bastien On Oct 19, 2013, at 10:44 PM, John Taylor-Johnston jt.johns...@usherbrooke.ca wrote: I have date strings in my mysql db. -mm-dd. I want to parse to see if the date is greater than november 2011 and less

Re: [PHP] date time problem

2013-10-06 Thread Ashley Sheridan
On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote: Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you will need to manually convert those seconds to what you desire (minutes = seconds / 60), (hours = minutes / 60), etc.. Aziz On Sun, Oct 6,

Re: [PHP] Algorithm Help

2013-10-01 Thread Ashley Sheridan
On Tue, 2013-10-01 at 15:09 -0400, Aziz Saleh wrote: DB or flatfile? I would create a matrix of all kids crossed with every kid. Everytime a kid is put in a home with another kid, ++ that index. When dispatching kids, sort by index ASC. Aziz On Tue, Oct 1, 2013 at 3:01 PM, John

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Ashley Sheridan
On Sun, 2013-09-29 at 12:30 -0400, Tim Dunphy wrote: Hi All, I am attempting to delete an empty S3 bucket using the AWS PHP SDK. Here's how they describe the process in the docs: $result = $client-deleteBucket(array( // Bucket is required 'Bucket' = 'string', )); You

Re: [PHP] Apache

2013-09-24 Thread Ashley Sheridan
Domain nikha.org m...@nikha.org wrote: Ashley Sheridan am Montag, 23. September 2013 - 21:35: No, no, no! That is not a good stand-in for fundamental security principles! This is a better method for ensuring an image is really an image: ?php if(isset($_FILES['file'])) { list

Re: [PHP] Apache

2013-09-24 Thread Ashley Sheridan
Domain nikha.org m...@nikha.org wrote: Ashley Sheridan am Dienstag, 24. September 2013 - 18:22: In an earlier email I detailed some methods for validating other types, such as DomDocument for HTML, XML, svg, etc, or fpdf for PDF. Fine, gratulations! And on behalf images: GD you are using

Re: [PHP] Apache

2013-09-23 Thread Ashley Sheridan
On Mon, 2013-09-23 at 20:36 +0200, Domain nikha.org wrote: Stuart Dallas am Montag, 23. September 2013 - 12:58: And, honestly, who would have a PHP file per language? I think it's perfectly reasonable to not allow that, because duplicating PHP code across many files is an incredible stupid

Re: [PHP] jquery fill select option value

2013-09-22 Thread Ashley Sheridan
iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option /select I use above code to have my select drop down on the form and would like to use jQuery to fill option value on change event. I would like know is

Re: [PHP] Friday's Question

2013-09-21 Thread Ashley Sheridan
On Sat, 2013-09-21 at 11:07 +1000, Daniel wrote: 25 network admin and programmer and yes I use a mouse pad - my mouse hates me if I dont use it. -- Regards, Daniel Fenn 29 and don't use a mouse pad right now, although I did before I moved because the surface of my desk was too shiny.

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Ashley Sheridan
On Thu, 2013-09-19 at 16:14 +0200, Arno Kuhl wrote: Arno: If you can request that file using a web browser, and it gets executed as PHP on your server then there is an error in the Apache configuration. Easy test: create a file in a text editor containing some PHP (?php phpinfo(); ? would

Re: [PHP] char set ?

2013-09-07 Thread Ashley Sheridan
On Sat, 2013-09-07 at 18:21 +0200, georg chambert wrote: This Q is possibly rather HTML (is there a good list for that...) anyways; Im in Sweden, and have done som pages with Swedish text, however our special (weird) characters åäö comes out wrong when displayd in browser, would be nice

Re: [PHP] Re: Permissions

2013-08-27 Thread Ashley Sheridan
On Tue, 2013-08-27 at 16:16 +0930, David Robley wrote: Ethan Rosenberg wrote: Dear List - Tried to run the program, that we have been discussing, and received a 403 error. rosenberg:/var/www# ls -la StoreInventory.php -rwxrwxrw- 1 ethan ethan 4188 Aug 26 20:26

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Ashley Sheridan
Tedd Sperling t...@sperling.com wrote: Hi guys: A teacher at my college made the statement that JAVA for Web Development is more popular than PHP. Where can I go to prove this right or wrong -- and/or -- what references do any of you have to support your answer? (sounds like a teacher, huh?)

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Ashley Sheridan
On Tue, 2013-08-20 at 21:44 +0100, Stuart Dallas wrote: On 20 Aug 2013, at 21:30, Dan Munro d...@danmunro.com wrote: in my opinion, that would be like asking how big is the internet?.

Re: [PHP] Mysqli Extension

2013-08-19 Thread Ashley Sheridan
Curtis Maurand cur...@maurand.com wrote: Ethan Rosenberg wrote: Dear List - My mysqli extension seems to have gone away. $host = 'localhost'; $user = 'root'; $password = 'SdR3908'; echo hello2br /; var_dump(function_exists('mysqli_connect'));// this returns boo(false) $db =

Re: [PHP] Mysqli Extension

2013-08-19 Thread Ashley Sheridan
Matijn Woudt tijn...@gmail.com wrote: On Mon, Aug 19, 2013 at 8:55 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Curtis Maurand cur...@maurand.com wrote: Ethan Rosenberg wrote: Dear List - My mysqli extension seems to have gone away. $host = 'localhost'; $user

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
On Wed, 2013-08-07 at 13:11 -0600, Brian Smither wrote: Second go around: I have a situation where, for some unknown reason, where each class that finishes its __contruct{} function, that class gets automatically assigned to a variable - other than the variable I specify. Conceptually

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
On Wed, 2013-08-07 at 21:02 +0100, Stuart Dallas wrote: On 7 Aug 2013, at 20:45, Brian Smither bhsmit...@gmail.com wrote: I cannot replicate this. I don't expect anyone to be able to replicate this behavior. The example shows an extraordinarily stripped-down sequence of statements

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
I have two dozen classes in this application. In every case, there will be a variable, the name of which is a lowercase variant of the class name, to which is assigned an instance of the class, when the class's construct() function completes. The example informs you of this. Actually, as

Re: [PHP] Class Auto-Assigning to Variable

2013-08-07 Thread Ashley Sheridan
On Wed, 2013-08-07 at 19:02 -0600, Brian Smither wrote: Your example does _not_ show this, it works as expected and throws a notice, from which can be inferred there is other code doing this Or relevant code having a side-effect not currently realized. No, you just didn't post relevant

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: You mean when user logged in i add new record to table and when logged out i delete the row? So if user close the browser without logout how can i find user is online or not? Sent from my iPhone On Aug 4, 2013, at 14:44, Matijn

[PHP] What the hell is Begacom?

2013-08-04 Thread Ashley Sheridan
And why everytime I reply to the list am I getting an automated reply from this email address Belgacom Webteam [no-reply] supp...@skynet.be Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] What the hell is Begacom?

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 12:27 +0100, Lester Caine wrote: Ashley Sheridan wrote: And why everytime I reply to the list am I getting an automated reply from this email address Belgacom Webteam [no-reply]supp...@skynet.be Because of the way the list is set up ... We all get every bounce

Re: [PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
On Sun, 2013-08-04 at 13:27 +0100, Tim Streater wrote: On 04 Aug 2013 at 11:28, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Like Matijn said, unless you're using some kind of client-side method to continually poll the server, you can't know if they've just closed their browser

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
Farzan Dalaee farzan.dal...@gmail.com wrote: On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: You mean when user logged in i add new record to table and when logged out i delete the row? So if user close the browser without logout how can i find user is online or not? Sent from

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Ashley Sheridan
Matijn Woudt tijn...@gmail.com wrote: On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: Farzan Dalaee farzan.dal...@gmail.com wrote: On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: You mean when user logged in i add new record to table and when

Re: [PHP] POST action

2013-07-28 Thread Ashley Sheridan
On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: form action=action.php method=post pYour name: input type=text name=name //p pYour age: input type=text name=age //p pinput type=submit //p /formIn the

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Ashley Sheridan
On Mon, 2013-07-22 at 12:18 -0700, elk dolk wrote: Hi all, I want to build a website using Joomla 2.5 . It should have 5 pages: index.php pageOne.php pageTwo.php ... How can I get the php source code for those pages? I installed joomla 2.5 on my windows box and use XAMPP's

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Ashley Sheridan
be grateful if you can give me an advice thank you - Forwarded Message - From: Ashley Sheridan a...@ashleysheridan.co.uk To: elk dolk elkd...@yahoo.com Cc: php-general@lists.php.net php-general@lists.php.net Sent: Monday, July 22, 2013 11:45 PM Subject: Re: [PHP] How to extract

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Ashley Sheridan
On Mon, 2013-07-22 at 13:10 -0700, elk dolk wrote: I am allowed to use tools or code by hand , it does not matter ,the professor wants to have the source code. You say tools, but would he consider a full-blown complex CMS as merely a tool, or not? At

Re: [PHP] Can this work?

2013-07-05 Thread Ashley Sheridan
Can't you just use a number field, which is a hell of a lot easier (especially on an iPad) to use than a bunch of select lists. Karl-Arne Gjersøyen karlar...@gmail.com wrote: 2013/7/5 Stuart Dallas stu...@3ft9.com On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen karlar...@gmail.com wrote:

Re: [PHP] strlen ?

2013-07-05 Thread Ashley Sheridan
Jim Giner jim.gi...@albanyhandball.com wrote: On 7/5/2013 3:02 PM, Stephen wrote: On 13-07-05 02:50 PM, Jim Giner wrote: Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply grabs the post

Re: [PHP] newbie PDO query display question

2013-06-16 Thread Ashley Sheridan
dealTek deal...@gmail.com wrote: On Jun 16, 2013, at 3:37 PM, Stephen stephe...@rogers.com wrote: Here is a sample from my code: $photo_category_list = ; $SQL = SELECT category_id, category_name FROM gallery_category ORDER by category_order; try { $stmt =

Re: [PHP] Using Table prefixes

2013-06-08 Thread Ashley Sheridan
dealTek deal...@gmail.com wrote: Hi all, I can see the basic need for a table prefix in a case where you may use one mysql database for several projects at once so as to distinguish tables per project like... Project 1 mysales_contacts mysales_invoices etc and jobs_contacts jobs_invoices

Re: [PHP] browser rendering

2013-06-02 Thread Ashley Sheridan
Width and height parameters on an image aren't required in HTML, it's preferred to use CSS. If different browsers are displaying the image at different sizes I'd look at the browser zoom level maybe. Daniel Pöllmann poellmann.dan...@gmail.com wrote: Well I think it depends. When the image is

Re: [PHP] Re: need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Ashley Sheridan
Matijn Woudt tijn...@gmail.com wrote: On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs krebs@gmail.comwrote: 2013/5/29 Matijn Woudt tijn...@gmail.com On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade zootboys...@gmail.com wrote: On Wed, May 29, 2013 at 9:57 AM, Jonesy

Re: [PHP] Random

2013-05-24 Thread Ashley Sheridan
Last Hacker Always onpoint lasthack...@gmail.com wrote: I needed something like this echo(rand(1,30)) On 5/24/13, Last Hacker Always onpoint lasthack...@gmail.com wrote: okay thanks tamouse and others you think am not on point hmmm? I'll show you i am. On 5/24/13, tamouse mailing lists

Re: [PHP] ODBC

2013-05-19 Thread Ashley Sheridan
On Sun, 2013-05-19 at 17:06 +0200, georg wrote: Actually who the heck has put SELinux in my machine ? anyone knows (is this a part of fedora ?) /g SELinux is part of Fedora install. You can disable it (not recommended) or just follow one of the options it gives you depending on what you

Re: [PHP] undef func - any more clues ?

2013-05-11 Thread Ashley Sheridan
On Sat, 2013-05-11 at 11:36 +0200, georg wrote: Hi again, is there any more clues to how Apache/PHP would get hold of ODBC libraries ? (( summery; Im a bit new to linux (here Fedora 17) so Im not sure of how these entities get hold of each other; are they linked into same module or are

Re: [PHP] undef func

2013-05-10 Thread Ashley Sheridan
James Yerge ja...@nixsecurity.org wrote: On 05/10/2013 06:08 PM, Gabriel Ricci wrote: pear isntall php-dev Att. Gabriel Ricci Website http://gabrielricci.github.com Follow @gabrielricci http://www.twitter.com/gabrielricci Facebook profile

Re: [PHP] FW:

2013-05-08 Thread Ashley Sheridan
Dan Joseph dmjos...@gmail.com wrote: Yo, (And, no, PHP doesn't stand for Produced by Horses Ponies.) This is completely devastating Just noticed the original link has a nasty payload for android, I assume the same applies for other OSs (probably best not to check!) -- Sent from

RE: [PHP]

2013-05-08 Thread Ashley Sheridan
Steven Staples sstap...@mnsi.net wrote: So you're just lucky I didn't acronymize it as the Pretty House of Princesses or something. And yes, I just made up the word acronymize. It may be Wednesday, but it feels more like a Friday. Why does this feel like a new function/feature for PHP

Re: [PHP] Re: generate onfly PDF

2013-05-05 Thread Ashley Sheridan
Tim Behrendsen t...@behrendsen.com wrote: I have had outstanding success with wkhtmltopdf: https://code.google.com/p/wkhtmltopdf/ It's a self-contained standalone program that you can call from PHP. It uses a full-bodied HTML interpreter based on Webkit. Highly recommended, I've been using it

Re: [PHP] generate onfly PDF

2013-05-04 Thread Ashley Sheridan
Rafnews raf.n...@gmail.com wrote: Hi, Is there a solution to generate onfly PDF from HTML page, and from data user typed in form (let's say like a template) without using PECL ? i read that is hosting does not allow such extension, we can not generate PDF, so i would rather get a solution

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread Ashley Sheridan
tamouse mailing lists tamouse.li...@gmail.com wrote: On Sat, Apr 20, 2013 at 1:51 PM, Angela Barone ang...@italian-getaways.com wrote: I've written a script that logs all visits to a web site, complete with referrer and IP address. It also logs all 4xx errors. What I'd like to add to

Re: [PHP] timezone

2013-04-15 Thread Ashley Sheridan
You don't know which timezone the server is in? That's what it wants. Larry Martell larry.mart...@gmail.com wrote: On Mon, Apr 15, 2013 at 11:17 AM, Jonathan Sundquist jsundqu...@gmail.com wrote: On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell larry.mart...@gmail.com wrote: I have a

Re: [PHP] webform spam prevention

2013-04-04 Thread Ashley Sheridan
On Wed, 2013-04-03 at 20:32 -0500, tamouse mailing lists wrote: I'd love to learn how to do that WITHOUT A MOUSE On Wed, Apr 3, 2013 at 8:10 PM, jomali jomali3...@gmail.com wrote: On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: These folks might

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 15:55 +0530, Ninad wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM,

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first

Re: [PHP] webform spam prevention

2013-04-04 Thread Ashley Sheridan
, 2013 3:57 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: One type I've seen (and use myself) which is gaining traction is that of asking for a human type of response to a question, or have them perform a simple mathematical problem, where the numbers are replaced with something

Re: [PHP] What is an easiest way to port a PHP Web App to Android?

2013-03-27 Thread Ashley Sheridan
Kevin Peterson qh.res...@gmail.com wrote: I have a web application written in PHP. It have been running for several years. Now I want to run it as a stand-alone application on an Android smartphone or tablet. How can I do it? There are simple web servers you can run on Android, and also

Re: [PHP] Session variable not persisting

2013-03-18 Thread Ashley Sheridan
Éric Oliver Paquette eopaque...@gmail.com wrote: Le 2013-03-18 à 15:41, Éric Oliver Paquette a écrit : Le 2013-03-18 à 15:37, Matijn Woudt a écrit : On Mon, Mar 18, 2013 at 8:35 PM, Éric Oliver Paquette eopaque...@gmail.com wrote: Le 2013-03-18 à 15:24, Éric Oliver Paquette a

Re: [PHP] variable type - conversion/checking

2013-03-16 Thread Ashley Sheridan
On Fri, 2013-03-15 at 22:32 -0400, Andrew Ballard wrote: Guess regex are the only useful solution here. When you consider to use built-in functions, just remember, that for example '0xAF' is an integer too, but '42.00' isn't. Shoot...I hadn't considered how PHP might handle hex or octal

Re: [PHP] variable type - conversion/checking

2013-03-16 Thread Ashley Sheridan
On Sat, 2013-03-16 at 11:46 -0400, Andrew Ballard wrote: On Mar 16, 2013 6:14 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2013-03-15 at 22:32 -0400, Andrew Ballard wrote: Guess regex are the only useful solution here. When you consider to use built-in functions, just

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Ashley Sheridan
On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: On Fri, Mar 15, 2013 at 3:55 AM, Peter Ford p...@justcroft.com wrote: On 15/03/13 06:21, Jim Lucas wrote: On 3/14/2013 4:05 PM, Matijn Woudt wrote: On Thu, Mar 14, 2013 at 11:44 PM, Jim Lucas li...@cmsws.com wrote: On

Re: [PHP] PHP context editor

2013-03-15 Thread Ashley Sheridan
On Fri, 2013-03-15 at 12:05 +0100, Sebastian Krebs wrote: 2013/3/15 Karim Geiger gei...@b1-systems.de Hi Georg, On Thu, 2013-03-14 at 23:10 +0100, georg wrote: hello, annyone knows of some good PHP context editor freeware ? (tired of missing out on trivials like ; ) I don't

Re: FW: [PHP] Accessing Files Outside the Web Root

2013-03-15 Thread Ashley Sheridan
On Fri, 2013-03-15 at 09:11 -0400, Dale H. Cook wrote: At 09:44 PM 3/14/2013, tamouse mailing lists wrote: If you are delivering files to a (human) user via their browser, by whatever mechanism, that means someone can write a script to scrape them. That script, however, would have to be

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Ashley Sheridan
tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Mar 15, 2013 at 4:00 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: ** On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: On Fri, Mar 15, 2013 at 3:55 AM, Peter Ford p...@justcroft.com wrote: On 15/03/13 06:21

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-13 Thread Ashley Sheridan
On Wed, 2013-03-13 at 19:24 +0100, Marco Behnke wrote: Am 13.03.13 12:57, schrieb Gary: ma...@behnke.biz wrote: Do us all a favor abnd stay away from open source if you do not honor the work us wannabes put into it. As I said before I wasn't aware you would feel that the cap fitted.

Re: [PHP] Re: Generating CRUD code for normalized db

2013-03-11 Thread Ashley Sheridan
Gary listgj-phpgene...@yahoo.co.uk wrote: Ashley Sheridan wrote: In any case, you could probably take something you like from another framework if you have the time/inclination/capability. I honestly think I am simply going to write the shit myself. The CRUD pages, I mean. I see no reason

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Ashley Sheridan
On Mon, 2013-03-11 at 16:38 -0500, Jonathan Sundquist wrote: Since you already have the return statement with the if statement the else isn't required. If those three statements are true you would exit the call any ways On Mar 11, 2013 4:33 PM, Angela Barone ang...@italian-getaways.com

Re: [PHP] Generating CRUD code for normalized db

2013-03-08 Thread Ashley Sheridan
On Fri, 2013-03-08 at 15:02 +0100, Ali Reza Sajedi wrote: Try Symfony 2 Does anyone know of any framework that can generate CRUD code for normalized database tables? Preferably FOSS. I believe Cake has this, although you need to have your fields named in a certain way so that it

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
Angela Barone ang...@italian-getaways.com 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 find a way to

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
On Mon, 2013-03-04 at 10:15 -0800, Angela Barone wrote: On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote: set a cookie with a long life and check for that, discounting visits when either are true Hi Ash, I don't know anything about cookies. It sounds complicated to me

Re: [PHP] Re: Open form in new window

2013-03-04 Thread Ashley Sheridan
On Mon, 2013-03-04 at 15:22 -0500, Paul M Foster wrote: On Mon, Mar 04, 2013 at 06:58:41PM +0100, Matijn Woudt wrote: On Mon, Mar 4, 2013 at 6:10 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: You could echo HTML code e.g. Which is still purely

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
On Tue, 2013-03-05 at 10:19 +1030, David Robley wrote: Angela Barone wrote: On Mar 4, 2013, at 11:33 AM, Ashley Sheridan wrote: You can manually write a cookie on your machine, or use a special script that only you visit that contains a setcookie() call (it only need be set once). From

Re: [PHP] Stupid question

2013-02-26 Thread Ashley Sheridan
Daniel Brown danbr...@php.net wrote: On Tue, Feb 26, 2013 at 4:27 PM, Curtis Maurand cur...@maurand.com wrote: I have the following: $dsn = mysqli://$username:$password@$hostname2/$database; $options = array( 'debug' = 3, 'result_buffering' = false, ); $dbh =

Re: [PHP] stripped \n

2013-02-20 Thread Ashley Sheridan
On Wed, 2013-02-20 at 13:47 -0500, Jim Giner wrote: On 2/20/2013 1:32 PM, Matijn Woudt wrote: On Wed, Feb 20, 2013 at 7:16 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Hi, I have a textarea when submitted creates a new form with the textarea data in a

Re: [PHP] phpinfo()

2013-02-20 Thread Ashley Sheridan
On Wed, 2013-02-20 at 14:23 -0500, John Taylor-Johnston wrote: Design in Motion Webdesign wrote: John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I

Re: [PHP] phpinfo()

2013-02-19 Thread Ashley Sheridan
John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted to

Re: [PHP] Undefined Variables

2013-02-14 Thread Ashley Sheridan
Roman Gelfand rgelfa...@gmail.com wrote: Is there a performance hit when a variable is undefined? or, perhaps, aside from the obvious uncontrolled conditions, are there other impacts? Thanks in advance Aside from all the warnings and potential logic bombs? You will have a negligible

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread Ashley Sheridan
On Sun, 2013-01-27 at 03:45 -0600, tamouse mailing lists wrote: On Sun, Jan 27, 2013 at 3:10 AM, jupiter jupiter@gmail.com wrote: Hi, I have a client.php which calls an external python socket client program exec(Client.py), the Client.py calls sockobj.connect((localhost, 6))

Re: [PHP] What needs to configure to run php exec for socket connection?

2013-01-27 Thread Ashley Sheridan
On Sun, 2013-01-27 at 21:40 +1100, jupiter wrote: On 1/27/13, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sun, 2013-01-27 at 03:45 -0600, tamouse mailing lists wrote: On Sun, Jan 27, 2013 at 3:10 AM, jupiter jupiter@gmail.com wrote: Hi, I have a client.php which calls

RE: [PHP] Can't connect to MySQL via PHP

2013-01-13 Thread Ashley Sheridan
On Sun, 2013-01-13 at 11:37 -0800, admin wrote: -Original Message- From: tamouse mailing lists [mailto:tamouse.li...@gmail.com] Sent: Saturday, January 12, 2013 7:55 PM To: admin Cc: a...@ashleysheridan.co.uk; Rick Dwyer; php-general@lists.php.net Subject: Re: [PHP] Can't

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Ashley Sheridan
On Sat, 2013-01-12 at 12:56 -0800, admin wrote: -Original Message- From: Rick Dwyer [mailto:rpdw...@earthlink.net] Sent: Saturday, January 12, 2013 8:26 AM To: php-general@lists.php.net Subject: [PHP] Can't connect to MySQL via PHP Hello all. I used the code below

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Ashley Sheridan
admin ad...@buskirkgraphics.com wrote: From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Saturday, January 12, 2013 10:03 AM To: admin Cc: 'Rick Dwyer'; php-general@lists.php.net Subject: RE: [PHP] Can't connect to MySQL via PHP On Sat, 2013-01-12 at 12:56 -0800, admin

RE: [PHP] Can't connect to MySQL via PHP

2013-01-12 Thread Ashley Sheridan
On Sat, 2013-01-12 at 19:53 +, Ashley Sheridan wrote: admin ad...@buskirkgraphics.com wrote: From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Saturday, January 12, 2013 10:03 AM To: admin Cc: 'Rick Dwyer'; php-general@lists.php.net Subject: RE: [PHP] Can't

Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
On Sat, 2013-01-05 at 15:23 +0100, Silvio Siefke wrote: Hello, On Sat, 05 Jan 2013 07:53:04 + Ashley Sheridan a...@ashleysheridan.co.uk wrote: I'm not sure quite what you'd expect such a module to do? Is this for templating? page2 creates complete websites. Would be useful

Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
Silvio Siefke siefke_lis...@web.de wrote: Hello, On Sat, 05 Jan 2013 14:52:12 + Ashley Sheridan a...@ashleysheridan.co.uk wrote: I've just had a quick look at page2, and I can't say I see the point. You'd end up having to write a lot more code that was harder to manage by adding each

Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
Silvio Siefke siefke_lis...@web.de wrote: Hello, On Sat, 05 Jan 2013 17:21:05 + Ashley Sheridan a...@ashleysheridan.co.uk wrote: If the pages are already written, why do you want to start changing the way they've been built? 1.) All websites are created manually. (nano + html/css Tags

Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
On Sat, 2013-01-05 at 22:24 +0100, Silvio Siefke wrote: Hallo, On Sat, 5 Jan 2013 15:40:56 -0500 Tedd Sperling t...@sperling.com wrote: Not mine. What should me say this two words? You not use nano, ok. Editors enough on earth. Or you not write manually? Then share the way! Or use

Re: [PHP] Pear Page2

2013-01-04 Thread Ashley Sheridan
On Fri, 2013-01-04 at 20:44 -0600, tamouse mailing lists wrote: On Fri, Jan 4, 2013 at 8:18 PM, Silvio Siefke siefke_lis...@web.de wrote: Is there something similar to Pear/Page2 module, that can working with HTML5? Would phptal be of use? http://phptal.org/ I'm not sure quite what

Re: [PHP] Shopping Cart Discount System

2012-12-31 Thread Ashley Sheridan
Karl DeSaulniers k...@designdrumm.com wrote: Hello Everyone, Hope all are well. Quick and hopefully painless question. Is there any examples on how to build a discount system into your shopping cart out there that anyone knows of? I am using MySQL and PHP. I have built one of my own so far, but

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread Ashley Sheridan
On Mon, 2012-12-31 at 13:39 -0600, Nelson Green wrote: Hello, I have created a simple function that prints a personalized greeting by reading the greeting contents from a file. I pass the user's name to the function, and the function reads the file contents into a string variable. I am

Re: [PHP] storing searching docs

2012-12-15 Thread Ashley Sheridan
On Sat, 2012-12-15 at 12:21 -0500, Jim Giner wrote: On 12/15/2012 8:26 AM, tamouse mailing lists wrote: On Dec 13, 2012 4:50 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Thanks for all the posts. After reading and googling all afternoon, I think the best approach for me is:

Re: [PHP] storing searching docs

2012-12-13 Thread Ashley Sheridan
On Thu, 2012-12-13 at 18:41 +0100, Matijn Woudt wrote: On Thu, Dec 13, 2012 at 5:13 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 12/13/2012 10:56 AM, Bastien wrote: Bastien Koert On 2012-12-13, at 9:10 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Thanks for

Re: [PHP] Re: preg_replace question

2012-12-12 Thread Ashley Sheridan
Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string is filled with single quotes,

Re: [PHP] Storing passwords in session variables

2012-12-11 Thread Ashley Sheridan
On Tue, 2012-12-11 at 08:46 -0400, Paul Halliday wrote: Hi, I have a form that has username and password fields. While the form exists and contains various other fields the most common mode of operation is to have the form auto submit if it has enough arguments in the URL. So, someone is

Re: [PHP] Storing passwords in session variables

2012-12-11 Thread Ashley Sheridan
On Tue, 2012-12-11 at 08:58 -0400, Paul Halliday wrote: On Tue, Dec 11, 2012 at 9:02 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2012-12-11 at 08:46 -0400, Paul Halliday wrote: Hi, I have a form that has username and password

Re: [PHP] CSV importer tool

2012-11-27 Thread Ashley Sheridan
On Tue, 2012-11-27 at 23:03 +0100, Leandro Dardini wrote: Thank you, but I was looking for a cute code... letting the user to swap columns, ignore others, set the number of rows to initially jump, preview data... Leandro 2012/11/27 Jim Lucas li...@cmsws.com php csv importer script

Re: [PHP] Variables with - in their name

2012-11-18 Thread Ashley Sheridan
On Sun, 2012-11-18 at 01:37 -0700, Nathan Nobbe wrote: On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott ron.pigg...@actsministries.org wrote: I have made the following variable in a form: (I am referring the select ) ?php $row['promo_code_prefix'] = 42; $row['promo_code_suffix']

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 16:59 -0400, Jim Giner wrote: On 10/23/2012 4:56 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner jim.gi...@albanyhandball.com wrote: I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March.

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 17:12 -0400, Jim Giner wrote: On 10/23/2012 5:19 PM, Ashley Sheridan wrote: On Tue, 2012-10-23 at 16:59 -0400, Jim Giner wrote: On 10/23/2012 4:56 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner jim.gi...@albanyhandball.com

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown danbr...@php.net wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Crontab is the daemon which runs

Re: [PHP] cron job problem

2012-10-23 Thread Ashley Sheridan
On Tue, 2012-10-23 at 18:51 -0400, Jim Giner wrote: On 10/23/2012 6:57 PM, Ashley Sheridan wrote: On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown danbr...@php.net wrote: On Tue, Oct 23, 2012

Re: [PHP] PDO

2012-10-22 Thread Ashley Sheridan
On Mon, 2012-10-22 at 23:27 +0200, Silvio Siefke wrote: Hello, i have built php 5.4.7 on Ubuntu with the configure Arguments like on my Gentoo System. But on Gentoo run the website without Problems, under Ubuntu want not work. I become in error.log: [22-Oct-2012 21:15:00 UTC] PHP Fatal

Re: [PHP] Re: User Timezone

2012-10-21 Thread Ashley Sheridan
Karl DeSaulniers k...@designdrumm.com wrote: On Oct 21, 2012, at 5:01 AM, Maciek Sokolewicz wrote: On 21-10-2012 01:11, Karl DeSaulniers wrote: Thanks for the response. Yes, for the US I plan on calculating by state, but this website is not geared to just the US. So I am looking for a

RE: [PHP] foreach

2012-10-16 Thread Ashley Sheridan
On Tue, 2012-10-16 at 10:11 -0400, Steven Staples wrote: -Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] Steve, Please watch your language on this list. - Matijn My apologies, I guess using $foo == $bar would have been a better choice... I forget

  1   2   3   4   5   6   7   8   9   10   >