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 > > 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 > > than decemb

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

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,

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', > ));

Re: [PHP] Apache

2013-09-24 Thread Ashley Sheridan
"Domain 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! > &

Re: [PHP] Apache

2013-09-24 Thread Ashley Sheridan
"Domain 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: >> >

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 s

Re: [PHP] jquery fill select option value

2013-09-22 Thread Ashley Sheridan
iccsi wrote: > > -- > BMW > Audi > > >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 it possible to do, if yes, any hint or example >code at >server site is appreciated, > >Your help and inf

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 s

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 ( phpinfo(); ?> would be

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

Re: [PHP] Re: Permissions

2013-08-26 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 St

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 wrote: > > >> in my opinion, that would be like asking "how big is the internet?". > > > > http://www.washingtonpost.com/blogs/the-switch/wp/2013/08/18/heres-what-you-find-when-you-scan-the-entire-inte

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Ashley Sheridan
Tedd Sperling 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?) > >Here are

Re: [PHP] Mysqli Extension

2013-08-19 Thread Ashley Sheridan
Matijn Woudt wrote: >On Mon, Aug 19, 2013 at 8:55 PM, Ashley Sheridan >wrote: > >> >> >> Curtis Maurand wrote: >> > >> > >> >Ethan Rosenberg wrote: >> >> Dear List - >> >> >> >> My >> >

Re: [PHP] Mysqli Extension

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

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 rele

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 21:02 +0100, Stuart Dallas wrote: > On 7 Aug 2013, at 20:45, "Brian Smither" 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 that info

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. > > Concept

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

2013-08-04 Thread Ashley Sheridan
Matijn Woudt wrote: >On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan >wrote: > >> >> >> Farzan Dalaee wrote: >> > >> > >> >> On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: >> >>> >> >>> You mean whe

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

2013-08-04 Thread Ashley Sheridan
Farzan Dalaee 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 my iPho

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

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] > > Because of the way the list is set

[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] Thanks, Ash http://www.ashleysheridan.co.uk

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, Mat

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: > >> > >> Your name: > >> Your age: > >> > >> In the PHP tutorial manual, it says that we can have post > >> action to the form itself just like above codi

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?

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

2013-07-22 Thread Ashley Sheridan
; those projects ! I thought it's > > better to use Joomla I'll be grateful if you can give me an advice > > > thank you > > > - Forwarded Message - > From: Ashley Sheridan > To: elk dolk > Cc: "php-general@lists.php.net&quo

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 XAM

Re: [PHP] strlen ?

2013-07-05 Thread Ashley Sheridan
Jim Giner 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 value and inser

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" wrote: >2013/7/5 Stuart Dallas > >> On 5 Jul 2013, at 15:05, Karl-Arne Gjersøyen >wrote: >> >> > 2013/7/5 Stuart Dallas >> > >> >> On 5 Jul 20

Re: [PHP] newbie PDO query display question

2013-06-16 Thread Ashley Sheridan
dealTek wrote: > >On Jun 16, 2013, at 3:37 PM, Stephen 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 = $dbh->prepare($SQL); >>$stm

Re: [PHP] Using Table prefixes

2013-06-08 Thread Ashley Sheridan
dealTek 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" wrote: >Well I think it depends. >When the image is part of the website, lik

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

2013-05-29 Thread Ashley Sheridan
Matijn Woudt wrote: >On Wed, May 29, 2013 at 10:51 PM, Sebastian Krebs >wrote: > >> >> >> >> 2013/5/29 Matijn Woudt >> >>> On Wed, May 29, 2013 at 6:08 PM, Sean Greenslade >>> >wrote: >>> >>> > On Wed, May 29, 2013 at 9:57 AM, Jonesy wrote: >>> > > On Tue, 28 May 2013 14:17:06 -0700, Daevid V

Re: [PHP] Random

2013-05-24 Thread Ashley Sheridan
Last Hacker Always onpoint wrote: >I needed something like this echo(rand(1,30)) > >On 5/24/13, Last Hacker Always onpoint 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 wrote: >>> On Thu, May 23, 2013 at

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

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

Re: [PHP] undef func

2013-05-10 Thread Ashley Sheridan
James Yerge wrote: >On 05/10/2013 06:08 PM, Gabriel Ricci wrote: >> pear isntall php-dev >> >> >> Att. >> >> Gabriel Ricci >> >> >> Website >> Follow @gabrielricci >> Facebook profile

RE: [PHP]

2013-05-08 Thread Ashley Sheridan
Steven Staples 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 now? > >F

Re: [PHP] FW:

2013-05-08 Thread Ashley Sheridan
Dan Joseph 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 my Androi

Re: [PHP] Re: generate onfly PDF

2013-05-05 Thread Ashley Sheridan
Tim Behrendsen 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 for years. I

Re: [PHP] generate onfly PDF

2013-05-04 Thread Ashley Sheridan
Rafnews 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 without such l

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread Ashley Sheridan
tamouse mailing lists wrote: >On Sat, Apr 20, 2013 at 1:51 PM, Angela Barone > 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 this is, if someone adds extra code after th

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 wrote: >On Mon, Apr 15, 2013 at 11:17 AM, Jonathan Sundquist > wrote: >> >> >> >> On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell > >> wrote: >>> >>> I have a client that has an app the runs with PHP 5.1.6. They

Re: [PHP] webform spam prevention

