[PHP] DAO/VO Pattern Help

2005-07-13 Thread Jed R. Brubaker
Hello all, As I am trying to take my PHP code in a more enterprise direction with strict model/logic/view layers, I have been working with DAOs and the matching VOs. So I am running into a problem that I could really use some direction on: DAO/VO works great with single tables, but I tend to

[PHP] Re: mysql problems

2005-03-03 Thread Jed R. Brubaker
R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all - I could use a lead on a problem. I just don't know where to start. I have a PHP script that populates a database table. No big deal. It creates mailing labels. However, a weird things keeps happening - every

[PHP] mysql problems

2005-03-01 Thread Jed R. Brubaker
Hi all - I could use a lead on a problem. I just don't know where to start. I have a PHP script that populates a database table. No big deal. It creates mailing labels. However, a weird things keeps happening - every once in a while, a query is run twice. It is the same query, same

[PHP] bizzare duplicate mail() call

2005-01-06 Thread Jed R. Brubaker
Hello all - this problem is so wierd that I don't even know where to start. Hopefully you all can give me a couple leads. I have some reporting systems going on in various places on the server - mail() is called when a user does this or that. These scripts are farily simple, so I am next to

[PHP] dbm choices - advice?

2004-10-14 Thread Jed R. Brubaker
Hi all - I am looking at using a dbm-style cache system and was wondering if anyone has any recommendations from the plethora of systems listed here: http://us2.php.net/manual/en/ref.dba.php Is there a favorite? I know if probably depends on what I want to do, so in short, I am looking to

[PHP] mail problems - phpinfo information

2004-10-13 Thread Jed R. Brubaker
I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right mailing program. I know that our system is supposed

Re: [PHP] mail problems - phpinfo information

2004-10-13 Thread Jed R. Brubaker
So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? That is why I posted. I apologize if I didn't make it clear. I have read all about mail, and even used the fantastic Lemos MIME

[PHP] rename() on NT

2004-10-13 Thread Jed R. Brubaker
Can this be done when the file already exists? cleong at organic dot com says 29-Mar-2000 04:36 rename() doesn't seem to overwrite files on NT. The behavior is an OS-dependent side-effect I guess. on the PHP site @ http://us2.php.net/manual/en/function.rename.php So this this true, or is

[PHP] Are server classes possible?

2004-10-12 Thread Jed R. Brubaker
I am thinking like JavaBeans. Here is what I have going on: I have a series of rather database intensive queries that I would like some class to cache and provide access for page loads. I don't care how the information is stored, but I am trying to minimize the database call down to only once

[PHP] Re: blank emails

2004-09-27 Thread Jed R. Brubaker
But wouldn't that mean that the email that is being sent to my client would be blank as well? Manuel Lemos [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, On 09/27/2004 12:27 PM, Jed R. Brubaker wrote: I have run into a problem with my email class. A bunch of reciepients

[PHP] database content searching

2004-09-13 Thread Jed R. Brubaker
Hi all. I was wondering if any of you have experience with searching through a database for user provided search terms. I was hoping that maybe I could get some insight into how to better approach what I am doing. Are there any great articles or example classes that I could look at? Please let

[PHP] applying search terms

2004-09-13 Thread Jed R. Brubaker
Hi all. I was wondering if any of you have experience with searching through a database for user provided search terms. I was hoping that maybe I could get some insight into how to better approach what I am doing. Are there any great articles or example classes that I could look at? Please let

[PHP] matching search terms

2004-09-13 Thread Jed R. Brubaker
Hi all. I was wondering if any of you have experience with searching through a database for user provided search terms. I was hoping that maybe I could get some insight into how to better approach what I am doing. Are there any great articles or example classes that I could look at? Please

[PHP] Remove punctuation

2004-09-09 Thread Jed R. Brubaker
Hi all! I am creating a function that will remove punctuation from a string, however, I am wondering if PHP has a function somewhere that will do the same. Right now my approach is to cycle through an array of punctuation and remove the items. Anything already exist? Thanks! -- PHP

[PHP] class packages

2004-09-08 Thread Jed R. Brubaker
As far as I can tell there is not an easy way yet to create packages in PHP5. It seems the following is the best option: include('classes/help/Search.inc'); // Inside Search.inc and in the same package include('OtherClass.inc'); include('AnotherClass.inc'); Is there a better way? Thanks! --

[PHP] Re: class packages

