Re: [PHP] Friday's Question

2013-09-20 Thread Sean Greenslade
On Fri, Sep 20, 2013 at 12:51:49PM -0400, Tedd Sperling wrote: Hi gang: Do you use a Mousepad? College Student (Electrical Engineer, go figure). Age: 20 Mousepad: yes I've used both optical and laser mice (they're a bit different, but similar tech) and I've found that I like having the pad

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

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 9:57 AM, Jonesy gm...@jonz.net wrote: On Tue, 28 May 2013 14:17:06 -0700, Daevid Vincent wrote: I'm adding some minification to our cache.class.php and am running into an edge case that is causing me grief. I want to remove all comments of the // variety, HOWEVER I

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

2013-05-29 Thread Sean Greenslade
It is possible to write a whole parser as a single regex, being it terribly long and complex. That said, there's no other simple syntax that would work, for example in javascript you could to the following: var http = 5; switch(value) { case http:// Http case here! (this whould not be

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

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 1:33 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade zootboys...@gmail.com wrote: It is possible to write a whole parser as a single regex, being it terribly long and complex. That said, there's no other simple syntax

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

2013-05-29 Thread Sean Greenslade
On Wed, May 29, 2013 at 4:26 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Sean Greenslade [mailto:zootboys...@gmail.com] Sent: Wednesday, May 29, 2013 10:28 AM Also, (I haven't tested it, but) I don't think that example you gave would work. Without any sort

Re: [PHP] Finding an Address

2013-02-28 Thread Sean Greenslade
On Thu, Feb 28, 2013 at 3:18 PM, Serge Fonville serge.fonvi...@gmail.comwrote: well, not exactly. But I can help you (so can others) to go through code flow (it will probably be tedious) you have a position you start and a certain distance from that point (in a circle) From thereon you

Re: [PHP] fopen and load balancing

2013-02-11 Thread Sean Greenslade
there, post _relevant_ snippets to the list. Also remember that this is the PHP mailing list. (Even though we tend to masquerade as the MySQL list from time to time) If it's an issue with your very likely non-PHP load balancer, we can't really help you out. --Sean Greenslade -- PHP General

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-06 Thread Sean Greenslade
On Wed, Feb 6, 2013 at 11:15 AM, Aaron Holmes aa...@aaronholmes.net wrote: No one has mentioned Cacti yet? It does exactly what Bulent is looking for. http://cacti.net/ On 2/5/13 6:46 PM, Sean Greenslade wrote: On Tue, Feb 5, 2013 at 10:13 AM, Bulent Malik bma...@ihlas.net.tr wrote

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-05 Thread Sean Greenslade
On Tue, Feb 5, 2013 at 10:13 AM, Bulent Malik bma...@ihlas.net.tr wrote: This task is not really suited for php. I would suggest looking into Ntop. It does exactly what you described. Hello I have a freebsdbox firewall . also I have some internet customers. I want to save how much

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Sean Greenslade
This task is not really suited for php. I would suggest looking into Ntop. It does exactly what you described. On Feb 1, 2013 9:40 AM, Bulent Malik bma...@ihlas.net.tr wrote: Hello I have a freebsdbox firewall . also I have some internet customers. I want to save how much data they used in

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Sean Greenslade
On Feb 1, 2013 10:25 AM, Bulent Malik bma...@ihlas.net.tr wrote: This task is not really suited for php. I would suggest looking into Ntop. It does exactly what you described. Hello I have a freebsdbox firewall . also I have some internet customers. I want to save how much data they

Re: [PHP] free space

2012-01-31 Thread Sean Greenslade
On Tue, Jan 31, 2012 at 1:59 PM, saeed ahmed mycomputerbo...@gmail.comwrote: is there any free server where one can practice php(myadmin) - sql without installing on personal computer? Not that I know of. There may be some, but I wouldn't bother. You can find Virtualbox server images pre-made

Re: [PHP] Friday Distraction

2011-10-23 Thread Sean Greenslade
On Sun, Oct 23, 2011 at 9:43 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Oct 21, 2011 at 4:27 PM, Christopher Lee ct...@ucensys.com wrote: This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you

Re: [PHP] Re: files outside of documentRoot

2011-10-09 Thread Sean Greenslade
On Sun, Oct 9, 2011 at 9:52 AM, Ricardo Martinez harisel...@gmail.comwrote: The files are, png, pdf and flv. Only users login can see or download it. thx ; On Sat, Oct 8, 2011 at 11:16 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 10/08/2011 03:40 PM, Ricardo Martinez wrote: Hi

Re: [PHP] PHP Download Of Application Question?

2011-10-08 Thread Sean Greenslade
On Sat, Oct 8, 2011 at 6:53 PM, Thomas Dineen tdin...@ix.netcom.com wrote: Gentle People: I am looking for a way to download a C based application binary, from an Apache / PHP server, via a client side Web Browser, and execute it seamlessly on the client side PC without storing it

Re: [PHP] Attached without Attachment

2011-09-30 Thread Sean Greenslade
On Wed, Sep 28, 2011 at 12:15 PM, Gustavo - Emar Plásticos supo...@emar.com.br wrote: Hi all, i made a code in PHP to save in a directory the XML attachments ! All goes well until it comes across an email that has attachment but can not save ! analyzing the source code of this email, i

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Sean Greenslade
On Sat, Sep 10, 2011 at 4:35 AM, muad shibani muad.shib...@gmail.comwrote: I want to design an application that reads news from RSS sources. I have about 1000 RSS feed to collect from. I also will use Cron jobs every 15 minutes to collect the data. the question is: Is there a clever way to

Re: [PHP] How to have a smooth hairless skin

2011-09-03 Thread Sean Greenslade
On Sat, Sep 3, 2011 at 8:44 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: How to have a smooth hairless skin t...@lnfp.gov.cn wrote: How to have a smooth hairless skin. Hairless in the bikini zone. Click here: snippity / How does one go

Re: [PHP] Re: Login with Remember me Feature

2011-08-07 Thread Sean Greenslade
On Sun, Aug 7, 2011 at 3:11 PM, Richard Riley rile...@googlemail.comwrote: Andre Polykanine an...@oire.org writes: Hello alekto, I've got several notes to point out: 1. You can't do neither a header(), nor a SetCookie() after any echo on the page. The out-of-php pieces of

Re: [PHP] Updating to 5.3.6

2011-06-22 Thread Sean Greenslade
All I can suggest is either compile from source or find a different mac binary. I don't often deal with macs, much less try to use them as servers, so that's the best I can offer. Good luck. On Jun 20, 2011 1:53 PM, Bruno Coelho brunocsncoe...@gmail.com wrote:

Re: [PHP] Updating to 5.3.6

2011-06-20 Thread Sean Greenslade
How did you install it? Why can't you just uninstall it and reinstall with the new version? On Jun 20, 2011 12:52 PM, Bruno Coelho brunocsncoe...@gmail.com wrote: I realize this is a basic matter, but I've installed PHP 5.3.1 with XAMPP for Mac OS. How can I update my PHP version now?

Re: [PHP] Best authentication system

2011-06-04 Thread Sean Greenslade
IIRC, there is a google code project for a php login system. You might want to check it out. On Jun 4, 2011 2:46 PM, Adam Tong adam.to...@gmail.com wrote: Hi, I'm running a site for which I need an authentication system. I have already my own (that is too simplistic and not very secure). I

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-04 Thread Sean Greenslade
, Jun 3, 2011 at 07:21, Sean Greenslade zootboys...@gmail.com wrote: So do you get the contents of that page in the response? What happens when you browse to that page manually? On Jun 1, 2011 2:14 AM, Stephon Chen step...@gmail.com wrote: All 403, 404, 500.html are static html pages like

Re: RE: [PHP] phpsadness - P.C. shmee seee.

2011-06-04 Thread Sean Greenslade
Well said. I agree completely with your distaste for extreme political correctness. Like I always say, it's not a stereotype if it's true. On Jun 3, 2011 4:53 PM, Daevid Vincent dae...@daevid.com wrote: Reminds me (obliquely) of an entry in the index for The C Programming Language for

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-03 Thread Sean Greenslade
. Thanks a lot -- stephon On Fri, Jun 3, 2011 at 07:21, Sean Greenslade zootboys...@gmail.com wrote: So do you get the contents of that page in the response? What happens when you browse to that page manually? On Jun 1, 2011 2:14 AM, Stephon Chen step...@gmail.com wrote: All 403, 404, 500

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-06-02 Thread Sean Greenslade
So do you get the contents of that page in the response? What happens when you browse to that page manually? On Jun 1, 2011 2:14 AM, Stephon Chen step...@gmail.com wrote: All 403, 404, 500.html are static html pages like: div 500 error happens /div On Wed, Jun 1, 2011 at 14:10, Tamara

Re: [PHP] Re: smart auto download file

2011-06-02 Thread Sean Greenslade
What about an HTTP header redirect? You can set a delay on that AFAIK. On Jun 1, 2011 10:52 AM, Jonesy gm...@jonz.net wrote: On Tue, 31 May 2011 21:01:09 +0100, Stuart Dallas wrote: Sometimes I miss the way the web was before javascript :/ Sometimes??? Jonesy -- PHP General Mailing List

Re: [PHP] php causes HTTP 500, but results in blank page in apache

2011-05-31 Thread Sean Greenslade
Have you checked your apache settings for generating error pages? How is it configured to handle 500 errors? On May 30, 2011 4:51 AM, Stephon Chen step...@gmail.com wrote: Hello all, I use a test script below to generate HTTP 500 status: ?php header('HTTP/1.1 500 Internal Server Error'); ?

Re: [PHP] mysql problems

2011-05-11 Thread Sean Greenslade
On Wed, May 11, 2011 at 2:25 PM, Curtis Maurand cur...@maurand.com wrote: Marc Guay wrote: Does anyone have any ideas? Sounds like it's getting caught in a loop. Post the whole script for best results. It looks like the site is under attack, because I keep seeing the query,

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 4:42 PM, Jim Giner jim.gi...@albanyhandball.comwrote: Im trying to make my webpages display random photos on a border. Got it all working now but have a question about the IE cache. Seems that once the page has been displayed, no amount of refresh will make the page

Re: [PHP] Destroying cookies... not working

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 8:52 PM, Rick Dwyer rpdw...@earthlink.net wrote: The following did the trick... is there any reason I should not use it? $name=mysession; setcookie($name); --Rick Only if you're OCD, since the cookie is still technically there, just empty. Without setting the

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 8:50 PM, Jim Giner jim.gi...@albanyhandball.comwrote: thanks for the input but your first link is invalid and the second I don't understand why you sent me. Perhaps you could explain? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] openssl question

2011-04-18 Thread Sean Greenslade
On Wed, Apr 6, 2011 at 3:41 PM, Kai Renz writeme...@googlemail.com wrote: Hi, i try to create a self signed certificate using this code: snip I'm using a windows box with xampp installed. regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] What's your game? (X-PHP)

2010-04-25 Thread sean greenslade
On Sun, Apr 25, 2010 at 4:13 PM, Jason Pruim li...@pruimphotography.comwrote: On Apr 25, 2010, at 9:16 AM, tedd wrote: Hi gang: Considering we recently had several people mention what games they play, it might be interesting to see what everyone plays. As for me, I currently play Modern

Re: [PHP] Mediawiki's url confusion

2009-07-23 Thread sean greenslade
On Thu, Jul 23, 2009 at 10:28 PM, Dengxule dengx...@gmail.com wrote: Thanks a lot. As far as i know, both methods dealing with urls are WEB-SERVER-TECH. While I was installing mediawiki, i did nothing with the file httpd.conf, no changes made on mod_rewrite. The mediawiki install script

Re: [PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-08 Thread sean greenslade
On Fri, May 8, 2009 at 12:18 AM, Tim-Hinnerk Heuer th.he...@gmail.com wrote: I've been using Gmail and thought you might like to try it out. Here's an invitation to create an account. if you send me mail on here it will probably be more secure than over the rest of the network. just let me

Re: [PHP] php-general@lists.php.net, Tim-Hinnerk Heuer has invited you to open a Google mail account

2009-05-08 Thread sean greenslade
On Fri, May 8, 2009 at 5:27 PM, Lenin le...@phpxperts.net wrote: Yeah gmail is a nice thing :) The best ever mailing system world has ever seen until now. Agreed. -- --Zootboy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Generate unique login token

2009-02-09 Thread sean greenslade
I have a login system that I am coding. I need it to generate a unique token on login to be stored in the browser's cookie. I currently use a script that generates a MD5 hash of the current unix timestamp, then checks the mysql database to see if the token already exists. It loops this

[PHP] Require error

2008-12-19 Thread sean greenslade
So, I have this code in a php file called testing.php: $incl = '/webs/www.zootboy.com/sl/sql.inc'; if(!is_readable($incl)) die('ERROR: MySQL Include file does not exist??!?'); require $incl or die('MySQL page not found. Unable to continue.'); When I run the code in command line, it outputs

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
No. The file is called testing.php and it is trying to include sql.inc On Fri, Dec 19, 2008 at 12:36 PM, Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade zootboys...@gmail.comwrote: So, I have this code in a php file called testing.php: $incl = '/webs

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:50 PM, Wolf lonew...@nc.rr.com wrote: Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade zootboys...@gmail.com wrote: No. The file is called testing.php

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:55 PM, Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:50 AM, Wolf lonew...@nc.rr.com wrote: Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 9:43 AM, Wolf lonew...@nc.rr.com wrote: Bottom Post sean greenslade

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham phi...@lightbox.org wrote: So, I have this code in a php file called testing.php: $incl = '/webs/www.zootboy.com/sl/sql.inc'; if(!is_readable($incl)) die('ERROR: MySQL Include file does not exist??!?'); require $incl or die('MySQL page

FWD: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 1:11 PM, Kyle Terry k...@kyleterry.com wrote: On Fri, Dec 19, 2008 at 10:07 AM, sean greenslade zootboys...@gmail.comwrote: On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham phi...@lightbox.org wrote: So, I have this code in a php file called testing.php

Fwd: [PHP] Bitwise operation giving wrong results

2008-10-31 Thread sean greenslade
-- Forwarded message -- From: sean greenslade [EMAIL PROTECTED] Date: Fri, Oct 31, 2008 at 11:22 PM Subject: Re: [PHP] Bitwise operation giving wrong results To: Yeti [EMAIL PROTECTED] Cool, thanks. It worked. I didn't know you typeset PHP like that. On Thu, Oct 30, 2008 at 3

[PHP] Bitwise operation giving wrong results

2008-10-29 Thread sean greenslade
I have the following code as a test: ?php $a = $_GET['a']; $b = $_GET['b']; echo $a .. $b . = ; $out = $a $b; echo $out; //echo 15 2; ? if I set a to 15 and b to 2 in the URL like so: test.php?a=15b=2 it outputs zero as the answer. When I run the hard-coded '' operation (the commented

Re: [PHP] textarea html generation problem

2008-09-18 Thread sean greenslade
it away code. Good luck. tqii On Sep 15, 2008, at 8:08 PM, sean greenslade wrote: Hi all! I am trying to make a PHP HTML editor. I have made the entire editor function, but it has a big problem. If the page contains a /textarea tag, it ends the editor's textarea and the browser starts

Re: [PHP] textarea html generation problem

2008-09-16 Thread sean greenslade
Thanks to all for your responses. I ended up using htmlentities. Thanks Stephen. Also, the reason I didn't use a premade editor is that I am planning on selling a web-editor system and don't want any troubles with licenses. quote Hi all! I am trying to make a PHP HTML editor. I have made the

Re: [PHP] php not reading file properly

2008-08-25 Thread sean greenslade
Yeah, well, I don't want everyone to view my logs. Only me. So it won't add any unnecessary load to my server. On Mon, Aug 25, 2008 at 8:04 AM, Jochem Maas [EMAIL PROTECTED] wrote: sean greenslade schreef: Well, if you really want to know, I have to go to many places that do not have

Re: [PHP] php not reading file properly

2008-08-24 Thread sean greenslade
to access it, and the Avantgo software automatically downloads a copy of it before I leave. On Sun, Aug 24, 2008 at 7:42 PM, Jochem Maas [EMAIL PROTECTED] wrote: sean greenslade schreef: I have this snippet of code that is supposed to read the apache access log and display it: ?php

Re: [PHP] Help and Advice needed please.

2008-08-23 Thread sean greenslade
I would be willing to help with this project. Because of all the different requirements of this, I would recommend a totally custom set of scripts, and a mysql database to hold all the data. On Sat, Aug 23, 2008 at 7:22 AM, Byron [EMAIL PROTECTED] wrote: Hey. I do some part-time IT work for a

Re: [PHP] Help and Advice needed please.

2008-08-23 Thread sean greenslade
So Byron, what do you think? Do you like the idea of a mysql database? On Sat, Aug 23, 2008 at 11:57 AM, Luke [EMAIL PROTECTED] wrote: I'm up for helping too. Also, a big agree to Sean too, MySQL seems the best way to go here. 2008/8/23 sean greenslade [EMAIL PROTECTED] I would be willing

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
www.ashleysheridan.co.uk -- Forwarded message -- From: sean greenslade [EMAIL PROTECTED] To: Micah Gersten [EMAIL PROTECTED] Date: Wed, 20 Aug 2008 19:41:54 -0400 Subject: Re: Fwd: [PHP] php not reading file properly Ashley Sheridan wrote: As it's the Apache access log that you

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
instant that Apache is writing to it logging that you are trying to access it, if that makes sense? Ash www.ashleysheridan.co.uk -- Forwarded message -- From: sean greenslade [EMAIL PROTECTED] To: php-general@lists.php.net Date: Fri, 22 Aug 2008 02:31:47 -0400 Subject: Re

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
were trying to read it. It's a bit like trying to look at a quark. By doing so, you've already affected its position. Although, unlike a quark, you can create a copy of the log file ;) Ash www.ashleysheridan.co.uk -- Forwarded message -- From: sean greenslade [EMAIL

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
not run into this problem before. Ash www.ashleysheridan.co.uk -- Forwarded message -- From: sean greenslade [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Fri, 22 Aug 2008 10:13:37 -0400 Subject: Re: Fwd: [PHP] php not reading file properly Yeah, but it wouldn't read

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
://www.onshore.com sean greenslade wrote: Yeah, but it wouldn't read access_log.tmp, which wasn't being written to at the time of loading. I think the whole logs folder is restricted from php access. On Fri, Aug 22, 2008 at 10:13 AM, Ashley Sheridan [EMAIL PROTECTED]wrote: The log file

[PHP] php not reading file properly

2008-08-20 Thread sean greenslade
I have this snippet of code that is supposed to read the apache access log and display it: ?php $myFile = /var/log/httpd/access_log; $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); echo This weeks apache log (clears every sunday morning):.

Fwd: [PHP] php not reading file properly

2008-08-20 Thread sean greenslade
, 2008 at 12:15 PM, sean greenslade [EMAIL PROTECTED]wrote: I have this snippet of code that is supposed to read the apache access log and display it: ?php $myFile = /var/log/httpd/access_log; $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); echo

Re: Fwd: [PHP] php not reading file properly

2008-08-20 Thread sean greenslade
: If the directory above it doesn't have execute privileges, it won't be able to read it either. Also, why not use the PHP5 function file_get_contents()? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com sean greenslade wrote: Thanks for the advice. I changed the perms