[PHP-WIN] Unsetting PHP_AUTH_*

2003-01-29 Thread DAS6804
Hello to all I've the variables $PHP_AUTH_USER and $PHP_AUTH_PW set and I want to unset them because I check if they're set or not in order to show the authentication dialog box. The unset command appears not to be working with them (even if I try doing unset($GLOBALS['PHP_AUTH_USER'])...) Any

[PHP-WIN] Warnings!

2003-01-29 Thread Anthony Judd
I am getting the following errors: Could Some one please enlighten me as to what is wrong. I suspect it is something to do with php ini. I am running win2k with iis, isapi Warning: Unknown(C:\Inetpub\wwwroot\resume\product_listing.php): failed to create stream: No such file or directory in

RE: [PHP-WIN] Warnings!

2003-01-29 Thread DAS6804
Warning: Unknown(): Failed opening 'C:\Inetpub\wwwroot\resume\product_listing.php' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 ¿Do you have PHP installed in C:\PHP4? Este correo electrónico contiene información privada y confidencial. Si usted no es el destinatario del

RE: [PHP-WIN] Looking for something like floor() only to round to a nearest div isor

2003-01-29 Thread Svensson, B.A.T. (HKG)
Scratch that other one, came up with something quite a bit better for speed on large numbers: This is the fastest way to do it: ((int)x/y) * y -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Re: Looking for something like floor() only to roun d to a nearest div

2003-01-29 Thread Svensson, B.A.T. (HKG)
--- Asendorf, John [EMAIL PROTECTED] wrote: $floor_val = 6 * ((int) 15/6) // yielded 15 for me... not what I was going for. This returned 15 for me, too. That might be because the expression is interpreted as 6 * [((int)15) /6] Try : 6 * (int)(15/6) -- PHP Windows Mailing List

php-windows Digest 29 Jan 2003 13:15:10 -0000 Issue 1561

2003-01-29 Thread php-windows-digest-help
php-windows Digest 29 Jan 2003 13:15:10 - Issue 1561 Topics (messages 18158 through 18171): Re: Mail newbie Question 18158 by: Cam Dunstan displaying a numeral 18159 by: Pat Johnston 18160 by: Frank M. Kromann 18163 by: Pat Johnston windows installation

Re: [PHP-WIN] Is this possible

2003-01-29 Thread Vladimir Galkov
You could allways call a javascript when you submit the form. the javascript or somth like that: if () { $address = 'http://www.adress_one.ru'; } else { $address = 'http://www.adress_one.ru'; } form action=?print $address;? -- PHP Windows Mailing List (http://www.php.net/) To

[PHP-WIN] Re: Mail newbie Question

2003-01-29 Thread Vladimir Galkov
check php.ini [mail function] ; For Win32 only. SMTP = you ISP's mail server (or your's). after that restart webserver and use mail() function. You can check what SMTP server use your php from phpinfo() function. Duncan [EMAIL PROTECTED] ???/ ? ?:

[PHP-WIN] Counter problems!

2003-01-29 Thread Radovan Radic
Hi I want to add simple counter on my index.php page. counter.php: ? if (!session_is_registered(counter)) { $fp=fopen(counter.txt,r); $counter=fread($fp); fclose($fp); $counter++; session_register(counter); } print Visited: $counterBR; ? index.php ? session_start(); print Simple

[PHP-WIN] Re: Counter problems!

2003-01-29 Thread J.Veenhuijsen
You could check the IP adress of the visitor. If it has not changed the the visitor is the same. Last IP adress in the counter file? Jochem Radovan Radic wrote: Hi I want to add simple counter on my index.php page. counter.php: ? if (!session_is_registered(counter)) {

[PHP-WIN] Re: Counter problems!

2003-01-29 Thread J.Veenhuijsen
I use this on my site. script language=PHP $counter_file=./count.dat; if (!($fp=fopen($counter_file,r))) die (Cannot open $counter_file.); $counter= (int) fread($fp,20); fclose($fp); if ($REMOTE_ADDR000.000.000.000) { $counter++; $fp=fopen($counter_file,w); fwrite($fp,$counter); fclose($fp);

[PHP-WIN] Urgent Very Urgent

2003-01-29 Thread Vikas Pande
Hello, I am using the PHP - ISAPI patch on windows 2000 advanced server. I am stucked up somewhere which I dont know while doing for sessions. Please mail me your php.ini so that I can study it properly. Thankx __ Do you Yahoo!? Yahoo! Mail Plus -

RE: [PHP-WIN] Re: Counter problems!

2003-01-29 Thread Svensson, B.A.T. (HKG)
There are some potential pitfalls involving: CASE 1: Multi user systems: You will see the same IP for all of the users on that system. CASE 2: Firewalls You might only see the firewalls IP# for each and every user behind it. CASE 3: Dynamically assigned IP# IP# might dynamically be assigned to

Re: [PHP-WIN] Re: Counter problems!

2003-01-29 Thread J.Veenhuijsen
You've got a point there!!! Jochem B.A.T. Svensson wrote: There are some potential pitfalls involving: CASE 1: Multi user systems: You will see the same IP for all of the users on that system. CASE 2: Firewalls You might only see the firewalls IP# for each and every user behind it.

RE: [PHP-WIN] Urgent Very Urgent

2003-01-29 Thread Asendorf, John
We'd love to help you but I don't think anyone is going to be sending you their php.ini file so you can see all of their paths, permissions, installed extensions, etc. Please send us your PROBLEM and we'll see if we can help. - John Asendorf - [EMAIL PROTECTED] Web

RE: [PHP-WIN] Urgent Very Urgent

2003-01-29 Thread Svensson, B.A.T. (HKG)
Please send us your PROBLEM I really wished I could do *THAT*! (And never take it back again!! :) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Urgent Very Urgent

2003-01-29 Thread Luis Ferro
Somewhere in php.ini is a section regarding sessions. In it, it is stated that the default system temp directory is used by default... Do the IIS (i'm assuming you are running IIS) users have access (read and write) to that directory? Cheers, Luis Ferro Teladigital.net --- [This E-mail

Re: [PHP-WIN] Re: Counter problems!

2003-01-29 Thread Radovan Radic
So, is there some perfect counter? Or there is some simple solution? I tried this (index.php) ? session_start(); if (!isset($QUERY_STRING)) header(Location: index.php.SID); else { include(counter.php); } ? This is helping when page is refreshed, but when someone types location in the address

[PHP-WIN] PHP 4.3.0 - Occasionally outputting chunks of HTML to the page

2003-01-29 Thread Matt Babineau
Anyone running 4.3.0 as a CGI see PHP occassionally output chunks of HTML to the visible page? Refreshing usually gets rid of them, but its very interesting to say the least Matt

[PHP-WIN] Re: connection to ms sqlserver 7

2003-01-29 Thread phplam
Hi, with adodb driver which is free download, seems to be easy. I'm now triying with mysql, but I'll need it also with ms sqlserver 7 This driver covers a lot of databases with the same coding-like. ms sqlserver7 , oracle, access, mysql,... See http://php.weblogs.com/adodb. Good luck phplam Ps

[PHP-WIN] Thank you for your help!!!

2003-01-29 Thread Sabina Alejandr Schneider
Hello to everybody!!! this time I'm writing to you to thank you all for the help you have iven to me this last days. I'm very satisffied with this language and with the group of persons that are working here. Thank you once more for your time and help! :-) Sabina Alejandra Schneider [EMAIL

[PHP-WIN] Re: displaying a numeral

2003-01-29 Thread cybot
number_format() Pat Johnston wrote: Hi I have a field in my MySQL database that's a decimal where I have figures of millions without the decimal point - i.e - 150 Is there a function in PHP to display this figure as a $ amount - i.e - $1,500,000 I searched PHP manual without finding

[PHP-WIN] Re: connection to ms sqlserver 7

2003-01-29 Thread Radovan Radic
Include php_mssql.dll extension mssql_pconnect(dbhost,dbuser,dbpassword); mssql_select_db(dbname); This should work. Phplam [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, with adodb driver which is free download, seems to be easy. I'm now triying with

[PHP-WIN] Re: Counter problems!

2003-01-29 Thread cybot
use $_SESSION ! counter.php: ? if ( ! isset($_SESSION['count']) ) { $fp=fopen(counter.txt,r); $counter=fread($fp); fclose($fp); $counter++; $_SESSION['count'] = TRUE; } print Visited: $counterBR; ? index.php ? session_start(); print Simple pageBR; include(counter.php); ? Radovan

[PHP-WIN] Re: Two errors, maybe related. phpMyAdmin refuses to run when diris secure

2003-01-29 Thread cybot
i think the user under which your iis is running needs rights in this folders! Rod Martin wrote: I'm running PHP4 on Windows 2000 on an IIS server connecting to a MySQL database (3.2.1 I believe). I've just loaded phpMyAdmin and it runs fine. As strongly suggested by the docs, I need to

[PHP-WIN] Re: Counter problems!

2003-01-29 Thread cybot
CORRECT use $_SESSION ! counter.php: ? if ( ! isset($_SESSION['count']) ) { $fp=fopen(counter.txt,r); $_SESSION['count']=fread($fp); fclose($fp); $_SESSION['count']++; } print Visited: $_SESSION['count']BR; ? index.php ? session_start(); print Simple pageBR; include(counter.php); ?

[PHP-WIN] Passing Variables and Internal Variables

2003-01-29 Thread Wade
01292003 1540 CST When I run this script I get the html at the end but no $result. If the result is run on the same page as the output, there shouldnt be anything variable wise stopping this from running, right? Wade ?php if (($_POST[val1] == ) || ($_POST[val2] == ) || ($_POST[calc] ==

Re: [PHP-WIN] Re: connection to ms sqlserver 7

2003-01-29 Thread Miha Nedok
And note thath you need the Client Connectivity components from the MSSQL Server installation. -Mike On Wed, 29 Jan 2003, Radovan Radic wrote: Date: Wed, 29 Jan 2003 19:47:40 +0100 From: Radovan Radic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: connection to ms

Re: [PHP-WIN] Passing Variables and Internal Variables

2003-01-29 Thread Dash McElroy
You are referencing the variables properly on the first if line, but then you're calling $var1 and $var2 w/o using $_GET. Add that or do this: $var1 = $_GET['var1']; $var2 = $_GET['var2']; You may also want to use !isset($varname) instead of checking to see if the variables are equal to a space

Re: [PHP-WIN] Re: Two errors, maybe related. phpMyAdmin refuses to run when dir is secure

2003-01-29 Thread Rod Martin
I think they do. We set up rights in the IIS software. There are several options on how to grant the rights, but only a few get us into the directory, and then phpMyAdmin doesn't run. What is the best way to set up the permissions in this case? Rod On Wednesday, January 29, 2003, at 12:58 PM,

[PHP-WIN] GD library for jpeg?

2003-01-29 Thread Afan Pasalic
I tried an example from php.net site: ?php header (Content-type: image/png); $im = @imagecreate (50, 100) or die (Cannot Initialize new GD image stream); $background_color = imagecolorallocate ($im, 255, 255, 255); $text_color = imagecolorallocate ($im, 233, 14, 91); imagestring ($im, 1, 5,

Fw: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Afan Pasalic
That would be strange - Explorer 6.0. And hosting company is pair.com - pretty high ranked hosting co. What could be the easiest way to check that, to be sure? Afan - Original Message - From: Dash McElroy To: Afan Pasalic Sent: Wednesday, January 29, 2003 7:11 PM Subject: Re:

RE: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Chris Kranz
I could be wrong, but aren't some of the older versions of PHP without JPEG gd lib ability? I remember playing with the gd lib over a year ago, and I couldn't get anything to come out as JPEG's. actually, there wasn't the functions to do some of the stuff with JPEG's. Maybe I was dreaming, but I

RE: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Chris Kranz
Sup: http://gallery.menalto.com/modules.php?op=modloadname=GalleryFAQfile=i ndexmyfaq=yesid_cat=3categories=3+-+Gallery+Graphics+Toolkitsparent_ id=0 chris kranz fatcuban.com -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:19 AM To:

Re: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Afan Pasalic
they have PHP 4 installed - Original Message - From: Chris Kranz To: [EMAIL PROTECTED] Sent: Wednesday, January 29, 2003 7:33 PM Subject: RE: [PHP-WIN] GD library for jpeg? I could be wrong, but aren't some of the older versions of PHP without JPEG gd lib ability?

[PHP-WIN] PHP on Windows.net Server

2003-01-29 Thread George Sas
Hello news group. I have been trying to install php on a Windows .Net Server and I keept getting Error 400. Here is the sollution. After installing the PHP according to install.txt you have to go on the IIS console and at: Web Server Extenstions - Add a new Web service extension. Here you

[PHP-WIN] .net

2003-01-29 Thread Nick H. -- Technical Support Engineer
There was a resolution posted on this right about the time 4.3.0 came out with a full kb article on how to fix. Regards, Nick H. [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Fw: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Afan Pasalic
Actually, you're right. They don't host on Windows. But, isn't the same GD library used on both OS? Afan - Original Message - From: Christoph Grottolo To: Afan Pasalic Sent: Wednesday, January 29, 2003 7:40 PM Subject: Re: Fw: [PHP-WIN] GD library for jpeg? Hi [EMAIL

Re: Fw: [PHP-WIN] GD library for jpeg?

2003-01-29 Thread Christoph Grottolo
[EMAIL PROTECTED] (Afan Pasalic) wrote: Actually, you're right. They don't host on Windows. But, isn't the same GD library used on both OS? Afan Basically yes. But on Windows most people use precompiled versions (same binaries) while it's quite common to compile oneself on other OSs. Maybe

[PHP-WIN] Wierd Windows Problems

2003-01-29 Thread Chris Deam
PLEASE HELP! I am frustrated. Here is the scenario: I am creating a demo disk consisting of MySQL,PHP,Apache to run on windows 98. I already have my program running fine on Linux. I copied over the php files and did the correct dos conversion on them. I had to make minor modifications to

php-windows Digest 30 Jan 2003 04:22:41 -0000 Issue 1562

2003-01-29 Thread php-windows-digest-help
php-windows Digest 30 Jan 2003 04:22:41 - Issue 1562 Topics (messages 18172 through 18207): Re: Is this possible 18172 by: Vladimir Galkov Re: Mail newbie Question 18173 by: Vladimir Galkov Counter problems! 18174 by: Radovan Radic 18175 by: J.Veenhuijsen

RE: [PHP-WIN] Re: Unsetting PHP_AUTH_*

2003-01-29 Thread DAS6804
OK, thank you very much, Vladimir. I've used session variables and it's solved ;) Thanks for your helping! Danny -Mensaje original- De: Vladimir Galkov [mailto:[EMAIL PROTECTED]] Enviado el: miércoles, 29 de enero de 2003 15:12 Para: [EMAIL PROTECTED] Asunto: [PHP-WIN] Re:

[PHP-WIN] MySQL - question

2003-01-29 Thread Bobo Wieland
I'm most of the time using MySQL in conjuction with PHP and I hope that it's okey to post questions regarding MySQL. There isn't much traffic here anyway so I hope you can live with it... Anyway... I'm going to put two different translations of the bible in a MySQL-db. And before I do anything I

[PHP-WIN] Something like trim()

2003-01-29 Thread Bobo Wieland
Is there an easy way to get rid off white space characters in a string? Like trim() but for the whole string and leaving single white spaces as they are but removing all occurences of '\t','\n' and ' '(leaving a single ' ')... I've tried the manual but couldn't find anything... . bobo .

[PHP-WIN] Register globals on and off

2003-01-29 Thread Davy Obdam
Hello people, On my development machine (win XP/Apache 2.0.44/PHP 4.3.0/MySQL 3.23.55) i have several websites that i made some time ago that require register globals to be On in the php.ini. Ofcourse i know thats not a good idea at all for security, but rewriting all this code is not an

[PHP-WIN] Re:[PHP] Register globals on and off

2003-01-29 Thread Daniel Leighton
Hi Davy, I found the following in the php manual: Please note that register_globals cannot be set at runtime (ini_set()). Although, you can use .htaccess if your host allows it as described above. An example .htaccess entry: php_flag register_globals on. on this page: