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
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
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
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
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
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
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
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(
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
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
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
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
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
;
> 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
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
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
> 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
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
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
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
--
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
$_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
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
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
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
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
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
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
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
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
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
> if(strtotime($event_date) <= strtotime($end_date))
> > echo "GO!!\n";
> > else echo "STOP!!!\n";
> >
> > /* omitted code that finds the next $event_date */
> > }
> >
> >
> >
> >
> > --
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
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
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
-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
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
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
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
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
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
&
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]
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
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]
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
--
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]
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
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
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
--
> 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]
> > > > 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
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,
52 matches
Mail list logo