Re: [PHP] Friday's Question

2013-09-20 Thread Sean Greenslade
because it sets the DPI of the mouse consistently. My favorite mousepad is this cheap as hell thin rubber and cloth one that I got from dealextreme.com many years ago. Go figure... --Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] openssl and self signed ssl certs

2013-03-28 Thread Sean Laval
I am using a php oauth library which is trying to make secure connections to the oauth server and failing I think because the oauth server uses a self signed cert. How do get php/openssl to trust the cert... where do I import the cert. The cert store is obvious in the openssl implementation I

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

[PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread sean chen
It's cause by eaccelerator module, when I remove this module, the php-cgi works well. Is there some compatible issue between eaccelerator and php? Regards Sean 2011/10/19 Sean Chen s...@coovan.com Hi, ** ** I’ve got a problem when running PHP with nginx, there are several php-cgi

[PHP] 答复: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Sean Chen
/usr/local/websrv/php/etc/php-fpm.conf - THIS ONE PS: The problem is solved, It's cause by eaccelerator module, when I remove this module, the php-cgi works well. Regards. Sean -邮件原件- On 10/20/2011 5:20 AM, sean chen wrote: The red one is busy My email client is color blind

[PHP] Problem of load balance among php-cgi process

2011-10-19 Thread Sean Chen
they are all working I think). But, after several minutes, the problem appears again and again. what's wrong with my php-cgi? PS: how do I debug or monitor the php program running status when it goes wrong? versions: php: 5.2.17 nginx: 5.8.55 OS: CentOS 5.6 64-bit Regards Sean

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] Convert a PDF to a PNG?

2011-06-16 Thread Sean Kenny
Outside the box a bit, but is there perhaps a web-service that does this, something like http://www.thumbalizr.com/ but for PDF files. As long as you had curl or something you would be GTG at that point. -Sean- On Thu, Jun 16, 2011 at 1:48 PM, Brian Dunning br...@briandunning.com wrote: I have

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
That's what I was thinking, thanks for confirming it. On Jun 3, 2011 3:49 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Jun 2, 2011, at 7:09 PM, Stephon Chen wrote: Hello Sean, 1. while I directed connected to these error pages such as 403, 404, and 500.html, they works correctly

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
What happens if you create a test page with just the 500 header and some html content in it? IIRC, apache won't override a php-generated error page. On Jun 2, 2011 8:09 PM, Stephon Chen step...@gmail.com wrote: Hello Sean, 1. while I directed connected to these error pages such as 403, 404

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

2011-06-02 Thread Sean Greenslade
Temple tamouse.li...@gmail.com wrote: On May 31, 2011, at 8:14 AM, Stephon Chen wrote: Hello Sean, Here is my apache config for error handling. 403, 404 works fine, but 500 shows blank page Alias /errorpage/ /usr/local/www/apache22/errorpage/ Directory /usr/local/www/apache22/errorpage

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

[PHP] Call for testing: New PHP 5.3 debian packages

2009-07-01 Thread sean finney
. Please forward any and all feedback/problems to the Debian PHP team's mailing list[2] and if you're convinced that there's a problem, the debian bug tracking system[3] and/or the PHP bug tracking system[4] depending on who you think should get the blame :). Sean Finney (and the rest

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

Re: [PHP] Website on a USB key?

2009-03-06 Thread Sean O
, Joomla, Moodle, SugarCRM, WordPress, etc. http://www.chsoftware.net/en/useware/mowesmixer/mowesmixer.htm?step=2 And, of course, run it all from your USB Drive. SEAN O http://www.sean-o.com haliphax wrote: On Fri, Mar 6, 2009 at 3:24 AM, Robert Cummings rob...@interjinn.com wrote: On Fri

Re: [PHP] Two troublesome fields

2009-02-20 Thread Sean DeNigris
... $sql .= '. mysql_real_escape_string($Notes) .'); Sean DeNigris s...@clipperadams.com

[PHP] Why is this secure?

2009-02-16 Thread Sean DeNigris
session with an SID known to the attacker. However, the top snippet does not cause an SID to be recorded in a cookie, but the bottom one does. Hence, the attack is prevented, but why? Thanks, cheers! - Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Why is this secure?

2009-02-16 Thread Sean DeNigris
lol, neither. It was from a site I had coded. I read an article about session fixation and it seemed vulnerable based on what I read, but when I tested it, it didn't seem to be and I wasn't sure why. What made you think that? - Sean On Feb 16, 2009, at 8:16 PM, Ashley Sheridan wrote

