[PHP] Capturing phpinfo()

2004-11-23 Thread Ashley M. Kirchner
.) Is this even possible? -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A

[PHP] Grabbing last file...

2004-07-06 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP General

[PHP] Browser reload problem

2004-07-28 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO

Re: [PHP] Browser reload problem

2004-07-29 Thread Ashley M. Kirchner
] = 20.00 .. some more _POST variables that match the _REQUEST ones above -- L | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director

Re: [PHP] Conversion of Field Value to Hyperlink

2004-07-29 Thread Ashley M. Kirchner
somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http

Re: [PHP] Browser reload problem

2004-07-30 Thread Ashley M. Kirchner
back to the same page really discards all of the $_POST variables. And if so, what happens with the $_REQUEST ones? -- W | I haven't lost my mind; it's backed up on tape somewhere. + Ashley M. Kirchner mailto:[EMAIL PROTECTED

[PHP] Looking for article

2004-08-12 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder

Re: [PHP] Intro to PHP question

2007-03-08 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Imaging . 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder, CO 80303, U.S.A. -- PHP

[PHP] set_time_limit failing...

2007-04-30 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Imaging . 3550 Arapahoe Ave. #6 http://www.pcraft.com . . .. Boulder

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Imaging . 3550 Arapahoe Ave. #6 http://www.pcraft.com

Re: [PHP] Just to prove my point (used to be - Re: [PHP] People's misbehavior on the list)

2007-05-18 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:[EMAIL PROTECTED] . 303.442.6410 x130 IT Director / SysAdmin / Websmith . 800.441.3873 x130 Photo Craft Imaging . 3550 Arapahoe Ave. #6 http

[PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
Typing 'pear segmentation fault' in Google produces tons of responses so I know I'm not the only one with this issue, but I'll be damned if I can figure out what the problem is and how to fix it. I rolled my own PHP 5.3.0 from source. Compilation went fine, no errors. Installation went

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
from php.net and installed that. -- H | It's not a bug - it's an undocumented feature. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130 IT Director / SysAdmin. 800.441.3873 x130

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
is that PEAR segfaults no matter what I try to install. PECL works just fine (at least I was able to install something with it.) -- H | It's not a bug - it's an undocumented feature. + Ashley M. Kirchner mailto:ash...@pcraft.com

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130 IT Director / SysAdmin. 800.441.3873 x130 Photo Craft Imaging . 2901 55th Street http://www.pcraft.com

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
) ..done: 291,634 bytes Segmentation fault -- H | It's not a bug - it's an undocumented feature. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130 IT Director / SysAdmin

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
feature. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130 IT Director / SysAdmin. 800.441.3873 x130 Photo Craft Imaging . 2901 55th Street http

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130 IT Director / SysAdmin. 800.441.3873 x130 Photo Craft Imaging . 2901 55th Street http

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
| It's not a bug - it's an undocumented feature. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130 IT Director / SysAdmin. 800.441.3873 x130 Photo Craft Imaging

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner
I needed, but it doesn't actually fix the problem: enabling zlib will cause pear to segfault. -- H | It's not a bug - it's an undocumented feature. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130

Re: [PHP] Imagick question

2009-11-05 Thread Ashley M. Kirchner
Brady Mitchell wrote: I'm sure it can be done, but without seeing your code we can't really help. Easily solved. From the PHP manual (http://www.php.net/manual/en/function.imagick-roundcorners.php): ?php $image = new Imagick(); $image-newPseudoImage(100, 100,

Re: [PHP] Imagick question

2009-11-05 Thread Ashley M. Kirchner
. + Ashley M. Kirchner mailto:ash...@pcraft.com . 303.442.6410 x130 IT Director / SysAdmin. 800.441.3873 x130 Photo Craft Imaging . 2901 55th Street http://www.pcraft.com

[PHP] Connect to LDAP

2009-11-08 Thread Ashley M. Kirchner
Hi folks, I've never done any PHP-LDAP code writing (nor have I ever dealt with an LDAP server to begin with.) However I'm writing an app which requires verifying a user's credentials against an LDAP server. The admin of the server sent me the following snippet, however also made it

[PHP] Splitting a string ...

2010-03-14 Thread Ashley M. Kirchner
I'm not a regexp person (wish I was though), and I'm hoping someone can give me a hand here. Consider the following strings: - domain\usern...@example.org - domain\username - the same as above but with / instead of \ (hey, it happens) -

[PHP] ldap_bind() connectivity

2010-03-15 Thread Ashley M. Kirchner
Thanks to Jochem Mass for helping earlier to the string splitting. Works great (so far). Now on to my next problem, which has to do with ldap_bind(). I have the following code: $ldapconn = @ldap_connect($adServer); $ldapbind = ldap_bind($ldapconn, $ldapuser, $ldappass);

[PHP] preg_match? Or something else?

2010-04-02 Thread Ashley M. Kirchner
I have an array that's created as follows: $string = 73G146C 311- 309.1C; $arr = preg_split(/[\s]+/, $string); Now I need to take each element in that array, and break them up even further so that I get: 73G= 73 and G 146C = 146 and C 311- = 311 and - 309.1C =

[PHP] Updating HTML on page

2010-04-05 Thread Ashley M. Kirchner
I have a PHP script that queries a DB to get a list of image names. Then it processes each name and generate thumbnails and what not. What I want to do is have a page called (through the browser) which updates as the PHP process in the background is working. So when you first pull up the page

RE: [PHP] Updating HTML on page

2010-04-05 Thread Ashley M. Kirchner
? -Original Message- From: TG [mailto:tg-...@gryffyndevelopment.com] Sent: Monday, April 05, 2010 8:48 PM To: Ashley M. Kirchner; php-general@lists.php.net Subject: Re: [PHP] Updating HTML on page The only way to do it with PHP alone would be to control the output buffering and I've found

[PHP] Array differences

2010-04-13 Thread Ashley M. Kirchner
I have the following scenario: $array1 = array(12, 34, 56, 78, 90); $array2 = array(12, 23, 56, 78, 89); $result = array_diff($array1, $array2); print_r($result); This returns: Array ( [1] = 34 [4] = 90 )

Re: [PHP] Array differences

2010-04-14 Thread Ashley M. Kirchner
On 4/14/2010 2:39 AM, Ashley Sheridan wrote: On Tue, 2010-04-13 at 23:01 -0600, Ashley M. Kirchner wrote: $array1 = array(12, 34, 56, 78, 90); $array2 = array(12, 23, 56, 78, 89); $diff1 = array_diff($array1, $array2); $diff2 = array_diff($array2, $array1

RE: [PHP] Array differences

2010-04-14 Thread Ashley M. Kirchner
Sun [mailto:ryansu...@gmail.com] Sent: Wednesday, April 14, 2010 8:45 AM To: a...@ashleysheridan.co.uk Cc: Ashley M. Kirchner; php-general@lists.php.net Subject: Re: [PHP] Array differences Maybe this one works? array_diff(array_unique($array1 + $array2), array_intersect($array1, $array2

RE: [PHP] Array differences

2010-04-14 Thread Ashley M. Kirchner
-Original Message- From: lala [mailto:l...@mail.theorb.net] Sent: Wednesday, April 14, 2010 10:15 AM To: Ashley M. Kirchner Cc: php-general@lists.php.net Subject: Re: [PHP] Array differences Ashley M. Kirchner wrote: $array1 = array(1, 2, 3, 4, 5, 6); $array2 = array

[PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
Slightly OT, but I can't think of a better forum to ask this in. I'm sure a lot of us here have at some point or another built a system that requires registration to gain access. What I'm trying to figure is how to set different levels of access. We're building a large site for a school

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Nilesh Govindarajan [mailto:li...@itech7.com] Sent: Sunday, May 02, 2010 8:20 PM To: php-general@lists.php.net Subject: Re: [PHP] Need login suggestions Its a very bad idea to allow public registration for parents, instead the school IT department should

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Nathan Rixham [mailto:nrix...@gmail.com] Sent: Sunday, May 02, 2010 8:39 PM To: Ashley M. Kirchner Cc: php-general@lists.php.net; Nilesh Govindarajan Subject: Re: [PHP] Need login suggestions Ashley, I think Nilesh, (and later both Bobby I), were just

[PHP] RE: Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Nathan Rixham [mailto:nrix...@gmail.com] Sent: Sunday, May 02, 2010 8:21 PM To: Ashley M. Kirchner Cc: php-general@lists.php.net Subject: Re: Need login suggestions Ideally you need to be able to unambiguously identify either a student or a parent

RE: [PHP] Re: Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Bobby Pejman [mailto:bpej...@gmail.com] Sent: Sunday, May 02, 2010 8:30 PM To: Nathan Rixham; Ashley M. Kirchner Cc: php-general@lists.php.net Subject: Re: [PHP] Re: Need login suggestions I would also agree that allowing parent registration could be risky

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Angus Mann [mailto:angusm...@pobox.com] Sent: Sunday, May 02, 2010 10:43 PM To: Ashley M. Kirchner; php-general@lists.php.net Subject: Re: [PHP] Need login suggestions It sounds like it really doesn't matter how you do it. Nothing bad happens if a student

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Sunday, May 02, 2010 10:53 PM To: php-general@lists.php.net Subject: Re: [PHP] Need login suggestions The only reliable way to resolve this is to let the school administration to handle it. Each

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Adam Richardson [mailto:simples...@gmail.com] Sent: Sunday, May 02, 2010 10:59 PM To: php-general@lists.php.net Subject: Re: [PHP] Need login suggestions Just be cautious with FERPA guidelines (which can actually get quite confusing) if you're doing this

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
-Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Sunday, May 02, 2010 11:44 PM To: PHP Subject: Re: [PHP] Need login suggestions Hi Ashley, I would have your database that is attached to this part of the website, verify with another database that

RE: [PHP] Need login suggestions

2010-05-03 Thread Ashley M. Kirchner
-Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Monday, May 03, 2010 12:03 AM To: PHP Subject: Re: [PHP] Need login suggestions I see, well I have a login that has multiple levels and here is how I have it. Obvious pertinent info has been changed,

Re: [PHP] is ?= good?

2010-06-11 Thread Ashley M. Kirchner
On 6/11/2010 11:40 AM, Daevid Vincent wrote: I use short tags and I output XML all the time. I think there's a difference to note here. You're outputting XML from PHP, versus files having XML tags in the files ... I ran into a problem with short tags not too long ago when a client

Re: [PHP] is ?= good?

2010-06-11 Thread Ashley M. Kirchner
On 6/11/2010 4:07 PM, David Harkness wrote: *PHP* files? I would have flagged that as the problem rather than disabling short tags. Yeah, whoever created their site originally mixed XML/HTML/PHP all in the same file (all the files were .html but contained xml and php snippets) so I

[PHP] MySQL select matching

2010-07-19 Thread Ashley M. Kirchner
I may be going at this completely wrong but at the moment I'm stuck. I have a DB from a client and need to do several searches on it. This one sentence is important because it's their DB, not mine. So I can't modify the way the DB was created in the first place, I can only work with

[PHP] Re: [MySQL] Re: MySQL select matching

2010-07-19 Thread Ashley M. Kirchner
On 7/19/2010 10:48 AM, Michael Dykman wrote: Not quite sure what the question is. from: mysql select * from table where id='1'; +---+-+-+---+ | 1 | 123 | 0.0 | C | | 1 | 234 | 0.1 | D | | 1 | 345 | 0.0 | D | | 1 | 456 | 0.1 | C | | 1 | 567 | 0.1 | G |

[PHP] Printing in columns

2010-08-27 Thread Ashley M. Kirchner
I need some guidance here. I've been fighting with this problem for a few days now and not having a whole lot of luck. I have some, but I run into issues sooner or later. So I'm hoping that someone here can give me some ideas of how to better approach this, perhaps help with

[PHP] Google Visualization Chart API

2011-02-17 Thread Ashley M. Kirchner
I'm currently using Google Visualization API[1] to generate both interactive and static charts for a client and they're viewing these online[2]. However they now want to be able to download a PDF containing the charts (static) in it. Does anyone know of a way where I can take the same

Re: [PHP] Google Visualization Chart API

2011-02-17 Thread Ashley M. Kirchner
On 2/17/2011 12:26 PM, Ashley Sheridan wrote: Googles API creates an image which you can save locally and insert into a PDF that you create with something like fpdf. There are plenty of functions in PHP which can be used for this, such as fread(), etc. That's the thing, I know it does,

RE: [PHP] Google Visualization Chart API

2011-02-17 Thread Ashley M. Kirchner
So. Easy peasy. Not exactly. Those examples are not from the Visualization API - it's two different things. The API is written so that one does not have to generate those parameters individually and then pass them through POST/GET to Google. It's cleaner and faster to work with.

[PHP] Check for open file

2011-03-03 Thread Ashley M. Kirchner
Is there a clean or reliable way of checking to see if a file is still being written to before doing anything with it? Here's the scenario: we have a Samba share that we can copy files to (from within Windows or Macs). The server picks up the file and does

RE: [PHP] Check for open file

2011-03-03 Thread Ashley M. Kirchner
Write the file with a temporary name and extension. Once the file is closed, change the name to the pattern your server is looking for. Once you finish processing it, either change the name again, or move it to a different directory. Don't reuse the same file name, but add a numeric value

RE: [PHP] Check for open file

2011-03-03 Thread Ashley M. Kirchner
As far as I was aware, if you're in the middle of writing to a file and another script was attempting to write to it, the OS would prevent that as you had an open lock on it. -- Thanks, Ash http://www.ashleysheridan.co.uk I guess I would have to test that. -- PHP General

[PHP] Extracting data from exec() call

2011-06-14 Thread Ashley M. Kirchner
I'm trying to extract data coming from an exec() call. The exec() call is performing an ncdump on a netCDF file: ?php $filename = mlab.20110101.cdf; exec(/usr/bin/ncdump -l 2048 -v wmax .$filename, $output); echo ---\n; print_r($output); echo ---\n; ?

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Ashley M. Kirchner
On 6/14/2011 12:03 PM, Shawn McKenzie wrote: --or to search for wmax = if($array = preg_grep('/^ wmax = $/', $output)) { $wmax = explode(', ', $array[0]); } array_shift($wmax); print_r($wmax); May need some more error checking. Yeah, error checking ... Can't search for '/^ wmax

[PHP] Variables via url

2012-05-11 Thread Ashley M. Kirchner
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///variable/ I will only be passing one single /variable/. And I want the /script/ to use that. I don't want to see what the script

Re: [PHP] Re: Variables via url

2012-05-12 Thread Ashley M. Kirchner
On 5/12/2012 7:21 AM, Jim Giner wrote: Of course, someone here with much more knowledge than I could very soon make me look stupid :) Meh, I don't call that looking stupid. I call it a different way of skinning the cat. :) We're all here to learn from one another, right? Thanks

<    1   2   3