Re: [PHP] Beneficial site spamming framework

2012-10-15 Thread Ashley Sheridan
Daniel Brown wrote: >On Sat, Oct 13, 2012 at 5:10 PM, Ashley Sheridan > wrote: >> >> It was only your replies coming through so often, so I doubt its my >end. Also, the newsgroup is the same thing as the mailing list I >believe, in this instance. > >Hmm

Re: [PHP] Beneficial site spamming framework

2012-10-13 Thread Ashley Sheridan
Maciek Sokolewicz wrote: >On 13-10-2012 09:24, Ashley Sheridan wrote: >> I think it might be an issue with your email client/server, as this >one >> just came through 3 times too! >> > >That is very odd, because it only shows up once in the newsgroup, o

Re: [PHP] Beneficial site spamming framework

2012-10-13 Thread Ashley Sheridan
On Sat, 2012-10-13 at 08:57 +0200, Maciek Sokolewicz wrote: > On 13-10-2012 01:55, Ashley Sheridan wrote: > > On Fri, 2012-10-12 at 01:59 +0200, Maciek Sokolewicz wrote: > > > >> On 11-10-2012 22:18, Ashley Sheridan wrote: > >>>>> I've been get

Re: [PHP] Beneficial site spamming framework

2012-10-12 Thread Ashley Sheridan
On Fri, 2012-10-12 at 01:59 +0200, Maciek Sokolewicz wrote: > On 11-10-2012 22:18, Ashley Sheridan wrote: > >>> I've been getting spam comments on my personal blog (runs on > >>> self-written PHP blog software). I'd like to test some methods I've > &g

Re: [PHP] Beneficial site spamming framework

2012-10-11 Thread Ashley Sheridan
Joshua Kehn wrote: >while true; do curl -X POST --data "field=value&field1=value1" >http://myblog.com/comment.php; done > >Best, > >–Josh > >Joshua Kehn | @joshkehn >http://joshuakehn.com > >On Oct 11, 2012, at 4:07 PM, Paul M Foster >wrote: > >> Folks: >> >

Re: [PHP] Re: limiting

2012-10-10 Thread Ashley Sheridan
On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: > On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: > > On 10 Oct 2012 at 19:17, David McGlone wrote: > > > > > > >> > > >> > > >> BTW - in any of your other computer languages didn't they utilize a > > >> 'return' statement?

Re: [PHP] Re: limiting

2012-10-09 Thread Ashley Sheridan
Matijn Woudt wrote: >On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater >wrote: >> On 09 Oct 2012 at 20:46, Matijn Woudt wrote: >> >>> For example your previous post, you >>> could have just looked up what the 'echo' and 'return' statements do >>> in the PHP manual, and they are probably explaine

Re: RES: [PHP] Re: {ATTENTION} Re: [PHP] base64_decode

2012-10-02 Thread Ashley Sheridan
On Tue, 2012-10-02 at 15:04 -0300, Samuel Lopes Grigolato wrote: > Another way to decode and inspect such data is to use utilities like: > http://www.motobit.com/util/base64-decoder-encoder.asp > > By the way, never saw before this kind of sloppy irritating malicious > "obfuscation" =). > > Doe

Re: [PHP] Array & unset()

2012-09-24 Thread Ashley Sheridan
Ken Robinson wrote: >At 08:50 PM 9/23/2012, Ron Piggott wrote: > >>I am wondering if there is a way to remove from >>an array where the value is 0 (“zero”) >> >>Array example: >> >>$total_points_awarded = array( 1 => 17, 3 => 14, 4 => 0, 5 => 1, 6 => >0 ); >> >>In this example I would like

Re: RES: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
names in the select clause is, IMHO, at least a good > documentation for what is being requested to the database layer. > > +1 to Maciek's suggestion, had totally forgotten this one. > > Cheers. > > -----Mensagem original- > De: Ashley Sheridan [mailto:a...@ashleyshe

Re: RES: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
idan.co.uk >Cc: Ashickur Rahman Noor; PHP List >Assunto: Re: [PHP] Re: Need help to understand a code > >Op 22 sep. 2012 13:47 schreef "Ashley Sheridan" > het volgende: >> >> On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote: > Hi Ashley > > I am updating some one code. Thanks for the notify. > > Thanks to all. Now I get that. > -- > Dedicated Linux Forum in Bangladesh > 2048R/8

Re: [PHP] Re: Need help to understand a code

