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" wi
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 un
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 whe
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 unsubscr
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
This is simple.
echo "";
echo "";
echo "Hello World";
echo "";
echo "";
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
Sub
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 \ befor
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 n
If I have the following:
Is there any way to run both the parent and child constructor? The reason
I'm asking this is because in my parent class, the constructor creates the
database connection, in the child constructor it set's up all variables for
the child class.
If I
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 ba
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
;[EMAIL PROTECTED]>
Sent: Sunday, 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 try
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
proj
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, an
ou up 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]>
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, th
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 num
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
hy i
> preconise debian, not have troubles 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 archit
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 compile
PROTECTED]>
To: <[EMAIL 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 =
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
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 Baisl
.
Anybody know how 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
Brent
- 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 crea
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
ie"string some more text"
but when I grab it from the website, and then echo the string, I get
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
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 P
ng in an image?
> 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 ver
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
Does anybody know off the top of their head why truetype font text would look greyed
out?
This is my code:
The text looks greyed out and it's a bit distorted.
Thanks,
Brent
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
proj
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:0
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:
ip
filtering prevent 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
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
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, Septem
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
>
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 as
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
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
Su
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 PRO
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 PROTE
- 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 time
> and to print at minutes too, kije 9h01?
>
> thanks
> "John Holmes" <[EMAIL PROTECTED]> wrote in message
> new
viewed as source
in IE
> Yeah, IE 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 [mai
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
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: &quo
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, Augus
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 d
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 p
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 imagejp
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
- Orig
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:
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
"ce
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
only
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
nday 15 August 2004 22:44, Brent Clements wrote:
>
> > 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
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
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
From: "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 st
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 hu
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
Su
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
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
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.
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?
Hop
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 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.
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 s
69 matches
Mail list logo