php-windows Digest 1 Dec 2002 23:43:15 -0000 Issue 1466

Topics (messages 17228 through 17233):

Upload File Size
        17228 by: Raheel Hussain

Re: array problem need help quick
        17229 by: George Nicolae
        17230 by: Ignatius Reilly

auto_prepend config under WinXP
        17231 by: Timothy J. Luoma

Zlib
        17232 by: cisiodon.com.br - Mail Host - Listserv

Setting up PHP
        17233 by: Lee R. Jordan, Jr.

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
hi,

here again i got a problem while uploading a file, I m using the following script.


$file = $_FILES['userfile']['tmp_name'];
print_r($file . "<Br>");
print($_FILES['userfile']['size'] . " IS THE SIZE <br>");
print($_FILES['userfile']['type']);
exit();


// Out put .. if File size is less than 1000

d:\raheel\w3sites\php12F.tmp
73699 IS THE SIZE 
application/pdf

 

// Out put .. if File size is greater than 1000

0 IS THE SIZE 


while my php.ini file is as follows

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir =d:\raheel\w3sites\

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

regards
raheel



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--- End Message ---
--- Begin Message ---
try to implement your sort function (bubble or quick) and you change both
arrays.

--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Damouse" <[EMAIL PROTECTED]> wrote in message
001f01c298f8$f3c3c500$3700a8c0@DaMouse">news:001f01c298f8$f3c3c500$3700a8c0@DaMouse...
I need help with a array problem I want one array to be sorted and another
taking its same number order e.g.
$ar1[0] == "marmite"; $ar2[0] == 10;
$ar1[1] == "jam"; $ar2[1] == 11;
$ar1[2] == "beef"; $ar2[2] == 7;
$ar1[3] == "cabbage"; $ar2[3] == 0;
$ar1[4] == "ick"; $ar2[4] == 5;

sort($ar2,SORT_NUMERIC); and then make sure that the values of $ar1 are with
there vote number counterparts in $ar2 so now
$ar2[0] == 0; $ar1[0] == "cabbage";

please help

Ensign Baker
HCO Officer
USS Atlantis


--- End Message ---
--- Begin Message ---
When looping your SELECT result (or whatever), feed two arrays:

$arr[] = array(
        "name" => "marmite",
        "tally" => 10 ) ;

+ an "index" array that will serve to rank items:

$rank[] = 10 ;

Now you sort $rank on the value.

The whole idea is that you will not need to sort $arr (you can, but it is
needlessly complicated: usort()...)

To call the elements of $arr in the right order, loop $rank:

foreach ( $rank as $r ) {
    // the element you need is $arr[$rank[$r]]['name'], etc.


HTH
Ignatius
____________________________________________
----- Original Message -----
From: "DaMouse" <[EMAIL PROTECTED]>
To: "PHP - Win" <[EMAIL PROTECTED]>
Sent: Sunday, December 01, 2002 6:17 AM
Subject: [PHP-WIN] array problem need help quick


I need help with a array problem I want one array to be sorted and another
taking its same number order e.g.
$ar1[0] == "marmite"; $ar2[0] == 10;
$ar1[1] == "jam"; $ar2[1] == 11;
$ar1[2] == "beef"; $ar2[2] == 7;
$ar1[3] == "cabbage"; $ar2[3] == 0;
$ar1[4] == "ick"; $ar2[4] == 5;

sort($ar2,SORT_NUMERIC); and then make sure that the values of $ar1 are with
there vote number counterparts in $ar2 so now
$ar2[0] == 0; $ar1[0] == "cabbage";

please help

Ensign Baker
HCO Officer
USS Atlantis


--- End Message ---
--- Begin Message ---
Hello
 
I've been using PHP under Linux for some time, and tonight I decided that
I wanted to set it up on my local machine so  I can develop without having
to be online.

I downloaded all the files from my server to c:\lws\ ("local web server")
 
I installed PHP Version 4.2.3 and Apache/1.3.24 (and MySQL, but I'll worry
about that later) and it appears to be working.

 
Now on the server I have this in my /.htaccess:
 
 php_value auto_prepend_file  /home/myuid/www/global/php/variables.php
 
where '/home/myuid/' is the full path on the server to my files
 
local "c:\lws" equals remote "/home/myuid/www"
 
 
So I changed the two lines in .htaccess to:
 
 php_value auto_prepend_file  c:/lws/global/php/variables.php
 
But the information from 'variables.php' is not being included.
 
I do not see any errors on the page itself.
 
 
Can anyone tell me what I might be doing wrong?  This is my first time
trying to configure php.ini etc.
 
tia
 
TjL
 
 
-- 
Timothy J. Luoma
--- End Message ---
--- Begin Message ---
Hello,,

Win 2K
PHP 4.22
MySQL
Zlib

all working fine !!!

Some .PHP pages, when called, the browser shows download screen insted its execution 
when i turn "on" zlib.compress_output in PHP.INI.

Why some pages works and other not working ?


Mike
Mail-host Cisiodon.com.br

http://www.cisiodon.com.br
http://www.netforum.com.br

Running Postnuke Multi-theme - AdoDB - WebCam Portal - 4Imaqges Gallery.
Mailing Lists - Send message to [EMAIL PROTECTED] e na primeira linha digite LIST.




---
Outgoing mail is certified Virus Free.

Certified by  Argosoft Mail Server Pro

http://www.cisiodon.com.br
Http://www.netforum.com.br
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.423 / Virus Database: 238 - Release Date: 11/25/2002
--- End Message ---
--- Begin Message ---
Hello,

I have installed PHP this afternoon.  I download the most recent Windows
version available today from www.php.net.  I have installed it on a Win2K
Adv Server running IIS 5.0.  I have prepared a test page (test.php)and
placed it in the wwwroot directory on the web server.  When I try to access
the test page on the web server (either from the server or remote machines)
I get the following error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers.  The headers it did not return are:

Then nothing.

I am just beginning to learn PHP and would like any assistance that anyone
could provide to get past this error.

Thanks,

Lee Jordan


--- End Message ---

Reply via email to