[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

[PHP] Re: A good book for a perspective programer.

2008-01-14 Thread Sean-Michael
tutorials and books as I mentioned. To make this my profession, and have a type of paper declaring that I'm not just a hack ; ). Your books also look very good, I will probably be a future costumer! Thanks, once again! Sean-Michael David Powers [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] A good book for a perspective programer.

2008-01-13 Thread Sean-Michael
! Thanks again! Sean-Michael. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have learned PHP using PHP manual available at the www.php.net in chm format... You can also try.. my php free books collection here http://www.kingzones.org/bookszone/php.php But still I go with PHP

[PHP] A good book for a perspective programer.

2008-01-11 Thread Sean-Michael
I've been searching the web for all the tutorials I can on the subject of php programming, I don't think there is a limit on what is really available to learn. What I want to ask is if anyone can recommend a good/best text book to learn from, I like to have a good book on hand! I was going to

Re: [PHP] iterating and changing value of an array using foreach and references - PHP 5.2.3

2007-08-19 Thread Sean Pringle
On 8/18/07, Yashesh Bhatia [EMAIL PROTECTED] wrote: Hi, Here's an interesting observation i noticed while using foreach to iterate on arrays using references for it's values. -

Re: [PHP] get and post together

2007-08-08 Thread Sean Pringle
On 8/9/07, Ray [EMAIL PROTECTED] wrote: Hi all, I've done something and I want to know if I should be ashamed :) I've set up a form with method=POST and target =page.php?foo=bar it works fine. $_POST[...] gives me the data I want and $_GET['foo']=='bar'. I freely admit it's an ugly kludge,

[PHP] Downloading a binary file

2007-01-11 Thread Sugrue, Sean
I need download a binary file in php. I don't need to read the contents just download the whole file to a browsed directory. I know you can use the header function, does anyone know the syntax. Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] RETURNED MAIL: SEE TRANSCRIPT FOR DETAILS

2006-11-23 Thread sean-lezlie_allison
Hºp˜Y«!­í†‹CUZʹÒNŽÕ¸Jàáú _ë2-Y§Ãy¨ès‡\¬L¨ -Þ¢õ#Q“1æX*B²æfc¤¢LZFç^[F)DÖL¥WöfjÄHŒ l®¨bۃµ¢áÙۉ°nV Ʀy¿¤ Íñã3’›¹0žy|âíóŸÍÝ9DUyXÅN¾õ¢½\¤òõê¤÷6ãҚJCôvV#Fܶîn^0©÷°»f1±JwùbÓdxd,/⊠ñ òÖñ{W†ÎtÙ¬øKH†(uó(ÝÅÕcđ²æ{ï£ü¡Æ›Ur!þx›§aâqKäQÐËÎDó•ºßÞG¸¿9þ†št²ž{uZÑ9™ðQgågBØÁøªc¤›oחáØH—,~Z‚mœƒr•âÃrÂÜpF¢±‚5 

[PHP] Directory name

2006-11-01 Thread Sugrue, Sean
I'm trying retrieve a directory name and a filename with a form. I want to use input type file so the user can browse for the file but keep the whole directory name. Any help Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Sean Pringle
The Caching systems such as Zend Cache (not the Optimizer), MMCache, APC, etc are expressly designed to store the tokenized version of the PHP script to be executed. Note that their REAL performance savings is actually in loading from the hard drive into RAM, not actually the PHP tokenization.

[PHP] Back arrow button

2006-05-12 Thread Sugrue, Sean
Does anyone know how to launch a new page with having the back arrow button grayed out? Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Updating form

2006-03-15 Thread Sugrue, Sean
Does anyone know how to update an option list queried from a database table after an insert/delete action on that table? Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using javascript with php

2006-02-15 Thread Sugrue, Sean
to a config file we all use and now the code will not work in Firefox. Does anyone out there perform this task differently? Any suggestions? Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Directory permissions

2006-01-25 Thread Sugrue, Sean
Does anyone know if there is a way to change permission on a directory on a Solaris OS through php? And if there is a way authenticate the owner of the directory through an rlogin or su. Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Drop down directory structure list box

2006-01-18 Thread Sugrue, Sean
Does anyone know what the best way to list a directory dialog box or directory drop down list in Php? The script I'm writing has a form that asks the user where his files are and I don't want the user to have to remember the whole directory path in order to type it. Sean -- PHP General Mailing

Re: [PHP] Using aliases to have an email trigger a php script

2006-01-17 Thread Sean Lerner
Hey Everyone, Thanks for your help. It was the absolute path I needed for the toronto.txt file. Sean On 1/14/06, Sean Lerner [EMAIL PROTECTED] wrote: Hello, I'd like an email received to [EMAIL PROTECTED] to trigger a php script. I've configured the following: in /var/www/wq

[PHP] Using aliases to have an email trigger a php script

2006-01-14 Thread Sean Lerner
though I don't think I'm running smrsh on my server) Any idea as to why my script isn't being triggered by the email? Any further logs I can check? Thanks, Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Changes from 5.0.4 = 5.0.5 (_SERVER variabes not defined).