2013-04-04 Thread Ashley Sheridan
On 4-4-2013 14:27, tamouse mailing lists wrote: > > > >> On Apr 4, 2013 3:57 AM, "Ashley Sheridan" > >> wrote: > >> > >>> > >>> One type I've seen (and use myself) which is gaining traction is that of > >>> >

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Ashley Sheridan
Ninad. > > On 04/04/2013 04:41 PM, 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

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 f

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 wrote: > > > Hi, > > > > I am using httpd as a web server with default configuration

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 0

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 wrote: > > On Wed, Apr 3, 2013 at 7:33 PM, tamouse mailing lists > > wrote: > >> > >> These folks might have direction for you: http://te

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

2013-03-27 Thread Ashley Sheridan
Kevin Peterson 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 standalone PHP parsers

Re: [PHP] Session variable not persisting

2013-03-18 Thread Ashley Sheridan
"Éric Oliver Paquette" 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 > wrote: >>> >>> Le 2013-03-18 à 15:24, Éric Oliver Paquette a écrit : >>>

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" wrote: > > > > On Fri, 2013-03-15 at 22:32 -0400, Andrew Ballard wrote: > >> > >> > Guess regex are the only useful solution here. When you c

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

Re: [PHP] variable type - conversion/checking

2013-03-15 Thread Ashley Sheridan
tamouse mailing lists wrote: >On Fri, Mar 15, 2013 at 4:00 PM, Ashley Sheridan >wrote: > >> ** >> On Fri, 2013-03-15 at 04:57 -0500, tamouse mailing lists wrote: >> >> On Fri, Mar 15, 2013 at 3:55 AM, Peter Ford >wrote: >> > On 15/03/13 06:21, Jim

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

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 > > > 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: [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 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 wrote: > >>> > On 03/14/20

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

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" > wrote: > > > I'm

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

2013-03-11 Thread Ashley Sheridan
Gary 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 r

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 u

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 setcook

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. > > >> > > >>

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 cooki

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Ashley Sheridan
Angela Barone wrote: >Hello, > > I have a script that counts hits to all the pages in my site and >emails me a report nightly. However, it also counts my visits to my >site, and when I'm coding, I'm hitting a lot of my pages, repeatedly. >I'd like to find a way to not count my page visi

Re: [PHP] Stupid question

2013-02-26 Thread Ashley Sheridan
Daniel Brown wrote: >On Tue, Feb 26, 2013 at 4:27 PM, Curtis Maurand >wrote: >> I have the following: >> >> $dsn = "mysqli://$username:$password@$hostname2/$database"; >> $options = array( >> 'debug' => 3, >> 'result_buffering' => false, >> ); >> $dbh =& MDB2::factory($dsn, $option

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 wrote: > >> > >>> I cannot find button2 in phpinfo() when I click it. I was hoping to > >>> find > >>> a $_POST["button2"] value. > >>> What am I doing wro

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 when submitted creates a new form with the textarea > >> da

Re: [PHP] phpinfo()

2013-02-19 Thread Ashley Sheridan
John Taylor-Johnston 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? > >onclick="formSubmit()"> > >I really wanted to use a button to pass a different condition than a > Use a different value or name on the

Re: [PHP] Undefined Variables

2013-02-14 Thread Ashley Sheridan
Roman Gelfand 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 performance hit with al

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 wrote: > > On Sun, 2013-01-27 at 03:45 -0600, tamouse mailing lists wrote: > > > >> On Sun, Jan 27, 2013 at 3:10 AM, jupiter wrote: > >> > Hi, > >> > > >> >

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 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)) to conne

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: [P

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 wrote: > > > > > > > > > > >From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > >Sent: Saturday, January 12, 2013 10:03 AM > >To: admin > >Cc: 'Rick

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

2013-01-12 Thread Ashley Sheridan
admin 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 > > &

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

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 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 a CMS?

Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
Silvio Siefke wrote: >Hello, > >On Sat, 05 Jan 2013 17:21:05 +0000 >Ashley Sheridan 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

Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
Silvio Siefke wrote: >Hello, > >On Sat, 05 Jan 2013 14:52:12 +0000 >Ashley Sheridan 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 >&g

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 wrote: > > > I'm not sure quite what you'd expect such a module to do? Is this for > > templating? > > page2 creates complete we

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 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 you'd expect s

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

Re: [PHP] Shopping Cart Discount System

2012-12-31 Thread Ashley Sheridan
Karl DeSaulniers 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 am having trou

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" wrote: > >> > >> Thanks for all the posts. After reading and googling all afternoon, I > > think the best approach for me is: > >> > >> Create two ma

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 > wrote: > > > On 12/13/2012 10:56 AM, Bastien wrote: > > > >> > >> > >> Bastien Koert > >> > >> On 2012-12-13, at 9:10 AM, Jim Giner > >> wrote: > >> > >> Thanks for the input gentlemen. Two o

Re: [PHP] Re: preg_replace question

2012-12-12 Thread Ashley Sheridan
Maciek Sokolewicz 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, semi-colons and a >lot >> of o

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 > wrote: > > On Tue, 2012-12-11 at 08:46 -0400, Paul Halliday wrote: > > > Hi, > > > > I have a form that has us

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

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 > > > php csv importer script It s

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 > > ) > > > > > > > $row['promo_code_prefix'] = 42; > > $row['promo_code_su

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

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 wrote: > > > >> On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan > >> wrote: > >>> > >>> &

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,

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 > > wrote: > >> I have a php script that has been triggered by my hoster's cron process(?) > >> to run once a day since last March. It's been running f

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

Re: [PHP] Re: User Timezone

2012-10-21 Thread Ashley Sheridan
Karl DeSaulniers 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

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 choic

  1   2   3   4   5   6   7   8   9   10   >