2004-09-08 Thread Jed R. Brubaker
Oh - and naming conventions. Do you define the class?: class help.Search { } Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] As far as I can tell there is not an easy way yet to create packages in PHP5. It seems the following is the best option: include('classes

Re: [PHP] class packages

2004-09-08 Thread Jed R. Brubaker
: -- Do you define the class?: class help.Search { } -- Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Out of curiosity, how would you prefer it? the way you mentioend is basically how i do though. Jason Jed R. Brubaker [EMAIL

Re: [PHP] class packages

2004-09-08 Thread Jed R. Brubaker
Alex, You suggestion about the config file is interesting, but while I go and re-read your post, I am wondering how you would avoid class name conflicts. Point and case, the only reason I am going after packages is because I have a search class that is used for something else, and I want to

[PHP] referencing a class

2004-09-07 Thread Jed R. Brubaker
Quick question here. Has anyone run into trouble with a variable reference to a class object? Here is the code: $_SESSION['database'] = new Database; $this-db = $_SESSION['database']; Everything goes screwy after a call like this. Thanks in advance! -- PHP General Mailing List

[PHP] Image Width Error

2004-08-24 Thread Jed R. Brubaker
Hi all! I am trying to do something really simple, but my error is outside of my expertise (hopefully not for long!). Code: - $this-lVertical = images/box/.$template._lVertical.gif; $borderWidth = imagesx($this-lVertical);

[PHP] Re: Image Width Error

2004-08-24 Thread Jed R. Brubaker
Apologies. I need to be using getimagesize(). I thought it was only for file sizes. Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all! I am trying to do something really simple, but my

[PHP] OO Theory Question

2004-08-17 Thread Jed R. Brubaker
Hi all! I could use some perspective on a project that I am currently working on. I am trying to utilize OO to make my PHP easier, but I keep running into problems that revolve around the stateless nature of the web. Consider the following: I have a login class that is instantiated at the top of

Re: [PHP] OO Theory Question

2004-08-17 Thread Jed R. Brubaker
] wrote in message news:[EMAIL PROTECTED] put something in your script like if($_SESSION['authed'] == true) $user = new User($_SESSION['userId']); or something similar. Jason Jed R. Brubaker [EMAIL PROTECTED] wrote: Hi all! I could use some perspective on a project that I am

[PHP] Re: OO Theory Question

2004-08-17 Thread Jed R. Brubaker
Is there anything that says I can't instantiate the login class into the $_SESSION ? Pros, cons? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OO Theory Question

2004-08-17 Thread Jed R. Brubaker
I don't know - is it? Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- The real reason for having the login class like this is to eliminate database calls. I thought I could have one session variable that said yo uwere logged in, but then

[PHP] Page Referer question

2004-08-12 Thread Jed R. Brubaker
Hello all. I am looking to create script will detect the page from which the user just came so that after they do something on the current page (login) it will send them back to the page they wanted. I was thinking about $_SERVER['HTTP_REFERER'], but php.net says: 'HTTP_REFERER' The address of

[PHP] Re: Page Referer question

2004-08-12 Thread Jed R. Brubaker
Thank you all for the great feedback. Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all. I am looking to create script will detect the page from which the user just came so that after they do something on the current page (login) it will send them back

[PHP] OO Question for PHP4

2004-08-11 Thread Jed R. Brubaker
Hi all. As the subject suggests, I am using PHP4 and am having something going on that I don't think should be. Presume the following code class Foo { function Foo () { return Bar; } } $foo = new Foo; echo $foo; $foo comes out as an object. Does this have to be done in two line

[PHP] String formatting

2004-08-06 Thread Jed R. Brubaker
Hey all! Glad you are here. I have a question that is confusing me a bit. I am trying to output a string that is pulled from a database that I don't have control over. Everything is great, except that the string needs to be all on one line with no line breaks (for Javascript's sake). Is there a

[PHP] MySQL Result Handling

2004-08-06 Thread Jed R. Brubaker
Hi all! I have a quite a brain puzzler here that I would love to hear some people's feedback on. I have inherited a PHP system that is definately on the strange side. I am stuck with the situation of either adding to the beast, or simply reprogramming the entire site. The one technique that I

[PHP] Content Management Systems

2004-05-21 Thread Jed R. Brubaker
Hey all - I was hoping that I could get some advice! I am setting up a site that will be quazi-portal-ish in nature. As such, a lot of different people in a lot of different departments will be making contributions and editing parts of the site. I have never done something like this before, but I

[PHP] Re: stop file process

2003-12-28 Thread Jed R. Brubaker
Found it! Just use exit(); Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This one should be simple. I am wondering if there is a simple way in which to stop the processing of a file. The current example is a program that checks to see if the user is logged

[PHP] newb: stop file process

2003-12-27 Thread Jed R. Brubaker
This one should be simple. I am wondering if there is a simple way in which to stop the processing of a file. The current example is a program that checks to see if the user is logged in. In the past I have done something like this: if ($loggedIn != true) { echo You are not logged in.; }

[PHP] Advice: GET vs. POST vs. SESSION

2003-11-23 Thread Jed R. Brubaker
I was hoping that some of you would be able to give me some advice. I have started creating a web application that makes heavy use of URL GET variables in order to solve a problem that I have had with POST in the past - namely, having to refresh the document and repost the variables when you use

[PHP] String Manip. - Chop Equivalent

