[PHP] Help please!!

2005-01-14 Thread Brent Clements
Having a very frustrating problem and I can't seem to figure out why it's happening. 1. As of last week, all of our applications have started to work intermittingly. The codebase has not changed. 2. Sometimes the application will display, sometimes it won't. The browsers loading progress bar

[PHP] How do I start at a specific position in an array? Is there a function?

2005-01-08 Thread Brent Clements
I know this is a simple question because I could easily write a loop to move to the specific position in the array, but I want to know is there a function to move the array pointer position to a specific position in the array? Thanks, Brent -- PHP General Mailing List (http://www.php.net/) To

[PHP] XML File validation using PHP????

2005-01-04 Thread Brent Clements
We are running PHP 4.3.2 Is there a class out there that can validate an xml file against a schema? I know in PHP 5+ that the dom package includes simple validation function, but until we upgrade, that's not an option. Can anybody point me in the write direction? I want something simple to

[PHP] Question about dates

2004-12-24 Thread Brent Clements
How does one over come the issue of unix time not going beyond a certain date? ie, when I do echo strtotime(2099-10-08); it outputs -1 This has to do with the limitations of unix time, so how does one get around it? Thanks, Brent -- PHP General Mailing List (http://www.php.net/) To

[PHP] How do I underline a string using php and fonts?

2004-12-23 Thread Brent Clements
I have always wondered this and maybe you guys can help. How do I underline a bit of text using True Type Fonts? Right now, I am creating imagelines but I don't think that's the most efficient way of doing it. Anybody know how to do underlines but using the font itself? Thanks, Brent -- PHP

[PHP] echo string with question mark in it

2004-11-30 Thread Brent Clements
I have the following string variable $string = 'test.php?id=' . $id; but when I echo out the string it looks like this test.php? id=# ### is the $id variable value btw. How do I make the ? part of the string instead of php evaluating that question mark? I've tried adding \

Re: [PHP] Spawning new pages

2004-11-30 Thread Brent Clements
This is simple. echo html; echo body; echo Hello World; echo /body; echo /html; There are many ways to do what you want to do. It's at the core of PHP. -Brent - Original Message - From: Christopher Weaver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 6:54 PM

[PHP] not related but need pointers

2004-11-28 Thread Brent Clements
I was wondering, does anyone have a good source for web browser components that are compatible with php? There are a heck of alot of activex components available that allow you to create some very nice web applications. Are there any similiar that a cross-browser compatible that have a really

[PHP] How do I get referer in php?

2004-11-17 Thread Brent Clements
Let's say I have a page at another site that links to a php script on my server. Is there anyway to get the referrer to the php script using php? Thanks, Brent

[PHP] What should I name my base class?

2004-11-17 Thread Brent Clements
I know this probably doesn't matter, but what is the pretty standard naming convention for base class names? Should I name it base.class, main.class, or the name of my application, application.class? What does everyone else use? If I went by the pear standards, they use a base

[PHP] Question regarding constructors and child classes

2004-11-17 Thread Brent Clements
If I have the following: ?php class foo { function foo () { echo constructed!; } } class childFoo extends foo { function childFoo() { echo constructed also!; }

[PHP] Silly OOP question

2004-11-14 Thread Brent Clements
I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application. for instance. I have a project.class file that has functions for dealing with individual

Re: [PHP] Re: Silly OOP question

2004-11-14 Thread Brent Clements
, November 14, 2004 6:54 AM Subject: [PHP] Re: Silly OOP question Brent Clements wrote: I've always wondered this about OOP and maybe you guys can answer this question. I'm writing a php application and I'm trying to figure out the correct way to right the oop part of this application

[PHP] Question for the PHP consultants out there.

2004-11-11 Thread Brent Clements
What web based software project management tool do you use to keep track of projects, project tasks, customer requests, and bug reports? I need something that would allow a customer to keep track of his/her project basically and to use the application to submit bug requests, feature requests,

Re: [PHP] How to display a 'please wait' message whilst processing?

2004-11-05 Thread Brent Clements
and going. Brent Clements Innovative PHP Development Company ::a division of Im-Online, LLC - Original Message - From: Brent Baisley [EMAIL PROTECTED] To: Graham Cossey [EMAIL PROTECTED] Cc: Php-General [EMAIL PROTECTED] Sent: Friday, November 05, 2004 2:03 PM Subject: Re: [PHP] How

[PHP] Very wierd issue with pdf's and rotating images

2004-11-04 Thread Brent Clements
I have tried this with pretty much every pdf library available to use with PHP and all have the same results. 1. I create a new pdf. 2. I rotate a jpeg using gd's imagerotate 3. I output the jpeg to a new pdf page 4. I then output the pdf to the browser and/or to a file. When I view the pdf,

[PHP] Need to add a 0 to a float number

2004-10-31 Thread Brent Clements
Hi, How would I add a 0 to variables that have the following? I want $var = 6.5 to be converted to $var = 6.50 Thanks, Brent

Re: [PHP] Need to add a 0 to a float number

2004-10-31 Thread Brent Clements
Solved my own problem Note to self, RTFM: number_format is w hat I needed. Thanks, Brent - Original Message - From: Brent Clements [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 31, 2004 8:01 PM Subject: [PHP] Need to add a 0 to a float number Hi, How would I add a 0

Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Brent Clements
Just so we are all clear. It doesn't matter which linux distribution you use as long as the distribution supports the ppc architecture which most do. As long as you have the gnu compiler suite and all associated tools and libraries, php will compile fine. It will also compile using the ibm

Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Brent Clements
this wise, when you need a lib On Wednesday 27 October 2004 15:15, Brent Clements wrote: Just so we are all clear. It doesn't matter which linux distribution you use as long as the distribution supports the ppc architecture which most do. As long as you have the gnu compiler suite and all

[PHP] Rotating image using imagerotate creates large black area on image

2004-10-24 Thread Brent Clements
Hi Guys, I am working on some images and I am having some problems with image rotate. I am using imagerotate($im, -90, 0); but when I display the image, the first 1/4 of the image has a large black splotch from left/top to right/bottom Help!! It's causing me fits. Thanks, Brent

Re: [PHP] Re: Rotating image using imagerotate creates large black area on image

2004-10-24 Thread Brent Clements
PROTECTED] Sent: Sunday, October 24, 2004 8:15 PM Subject: [PHP] Re: Rotating image using imagerotate creates large black area on image * Brent Clements [EMAIL PROTECTED]: I am working on some images and I am having some problems with image = rotate. I am using imagerotate($im, -90, 0

Re: [PHP] Best practices for php application

2004-10-21 Thread Brent Clements
For a pretty cool PHP MVC Framework, check out http://www.phpmvc.net/ -Brent - Original Message - From: Matthew Weier O'Phinney [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 21, 2004 9:11 PM Subject: Re: [PHP] Best practices for php application * Brent Baisley

[PHP] strip out wierd characters in a string

2004-10-18 Thread Brent Clements
Hi Guys, I think that a string that I'm grabbing from a website was actually created using ms-word. If I echo the string out, it has a question mark in it. If you look at the website, the text is fine iestring some more text but when I grab it from the website, and then echo the string, I get.

Re: [PHP] strip out wierd characters in a string

2004-10-18 Thread Brent Clements
- Original Message - From: Brent Clements [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 18, 2004 1:22 AM Subject: [PHP] strip out wierd characters in a string Hi Guys, I think that a string that I'm grabbing from a website was actually created using ms-word. If I echo

[PHP] [NOT FIXED] Re: [PHP] strip out wierd characters in a string

2004-10-18 Thread Brent Clements
to fix this? -Brent - Original Message - From: Brent Clements [EMAIL PROTECTED] To: Brent Clements [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, October 18, 2004 1:42 AM Subject: Re: [PHP] strip out wierd characters in a string Solved my own problem. I ran the script itself from

[PHP] Tempnam not working??

2004-10-17 Thread Brent Clements
Hi Everybody, I'm running php 4.3.2 When I run the following $fname = tempnam('mytmp/', 'PREFIX_'); and then echo $fname, it returns /tmp/FILENAME rather than mytmp/FILENAME I'm running under RHEL 3 U3 Anybody know what's going on? thanks, Brent

Re: [PHP] How do I do italics on a text string in an image?

2004-10-12 Thread Brent Clements
? On Wednesday 13 October 2004 08:30, Brent Clements wrote: I've got the following string: $text = football; How do I put that string in italics using a true type font on an image? Use the italic version of the font. In case you're wondering, the italic/bold that you can select on fonts in, say

Re: [PHP] PHP Class

2004-10-12 Thread Brent Clements
GD is your friend for images with php. If your asking how to access java classes from PHP you may want to visit http://www.php.net/manual/en/ref.java.php -Brent - Original Message - From: Mulley, Nikhil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 11:28 PM

[PHP] I need help figuring out something

2004-10-10 Thread Brent Clements
I'm trying to write text to an image but some parts of the text should be in italics. For instance, I have the following string. $string = This is a [i]test[/i] string that [i]has[/i] some parts in [i]italics[/i] How do I display that on an image using the image functions with php but display

[PHP] TTF Text not displaying correctly

2004-10-09 Thread Brent Clements
Does anybody know off the top of their head why truetype font text would look greyed out? This is my code: ?php $im = @imagecreatefromgif(testimage.gif); $myfont = inc/arial.ttf; $mycolor = imagecolorallocate($im,0,0,0); imagettftext($im, 8, 0, 580, 118, $mycolor, $myfont, test string);

[PHP] Need help with a string

2004-10-08 Thread Brent Clements
Given the following string: $textString = Share A Dream Come True Parade 3:00 SpectroMagic Parade 9:00, 11:00 Wishes? nighttime spectacular 10:00 I need to break the string up into pieces where as $string[1] = Share A Dream Come True Parade 3:00 $string[2] = SpectroMagic Parade 9:00, 11:00

Re: [PHP] read aspx files

2004-10-08 Thread Brent Clements
Your question is a bit confusing. Do you want to convert asp to php on the fly? and then parse the php natively? Not easily done. Or do you just want to name your files .aspx yet have php code in the files. Easily done. Or do you want to run aspx files natively?(if so check out the mod_mono

Re: [PHP] crypt() source

2004-10-07 Thread Brent Clements
This question was completely off-topic, but here is a site that has code for java that may help you http://locutus.kingwoodcable.com/jfd/crypt.html Also, repeat after me...GOOGLE is your FRIEND! -Brent - Original Message - From: Matt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] I have a really stupid question, just trying to debug a script though.

2004-09-29 Thread Brent Clements
I know what this means, but what are some reasons why we would get this error? Warning: fsockopen(): unable to connect to 128.42.244.20:80 Thanks, Brent

Re: [PHP] I have a really stupid question, just trying to debug a script though.

2004-09-29 Thread Brent Clements
socket operations from occuring? Thanks, Brent - Original Message - From: Brent Clements [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 8:41 AM Subject: [PHP] I have a really stupid question, just trying to debug a script though. I know what this means

Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-28 Thread Brent Clements
Stupid me completely forgot about the socket functions in PHP. Again, that's what I get for having too little coffee last night. Thanks for the help everyone. - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, September 27,

Re: [PHP] Website with a Instant Messenger

2004-09-27 Thread Brent Clements
Implementing Jabber is probably his best bet. I believe there are a few php based interfaces for it. -Brent - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 27, 2004 4:01 PM Subject: Re: [PHP] Website with a Instant Messenger On

[PHP] Good xml to array class?

2004-09-22 Thread Brent Clements
I've done searching on google for xml parsers and xml to array using php and honestly there are S many. Most of the classes I've taken a look at either aren't finished, or require dom to work. Either I write my own or I get help from you guys. So me being the lazy person that I am will ask

[PHP] Convert textarea post data from plain text to html using php..how?

2004-09-11 Thread Brent Clements
Do you guys happen to have an easy easy to do this? I need to convert plain text submitted via a textarea form field to html formatted text. Is there a way to do this with php? Thanks, Brent

Re: [PHP] data grids...

2004-09-08 Thread Brent Clements
This is what I've used in the past, it's pretty much compatible with all of the major browsers that users will use. http://www.activewidgets.com/ -Brent - Original Message - From: blackwater dev [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 08, 2004 1:15 PM

Re: [PHP] Newbie: Validate Required Form Fields

2004-09-02 Thread Brent Clements
Use javascript on register1 rather than actually submitting the form to the server. It's the best way to do this, plus it's a bit quicker. If you have javascript questions, those are for another forum. -Brent - Original Message - From: Francis Chang [EMAIL PROTECTED] To: [EMAIL

[PHP] Html pages generated with php can't be viewed as source in IE

2004-09-01 Thread Brent Clements
We have a wierd problem that we can't seem to figure out, maybe it's something you guys can help out with or have seen before. HTML pages generated with php are displayed correctly in all browsers, but when you try to view the source of the html page in IE, the default source code viewer never

Re: [PHP] Html pages generated with php can't be viewed as source in IE

2004-09-01 Thread Brent Clements
bugs... Clear your cache, if that doesn't work, go into the file system, and manually delete the cache files. That'll fix it, for a while. -Dan Joseph -Original Message- From: Brent Clements [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 9:36 AM To: [EMAIL

Re: [PHP] print at a specific time

2004-09-01 Thread Brent Clements
?php $hour = 21; $minute = 01; if(date('H')==$hour AND date('i')==$minute) { echo tis $hour:$minute and all is well?; } ? - Original Message - From: devil_online [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 9:05 PM Subject: Re: [PHP] print at a specific

Re: [PHP] print at a specific time

2004-09-01 Thread Brent Clements
Sorry forgot to enclose the variable values. doh! I needs more coffee! -Brent - Original Message - From: John Holmes [EMAIL PROTECTED] To: Brent Clements [EMAIL PROTECTED] Cc: devil_online [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 10:12 PM Subject: Re

Re: [PHP] PHP- Dependant dropdown based on Mysql queries

2004-08-30 Thread Brent Clements
Using a combination of javascript and php this is easily done. Below is just a way off the top of my head. There are probably simpler ways of doing it or even more elegant but again this is just off the top of my head. You would populate your first dropdown box by whatever method. Then you would

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Brent Clements
The problem with that request is that some employers require you to have a vacation message set. -Brent - Original Message - From: Paul Waring [EMAIL PROTECTED] To: Jay Blanchard [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; PHP Mailing List [EMAIL PROTECTED] Sent: Monday, August 30, 2004

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread Brent Clements
Damn, I just felt the wrath of the list even though I completely agree with you guys, I was just pointing out some employers requirements. -Brent - Original Message - From: Stut [EMAIL PROTECTED] To: Brent Clements [EMAIL PROTECTED] Cc: PHP Mailing List [EMAIL PROTECTED] Sent: Monday

[PHP] Convert gif to jpeg on the fly using gd?

2004-08-29 Thread Brent Clements
I have a class that only accepts jpegs and png's but all of my images(we have over 200 of them) are in gif format. Is there a way to convert from gif to jpeg on the fly without outputting the new image to file or the screen or using a system call to run the gif2XXX utilities? I've tried

[PHP] Probably not a php question, but here goes..how do I convert pixels to page units?

2004-08-29 Thread Brent Clements
I have a pdf class that has a function that allows you to add an image to the pdf your creating. The problem is that the function requires that the height and width of the image be specified in page units. Well I know what the pixel height and width are of my image, how do I convert it over to

Re: [PHP] html tabs

2004-08-28 Thread Brent Clements
One suggestion that I have is to use curl to get the web page that you want, put that into a buffer variable and then when you click on the link to the second page, you would then output the variable to the page. -Brent - Original Message - From: Michael Gale [EMAIL PROTECTED] To:

Re: [PHP] SOAP speed

2004-08-28 Thread Brent Clements
This isn't really answer to your question, but to possibly simplify your authentication mechanism, you ought to take a look at the pear package Liveuser which allows you to have somewhat of a distributed authentication architecture. Check out http://pear.php.net/package/LiveUser -Brent -

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread Brent Clements
Again I point out that this certification starts to make PHP valid in the commercial world. I completely agree with everyone that certs usually aren't worth the paper they are printed on when it comes to technical expertise but to a PHB or client who doesn't know any better except buzz words, a

Re: [PHP] PHP Oficial Certification

2004-08-26 Thread Brent Clements
I personally believe this is a great thing to have out there, especially one which has commercial backing from one of the central php development companies out there. It starts to validate PHP as an trusted, enterprise language which PHB's can start to turn to for development solutions. It can

[PHP] How do I find out if a string will fit in an area of an image?

2004-08-24 Thread Brent Clements
Hi All, Let's say I have a string of text. $foo = I WANT ALot of Text to be diSPLAYed! I have an area on my image that is around 386 pixels wide. How do I find out if my text will fit in that area using any size font? Thanks, Brent

[PHP] Need help with some logic and how to do it in PHP

2004-08-15 Thread Brent Clements
I have the following problem. I have 7 string values, if any number of them are the same, I need to ouput that value, if they are all different, I need to output a blank string . How would I do this in php outside of writing a huge if/then statement? This is a variation of my String compare of

Re: [PHP] Need help with some logic and how to do it in PHP

2004-08-15 Thread Brent Clements
Sweet, that solves my problem. Thanks for the help. -Brent - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 15, 2004 9:53 AM Subject: Re: [PHP] Need help with some logic and how to do it in PHP On Sunday 15 August 2004 22:44, Brent

[PHP] Getting the size of a mysql table using php

2004-08-14 Thread Brent Clements
How does one get the size of a mysql table using php? I tried taking a look at how phpmyadmin does it but got lost in the code. Anyone have any simple or elegant ways of doing this? -Thanks Brent

[PHP] String compare of 7 text strings

2004-08-13 Thread Brent Clements
I wanted to see if anyone has an easier way to do this. The end result is this: I need to compare 7 different text strings(which are in an array). They should all be the same, if they are not the same, a message should be outputted saying they weren't. How would one do this outside of using a

Re: [PHP] String compare of 7 text strings

2004-08-13 Thread Brent Clements
: Brent Clements [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 13, 2004 9:07 PM Subject: [PHP] String compare of 7 text strings I wanted to see if anyone has an easier way to do this. The end result is this: I need to compare 7 different text strings(which are in an array

Re: [PHP] Changing MySQL Date Format

2004-08-12 Thread Brent Clements
Why not just write a simple function in php to change your date around for you? A function in a utility class perhaps? -Brent - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Harlequin [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, August 12, 2004 7:39 AM Subject:

[PHP] Splitting a string by the number of characters in the string?

2004-07-30 Thread Brent Clements
In PHP 5 there is a awesome function called str_split, is there an equivalent in PHP 4.x? I need to do the following: Split a 60 character string into 3 20 character array chunks. using str_split I could easily do it, but how do I do it in PHP 4.x? Thanks, Brent

Re: [PHP] Re: Creating a PHP5 RPM

2004-07-27 Thread Brent Clements
The easiest thing to do is to take the existing Redhat EL3 php source rpm, install and get the php spec file. Edit that spec file and modify it for php5. Then copy the php 5.0 tar.gz file over to /usr/src/redhat/SOURCES and then run rpmbuild -bb php.spec or whatever you named your php spec file.

[PHP] Anyone use japha?

2004-07-27 Thread Brent Clements
I found a cool project called Japha which is a port of the main java classes to php. It's at www.japha.net I haven't used it yet, but have read through the site and the classes a bit. Anyone using these classes/libraries in their applications. -Brent

[PHP] Most used oop pattern to use for php application development?

2004-07-15 Thread Brent Clements
Good Evening All, I know this will probably start a flame war, but I want to get everyone's opinion on which oop pattern is either the accepted pattern or most used pattern for php application. I'm pretty partial to MVC but it has it's benefits and drawbacks. What does everyone else use?

Re: [PHP] E-bay API and PHP

2004-07-06 Thread Brent Clements
Sign up for the ebay developers program and they give you access to their api plus instructions on how to implement. You will also have access to a sandbox environment to test your code. Be aware that once you move past the sandbox environment, access to the ebay api is charged based on the number

[PHP] Just wanted to say....

2004-07-01 Thread Brent Clements
PHP 5 rocks. Thanks to all of the developers who have spent their time and efforts creating such an awesome application development language. Sincerely, Brent Clements Innovative PHP Solutions, L.L.C.

[PHP] How to add carriage returns??

2004-06-22 Thread Brent Clements
Ok I have a general problem. I have a textarea on an html form. Well when the user get's to the end of the textarea, it wrap's around. The problem with this is that unless they do a carriage return, the text entered into the textarea is a very long line. So when ever they submit the form, the