RE: [PHP] Netscape problems with PHP
$PHP_SELF is set by the web server - not the browser. Problems in Netscape are almost always caused by incomplete syntax in the HTML code you've output. Netscape is more strict about this than IE. Billy > Robert, can you (or anyone else) describe further the problem with Netscape > and $PHP_SELF? This sounds a little worrisome to me! > > TIA > > Kirk > From: Robert Fischler, Ph.D. ABD [mailto:[EMAIL PROTECTED]] > > I've been running into problems when testing PHP scripts on Netscape (when > MSIE works fine). > > First problem (SOLVED) was that Netscape does something funny with the > $PHP_SELF environmental variable, so I've learned to circumvent the problem > by just hard-coding the page name instead of relying on the $PHP_SELF trick. -- 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] OT question..
> So let stop this thread, I have a very good lawyer. You can speak with him > at the LinuxDays at Stuttgart, Germany. > > -Egon <[EMAIL PROTECTED]> Just who the hell are you threatening to sue and what for Egon - everyone who reads the PHP list and doesn't feel offended by what you do? Is someone quoting Adolf Hitler grounds for imprisonment in Germany now? Billy -- the personification of the devil as the symbol of all evil assumes the living shape of the Jew." -- Adolf Hitler, "Mein Kampf", Vol. 1, Chapter 11 -- 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] statistical functions
> On Sun, May 13, 2001 at 08:55:20PM +0300, Adi Ionescu wrote: > > Can someone please help me find the normal distribution function! > > I dont know of statistical functions within PHP. But I have asked on the > developers list to make a interface to R. That is a language much more > better for statistical computing than PHP. > > See http:/cran.r-project.org/. > > -Egon Egon - I've been doing some small amount of statistical processing in PHP, and having something more efficient for more complex activity would be useful. Per you reference, I was looking at the web page for R. Have you tried using PHP to write a script file and call R for processing? Billy -- 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] Uptime script?
> also sprach Ron Pitts (on Wed, 16 May 2001 10:18:06PM -0400): > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > This does not work. This list is like the mafia: Once in, never out. > > That sucks. The list managers are morons. > > will you chill please? of course it works. you are at fault. do you > want me to unsubscribed you? hint: use the right email address, or > send email to php-general-unsubscribe+rpitts=rochester.rr.com. > > dude, this is a clear case of user interface error... > > martin; (greetings from the heart of the sun.) No martin, it doesn't work properly - I just tested it. The problem is the qmail program. It pick the From address out as the subscription address, and it should pick out the From: address instead. They are not the same for everyone, including me. The From address is set to my login name and machine name, i.e. [EMAIL PROTECTED] However, I am subscribed under the name [EMAIL PROTECTED] Qmail picks up the subscribe address properly, but not the unsubscribe. Billy (who doesn't really want to unsubscribe) -- 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] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?
> 1. I am not making a JavaScript version at all I don't see where I ever say > this. ??? > > 2. If I copy the html outputted to the browser and past it into an html file > it loads good. When I say I suspect this to be something wrong with PHP I > mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in it) > > Thanks, > Brandon Brandon, Neither Netscape nor any other browser has any clue that PHP is being used on the server. All broswers simply interpret the html, javascript, java, etc.that gets sent to them. PHP is not a factor in whatever is causing a browser to misbehave. For Netscape it's often an improperly formed table that causes trouble. I occassionally find that people also use IE-centric code without realizing it (or perhaps without caring initially). Billy -- 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] crack lib
On Thu, 2001-12-27 at 19:12, Dennis Gearon wrote: > If the crack lib functions are for cracking passwords or other non > commerce/offensive/hacker efforts, I strongly object to their inclusion in the > functions of PHP. The PHP/Apache community does not need to give the > gates/microsoft/.net community any ammunition for bad publicity. Object away. They exist because they exist and are useful. The concepts have been around for years and are easily implemntable in any programming language. That's the value and risk of freedom - it cuts both ways. Billy -- 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: setcookie()
On Sun, 2002-01-06 at 16:01, Tyler Longren wrote: > I have checked the manual. A few times actually. > > I have setcookie("usename", "$username"); > Will that cookie never expire? Or will it expire at the end of the browsing > session? I couldn't find any details on that in the manual. > > Tyler Tyler, the manual pages appear to have changed sometime recently. They used to state that the cookie would expire if no time was passed to it when the browser was closed. I do not see that statement there any longer. However, note the remarks about older versions of some browsers not setting cookies properly unless the time is specified. I have not concerned myself with that on my sites, but it may be a factor to you. Billy -- 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] Re: PHP Security - "view source code"
> > (1) avoid using .inc files; use .php files like for normal script > > No, it is safer to block access to .inc files with an httpd.conf rule. The way I approach this, besides blocking execution, is to put any sensitive files in a directory above the Document Root for the virtual domain. PHP can then reach it, but Apache won't. /var/www/domain.name /var/www/domain.name/htdocs<-- php scripts go here /var/www/domain.name/private <-- inc files go here Billy -- 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] bug in echo function?
I ran across a curious bug in the echo function this morning. My PHP is Debian binary 4.1.1-1. The first example below does not work (it should draw a checkerboard-like table): - Chess "; for ($j=0 ; $j<8 ; $j++) { echo "" . ($i*8)+$j . ""; } echo "\n"; } ?> - However, by changing the echo line to two echo lines, it works as desired: - Chess "; for ($j=0 ; $j<8 ; $j++) { echo ""; echo ($i*8)+$j . ""; } echo "\n"; } ?> - I don't see any limitations about concatenating strings in the man page of the echo statement. Perhaps this is a bug? Billy -- 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] bug in echo function?
On Fri, 2002-01-18 at 13:54, Darren Gamble wrote: > Good day, > > The reason that the first statement doesn't work as intended is due to the > order that the operands are processed. > > The operands in the line: > > "" . ($i*8)+$j . "" > > are being processed like this: > > ("" . ($i*8))+($j . "") > > If you change the line to: > > "" . (($i*8)+$j) . "" > > then you'll get the desired result. > > Rule of thumb: Use parenthesis whenever you have a complex operation to > ensure the result is what you want. Hmmm - so my assumption that the concatenation operator between the strings gives them a delination equivalent to listing this as three separate echo statements is incorrect, I take it. Shouldn't the echo function process it in this manner from a standpoint of consistency? Thanks for the clarification. Billy -- 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] Re: please don't flame : it's an editor-question
>>> then i just have to type '$fo' and the editor shows me all valiables >>> that start with '$fo' >>> Sebastian >> On linux - I, too would like to know, mabe emacs?. >> Roko > http://www.itworks.demon.co.uk/phpeditors.htm > attila strauss At http://sourceforge.net/projects/php-mode/ is a php-mode.el that has been working very nicely for me. Adding a feature that does variable completion seems useful. Perhaps you could submit a request for that at the above link. Billy -- 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] Logo proposal
On Wed, 2001-12-12 at 08:11, Armin Hartinger wrote: > Personally, I think it should be something f-based ... the f will then > be replaced with the "ph" ... e.g. Phish etc... > > Also I think it should be something maritime ... > Penguin, Dolphin > > After all, Linux, PHP & MySQL is the killer-combo, isn't it? > > -Armin H - "killer" - how about an Orca? We'll pretend that they get along well with the MySQL dolphin, but PHP is definitely a "killer app". Billy -- 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] Logo proposal
> Yeah, but don't Orcas eat penguins? > > Chris Orcas eat *everything*! Billy -- 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] Logo proposal - first thought
> "Dan McCullough" <[EMAIL PROTECTED]> wrote >> http://www.heathermccullough.com/php_logo.gif Julio Nobrega Trabalhando wrote: > I don't know, usually when something common can be found on a design > there's a little mod added. Perhaps the addition of a small red stinger would that extra visual "bite". Billy -- 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: Mommy, is it true that...?
> Freshmeat.net is a very popular database of linux software and includes a > wide variety of PHP scripts. My point was that if you downloaded an > insecure script from such a popular site then you are asking for trouble > because chances are thousands of would-be hackers have ALSO downloaded the > same script and have familiarized themselves with ways that it can be > exploited... So would you rather just use pre-compiled binaries from some company that says "trust me"? You're responsible for the code on your site. If it's open-source one at least has a fighting chance of examining it. If it's too complex for someone to understand, then they shouldn't use it. Billy -- 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] deleting cart items on session expire
> Just as an aside, there's no reason I can think of that you can't run both > the Apache module and standalone binary on the same system side by side - > I've been doing this for about 2 years without trouble. > > jason However, there's no necessity to have the cgi version if you already have the modular version. All that is needed is to call the appropriate script using a tool such as 'wget'. This can be done manually or from cron as appropriate. Billy -- 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]