[PHP] fopen: space character in filename

2006-07-28 Thread Christian Calloway
Hello all, this seems like an easy question, but I could sure as hell couldn't find any responces to it through initial searched. I am running php on an XP system and I need to open a file contained with a set of directories which may or may not have a space character; so for example: fopen

[PHP] Migration to PHP5

2005-12-06 Thread Christian Calloway
Hi, Does anyone have stats in terms of migration from 4 to 5, specifically I'd like to know if the bulk of PHP developers have begun to change-over. I am (was) a Java developer, but have been doing freelance/consultant work in PHP for two years and am still developing on PHP4 platform. I

[PHP] gzuncompress mysql blob field

2005-07-21 Thread Christian Calloway
Heya guys, I've ran into a problem that I just can't seem to get around. Basically I am storing file contents in a compressed format (gzcompress -at 9) in my database -- why -- basically to affect a search of said content using keywords retrieved via an input source (it could be any, doesn't

[PHP] Re: gzuncompress mysql blob field

2005-07-21 Thread Christian Calloway
($record[compress_content]); // this statement causes problems when compress content 64kb $fileContent = $record[compress_content]; // this statement works just dandy } Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Heya guys, I've ran into a problem that I

[PHP] Re: gzuncompress mysql blob field

2005-07-21 Thread Christian Calloway
Ahh I think I got it.. max field size reached Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Heya guys, I've ran into a problem that I just can't seem to get around. Basically I am storing file contents in a compressed format (gzcompress -at 9) in my database

[PHP] HTML - PDF PHP Package

2005-07-15 Thread Christian Calloway
Hi Everyone, I am looking for a PHP based packaged (though it doesn't necesarily have to be) that will convert HTML files to their PDF representations; on the fly of course. Anyone know or have any experience w/this? Thanks in advance, Christian -- PHP General Mailing List

Re: [PHP] HTML - PDF PHP Package

2005-07-15 Thread Christian Calloway
I am converting simple html files.. reports that were created in Doc and then converted to html. I am assuming you are executing this tool from PHP and sending back the results once complete? How has it worked for you. Christian Chris Boget [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] pixels per character

2005-04-14 Thread Christian Calloway
Hey all, trying to dynamically size cell widths; what I need is a formula to measure pixels per character for an arbitrary font (in this case 10pt verdana). A simple function f(x) = strlen(x) * SOMECONSTANT just doesn't seem to cut it, as returned widths are to small are long. Any ideas?

[PHP] PHP CVS solution

2005-03-23 Thread Christian Calloway
Hiya guys, I need some type of extremely simple (yet intuitive) CVS solution, preferbly written in PHP. Namely I want to allow fairly unsavvy computer users (lets say my mom for example) to checkout files of interest, located on some server, via a web-interface and PHP\MySQL backbone. I really

[PHP] interesting problem with zlib/ob_gzhandler compression

2004-07-22 Thread Christian Calloway
I have ran into a rather interesting problem while zlib or gzip compression is enabled on my site. I have an external javascript-php file (a javascript file that is dynamically generated as in filename.js.php) which is included in the main template using the script element (for example script

[PHP] Re: interesting problem with zlib/ob_gzhandler compression

2004-07-22 Thread Christian Calloway
. Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have ran into a rather interesting problem while zlib or gzip compression is enabled on my site. I have an external javascript-php file (a javascript file that is dynamically generated as in filename.js.php) which

[PHP] user tracking

2004-07-06 Thread Christian Calloway
Hey everybody, I am looking for some type of user tracking/stat collecting package. I am sure there's a million; any recommendations? We have some specific needs as well, so mostly likely I will be have to make some code changes. So the simpler package the better. Christian -- PHP General

Re: [PHP] user tracking

2004-07-06 Thread Christian Calloway
Christian Calloway [EMAIL PROTECTED] wrote: Hey everybody, I am looking for some type of user tracking/stat collecting package. I am sure there's a million; any recommendations? We have some specific needs as well, so mostly likely I will be have to make some code changes. So

[PHP] find string position using reg exp

2004-03-29 Thread Christian Calloway
Hi, maby I am missing something, but I am trying to find a way to find the N position/character in a String of a regular expression match. For example, if I look for the pattern abba in 200 character length string, I would like to know where, at what position that match was made. Any ideas?

[PHP] small business inventory management package

2004-03-09 Thread Christian Calloway
Hey, Not looking to reinvent the wheel.. I am looking for an inventory management software package (written in PHP of course) that would be suitable for a small business. So in otherwords, nothing with any bells or whistles, just something that is easily modified/extensible. Any suggestions,

[PHP] compress data before inserting into mysql record?

2004-03-04 Thread Christian Calloway
Hey all, I had a small question concerning how MySQL stores text and longtext fields. Long story short, I have to store a large amount of textual data, and was wondering if I should compress said data and then store it in the db, or does MySQL already concern itself with compression (which would

[PHP] check if user session exists

2004-02-09 Thread Christian Calloway
Given a set of session id's, is it possible to query whether a given session exists. I am not talking about the current user session, instead I am referring to any and all possible user sessions currently in play. For example: if (session_exists($sessionId)) doSomething(); I've been looking very

Re: [PHP] check if user session exists

2004-02-09 Thread Christian Calloway
from your list and go from there. There is no way of knowing if the person is still actively using the SID this way though. Larry. -Original Message- From: Christian Calloway [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 9:28 AM To: [EMAIL PROTECTED] Subject: [PHP

Re: [PHP] check if user session exists

2004-02-09 Thread Christian Calloway
] Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yeah thats pretty much what I have concluded. I was absolutely sure there would be a way to check if a session was still active, but I guess not :-(. Thanks though It depends on your definition of 'active.' If you

[PHP] Need a way to automate user logout

2004-02-05 Thread Christian Calloway
Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I would automatically log out (destroy user sessions and make note of it in the database) on some type of schedule. I have designed a security system that depends upon people logging out to determine the

Re: [PHP] Need a way to automate user logout

2004-02-05 Thread Christian Calloway
a page, then poll to find users for whom now() - last_access_time TIMEOUT. - Lucas On Thu, 5 Feb 2004, Christian Calloway wrote: Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I would automatically log out (destroy user sessions and make

[PHP] Re: Need a way to automate user logout

2004-02-05 Thread Christian Calloway
awesome, thanks for the quick replies guys Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Damn stateless nature of HTTP, hey everyone, can someone point me or give me an idea on how I would automatically log out (destroy user sessions and make note

[PHP] another mysql question, sorry

2004-01-19 Thread Christian Calloway
I am sorry to post another mysql question, but this one is design related. I need to create a relationship between two different tables in two different databases. I feel like I am commiting a sin doing so, but it makes sence at the application level, and to redesign everything would be

Re: [PHP] mysql question

2004-01-16 Thread Christian Calloway
:35 PM 1/15/2004 +, Christian Calloway wrote: Hey, Sorry to post a mysql question here, but I wanted an answer from a PHP perspective. I am currently working on a database (for work) which contains 40 tables, and will continue to expand. The reason for expansion of tables is to obscure

Re: [PHP] mysql question

2004-01-16 Thread Christian Calloway
PM 1/16/2004 +, Christian Calloway wrote: Well let me try and describe a simplified version of what I am doing. I work for a group of analysts, and they analyse technical products. Each products has about 300+ fields associated with it, and each product is vastly different from the other

[PHP] mysql question

2004-01-15 Thread Christian Calloway
Hey, Sorry to post a mysql question here, but I wanted an answer from a PHP perspective. I am currently working on a database (for work) which contains 40 tables, and will continue to expand. The reason for expansion of tables is to obscure to get into, but the relationships all do make sence. I

[PHP] Apache and forward slash

2003-08-29 Thread Christian Calloway
Hey, I am setting up Apache 1.3.27 on a linux box (I really dont know much about linux) and I am having small problem. When a specify a subdirectory off of my document root, I must include a / forward slash in order for the index page to load, otherwise I get the The page cannot be displayed

[PHP] mysql or php timestamp arithmatic

2003-08-26 Thread Christian Calloway
Hey everyone, I am writing an application to keep track of employee vacation leave. I have two timestamp(14) database fields, lets call them start and end, signifying when start and end of a vacation leave, respectively. What I am trying to do is get the number of hours between start and end, for

[PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Hey I wanted to see if anyone was getting the same problem. Using preg_match in the following pattern: /tr bgcolor=#FF(.|\n)+?\/tr/ PHP seems to be crashing. I get a Page cannot be displayed message from the browser. I've come across this before, and I just upgraded to 4.3.3, and no

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
] wrote in message news:[EMAIL PROTECTED] Christian Calloway wrote: Hey I wanted to see if anyone was getting the same problem. Using preg_match in the following pattern: /tr bgcolor=#FF(.|\n)+?\/tr/ You need to escape the double quotes in your string at the very least. -- ---John

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
$fileBuffer = fread ($resource, filesize ($FILE)); // match all table rows $reg = %tr(.|\n)*?(.|\n)+?/tr%; $matches = array(); // output number of matches echo preg_match_all($reg, $fileBuffer, $matches); ? Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Christian

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Errors are not being logged on my XP Pro box (error logging is on) Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Christian Calloway ([EMAIL PROTECTED]): Hey I wanted to see if anyone was getting the same problem. Using preg_match in the following pattern

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Fixed the problem using s pattern modifier: '/regexp/s', without it, it still hangs using '(.|\n)' in the pattern. Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Errors are not being logged on my XP Pro box (error logging is on) Curt Zirzow [EMAIL PROTECTED] wrote

Re: [PHP] preg_match bug

2003-08-26 Thread Christian Calloway
Hmm.. who knows, Ive wasted to much time on this silly problem. I appreciate your help Curt, thanks. Christian Calloway [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Fixed the problem using s pattern modifier: '/regexp/s', without it, it still hangs using '(.|\n)' in the pattern

[PHP] isset bug?

2003-08-22 Thread Christian Calloway
Ok, here's the deal. I like to use $_GET and $_POST variables without values to notify my scripts that some action must be taken. For example, given the following URL: http://blahdomain/blah.php?productid=1edit or given the following form element: input type=hidden name=edit My blah.php script

Re: [PHP] isset bug?

2003-08-22 Thread Christian Calloway
Christian Calloway ([EMAIL PROTECTED]): Ok, here's the deal. I like to use $_GET and $_POST variables without values to notify my scripts that some action must be taken. For example, given the following URL: http://blahdomain/blah.php?productid=1edit or given the following form element

Re: [PHP] session bug or feature

2003-08-14 Thread Christian Calloway
PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Christian Calloway ([EMAIL PROTECTED]): Hey Everyone, I am running Apache 2.047 with PHP (as module) 4.3.2. I ran into something interesting and I wanted to know if it was a bug, or actually supposed to be that way. Given

Re: [PHP] session bug or feature

2003-08-14 Thread Christian Calloway
Yeah I figured as much. That sucks that they would both reference the same location in memory even with globals on. Thanks alot for your help, ill figure out a hack around the hack. Christian Calloway Kirk Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Under 4.3.2

[PHP] session bug or feature

2003-08-07 Thread Christian Calloway
Hey Everyone, I am running Apache 2.047 with PHP (as module) 4.3.2. I ran into something interesting and I wanted to know if it was a bug, or actually supposed to be that way. Given the following lines of code: ?php session_start(); // lets say this equals bar and it was set on a previous page

[PHP] Administration packages

2003-06-04 Thread christian calloway
Hey everyone, I find myself building alot of admin control areas, or in otherwords, a group of forms that lets an end user control data and appearances of his/her site. What I am looking for is a package of classes/functions that will help me automate and modularize this process a little more. I

[PHP] how to force a refresh?

2003-03-12 Thread christian calloway
Ok, well I have a form that uploads images, but of course the problem is, is that IE caches the uploaded images. The only way to clear the cache is to refresh, but that isn't a very user friendly approach. I've tried the following header tags: Header(Pragma: no-cache); Header(Expires: Mon, 26 Jul

[PHP] Why use XML?

2003-02-10 Thread Christian Calloway
Hi, well Im out of a job so I am sitting around learning XML. It seems like a great tool, but I am trying to figure out why I would actually use it? All it does is seperate content and data, albeit on the client, but that is what I have been doing with Smarty and MySQL for awhile now. Why would I

[PHP] PHP catalog software

2002-12-17 Thread Christian Calloway
Hey everyone, Im looking for some type of ecatalog/inventory software written PHP thats fairly good and that I can extend. Any suggestions? Or should I just I write my own from the ground up. The site I am working on sells fairly specialized and unique items, antiques and etc. Thanks -- PHP

[PHP] MySQL Access

2002-09-20 Thread Christian Calloway
Can anyone suggest a strategy for importing data from MySQL to Access (it sucks I know, but I have to do it for my work). I was thinking of using a text-delimited file as an intermediate, but I am not quite sure on the logistics. -- PHP General Mailing List (http://www.php.net/) To

[PHP] include_path? programmatically

2002-09-18 Thread Christian Calloway
I dont have access to the php.ini file, is there anyway to access the include_path setting programatically from php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql question

2002-07-26 Thread Christian Calloway
Sorry this may be a little offtopic, but I am currently moving a site I was developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading somewhere that there is a utility that will convert/transfer (data and structure) a MSAcess database to Mysql, and vice versa. Anyone know? Thanks

[PHP] graphing packages

2002-04-14 Thread Christian Calloway
hey ppl, I need to create some fairly complex graphs dynamically, and I need to be able to specify line, bar, or pie charts. Are there any PHP packages that someone could point me to that would fill my needs. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP timesheets?

2002-01-07 Thread Christian Calloway
Hi, Are there any PHP coded timesheet type web application? And if so, what would we be suggested. Thanks, Christian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] PHP4.1.0 Apache1.3.22 under WinXP

2001-12-15 Thread Christian Calloway
Hi everyone, I'm having troubles getting Apache to recognize .php files, and thus parse them. I followed the instructions included with the PHP4.1.0 distribution, and have PHP loaded as an Apache module, checking my services confirms this as its description reads Apache/1.3.22 (Win32) PHP/4.1.0.

[PHP] Application.cfm like mechanism in PHP?

2001-12-11 Thread christian calloway
Hey everyone, In coldfusion, if you have a file named Application.cfm in the same dir as the script that is currently executing, then the coldfusion server will automatically include that file in beginning of every script in that directory. Is there any way, by manipulating the php config

[PHP] OO question

2001-12-11 Thread christian calloway
I want to be able to override a function/method in a parent class, but then call that function/method from within the overriden function in the child class. The Zend documentation states you can do this: In PHP 4.0 you can call member functions of other classes from within member functions or

[PHP] OO question

2001-12-11 Thread christian calloway
I want to be able to override a function/method in a parent class, but then call that function/method from within the overriden function in the child class. The Zend documentation states you can do this: In PHP 4.0 you can call member functions of other classes from within member functions or

[PHP] phptriad / apache on windows question

2001-11-19 Thread christian calloway
Hi everyone, I just downloaded phptriad, which installs apache/php/mysql/perl on a win system. Im not sure on the language, but I want to be able to define virtual directories. Currently everything under /apache/htdocs/ is accessible from the browser, ie test.php located at

[PHP] Re: poor HTML syntax crashing (!) netscape

2001-07-08 Thread Christian Calloway
I've had the same problem with Netscape, where it would crash/choke on any platform. I never figured it out, but it has something to do with Netscape choking on your HTML, it has nothing to do with CSS or Javascript or PHP for that matter. I'm not an IE fan, but lets face it, Netscape sucks.

[PHP] PHPDOC 2.3.5 released

2001-06-20 Thread Christian Calloway
Hi everyone, I released a new version of PHPDoc, 2.3.5, and is a major update over previous releases. PHPDoc can now parse multiple class definitions in a single file. For anyone that doesnt know, PHPDoc is documenting tool, that converts PHP code to Java syntax, and then hands that result

[PHP] Re: new release : phpdoc v2.0

2001-02-12 Thread Christian Calloway
Great program man! Carlos "Christian Calloway" [EMAIL PROTECTED] wrote in message news:... Hey everyone, I just released phpdoc v2.0, which is a program used to document PHP class definitions. This version is a complete rewrite of v1.0, and takes a different approach t

Re: [PHP] Re: new release : phpdoc v2.0

2001-02-12 Thread Christian Calloway
Sorry, I got this from a user. Didnt mean to send to newsgroup Great program man! Carlos "Christian Calloway" [EMAIL PROTECTED] wrote in message news:... Hey everyone, I just released phpdoc v2.0, which is a program used to document PHP class definitions. Th

[PHP] new release : phpdoc v2.0

2001-02-07 Thread Christian Calloway
Hey everyone, I just released phpdoc v2.0, which is a program used to document PHP class definitions. This version is a complete rewrite of v1.0, and takes a different approach to creating documentation. Where most other applications try to imitate Javadoc as much as possible, this application