Re: [PHP] XML Parser misbehaves with &

2003-08-18 Thread Jeff Bearer
Mon, 2003-08-18 at 12:41, Justin Farnsworth wrote: > This is normal. You have illegal XML there, as it should be > in . I have run across this, and have > to clean it up with an awk script. Ampersand is a no-no. > > Just running xmllint on the file will tell you about the problem

[PHP] XML Parser misbehaves with &

2003-08-18 Thread Jeff Bearer
mp;" and the third time is " Red" Needless to say this is screwing up my parser, and the stuff I'm doing won't make it easy to add this allowance. I'm hoping somebody can point out a way to turn off this behavior. If this is the proper operation, is it documented

[PHP] Replacing Unicode characters

2003-04-04 Thread Jeff Bearer
x27;t going to work either. I'm out of ideas, any input would be appriciated. Thanks. -- Jeff Bearer, RHCE Webmaster, PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting STDOUT to a file pointer

2003-02-28 Thread Jeff Bearer
Argh, I was thinking about the problem backwards, redirect the fp to stdout is the way to do it. if(!$argv[1]) $argv[1] = "php://stdout"; $fp = fopen($argv[1], "w"); fputs($fp,"blah\n"); fclose($fp); On Fri, 2003-02-28 at 15:11, Jeff Bearer wrote: > I'm

[PHP] Redirecting STDOUT to a file pointer

2003-02-28 Thread Jeff Bearer
again with an fputs. Can this be done in PHP? -- Jeff Bearer, RHCE Webmaster, PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Exotic Assign operators what do they do.

2003-02-13 Thread Jeff Bearer
The PHP manual neglects to tell us what these assignment operators are, can somebody point me to what they mean? &= |= ^= ~= <<= >>= just curious that's all -- Jeff Bearer, RHCE Webmaster, PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] strtotime bug? end of the month.

2002-10-31 Thread Jeff Bearer
Actually I only needed date("Y-m") so my solution works fine, and I didn't consider the problems with hard coding 1 into it. But thanks for the replies. On Thu, 2002-10-31 at 11:33, Jeff Bearer wrote: > date("Y-m-d",strtotime("+1 month")) > > retu

[PHP] strtotime bug? end of the month.

2002-10-31 Thread Jeff Bearer
date("Y-m-d",strtotime("+1 month")) returns December 1st! This happens when you add 1 month to any day that doesn't exist in the next month. Quite annoying that you have to handle it like this: date("Y-m-d",strtotime("+1 month",strtotime(date(

Re: [PHP] Banner Ad Serving...

2002-07-24 Thread Jeff Bearer
d (with good karma to boot). :) > > Dave > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Jeff Bearer, RHCE Webmaster, PittsburghLIVE.com 2002 EPpy Award Winner, Best Newspaper Website -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions4.2.0 and4.2.1

2002-07-22 Thread Jeff Bearer
affect you and > there will be no need to upgrade. > If anything this will only convince people looking for 'stable' PHP to wait > even longer before upgrading their releases because of potential bugs such as > this one creeping up in 'new' releases. > > Ili

[PHP] saving a jpeg via HTTP

2002-06-15 Thread Jeff Bearer
e but the file is no good when it's saved, I saw that it saved the http headers in there so I cut those out but still, the image wan't viewable. I was using fsockopen instead of file because I want to use the timeout feature of fsockopen. any help is appriciated. -- Jeff Be

[PHP] Intermediate "Searching..." screen.

2002-05-28 Thread Jeff Bearer
termediate "Searching..." screen. I don't have a good idea on how to do this and I'm looking for some ideas or directions. How do I show one thing while the search is running and another when the search is complete and also not loose the returned record set? -- Jeff Bearer, RHC

Re: [PHP] specifying a different php.ini at webserver start

2002-05-23 Thread Jeff Bearer
solved, that doesn't appear possible, so I used a virtual host with different php_flag and php_value options. On Thu, 2002-05-23 at 10:02, Jeff Bearer wrote: > How do you tell apache/php module to use a different php.ini file? > > I want to start a second instance of apache wi

[PHP] specifying a different php.ini at webserver start

2002-05-23 Thread Jeff Bearer
How do you tell apache/php module to use a different php.ini file? I want to start a second instance of apache with a different php configuration. -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://www.php.net

Re: [PHP] ini_set('display_errors',1) not working.

2002-05-22 Thread Jeff Bearer
Update, I can see the errors if I make a fatal error. but not if it's a parse error. in the php.ini I'm using the default error_reporting: E_ALL & ~E_NOTICE I sill have no explanation as to why. On Wed, 2002-05-22 at 11:24, Jeff Bearer wrote: > I have the following i