2012-09-22 Thread Ashley Sheridan
On Sat, 2012-09-22 at 13:13 +0200, Maciek Sokolewicz wrote: > On 22-09-2012 12:34, Ashickur Rahman Noor wrote: > > Hi all > > > > I need some help to understand a code. The code is like this > > > > $result = mysql_query($sSQL) or die("err: " . mysql_error().$sSQL); > >> if($row = mysql_fetch

Re: [PHP] Bounce messages

2012-09-21 Thread Ashley Sheridan
On Fri, 2012-09-21 at 09:56 -0700, Jim Lucas wrote: > On 09/21/2012 12:40 AM, Lester Caine wrote: > > I know that the php list are one of the 'reply to sender' email handling > > camp rather than reply to list. I can cope with that now and handle the > > multiple reply address problem this end so

Re: [PHP] Risks involved in MyISAM to Innodb

2012-09-21 Thread Ashley Sheridan
Girish Talluru wrote: >Thanks a lot Samuel. Appreciate your help. > >On Fri, Sep 21, 2012 at 6:20 AM, Samuel Lopes Grigolato < >samuel.grigol...@gmail.com> wrote: > >> Sure, the address you’re looking for is: http://lists.mysql.com/ >> >> ** ** >> >> Good hunting =) >> >> ** ** >> >> *D

Re: [PHP] Programmers and developers needed

2012-09-19 Thread Ashley Sheridan
Aaron Holmes wrote: >Hi, >Can we let this thread die now? But, but, what about world peace and stuff?! -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Programmers and developers needed

2012-09-18 Thread Ashley Sheridan
On Tue, 2012-09-18 at 16:36 -0400, Paul M Foster wrote: > On Tue, Sep 18, 2012 at 11:02:41AM -0700, Daevid Vincent wrote: > > > > -Original Message- From: Matijn Woudt > > > [mailto:tijn...@gmail.com] > > > > > > You're missing the most important aspect of social networks.. > > > Advertis

Re: [PHP] PHP from ASP using AJAX?

2012-09-17 Thread Ashley Sheridan
On Mon, 2012-09-17 at 23:03 -0700, Girish Talluru wrote: > Hi There, > > > Can we able to call PHP script from ASP using AJAX? > > > Thanks, > > Girish AJAX is just Javascript making a call to a remote web service, so it doesn't really matter what that web service is written in. -- Thanks

Re: [PHP] Programmers and developers needed

2012-09-13 Thread Ashley Sheridan
On Thu, 2012-09-13 at 16:48 -0400, Tedd Sperling wrote: > On Sep 13, 2012, at 3:45 AM, agbo onyador wrote: > > > Hello there! We are looking for programmers and developers to create a > > world wide system. Your comments are welcome. > > Wow! > > I'm looking for world wide money. > > > tedd

Re: [PHP] Pre-populating of a form with known info from database

2012-09-06 Thread Ashley Sheridan
Girish Talluru wrote: >Hi All, > >I have a form using aspx whenever user access the page based on the >pre-known information of the user i need to prefill certain fields from >the >batabase but the challenge is i can't use the asp or touch any existing >code. > >Any suggestions. > >Thanks, > >G

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread Ashley Sheridan
On Sun, 2012-09-02 at 00:23 -0400, John Taylor-Johnston wrote: > See: > http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.php > http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.phps > > In $mystring, I need to extract everything between "|News Releases|" and > "-30". > > Th

Re: [PHP] Re: get question

2012-08-27 Thread Ashley Sheridan
t; > > On Mon, Aug 27, 2012 at 4:47 PM, Ashley Sheridan > wrote: > > On Mon, 2012-08-27 at 16:37 -0400, Jack S wrote: > > > > How are you including this in your code? GET data won't be passed > in a > > > ca

Re: [PHP] Re: get question

2012-08-27 Thread Ashley Sheridan
On Mon, 2012-08-27 at 15:56 -0400, Jim Giner wrote: > On 8/27/2012 3:17 PM, Jack S wrote: > > Hello All, > > > > Trying to figure out why when I include the page that contains this > > code, I'm not able to get the $calling_page populated with any values. > > Any help appreciated... > > > > > > >

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > Can you tell us what is the error shown in browser or CLI? > > On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan > wrote: > > > I've just inherited some (pretty awful code) that I have to make some > > edit

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:21 -0300, Samuel Lopes Grigolato wrote: > Maybe you have a " allows short open tags? In production that setting could be disabled. > > > On Sun, Aug 26, 2012 at 9:20 AM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 11:02

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: > On 26 Aug 2012, at 03:56, Ashley Sheridan wrote: > > > Through the browser I get: > > > > Parse error: syntax error, unexpected $end > > in /var/www/html/siteinquestion/index.php on line 356 > > >

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 04:36 -0500, tamouse mailing lists wrote: > On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > > > >> Can you tell us what is the error shown in browser or CLI? > >>

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > Can you tell us what is the error shown in browser or CLI? > > On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan > wrote: > > > I've just inherited some (pretty awful code) that I have to make some > > edit

[PHP] syntax error breaking in and out of php into html code

2012-08-25 Thread Ashley Sheridan
I've just inherited some (pretty awful code) that I have to make some edits to, and came across a bit of a problem. A lot of the code breaks in and out of PHP and into HTML code: some html here But when I check this my PHP parser is saying that this is a syntax error (checked in the browser an

Re: [PHP] redefine a define ...

2012-08-25 Thread Ashley Sheridan
On Sat, 2012-08-25 at 15:17 -0400, Matt Neimeyer wrote: > Can you just switch the order? > > Instead of... > >define("SOME_CONSTANT","Generic Value"); >define("SOME_CONSTANT","Override Value"); > > Why not do... > >define("SOME_CONSTANT","Override Value"); >if(!defined("SOME_CO

Re: [PHP] away from Fedora linux for a while and now this ...HELP

2012-08-25 Thread Ashley Sheridan
On Sat, 2012-08-25 at 01:54 +0200, Sebastian Krebs wrote: > Am 25.08.2012 01:41, schrieb Fred Silsbee: > > Warning: Unknown: failed to open stream: Permission denied in Unknown on > > line 0 > > > > > > > > Fatal error: Unknown: Failed opening required > > '/var/www/html/log_book_MySQL.php' >

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Ashley Sheridan
On Thu, 2012-08-23 at 20:33 +0200, Matijn Woudt wrote: > > > > OK thanks Matijn. > > > > I’ll google it now and install it. > > > > There is a site.php as well as a config.php file in the sub-directory of the > > old server. I’ve copied these over but not sure why it still doesn’t > > recognise it

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Ashley Sheridan
gt; > Many thanks, > Suraj > > > > On 23/08/2012 19:08, "Ashley Sheridan" > wrote: > > > On Thu, 2012-08-23 at 18:42 +0100, Suraj Shah wrote: > > > Hi. > &

Re: [PHP] Using PEAR and PHP

2012-08-23 Thread Ashley Sheridan
On Thu, 2012-08-23 at 18:42 +0100, Suraj Shah wrote: > Hi. > > I am currently working on a website which uses PHP as an integral programming > language as part of it. > > I am trying to replicate the website’s contents from one ftp server to > another but am encountering serious issues in doin

Re: [PHP] XML/PHP web service

2012-08-08 Thread Ashley Sheridan
we fail to question those who would force upon us a total >reliance >on the state for defense." >-- Robert J. Cottrol Just set up your php script as if it were accepting input from a form submission. All you're doing is not showing the form. Imagine it like a form set up on someone el

Re: [PHP] Awkward time processing

2012-08-02 Thread Ashley Sheridan
Paul Halliday wrote: >This is hideous, can anyone think of a more novel approach? > >What I have is an array of values and timestamps: > >17 15:31 >16 15:32 >27 15:33 >14 15:34 >11 15:35 > >now for a day I should have 1440 entries but there could be spotty >results, no data from say 11:59 -> 13

Re: [PHP] Regex

2012-07-27 Thread Ashley Sheridan
"Simon Dániel" wrote: >#[0-9a-zA-Z,\.]# > You should escape out that period as it will match any character otherwise. Thanks, Ash http://ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-23 Thread Ashley Sheridan
On Mon, 2012-07-23 at 13:31 -0500, Larry Garfield wrote: > Sales tax isn't the point with SOPA/PIPA. Thinks like the government > being able to force any site off the Internet at the ISP / DNS level on > the say-so of a private corporation are the point. And no, that's not a > defensible or a

RE: [PHP] Entry point of an MVC framework

2012-07-12 Thread Ashley Sheridan
On Thu, 2012-07-12 at 14:44 -0700, Daevid Vincent wrote: > > -Original Message- > > From: Simon Dániel [mailto:simondan...@gmail.com] > > Sent: Thursday, July 12, 2012 1:21 PM > > Subject: [PHP] Entry point of an MVC framework > > > > I have started to develop a simple MVC framework. > >

Re: [PHP] database hell

2012-07-12 Thread Ashley Sheridan
"ma...@behnke.biz" wrote: > > > >Nick Edwards hat am 12. Juli 2012 um 14:00 >geschrieben: > >> On 7/12/12, Gibbs wrote: >> >> > mysql_query("DELETE from userprefs where clientr='$User'", >$connmy); > > >Sidenote: And don't forget to validate user input and make use of mysql >escape >and prepa

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread Ashley Sheridan
On Tue, 2012-06-26 at 15:42 -0400, Marc Guay wrote: > Everyone switched to PCP? > I wonder if the thing that happened to your newsgroup has also happened to this mailing list? :p -- Thanks, Ash http://www.ashleysheridan.co.uk

Re: [PHP] else if vs switch

2012-06-18 Thread Ashley Sheridan
April Mains wrote: > >On 2012-06-18, at 7:59 AM, James wrote: > >>> Original Message >>> From: April Mains >>> To: >>> Cc: "PHP-General list" >>> Sent: Mon, Jun 18, 2012, 9:41 AM >>> Subject: Re: [PHP] else if vs switch >>> >>> This is what I had been using as the check based on the

Re: [PHP] Re: define()

2012-06-16 Thread Ashley Sheridan
On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote: > On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: > > > On 16-06-2012 08:36, Karl DeSaulniers wrote: > >> Quick question phprz. Is it ok to put a token inside a define() > >> statement? > >> > >> IE: > >> define('TOKEN', $sometoke

Re: [PHP] global array

2012-06-14 Thread Ashley Sheridan
On Thu, 2012-06-14 at 15:13 -0400, Jim Giner wrote: > "Al" wrote in message > news:6b.c0.39100.4ef1a...@pb1.pair.com... > > > > > > On 6/14/2012 12:49 PM, Jim Giner wrote: > >> Yes - PHP is very picky. Hence I never capitalize anything! I use > >> underscores to make varnames more understandab

Re: [PHP] SQL Injection

2012-06-08 Thread Ashley Sheridan
Govinda wrote: >>> Ah, but what if I use sqlite or postgres? >> >> Or Firebird ;) > >good point. > > >>> IMHO, the discussion needs to be a the best way to prevent SQL >injection across >>> all possible DB types. Not just mysql. >> >> The main thing to avoid is building queries from elements t

Re: [PHP] help with query

2012-06-07 Thread Ashley Sheridan
Jack wrote: >Hello All, > > > >I have this string defined for my query and it shows the different >types of >categories fine, but when I change a.categoryid = c.categoryid to >a.categoryid = 1 which is only one of the categories > >It shows me the same record twice. > > > >$query = "select a.st

Re: [PHP] disabled cookies

2012-06-04 Thread Ashley Sheridan
On Mon, 2012-06-04 at 17:53 -0400, Paul M Foster wrote: > On Sun, Jun 03, 2012 at 10:21:21PM +0100, Ashley Sheridan wrote: > > > > > > > Al wrote: > > > > >Disabled cookies use to be a problem years ago. What's your > > >experience the

Re: [PHP] Hungarian Notation interest with PHP

2012-06-04 Thread Ashley Sheridan
Mihamina Rakotomandimby wrote: >Hi all, > >I have a colleague stuck with this thing named "Hungarian Notation" >http://goo.gl/xYv8O > >We try to define our internal coding standards, which is very close to >the Symfony ones http://goo.gl/f2rcO > >But we're in conflict because the colleague real

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Lester Caine wrote: >Ashley Sheridan wrote: >> How is Google Chrome a bigger security risk than the other popular >browsers, Fx and IE? >> >> I was under the impression it was more secure than either of those. > >License Conditions ... They may have removed the o

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Lester Caine wrote: >Matijn Woudt wrote: >> BTW, There's a website [1] that has all the information and even a >> tool for checking what your site does with cookies. >> >> - Matijn >> >> [1]http://www.cookielaw.org/ > >Which fails at the first security hurdle! >It requires Google Chrome, which

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Matijn Woudt wrote: >On Sun, Jun 3, 2012 at 11:21 PM, Ashley Sheridan > wrote: >> >> >> Al wrote: >> >>>Disabled cookies use to be a problem years ago.  What's your >experience >>>these days. >>> >>>I need it for my s

Re: [PHP] disabled cookies

2012-06-03 Thread Ashley Sheridan
Al wrote: >Disabled cookies use to be a problem years ago. What's your experience >these days. > >I need it for my session ID. As I read the docs, the old method of >appending it >to the URL is a security issue. > >I can obviously save the ID in a temp file which can be read by all the >pages

Re: [PHP] Simple Email System (SES) Provider

2012-06-02 Thread Ashley Sheridan
On Sat, 2012-06-02 at 17:25 +0100, Stuart Dallas wrote: > On 2 Jun 2012, at 17:20, Ashley Sheridan wrote: > > > On Sat, 2012-06-02 at 17:33 +0200, Matijn Woudt wrote: > > > >> On Sat, Jun 2, 2012 at 2:32 AM, Don Wieland wrote: > >>> Hi all, > >&g

Re: [PHP] Simple Email System (SES) Provider

2012-06-02 Thread Ashley Sheridan
On Sat, 2012-06-02 at 17:33 +0200, Matijn Woudt wrote: > On Sat, Jun 2, 2012 at 2:32 AM, Don Wieland wrote: > > Hi all, > > > > I built a system in PHP/mySQL where a group of users post events, sign-up > > for events, change their arrival times, remove thier names from events, and > > post relate

Re: [PHP] Happy Diamond Jubilee everyone!

2012-06-02 Thread Ashley Sheridan
Paul M Foster wrote: >On Fri, Jun 01, 2012 at 06:44:17PM +0100, Ashley Sheridan wrote: > >> This is a bit of a shameless plug, but it is a Friday and a pretty >> special weekend over here. >> >> I recently got to work on something a bit fun at work in my spare

Re: [PHP] Simple Email System (SES) Provider

2012-06-02 Thread Ashley Sheridan
Bastien Koert wrote: >On Fri, Jun 1, 2012 at 8:32 PM, Don Wieland wrote: >> Hi all, >> >> I built a system in PHP/mySQL where a group of users post events, >sign-up >> for events, change their arrival times, remove thier names from >events, and >> post related notes on the events. Each time an

[PHP] Happy Diamond Jubilee everyone!

2012-06-01 Thread Ashley Sheridan
This is a bit of a shameless plug, but it is a Friday and a pretty special weekend over here. I recently got to work on something a bit fun at work in my spare time and they liked it so much that it got used internally to celebrate the jubilee weekend. This is the result http://jubilee.themlondon

Re: [PHP] Re: Function size

2012-05-29 Thread Ashley Sheridan
On Tue, 2012-05-29 at 17:06 -0400, Paul M Foster wrote: > On Tue, May 29, 2012 at 08:52:46AM +0100, Tony Marston wrote: > > > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > > > A rule of thumb is no more than 50 lines per > > > function, most much less. Back in the day when we didn'

Re: [PHP] Setting allow_url_fopen

2012-05-26 Thread Ashley Sheridan
James Moe wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Hello, > php 5.2.2 > > I have need of a remote procedure call the requires >"allow_url_fopen" to be enabled. The remote call works fine on my test >system which does have allow_url_fopen enabled. > So I thought, "This is a j

Re: [PHP] Re: Function size

2012-05-24 Thread Ashley Sheridan
On Thu, 2012-05-24 at 15:48 -0500, tamouse mailing lists wrote: > On May 23, 2012 9:14 AM, "Tedd Sperling" wrote: > > > > Hi gang: > > > > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > > > A rule of thumb is no more than 50 lines per > > > function, most much less. Back in the day

Re: [PHP] Function size

2012-05-23 Thread Ashley Sheridan
On Wed, 2012-05-23 at 20:59 +0200, Matijn Woudt wrote: > On Wed, May 23, 2012 at 5:49 PM, shiplu wrote: > > On Wed, May 23, 2012 at 8:14 PM, Tedd Sperling wrote: > > > >> Hi gang: > >> > >> On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > >> > A rule of thumb is no more than 50 lines

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-23 Thread Ashley Sheridan
On Wed, 2012-05-23 at 20:54 +0200, Matijn Woudt wrote: > On Tue, May 22, 2012 at 8:15 PM, Gates, Jeff wrote: > > Can anyone tell me what differences I might encounter by working with PHP > > on a Unix server verses working with PHP on a Windows server. We use > > Windows production servers here

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Ashley Sheridan
On Wed, 2012-05-23 at 20:36 +0200, Matijn Woudt wrote: > On Wed, May 23, 2012 at 3:50 PM, Jonesy wrote: > > On Wed, 23 May 2012 00:24:25 -0400, admin wrote: > >> -Original Message- > >> From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] > >> Sent: Wednesday, May 23, 2012 12:13

Re: [PHP] Differences between PHP on LAMP and PHP on Windows Servers

2012-05-22 Thread Ashley Sheridan
On Tue, 2012-05-22 at 14:15 -0400, Gates, Jeff wrote: > Can anyone tell me what differences I might encounter by working with PHP on > a Unix server verses working with PHP on a Windows server. We use Windows > production servers here but many of us would like to get more LAMP > environments. >

Re: [PHP] Variables via url

2012-05-12 Thread Ashley Sheridan
On Sun, 2012-05-13 at 01:57 +1000, Tom Rogers wrote: > Hello Ashley, > > Saturday, May 12, 2012, 9:15:23 AM, you wrote: > > > > Can someone point me at examples or directions on how I can pass a > > variable via a URL in the following way: > > > http://server.domain.com//script///var

Re: [PHP] Re: Variables via url

2012-05-12 Thread Ashley Sheridan
On Sat, 2012-05-12 at 09:21 -0400, Jim Giner wrote: > ""Ashley M. Kirchner"" wrote in message > news:4fad9d8b.4020...@pcraft.com... > > > > Can someone point me at examples or directions on how I can pass a > > variable via a URL in the following way: > > > > http://server.domain.com//sc

Re: [PHP] I need a good access and error log..

2012-05-07 Thread Ashley Sheridan
Lester Caine wrote: >rene7705 wrote: >> But before I start coding, I thought it would be better to ask you >all >> what you use to see who's visiting your sites and when. >> Oh, I need something that will work on shared hosting (php+mysql). > >piwik ... >http://piwik.org/ >A couple of my heavy

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Ashley Sheridan
On Thu, 2012-04-19 at 13:48 +0200, Matijn Woudt wrote: > On Thu, Apr 19, 2012 at 1:01 PM, Bastien wrote: > > > > > > Bastien Koert > > > > On 2012-04-19, at 1:54 AM, tamouse mailing lists > > wrote: > > > >> On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay wrote: > >>> On Wed, 18 Apr 2012 11:08:00

Re: [PHP] Email Antispam

2012-04-17 Thread Ashley Sheridan
Marc Guay wrote: >Is there a reason for you not to build a contact form? > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php It could be for a company, which in the UK I believe requires several bits of contact information. There is no p

Re: [PHP] CURL -d

2012-03-26 Thread Ashley Sheridan
On Mon, 2012-03-26 at 09:45 -0600, QI.VOLMAR QI wrote: > I have this lines: > curl -H "Content-Type: application/json" -d "hello world" \ > > "http://api.pusherapp.com/apps/17331/channels/test_channel/events?"\ > > The option -d is for data. But How I can set it on the PH

Re: [PHP] mysql list to two-column list

2012-03-19 Thread Ashley Sheridan
On Mon, 2012-03-19 at 16:09 -0700, Tom Sparks wrote: > --- On Tue, 20/3/12, Ashley Sheridan wrote: > > On Mon, 2012-03-19 at 15:43 -0700, Tom Sparks wrote: > > >>I have a members list witch I print out once a week, > >>I would like to make the list into two-column

Re: [PHP] mysql list to two-column list

2012-03-19 Thread Ashley Sheridan
On Mon, 2012-03-19 at 15:43 -0700, Tom Sparks wrote: > I have a members list witch I print out once a week, > I would like to make the list into two-column list, but I dont know where to > start looking to change the code? > > here is the code > " > $result = mysql_query("SELECT * FROM customers

Re: [PHP] Got HTML5 History API + caching LICKED, I think,

2012-03-18 Thread Ashley Sheridan
On Sun, 2012-03-18 at 17:17 +, Tim Streater wrote: > On 18 Mar 2012 at 17:06, Tim Streater wrote: > > > I don't like: > > > > a) menus that just spring into life because you happen to mouse near them. > > You > > should have to sick to activate a menu. > > Damned autocorrect. s/sick/click

Re: [PHP] Graphing

2012-03-18 Thread Ashley Sheridan
Ross Hansen wrote: >Hey all, > >I have been working with php for a few years but mostly simple stuff. >I'm now looking at doing some graphing but have no experience with >dynamic images. > >I have never used imagecreate but have seen one example of it and not >sure if it is really what i'm afte

Re: [PHP] Re: $POST and $_SESSION

2012-03-17 Thread Ashley Sheridan
On Sat, 2012-03-17 at 12:52 -0400, Al wrote: > > On 3/15/2012 11:04 AM, Tedd Sperling wrote: > > $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; > > $first_name = isset($_POST['first_name']) ? $_POST['first_name'] : > > $first_name; > > $_SESSION['first_name'] = $first_na

Re: [PHP] Got HTML5 History API + caching LICKED, I think,

2012-03-17 Thread Ashley Sheridan
On Fri, 2012-03-16 at 22:11 +0100, rene7705 wrote: > On Fri, Mar 16, 2012 at 10:08 PM, Tommy Pham wrote: > > > On Fri, Mar 16, 2012 at 1:45 PM, Stuart Dallas wrote: > > > > > >> As for my files and homepage being Huge, yep, it's made for the future > > or current fast internet connections. > >

Re: [PHP] $POST and $_SESSION

2012-03-15 Thread Ashley Sheridan
On Thu, 2012-03-15 at 18:52 +, Stuart Dallas wrote: > On 15 Mar 2012, at 18:48, sono...@fannullone.us wrote: > > > On Mar 15, 2012, at 11:35 AM, Daniel Brown wrote: > > > >> On Thu, Mar 15, 2012 at 14:31, Stuart Dallas wrote: > >>> > >>> The @ prefix is banned from all code I go anywhere n

Re: [PHP] Getting knotted with quotes encoding

2012-03-13 Thread Ashley Sheridan
Arno Kuhl wrote: >I've been battling with quotes encoding when outputting javascript with >php. >It can't be unique, so I'm hoping someone has a working solution >they're >willing to share. > >The following works perfectly as long as there aren't any single quotes >in >the link text: > ec

Re: [PHP] Function mktime() documentation question

2012-03-12 Thread Ashley Sheridan
On Mon, 2012-03-12 at 15:53 -0400, Tedd Sperling wrote: > On Mar 11, 2012, at 3:10 PM, Matijn Woudt wrote: > > On Sun, Mar 11, 2012 at 7:33 PM, Tedd Sperling > > wrote: > >> Actually, this works for me: > >> > >> $days_in_month = date('t', mktime(0, 0, 0, $next_month, 0, $year)); > >> > >> But

Re: [PHP] Function mktime() documentation question

2012-03-11 Thread Ashley Sheridan
On Sat, 2012-03-10 at 20:38 -0500, Tedd Sperling wrote: > On Mar 10, 2012, at 12:20 PM, Maciek Sokolewicz wrote: > > > function getAmountOfDaysInAMonth($month, $year) { > > $days = array(31, (($year%4==0 and ($year%100 > 0 or $year%400==0)) ? 29 > > : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 3

Re: [PHP] Function mktime() documentation question

2012-03-09 Thread Ashley Sheridan
Charles wrote: >On Sat, Mar 10, 2012 at 12:52 AM, Charles wrote: >> On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling > wrote: >>> On Mar 9, 2012, at 11:17 AM, Charles wrote: >>> On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling > wrote: > On Mar 9, 2012, at 5:37 AM, Ford, Mike wrote:

Re: [PHP] iphone & php

2012-03-05 Thread Ashley Sheridan
On Mon, 2012-03-05 at 14:43 -0500, Jim Giner wrote: > "Robert Williams" wrote in message > news:cb7a5dd7.828c6%rewilli...@thesba.com... > On 3/5/12 11:58, "Jim Giner" wrote: > > > >"Marc Guay" wrote in message > >news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com... > >>

Re: [PHP] iphone & php

2012-03-05 Thread Ashley Sheridan
Jim Giner wrote: > >""Jim Giner"" wrote in message >news:35.42.35539.06df4...@pb1.pair.com... >> >> "Jay Blanchard" wrote in message >> news:4f54faf8.4030...@sigmaphinothing.org... >>> [snip]In the last few mins I re-booted my phone and it is now doing >>> something even worse! [/snip] >>> >>

Re: [PHP] '

2012-03-05 Thread Ashley Sheridan
Lester Caine wrote: >I am presuming that one of my customers hosts has upgraded to PHP5.3.10 >over the >weekend, and now the site is broken! It is currently codeignighter >based, >something which I am in the process of replacing anyway, but I need to >get >http://eveshamselfdrive.co.uk/ working

Re: [PHP] Script execution after window close

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 11:29 -0500, Govinda wrote: > >>> in factI really need to remove the file ( which will be created for > >>> every access - making a copy from another location ). I can't leave that > >>> file alone for ever in the user disk space! :( > >> > >> Fine, so delete it after a

Re: [PHP] Script execution after window close

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 20:49 +0530, Nibin V M wrote: > Hello, > > I need to run a few commands when a user close the browser tab. That is, I > have a php page ( index.php ) and it will create a temporary file to track > some stuffs. That temporary file should be removed, when the user close the >

Re: [PHP] Weird Behaviour of Array

2012-03-04 Thread Ashley Sheridan
On Sun, 2012-03-04 at 20:01 +0530, Ruwan Pathmalal wrote: > Hi People, > I confused with weird behaviour of array. Following is my script. > > $array = array( > '12_1'=>array( > 56=>array( > 23=>'23', > 33=>'

Re: [PHP] Website preview script

2012-02-29 Thread Ashley Sheridan
> > > > @Martin - I will check it. Since I am a beginner ( of course, just started > > to learn PHP today ) I need to start from scratch. If yo could provide some > > sample code, it will be great :) > > > > thanks for your input guys.. > > > > O

Re: [PHP] Website preview script

2012-02-29 Thread Ashley Sheridan
On Wed, 2012-02-29 at 19:29 +0100, Matijn Woudt wrote: > On Wed, Feb 29, 2012 at 7:07 PM, Nibin V M wrote: > > Hello, > > > > I am very new to PHP coding. I am trying to achieve a task via PHP, > > regarding which I have been googling around for a few days and now come up > > with emtpy hands! >

Re: [PHP] Little Info...

2012-02-29 Thread Ashley Sheridan
On Wed, 2012-02-29 at 19:27 +0100, Matijn Woudt wrote: > On Wed, Feb 29, 2012 at 7:01 PM, Don Wieland wrote: > > This is a bit related to PHP but mostly mySQL (is there a similar list for > > this stuff? Let me know please) > > > > In my mySQL query editor, I am trying to return a value of 0 when

Re: [PHP] basic captcha

2012-02-17 Thread Ashley Sheridan
Donovan Brooke wrote: >Thanks for all the input. Yes, there are a lot of ways and means and >issues that can be considered (thanks Simon), but this project will use > >a simple captcha, mostly because it is familiar to users and "fits" >with >the project. Yes, I've found some options via google

Re: [PHP] basic captcha

2012-02-17 Thread Ashley Sheridan
Simon Schick wrote: >Hi, all > >When you ask for a captcha, I'd first ask what do you want to use it >for. >If you read the first lines of Wikipedia it has been developed to >differ >between a real user and a bot. > >If you'd now say that you want to use it to protect spam in a formula >I'd >gi

Re: [PHP] Turning a string into a condition

2012-02-16 Thread Ashley Sheridan
On Thu, 2012-02-16 at 15:38 -0500, Marc Guay wrote: > > It sounds like you have a string "$x < $y" in the database that you then > > replace into a string "4 < 5" which you want to test a conditional on. If > > this is the case, why are you storing conditionals in the database? > > The user will

Re: [PHP] Connect to Google

2012-02-16 Thread Ashley Sheridan
On Thu, 2012-02-16 at 14:50 -0500, John Taylor-Johnston wrote: > I'm a top quoter. > I would parse the text first. Phrase by phrase, or phrase segments. > Then spit out a report. > > Marc Guay wrote: > > If that's not good enough, can you explain how you would like it to > > function? Would the

Re: [PHP] Connect to Google

2012-02-16 Thread Ashley Sheridan
search engines. They cannot be crawling the net too. That would > be crazy. > > (I'm a top quoter. It's more intuitive.) > > Thanks Ash. > > John > > > > Ashley Sheridan wrote: > > On Wed, 2012-02-15 at 21:56 -0500, John Taylor-Johnston wrote

Re: [PHP] Connect to Google

2012-02-16 Thread Ashley Sheridan
On Wed, 2012-02-15 at 21:56 -0500, John Taylor-Johnston wrote: > I'm a teacher. I want to use PHP to interface with Google and see if a > student has plagiarized. > > I don't see many open-source projects on the subject, so I want to > create my own script. > > How can I use PHP to interface w

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Ashley Sheridan
On Tue, 2012-02-07 at 12:26 -0800, Micky Hulse wrote: > On Tue, Feb 7, 2012 at 12:19 PM, Micky Hulse wrote: > > Yah, ditto! :D > > $s = 'foo,bar,'; > print_r(explode(',', $s)); > > The output is: > > Array > ( > [0] => foo > [1] => bar > [2] => > ) > > That's one instance where I

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Ashley Sheridan
On Tue, 2012-02-07 at 15:15 -0500, Paul M Foster wrote: > On Tue, Feb 07, 2012 at 11:50:45AM -0800, Micky Hulse wrote: > > > Was there ever a time when having a comma at the end of the last array > > element was not acceptable in PHP? > > > > I just did a few quick tests: > > > >

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Ashley Sheridan
On Tue, 2012-02-07 at 11:50 -0800, Micky Hulse wrote: > Was there ever a time when having a comma at the end of the last array > element was not acceptable in PHP? > > I just did a few quick tests: > > > > ... and it looks like having that comma ain't no big de

Re: [PHP] How to detect languages from (=> LTR vs RTL)

2012-02-07 Thread Ashley Sheridan
On Tue, 2012-02-07 at 09:37 +0100, Michelle Konzack wrote: > Hi colleges and gurus, > > I coding a whole "web office" and one of my problems is "LTR vs RTL". > If I have for exanple an E-Mail I use a > > > $SOME_TEXT > > > but HOW can I detect the type of $SOME_TEXT from withi

<    1   2   3   4   5   6   7   8   9   10   >