2003-11-23 Thread Jed R. Brubaker
Does PHP have an equivalent to PERL's chop - that is, a way to get rid of the last character in a string? Hello World to Hello Worl Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] $_GET String Edit

2003-11-22 Thread Jed R. Brubaker
Hey - this one should be simple. I am parsing some data and have $_GET variables in the URL stipulating on which record to start and how many records to display (these then get basses to the limit command in my database query). So here is the catch. I am trying to make a page navigation menu

Re: [PHP] $_GET String Edit

2003-11-22 Thread Jed R. Brubaker
tacked a varible on to the end of the string, but I don't want to be redundant. Thanks again. Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Jed R. Brubaker [EMAIL PROTECTED] wrote: I am trying to make a page navigation menu (we have all seen them, Page: 1 2 3

[PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
Is there a way to preserve URL variables and have a link simply add a new variable to the end? I am tabulating data and I have URL variables defining which dataset to view and in what way to view it. I would now like to set the SQL statement up with a limit and add some Previous, Next commands,

Re: [PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
Thanks! Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Jed R. Brubaker [EMAIL PROTECTED] wrote: Is there a way to preserve URL variables and have a link simply add a new variable to the end? Sure, just use $_SERVER['QUERY_STRING'], which is the current query

[PHP] Loop Question

2003-10-18 Thread Jed R. Brubaker
Hi! I am trying to loop through two different database calls with two for statements, one embedded in the other. for ($i; $i $codeset_rows; $i++) { $codeset_row = $this-database-fetch_array($codeset_query); $codesys_query = $this-database-query(select

Re: [PHP] Loop Question

2003-10-18 Thread Jed R. Brubaker
Well duh. Thanks so much! Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] See changes below. Cheers, Rob. On Sat, 2003-10-18 at 14:57, Jed R. Brubaker wrote: Hi! I am trying to loop through two different database calls with two for statements, one embedded

[PHP] Foreach Array Help

2003-10-14 Thread Jed R. Brubaker
Okay, total newbie when it comes to arrays, and I could really use some help. I sure this will be an easy one for you veterans out there. Here is the array ($code): array(2) { [total]= int(1) [assign]= array(1) { [1]= array(3) { [type]= string(10) Transcript

[PHP] Re: Foreach Array Help

2003-10-14 Thread Jed R. Brubaker
in message news:[EMAIL PROTECTED] Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Okay, total newbie when it comes to arrays, and I could really use some help. I sure this will be an easy one for you veterans out there. Here is the array ($code): array(2) { [total

[PHP] Re: Foreach Array Help

2003-10-14 Thread Jed R. Brubaker
in the right direction. Jed R. Brubaker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Okay, total newbie when it comes to arrays, and I could really use some help. I sure this will be an easy one for you veterans out there. Here is the array ($code): array(2) { [total]= int(1

[PHP] ImageColorAllocate() Problem

2003-10-03 Thread Jed R. Brubaker
: If I just type in a randomly selected color, it works! Is there some reason that the values in my variables wouldn't be passing? Thanks in advance, Jed R. Brubaker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: undefined function imagecreate()

2003-10-03 Thread Jed R. Brubaker
You know, I am not sure if this will help, but I have a problem very similar to this in my debugger. When I run a script check through my WIN32 PHP module, I get errors related to imagecreate() functions. In a current project I use imagecreatefromjpeg() functions and get the same problems.

[PHP] Re: Converting various DB's to MySQL using PHP

2003-10-03 Thread Jed R. Brubaker
I think phpMyAdmin has a Inset Data From Text File function that can work with delimited text output. Check it out: http://www.phpmyadmin.net/ J Morton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all -- Summary: Using PHP, need to go from ACCESS - MySQL. (Millions of

Re: [PHP] ImageColorAllocate() Problem

2003-10-03 Thread Jed R. Brubaker
Worked perfectly - thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating Images

2003-09-04 Thread Jed R. Brubaker
/public_html/pic/picture.php on line 12 Isn't imagecreatfrompng() a built in function? Anyone run across something like this or a suggestion? Thanks for the help! Jed R. Brubaker -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Page URL from a inc?

2003-08-09 Thread Jed R. Brubaker
I am having a bit of a problem with pathinfo. I am looking for a way to generate a URL from within an included class that would return the URL for the script that called the class. Pathinfo returns the class file. Is there a way to get what I need? Thanks in advanced, Jed R. Brubaker -- PHP

[PHP] Session Variables

2003-01-26 Thread Jed R. Brubaker
I have a quirky problem that should be a breeze for someone who is smarter than I. I have a script where I am registering a HTML form post variable as a session variable and then echo it. In the real script I use it in a MySQL query, but for the sake of this post, here is the script: $user1 =

[PHP] Query Reset?

2003-01-23 Thread Jed R. Brubaker
I am having a problem with reseting my query results. I want to take $results and have it spit it out line by line - but twice. I have found that after the first time through, it just spits out 15 (in this case) more blank lines. Any help? (My code is below)