[PHP] ini_set('display_errors',1) not working.

2002-05-22 Thread Jeff Bearer
and writes it to the log. Does anybody have any ideas on why this isn't working? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] display errors for developers only?

2002-05-20 Thread Jeff Bearer
In the php.ini file I have display_errors = Off, how would I configure the server, or the application to display the errors for specific hosts, the developers? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http

Re: [PHP] variable for $_GET or $_POST

2002-05-14 Thread Jeff Bearer
$_REQUEST, sorry didn't see it the first time. On Tue, 2002-05-14 at 14:04, Jeff Bearer wrote: > Quick question if I'm programming with register globals off, and want to > get a variable that is allowed to be set with either a GET or POST > method, is there 1 variable th

[PHP] variable for $_GET or $_POST

2002-05-14 Thread Jeff Bearer
else $test=$_POST[test]; Thanks -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Diffrence between ob_gzhandler and zlib compression

2002-05-10 Thread Jeff Bearer
I was looking through the new php.ini file and was enabling the output handler of ob_gzhandler then I saw the line about zlib.output_compression. What's the diffrence between the two? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper --

[PHP] Using caching to reduce database queries

2002-05-10 Thread Jeff Bearer
highly dynamic site. It's a pretty big itch for me and I'm sure other's and I'm surprised that there isn't anybody scratching that itch. Just hoping something new is out there. Thanks -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. N

[PHP] apps that need register globals 'on' and others require 'off' onsame server

2002-04-30 Thread Jeff Bearer
ay to turn register globals on or off in the script at runtime? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] chechking to see if a directory already exists

2002-04-11 Thread Jeff Bearer
Hosting * Internet & Intranet Applications Development * > > /* > No one wants war. > -- Kirk, "Errand of Mercy", stardate 3201.7 > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php &

Re: [PHP] pages compressed with zlib

2002-04-11 Thread Jeff Bearer
r. Does anybody know of pros & cons of using this > configuration? Which browsers support zlib compression? > > Thanks, > Levy > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Jeff Bearer, RHCE Webmast

[PHP] RPM apache+php v. source apache+php

2002-04-11 Thread Jeff Bearer
This is a tough question to ask because I know there will be a fare share of people who just want to flame Red Hat, but this just might start a healthy discussion. What is your opinion of using Red Hat's Apache and PHP binaries instead of compiling from source? If Red hat is too specific for thi

[PHP] simple function question.

2002-04-10 Thread Jeff Bearer
7;s possible I'd like to do it with one line something that I'd think it would be like this. my_function($bob,if($a=='H') return 'Y'; ); I know that return doesn't work, and echo wouldn't work either, can you even put a if statement inside a function cal

[PHP] header("Location:") problem with Netscape

2002-03-14 Thread Jeff Bearer
compression in output buffering, maybe there is a situation where Netscape 4 & 6 may not use the gzip compression, hence causing the output buffering not to work correctly? But if that was the case I should see the error about headers already been written. Any suggestions would be great, thanks

Re: [PHP] Upgrading PHP

2002-02-28 Thread Jeff Bearer
-virus system (http://www.grisoft.com). > Version: 6.0.325 / Virus Database: 182 - Release Date: 2/19/2002 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2

Re: [PHP] using a mysql temporary table.

2002-02-25 Thread Jeff Bearer
DOH, I always figure it out after I post to the mailing list, the user didn't have create table privileges, that's why it didn't persist in my first attempt to do this with separate queries. On Mon, 2002-02-25 at 10:34, Jeff Bearer wrote: > Hello, > > I'm tryin

[PHP] using a mysql temporary table.

2002-02-25 Thread Jeff Bearer
vent_title FROM tmp_events ORDER BY event_title; But I get an error like: 1064: You have an error in your SQL syntax near '; INSERT INTO tmp_events' If I echo my SQL statement and paste it into mySQL the query works fine. Any suggestions that you can offer would be great. -- Jeff B

Re: [PHP] problem while loop.

2002-02-24 Thread Jeff Bearer
Well, I found the problem. it wasn't happening where I thought it was. which brings up another question I'll have to ask in a new subject about output buffering. On Sun, 2002-02-24 at 18:00, Jeff Bearer wrote: > It's all returning proper dates and the proper timestamps when I c

Re: [PHP] problem while loop.

2002-02-24 Thread Jeff Bearer
> if(strtotime($event_date) <= strtotime($end_date)) > > echo "GO!!\n"; > > else echo "STOP!!!\n"; > > > > /* omitted code that finds the next $event_date */ > > } > > > > > > > > > > --

