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] [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 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 examp

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 wrote: > > > > On Wed, May 29, 2013 at 7:27 PM, Sean Greenslade > wrote: >> >> > It is possible to write a whole parser as a single regex, being it >> > terribly >> > long and complex. >> >

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 no

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 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 don't wan

Re: [PHP] Finding an Address

2013-02-28 Thread Sean Greenslade
On Thu, Feb 28, 2013 at 3:18 PM, Serge Fonville wrote: > 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 substract start(x,y)

Re: [PHP] fopen and load balancing

2013-02-11 Thread Sean Greenslade
messages, we're basically relegated to blind guessing. I don't think that's what you want, so if you still have a question, I suggest you start by investigating the relevant logs. If you can't figure out the issue from there, post _relevant_ snippets to the list. Also remembe

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

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

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

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" wrote: > Hello > > I have a freebsdbox firewall . also I have some internet customers. I > want > to save how much data they used in a table ( su

Re: [PHP] free space

2012-01-31 Thread Sean Greenslade
On Tue, Jan 31, 2012 at 1:59 PM, saeed ahmed wrote: > 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 from sites such as thi

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 > wrote: > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you have > rec

Re: [PHP] Re: files outside of documentRoot

2011-10-09 Thread Sean Greenslade
On Sun, Oct 9, 2011 at 9:52 AM, Ricardo Martinez wrote: > 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 >wrote: > > > On 10/08/2011 03:40 PM, Ricardo Martinez wrote: > > > Hi List! > > > > > > I need to

Re: [PHP] PHP Download Of Application Question?

2011-10-08 Thread Sean Greenslade
On Sat, Oct 8, 2011 at 6:53 PM, Thomas Dineen 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 permanently on the > cli

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,

Re: [PHP] PHP cron job optimization

2011-09-10 Thread Sean Greenslade
On Sat, Sep 10, 2011 at 4:35 AM, muad shibani wrote: > 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 collect all those f

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 wrote: > > > How to have a smooth hairless skin wrote: > > >How to have a smooth hairless skin. > > Hairless in the bikini zone. > >Click here: > > > > > > > > How does one go about compiling that module from sour

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 wrote: > Andre Polykanine 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 the page included. > > No

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" 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" 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? > > > Thanks. > -- > PHP Gene

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" wrote: >> >> Reminds me (obliquely) of an entry in the index for "The C Programming >> >> Language" for recursion,

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

2011-06-04 Thread Sean Greenslade
TTP/1.1 403') and header('HTTP/1.1 404') shows the >> correct custom error page. >> >> Thanks a lot >> -- >> stephon >> >> On Fri, Jun 3, 2011 at 07:21, Sean Greenslade >> wrote: >> So do you get the contents of that page in the resp

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" 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 want some advice

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

2011-06-03 Thread Sean Greenslade
and header('HTTP/1.1 404') shows the correct > custom error page. > > Thanks a lot > -- > stephon > > On Fri, Jun 3, 2011 at 07:21, Sean Greenslade wrote: > >> So do you get the contents of that page in the response? What happens when >> you browse to th

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" 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-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" wrote: > All 403, 404, 500.html are static html pages like: > > > 500 error happens > > > On Wed, Jun 1, 2011 at 14:10, Tamara Temple wrote: > >> >

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" wrote: > Hello all, > > I use a test script below to generate HTTP 500 status: > > header('HTTP/1.1 500 Internal Server Error'); > ?> > > It causes

Re: [PHP] mysql problems

2011-05-11 Thread Sean Greenslade
On Wed, May 11, 2011 at 2:25 PM, Curtis Maurand 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, "SELECT

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 8:50 PM, Jim Giner wrote: > 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: http://www.php.net/unsub.ph

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

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 8:52 PM, Rick Dwyer 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 expire arg, the br

Re: [PHP] refreshing pages in the cache

2011-04-27 Thread Sean Greenslade
On Wed, Apr 27, 2011 at 4:42 PM, Jim Giner wrote: > I"m 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 > "rebuild" > and thus

Re: [PHP] openssl question

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

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

Re: [PHP] Mediawiki's url confusion

2009-07-23 Thread sean greenslade
On Thu, Jul 23, 2009 at 10:28 PM, Dengxule 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 . > > The mediawiki install script cannot do nothing to httpd.

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

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 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 know what the new

[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 generate/che

FWD: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 1:11 PM, Kyle Terry wrote: > > > On Fri, Dec 19, 2008 at 10:07 AM, sean greenslade > wrote: > >> On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham >> wrote: >> >> > >> > > So, I have this code in a php file called

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 1:04 PM, Philip Graham 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 not found.

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:55 PM, Kyle Terry wrote: > > > On Fri, Dec 19, 2008 at 9:50 AM, Wolf wrote: > >> >> Kyle Terry wrote: >> > On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: >> > >> > > Bottom Post >> > > &

Re: [PHP] Require error

2008-12-19 Thread sean greenslade
On Fri, Dec 19, 2008 at 12:50 PM, Wolf wrote: > > Kyle Terry wrote: > > On Fri, Dec 19, 2008 at 9:43 AM, Wolf wrote: > > > > > Bottom Post > > > > > > sean greenslade wrote: > > > > No. The file is called testing.php and it i

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 wrote: > > > On Fri, Dec 19, 2008 at 9:28 AM, sean greenslade wrote: > >> So, I have this code in a php file called testing.php: >> $incl = '/we

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

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

[PHP] Bitwise operation giving wrong results

2008-10-29 Thread sean greenslade
I have the following code as a test: if I set a to 15 and b to 2 in the URL like so: test.php?a=15&b=2 it outputs zero as the answer. When I run the hard-coded '&' operation (the commented out echo), it returns 2. I'm stumped. -- --Zootboy

Re: [PHP] textarea html generation problem

2008-09-18 Thread sean greenslade
the display code and > the reverse to the store 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 th

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. Hi all! I am trying to make a PHP HTML editor. I have made the entire e

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 man

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

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

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 f

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

2008-08-22 Thread sean greenslade
nternal Developer > http://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. > >

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

2008-08-22 Thread sean greenslade
een > offline, so I've 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

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

2008-08-22 Thread sean greenslade
g written to as you 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 > > >

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

2008-08-22 Thread sean greenslade
> the file at the very same 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]>

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

2008-08-21 Thread sean greenslade
't interfere with Apache > accessing things. > > Ash > www.ashleysheridan.co.uk > > > -- Forwarded message -- > From: "sean greenslade" <[EMAIL PROTECTED]> > To: "Micah Gersten" <[EMAIL PROTECTED]> > Date: Wed, 20 Aug 2008 19

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

2008-08-20 Thread sean greenslade
L PROTECTED]> wrote: > 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://ww

Fwd: [PHP] php not reading file properly

2008-08-20 Thread sean greenslade
n/language.operators.errorcontrol.php>to suppress > this warning. > > > On Wed, Aug 20, 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: >> >$myFil

[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: For some reason, it displays the logs when I run the php file thru terminal: php -f /web/apache.php but not when I access it thru the web. when I browse to it, it just displays the static text ("This weeks