2005-11-14 Thread Sean O Sullivan
for any suggestions/ideas in regards to this matter. Regards, Sean O Sullivan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Delivery reports about your e-mail

2005-06-16 Thread Sean Straw / PSE
Yes, it would be nice if the list didn't relay this obvious cruft. I'm s*bscribed to quite a few discussion lists, and php-general seems to be the ONLY one relaying these malware messages and the claims of virus filters. It looks rather like php-general is operating as an open list, seeing as

Re: [PHP] remote script execution

2004-09-08 Thread Sean Smith
is awesome. I just hope that I can become such a help in the future. Thanks again. Sean Vail, Warren wrote: Ignoring PHP for a moment; to execute a string of commands on a remote machine using ssh you would execute the following; Promptssh -l user ps -ef|grep edit;cd /usr/local/bin;ls -la Which would

[PHP] Re: Timing on an internal email

2004-09-08 Thread Sean Smith
You can have the php script written so that it performs the functions you want then setup a cron job to run that script at a given time or interval. I do this with daily and weekly operations now. It works great. Alex Hogan wrote: Hi all, I want to set up a delivery date and time for emails to

Re: [PHP] remote script execution

2004-09-07 Thread Sean Smith
this type of thing in PHP before and I want to make sure I do it right. Thanks. Sean Vail, Warren wrote: I've done a number of these and the choice depends on many things but perhaps the biggest factor is; Is server 1 and server 2 behind the same firewall or are they exposed to the internet? Behind

[PHP] remote script execution

2004-09-03 Thread Sean Smith
the script on Server 2 and have Server 2 return the variable back to Server 1 for processing. Is that possible? Any help would be appreciated. Thank you. Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] remote script execution

2004-09-03 Thread Sean Smith
to accomplish this? Any help would be appreciated. Thank you. Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] remote script execution

2004-09-03 Thread Sean Smith
. Thank you. Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] The ' character and Hidden (POST) form fields...

2004-08-16 Thread Sean O'Donnell
= preg_replace(/'/,',$str); But I was curious if anyone else has experienced this issue, or has a clear description of why it occurs. Thanks, SEAN O'DONNELL PROGRAMMER/ANALYST The Design People, Inc. Your Future in Site. [ phone 310.577.9111 ext. 104 | fax 310.577.9444 ] 12 WASHINGTON BLVD. | SECOND FLOOR

Re: [PHP] The_'_character_and_Hidden_(POST)_form_fields...

2004-08-16 Thread Sean O'Donnell
the #146; character... *damn outlook rewrote it in my email. =/ SEAN O'DONNELL PROGRAMMER/ANALYST The Design People, Inc. Your Future in Site. [ phone 310.577.9111 ext. 104 | fax 310.577.9444 ] 12 WASHINGTON BLVD. | SECOND FLOOR | MARINA DEL REY | CA 90292-5124 -- PHP General Mailing List

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Sean Malloy
I know this isn't solving your problem, but here is how I do it: class RowAlternator { private $on; private $off; private $state; function RowAlternator($on = On, $off = Off) { $this-on = $on; $this-off = $off; } function switchState() { $this-state = !$this-state;

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Sean Malloy
class RowAlternator { private $on; private $off; private $state; oops, I only half removed PHP5 only syntax. class RowAlternator { var $on; var $off; var $state; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error: unexpected T_ELSE on line 14...?

2004-07-18 Thread Sean Malloy
1. The obvious ; at the end of the line. 2. $_SESSION[Authorised]=Yes it's different to write: $_SESSION[Authorised]==Yes Gotta love c style languages where variable assignment is like variable comparison. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Templates Are Driving me Nuts

2004-07-17 Thread Sean Malloy
The template system I use is extremely simple. Template.php: ?php class Template { var $Items; var $_document; function Template($document) { $this-Items = array(); $this-_document = $document; } function Render()

  1   2   3   4   >