[PHP] problem while loop.

2002-02-24 Thread Jeff Bearer
quot;; /* omitted code that finds the next $event_date */ } -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date Question: finding 1st Monday of sept.

2002-02-22 Thread Jeff Bearer
Nevermind, I figured it out, didn't see that you could pass a timestamp to strtotime. Thanks. On Fri, 2002-02-22 at 14:22, Jeff Bearer wrote: > Hello, > > I'm trying to find out how to calculate some dates, and the part I'm > having problems with is finding the

[PHP] Date Question: finding 1st Monday of sept.

2002-02-22 Thread Jeff Bearer
y") Is there a syntax that I'm missing or is there a way of fooling the function to thinking it is September 1st so when I ask for next Monday it will give me the correct date? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General M

Re: [PHP] Caching in php?

2002-02-06 Thread Jeff Bearer
> Do You Yahoo!? > Send FREE Valentine eCards with Yahoo! Greetings! > http://greetings.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Jeff B

Re: [PHP] Q: while loop on an array

2002-01-23 Thread Jeff Bearer
quot; at > the end of $sql in the middle of the while loop. > > any help would be appreciated. > > thanks, > joe > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [E

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
server - are the db and web >servers on the same physical > device - and thus his concern? > - or perhaps if there are other apps needing to 'compete' with the web server to >gain access to the db > concurrently? > -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.c

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
; > iD8DBQE8TDtzHpvrrTa6L5oRAu+rAJ0bArR4ohvbvCE4kC6DzqtMe3CvRQCfbBHl > Sqy+StTmXNzDgHwZ7PabIH0= > =xj8f > -END PGP SIGNATURE- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EM

Re: [PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
uctions of PHP code so the PHP intrepreter doesn't have to recompile the code every time, but if there is a query it still queries the DB every time. I've experienced this first hand with APC. At first I thought it would cache the entire PHP output, which would include the da

[PHP] How should I cache database data for php?

2002-01-21 Thread Jeff Bearer
be a PEAR module that the application connects to just like the database, and it manages chaches and querying the database for data in the module. -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] Version Contol for PHP site

2001-11-19 Thread Jeff Bearer
t. And what do you think about the VNC idea that I just came up with? -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: Fatal error: Call to undefined function: imagecreate()

2001-11-16 Thread Jeff Bearer
gt; Regards, > Johan > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > -- Jeff Bearer, RHCE Webmaster Pi

[PHP] Fatal error: Call to undefined function: imagecreate()

2001-11-15 Thread Jeff Bearer
anybody wants to see the configure messages let me know. -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- 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 administrators, e-mail: [EMAIL PROTECTED]

[PHP] register_shutdown_function and a MySQL query keeping connection with browser.

2001-08-08 Thread Jeff Bearer
CT * FROM table"; $result = $db->query($sql); while($row = $result->fetchRow(2)){ sleep(5); } } ?> -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] encryption

2001-07-20 Thread Jeff Bearer
> > > > think it's > > > > any more secure. If a hacker sniffs the md5 hash how is that any > > diffrent > > > > than him > > > > sniffing a plain text password? You're comparing hashes, so as long as > > he > > > > has the has

Re: [PHP] Hack on Server.

2001-07-20 Thread Jeff Bearer
-- > 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 administrators, e-mail: [EMAIL PROTECTED] -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- 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 administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] encryption

2001-07-19 Thread Jeff Bearer
I would suggest using a JavaScript program like this > http://pajhome.org.uk/crypt/md5/md5src.html > > and then using the PHP md5 function on the server side and comparing the two > results. > That way the only thing that ever gets transmitted is an md5 hash =P > > Sherida

Re: [PHP] Using GnuPG with PHP

2001-07-19 Thread Jeff Bearer
amine popen further. On Thu, Jul 19, 2001 at 10:50:18AM -0400, Jeff Bearer wrote: > I saw examples of how to encrypt data with GnuPG in the list archives > but I'm having problems that aren't mentioned. I've installed the public > key in the web server users key ring

Re: [PHP] encryption

2001-07-19 Thread Jeff Bearer
nt me to a > viable solution for this problem? > > Thanks in advance! > > Tom Malone > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact t

[PHP] d

2001-07-19 Thread Jeff Bearer
-- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- 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 administrators, e-mail: [EMAIL PROTECTED]

[PHP] Using GnuPG with PHP

2001-07-19 Thread Jeff Bearer
is that the environment for the web server is different than when you su to the web server user. and that's messing things up. Any help is appreciated, Thanks. -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL