php-windows Digest 3 Jul 2002 05:58:05 -0000 Issue 1222

2002-07-02 Thread php-windows-digest-help
php-windows Digest 3 Jul 2002 05:58:05 - Issue 1222 Topics (messages 14526 through 14547): Re: Problem with file download/fopen/fread 14526 by: Alex Elderson 14527 by: Alex Elderson Re: Problem with file download/fopen/fread - rfc2616 - hypertext transfer protocol -- http-

[PHP-WIN] Php graphics

2002-07-02 Thread Opere, James
Hi all. I have a problem with my graphics which were running well at some point but now when I try to run the same scripts, I get a dialogue box for downloading the specified graph. When I say open, the graph is downloaded in the form of a 'photo editor'. I'm wondering what could have gone

Re: [PHP-WIN] case-sensitive

2002-07-02 Thread Scott Hurring
The following script: $noVar = "Hey"; print "1: $noVar \n"; print "2: $novar \n"; produces this output: 1: Hey 2: on my Win2k box with PHP 4.2.1. i can't see why your machine would output any differently AFAIK, PHP has always been case-sensitive for variables. what version of PHP are you

RE: [PHP-WIN] mysql_pconnect()

2002-07-02 Thread Dash McElroy
A book I've been reading (PHP and MySQL Web development, I think) says that Apache (if you are using apache...it's probably the same for IIS *shudder*) will open a new mysql connection for each process. It mentioned that the default max childs for Apache is 150 processes, and MySQL (as Rich mentio

RE: [PHP-WIN] mysql_pconnect()

2002-07-02 Thread Rich Gray
Matt I have seen instances with v4.0.6 of php where it didn't re-use persistent connections and opened up another channel for each pconnect - within a small amount of time MySql maxed out and refused any more connections... so if you're using that version of php (or earlier) I would monitor your

Re: [PHP-WIN] case-sensitive

2002-07-02 Thread Chris Schmidt
Yes includes work My problem is with case of vars if I have this on my Win2k $includePath ="test"; echo $includepath; the output is test if I do the same on a unix box the output is nothing Case Sesitivaty seems to have been turned of on my Win2K box. I would like it back on. "Scott Hurr

Re: [PHP-WIN] Re: errormessage: undefined variables - why define them?

2002-07-02 Thread Scott Hurring
Please also check out "error_reporting" in 'php.ini', there you can turn off Notice reporting. But for future reference, it's a good idea to define vars before you use them, to avoid problems down the road like vars already having values that you didn't count on (if you use register_globals). --

Re: [PHP-WIN] Tons of notices and warnings...for what reason?

2002-07-02 Thread Scott Hurring
Also, try modifying the error_reporting value in 'php.ini' and change it to something a bit more terse, like: "error_reporting = E_ALL & ~E_NOTICE" for example. Or, of course, clean up the code! I hope you didn't pay any money for that BB, becuase it seems like they wrote some pretty slipshod

Re: [PHP-WIN] case-sensitive

2002-07-02 Thread Scott Hurring
I assure you, include() does work ;-) Verify that the file is indeed present in the 'include_path' (as set manually by ini_set() or in 'php.ini'), and make sure that the server is actually parsing PHP files correctly. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Chri

[PHP-WIN] Re: Parsing HTML Error

2002-07-02 Thread Scott Hurring
So are you saying that when you access the page with NS 4.72, you see the raw PHP code? Could you give more details? The NS 4.x series is about 6-7 years old now (IIRC) and are horribly out of date with respect to modern HTML/CSS, so it's very possible that what you think is a bug with PHP is ju

[PHP-WIN] Controlling Filename of file uploads.

2002-07-02 Thread Blaine Dinsmore
I would like to know if anyone has a good method in controlling filenames of files uploaded from a form? I'm creating an issue tracking system and would like for all filenames of the screenshots uploaded to be suffixed with the issue ID that the screenshot is associated with. I'm using the mysq

[PHP-WIN] mysql_pconnect()

2002-07-02 Thread Matt Babineau
Here is an interesting question: To save coding time, what would happen if you put a mysql_pconnect to a database for a web site on every page of a web site? because it is a pconnect, would it always reuse the open connection? Does mysql have an open connection limit? what if you put a mysql_clo

RE: [PHP-WIN] Followed install.txt... and NOTHING

2002-07-02 Thread Bruce Karstedt
Actually they do work together. I am using Win XP Pro, Apache 2.0.39 and PHP 4.2.1. Granted I only use this for dev work and would never consider this for a production site. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message

RE: [PHP-WIN] Followed install.txt... and NOTHING

2002-07-02 Thread Dash McElroy
When in doubt, view source. If you see PHP code, no PHP scripting is present. -Dash -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 9:15 PM To: news.per.connect.net.au; [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Followed install.txt... and NOTHING w

Re: [PHP-WIN] Followed install.txt... and NOTHING

2002-07-02 Thread Chris Earle
I'm almost entirely sure that this is Apache's fault (well XP). XP and Apache don't get along together. To get this to work you might need to install Win2k or some form of Linux. "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > make sure these lines ar

[PHP-WIN] Re: Getting users IP Address

2002-07-02 Thread Chris Earle
$_SERVER["REMOTE_ADDR"] is I believe the variable (you can do phpinfo(); call to find others). "R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > How do I get a users IP address using either Javascript or PHP? > > Thanks, > Ron -- PHP Windows

RE: [PHP-WIN] Getting users IP Address

2002-07-02 Thread brother
This script will make the server ping the visitor =) '; } ?> > -Original Message- > From: R.S. Herhuth [mailto:[EMAIL PROTECTED]] > Sent: den 2 juli 2002 16:17 > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Getting users IP Address > > > > How do I get a users IP address using either

[PHP-WIN] Getting users IP Address

2002-07-02 Thread R.S. Herhuth
How do I get a users IP address using either Javascript or PHP? Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] Parsing HTML Error

2002-07-02 Thread George Pitcher
Ivan, Not with PHP but when I deplayed a lasso-based website about 18 months ago, I found that some stuff just didn't work across OS/browsers. It was all down to the HTML coding. Check out what cannot be used with those browsers that are giving you problems and see if you are using any of it. HT

[PHP-WIN] Parsing HTML Error

2002-07-02 Thread Ivan Arbitman
Here's a weird problem. - Using IIS on Win2K w/SP1 - Setting IIS to parse .html files with PHP.exe, same settings as for .php files - NOT using ISAPI module HTML files are parsed properly and php code is executed for the following browsers. All versions of IE on the PC IE 5.1.4 on MAC NS 6.x N

[PHP-WIN] Re: Problem with file download/fopen/fread - rfc2616 - hypertext transfer protocol -- http-1_1.htm [10/10]

2002-07-02 Thread Alex Elderson
ICAgdGhlIHRleHQgbGluZSBicmVhay4gSFRUUCByZWxheGVzIHRoaXMgcmVx dWlyZW1lbnQgYW5kIGFsbG93cyB0aGUNCiAgIHRyYW5zcG9ydCBvZiB0ZXh0 IG1lZGlhIHdpdGggcGxhaW4gQ1Igb3IgTEYgYWxvbmUgcmVwcmVzZW50aW5n IGEgbGluZQ0KICAgYnJlYWsgd2hlbiBpdCBpcyBkb25lIGNvbnNpc3RlbnRs eSBmb3IgYW4gZW50aXJlIGVudGl0eS1ib2R5LiBIVFRQDQogICBhcH

[PHP-WIN] Re: Problem with file download/fopen/fread

2002-07-02 Thread Alex Elderson
i am running also OS: WinXP Pro Apache 2.0.36 PHP 4.2.1 (module) if i replace: while(!feof($fc)) { set_time_limit(5); echo fread($fc, 10240); flush(); } with this echo fread($fc, $file_size); it works fine. But now we have an other problem: memmory l

[PHP-WIN] Re: Problem with file download/fopen/fread

2002-07-02 Thread Alex Elderson
Hi, I have the same problem Mail me if you have an idee ([EMAIL PROTECTED]) if (!($fc = fopen($base_path . $path . $file, "rb"))) { echo "error\n"; exit; } $file_size = filesize($base_path . $path . $file); ob_end_clean(); ignore_user_abort(false);

php-windows Digest 2 Jul 2002 12:59:05 -0000 Issue 1221

2002-07-02 Thread php-windows-digest-help
php-windows Digest 2 Jul 2002 12:59:05 - Issue 1221 Topics (messages 14514 through 14525): Re: Tons of notices and warnings...for what reason? 14514 by: Julie Meloni 14515 by: Dash McElroy 14516 by: Peter 14522 by: Tracker 1 Re: case-sensitive 14517

[PHP-WIN] Downloading files?

2002-07-02 Thread Alex Elderson
Hi, I have made a php script ware you can download some files, but it doesn't work very well After the first "echo fread($fc, 10240);" line it will send some strange data what to do? if (!($fc = fopen($path . $file, "rb"))) { echo "error\n"; exit; } $file_si