Re: [PHP] file uploads double in size - help!

2002-12-28 Thread Michael J. Pawlowsky
This might help you... http://www.phpbuilder.com/columns/florian19991014.php3?page=4 *** REPLY SEPARATOR *** On 28/12/2002 at 2:00 PM [EMAIL PROTECTED] wrote: I am having trouble with php file uploads where the files are arriving corrupted and information in the file is

Re: [PHP] File Upload

2002-12-14 Thread Paul Roberts
what version of php are you using? - Original Message - From: Miro Kralovic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 14, 2002 3:52 AM Subject: RE: [PHP] File Upload Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile variable at all

Re: [PHP] File Handles?

2002-12-13 Thread Rasmus Lerdorf
They aren't really handles (whatever a handle might be) they are simply copies of the data from the $_FILES array so you can use $imageName instead of $_FILES['photo_file']['name'] everywhere throughout the rest of the script. -Rasmus On Fri, 13 Dec 2002 [EMAIL PROTECTED] wrote: The following

Re: [PHP] File Upload

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 1:03:05 PM, you wrote: MK Hi everybody, MK I'm trying to upload a file using the following scripts, but it doesn't MK work, it actually doesn't get through the first line of PHP script at all MK and displays a problem has occured message. I'm running the script

RE: [PHP] File Upload

2002-12-13 Thread Miro Kralovic
Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile variable at all in PHP script, even thought the globals are ON... You are missing this bit: input type=hidden name=MAX_FILE_SIZE value=10 -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] File Upload

2002-12-13 Thread Jason Wong
On Saturday 14 December 2002 11:35, Tom Rogers wrote: You are missing this bit: input type=hidden name=MAX_FILE_SIZE value=10 I am curious as to why so many people say this in response to file upload problems? In practice, none of my upload forms have that missing bit but they work

RE: [PHP] File handling

2002-11-29 Thread Jeff RingRose
Justin, Option b. delete all AFTER foo, I.E. truncate the file directly after foo. Leaving foo and all the data before foo untouched. Jeff -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: 29 November 2002 04:29 To: Jeff; [EMAIL PROTECTED] Subject: Re: [PHP] File

Re: [PHP] File handling

2002-11-29 Thread Jeff
]] Sent: 29 November 2002 04:29 To: Jeff; [EMAIL PROTECTED] Subject: Re: [PHP] File handling Quick one, how do i read a file for a key word, say TEXt, and the delete the rest of the remaining file? Do you mean: a) how do i make sure a word (eg foo) is in a file, and if it is, delete all

Re: [PHP] File handling

2002-11-29 Thread Justin French
on 29/11/02 7:06 PM, Jeff RingRose ([EMAIL PROTECTED]) wrote: Justin, Option b. delete all AFTER foo, I.E. truncate the file directly after foo. Leaving foo and all the data before foo untouched. And what happens if there are more than one occurrence of foo? I assume you mean the first

Re: [PHP] file creation date

2002-11-29 Thread Maxim Maletsky
How would you know about a file on someone's system before it was implicitly sent you by user? Take a look at JavaScript, but I doubt there will be a sure solution for it. Nothing is sure with JavaScript except for it's cross-browser incompatibility :) -- Maxim Maletsky [EMAIL PROTECTED]

Re: [PHP] File handling

2002-11-29 Thread Maxim Maletsky
loop through the file line by line explode()ing every line with TEXt in it. Then, if retrning array count is bigger than one, unset() the key one and break the loop. All read OVERWRITE in the original file. Sorry, too lazy writing the code here :) -- Maxim Maletsky [EMAIL PROTECTED] Jeff

Re: [PHP] File handling

2002-11-28 Thread Justin French
Quick one, how do i read a file for a key word, say TEXt, and the delete the rest of the remaining file? Do you mean: a) how do i make sure a word (eg foo) is in a file, and if it is, delete all contents of the file except the word foo OR b) how do i search a file for the word foo, and

RE: [PHP] file creation date

2002-11-28 Thread John W. Holmes
Is it possible to get the creation date of a file that is going to be uploaded? I saw a function that returns the file creation date once on the server, but is it possible to get that information from a file that is not yet on the server? Not with PHP. ---John Holmes... -- PHP General

RE: [PHP] File upload on Win2k ...

2002-11-26 Thread Rich Gray
Don't bother to respond people... worked out the issue - the double backslashes in the name... Cheers Rich -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 21:14 To: [EMAIL PROTECTED] Subject: [PHP] File upload on Win2k ... PHP v4.2.3 Win2K Sp2 Apache

RE: [PHP] File Uploads

2002-11-21 Thread John W. Holmes
I just wanted to know if there was a way to control the owner of the new file because when iupload files the owner is set to httpd which means that I can't access the file properly. Not much you can do about it, if PHP is running as a module. If it's CGI, then I think you can set it up so the

Re: [PHP] File Upload: Help Needed

2002-11-13 Thread Marek Kilimajer
The directory must exists prior to copy, and must be writeable by the server process. Also note this is a filesystem path. Pushpinder Sngh Garcha wrote: Hi I am trying to upload a file using php. This is the code that I am using for the php script called upload.php html ?

Re: [PHP] File Upload problem

2002-11-12 Thread Ernest E Vogelsinger
At 00:25 13.11.2002, Van Andel, Robert said: [snip] FORM action=? echo $PHP_SELF; ? method=post encType=multipart/form-dataINPUT type=hidden value=2 name=MAX_FILE_SIZE INPUT type=file name=users_fileBRINPUT type=submit value=Upload! /FORM?PHP } ?

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
Vogelsinger [mailto:ernest;vogelsinger.at] Sent: Tuesday, November 12, 2002 3:46 PM To: Van Andel, Robert Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File Upload problem At 00:25 13.11.2002, Van Andel, Robert said: [snip] FORM action=? echo $PHP_SELF; ? method

RE: [PHP] File Upload problem

2002-11-12 Thread Van Andel, Robert
: [EMAIL PROTECTED] Subject: RE: [PHP] File Upload problem It was a typo. Sorry. -Original Message- From: Ernest E Vogelsinger [mailto:ernest;vogelsinger.at] Sent: Tuesday, November 12, 2002 3:46 PM To: Van Andel, Robert Cc: [EMAIL PROTECTED] Subject: Re: [PHP] File Upload problem At 00:25

Re: [PHP] File locking problem

2002-11-08 Thread Krzysztof Dziekiewicz
I'm having file locking problems. I'm using fopen() to write a file via FTP. At the end, I'm doing... fflush($fp); fclose($fp); ...and then I include it immediately after. But many times I only get part of what I wrote to the file, which suggests that it wasn't really flushed

Re: [PHP] File locking problem

2002-11-08 Thread Charles Wiltgen
Krzysztof Dziekiewicz wrote... Do you use include or require. In such situation you should not use include. I tried require() too, but it made no difference. I later learned that if you fopen(), write some stuff, fflush() and ffclose(), that doesn't mean the file is complete (or that it even

Re: [PHP] File locking problem

2002-11-08 Thread Ernest E Vogelsinger
At 16:50 08.11.2002, Charles Wiltgen spoke out and said: [snip] I tried require() too, but it made no difference. I later learned that if you fopen(), write some stuff, fflush() and ffclose(), that doesn't mean the file is complete (or that it even exists).

Re: [PHP] File locking problem

2002-11-08 Thread Charles Wiltgen
Ernest E Vogelsinger wrote... This has to be a PHP bug, which I'd be happy to file if someone more experienced could confirm that it isn't stupid user error. I don't believe it has something to do with PHP, much more with the FTP server you're accessing... This might delay the actual

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Charles Wiltgen wrote... I'm having file locking problems. I'm using fopen() to write a file via FTP. At the end, I'm doing... fflush($fp); fclose($fp); ...and then I include it immediately after. But many times I only get part of what I wrote to the file, which suggests that it

Re: [PHP] File locking problem

2002-11-07 Thread Marco Tabini
Charles, 2 questions-- 1) What OS are you using? 2) Does the file include PHP code? Otherwise, can you keep its contents in a string and simply output that string? If it contains PHP code, are you sure that there aren't any errors in the PHP code? Ok, so it was a bit more than 2 questions :-)

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Marco Tabini wrote... 1) What OS are you using? Linux. 2) Does the file include PHP code? Yes. If it contains PHP code, are you sure that there aren't any errors in the PHP code? Yes. The resulting XHTML validates when the include works (more than half the time). The rest of the time,

Re: [PHP] File locking problem

2002-11-07 Thread Marco Tabini
Ok, here's another possibly stupid solution. Have you tried (a) setting a pause (like 2 secs) between when you end writing and include the file or (b) writing the file, then refreshing the page with a parameter and including it only then? In the latter case, terminating the script and refreshing

Re: [PHP] file upload broken in my case?

2002-11-07 Thread Marco Tabini
When are you checking that the file actually exists? PHP deletes the temporary file once the script has finished executed. This means you have to copy it somewhere else if you need to manipulate (or even to look at it after you posted), or you'll never find anything. I went nutz with this the

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Marco Tabini wrote... Ok, here's another possibly stupid solution. Not at all. My solution was not far from that -- I have to wait for the file to exist, and then to have something in it, and then include it. (See my PHP fopen() bug + solution post.) Thank you, -- Charles Wiltgen -- PHP

Re: [PHP] file upload broken in my case?

2002-11-07 Thread sam clanton
That's it --- that will teach me not to read the last line in the documentation! argh... Thanks Sam On 7 Nov 2002, Marco Tabini wrote: When are you checking that the file actually exists? PHP deletes the temporary file once the script has finished executed. This means you have to copy it

Re: [PHP] File locking problem

2002-11-06 Thread Marco Tabini
Just a (possibly stupid) suggestion--is it possible that the file is being overwritten by another instance of your script that's run in the meantime? - php|architect -- The Magazine for PHP Professionals Check us out on the web at http://www.phparch.com On Wed, 2002-11-06 at 23:06,

Re: [PHP] File locking problem

2002-11-06 Thread Charles Wiltgen
Marco Tabini wrote... Just a (possibly stupid) suggestion--is it possible that the file is being overwritten by another instance of your script that's run in the meantime? This may also be a problem at some point, but currently I'm just trying to get it working in an test environment where

Re: [PHP] File download + HTTP auth problem.

2002-11-05 Thread rija
Simply, HTTP Authentification Header(WWW-Authenticate: Basic realm='something') does not work with microsoft product, so you need to buy Microsoft authentification from Microsoft to do something like it. - Original Message - From: Rodolfo Gonzalez [EMAIL PROTECTED] To: [EMAIL PROTECTED]

RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 30 October 2002 13:46 I never noticed before...there is no easy way to perform random-access read and WRITE on a file. I vote/recommend/suggest that this most basic functionality be added to the next release of

RE: [PHP] File Random Access

2002-10-30 Thread Cal Evans
Rick, If you have a file that is to large to simply read into memory, do your inserts and then write back out then you need to move it to a database. Cluttering up the main code base with random flat-file reads and writes is not necessary. If you seriously need it then you can do as suggested,

Re: [PHP] File Random Access

2002-10-30 Thread Rick Emery
You are correct. In fact, simply r+ works; I just tried it. Thanks - Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Rick Emery' [EMAIL PROTECTED]; PHP [EMAIL PROTECTED] Sent: Wednesday, October 30, 2002 8:05 AM Subject: RE: [PHP] File Random Access -Original

RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
-Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: 30 October 2002 14:35 You are correct. In fact, simply r+ works; I just tried it. Thanks Yes, but that's not guaranteed to be binary-safe on Windows -- if your data happens to include null bytes, you might get

Re: [PHP] File upload problem...

2002-10-29 Thread Marek Kilimajer
Try print_r($_FILES) and see if you really get what you should. And also check if you have your form set as form enctype=multipart/form-data action= url method=POST David Russell wrote: Hi all, I have a form with a file upload section. The target script contains the following: if

RE: [PHP] File upload and php... not a beginner question...

2002-10-16 Thread David Freeman
I'm currently working on a big photo album tool, and I want to provide user the ability to upload a lot of jpeg files in one time... The big problem with form is it's too slow... Does anyone know how to by-pass this ( with java or other tools )? It's primarly slow because

Re: [PHP] File upload and php... not a beginner question...

2002-10-16 Thread Marek Kilimajer
Well, you can use form target=_blank onSubmit=document.location='please_be_patient_and_dont_close_the_new_window.html' Baroiller Pierre-Emmanuel wrote: Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
Does it work with a different browser? Smells like an IE bug to me. On Mon, 7 Oct 2002, 1LT John W. Holmes wrote: Everyone, I've had a simple download script working where a user would click on a link and the program would send word or excel headers instead of HTML. The file would then be

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
Does it work with a different browser? Smells like an IE bug to me. Doesn't everything with IE smell like a bug? Anyhow, it works fine with Netscape. Opera will not open the file, but will save-as just fine when prompted. I'm off to search MS...deity of choice help me... ---John Holmes...

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
in my code. Any help is appreciated. ---John Holmes... - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: 1LT John W. Holmes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, October 07, 2002 10:08 AM Subject: Re: [PHP] File download doesn't work with SSL Does it work

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rasmus Lerdorf
, October 07, 2002 10:08 AM Subject: Re: [PHP] File download doesn't work with SSL Does it work with a different browser? Smells like an IE bug to me. On Mon, 7 Oct 2002, 1LT John W. Holmes wrote: Everyone, I've had a simple download script working where a user would click on a link

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis
07, 2002 10:08 AM Subject: Re: [PHP] File download doesn't work with SSL Does it work with a different browser? Smells like an IE bug to me. On Mon, 7 Oct 2002, 1LT John W. Holmes wrote: Everyone, I've had a simple download script working where a user would click

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread 1LT John W. Holmes
Stathis, Thanks for the tip. Any idea how to fix IIS regarding this issue? ---John Holmes... - Original Message - From: Rouvas Stathis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: 1LT John W. Holmes [EMAIL PROTECTED] Sent: Monday, October 07, 2002 2:00 PM Subject: Re: [PHP] File

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Rouvas Stathis
Holmes... - Original Message - From: Rouvas Stathis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: 1LT John W. Holmes [EMAIL PROTECTED] Sent: Monday, October 07, 2002 2:00 PM Subject: Re: [PHP] File download doesn't work with SSL John, problem is broken HTTP/1.1 implementation

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
Are you sure? I think (I might be wrong) using PHP sessions automatically sends the Cache-Control header. I cannot remember what directives it uses. Perhaps the fact that you do not use correct case makes PHP miss the fact that you want to reassign Cache-Control to use a different value? If

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
PROTECTED]] Sent: Monday, October 07, 2002 8:45 PM To: Rasmus Lerdorf Cc: 1LT John W. Holmes; [EMAIL PROTECTED] Subject: Re: [PHP] File download doesn't work with SSL Are you sure? I think (I might be wrong) using PHP sessions automatically sends the Cache-Control header. I cannot remember

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? Chris John W. Holmes wrote: I had tried it with both cases, actually, just to be sure. It did not make a difference. If the session is sending a no-cache header, would then

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? No. Can you recommend a good method on windows? Should I get lynx or does opera have a method to view all the headers? ---John Holmes... -- PHP General Mailing List

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread Peter Houchin
You can have multiple directives in that header: Cache-Control: no-cache, no-store Do you have a way to view the HTTP? No. Can you recommend a good method on windows? Should I get lynx or does opera have a method to view all the headers? can't you view all headers etc in the source

Re: [PHP] File download doesn't work with SSL

2002-10-07 Thread Chris Shiflett
Yes, you're right. You might want to turn off the forced SSL temporarily to debug this, if that's possible. Nothing other than your browser or the Web server will be able to show you the HTTP communication over SSL, because it's all trash to everything in between. There may be settings in

RE: [PHP] File download doesn't work with SSL

2002-10-07 Thread John W. Holmes
. :) ---John Holmes... -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 11:22 PM To: [EMAIL PROTECTED] Cc: 'Tom Rogers'; [EMAIL PROTECTED] Subject: Re: [PHP] File download doesn't work with SSL Yes, you're right. You might want

Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Just a comment... On Tuesday, September 24, 2002 1:39 PM Jaski wrote: snip I tried to copy this file using move_uploaded_file($userfile, "/place/to/put/uploaded/file"); and here a strange thing happened. The file was successfully copied BUT it had permissions like -rw-- which I interpret

Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by rackspace .. I doubt they would do some thing like running apache as root which I hear is a v foolish thing to do (frankly I don't know how to

Re: [PHP] file uploads problem

2002-09-24 Thread Marek Kilimajer
What I don't understand is how can your webserver create a file and then not to have permission to read it. What is your setup? Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. The server is managed by

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client .. can't download can't change permissions .. I think you won't be able to do anything with the file IF you use your ftp client. The reason is because *you*

Re: Re: [PHP] file uploads problem

2002-09-24 Thread @ Edwin
Oops, what I wanted to post was http://www.php.net/manual/en/function.chmod.php and not http://www.php.net/manual/en/function.chown.php - E On Tuesday, September 24, 2002 6:00 PM @ Edwin wrote: Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any

Re: Re: Re: [PHP] file uploads problem

2002-09-24 Thread Jaski
Thanks Edwin .. this one was Bang On. It was exactly what you said .. and now it works .. thanks a lot. Jaski On Tue, 24 Sep 2002 Edwin wrote : Jaski, On Tuesday, September 24, 2002 5:07 PM Jaski wrote: No Edwin .. I can't do any thing to that file .. not even from my ftp client ..

Re: [PHP] file uploads problem

2002-09-23 Thread Oscar F
Try: $upload = /path/to/copy/; $upload_path = $upload/$file_filename; if (is_uploaded_file($file)) { Exec(cp $filename $upload_path); } Then you have the file at /path/to/copy/filename, and you can do whatever you want with it. (I'm assuming the file field of the form is called file, and

Re: Re: [PHP] file uploads problem

2002-09-23 Thread Jaski
Thanks .. but I think you are saying exactly what I wrote I was doing .. except that you have used exec(cp $file $path) while I tried PHP's copy() function .. I don't think that will make a difference...though will give that a try any way. Forgot to mention in my previous mail that the

Re: [PHP] File Access...

2002-09-19 Thread Marek Kilimajer
put this to the begining of your some.php if (eregi(some.php,$PHP_SELF)) { Header(Location: index.php); die(); } Brian McGarvie wrote: How could you redirect somone from directly accessing a file... Meaning... if an engine spiders www.domain.com/some.php How could you make some.php

Re: [PHP] file upload 2 MB

2002-09-09 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I have not tested this but I think the correct syntax is: php_value upload_max_filesize 50M If the above doesn't work my next bet would be: php_admin_value upload_max_filesize 50M Hope that helps! ~Pauly On Monday 09 September 2002 07:04 am,

Re: [PHP] file creation question

2002-08-29 Thread Adam Williams
Search the archives, this was explained 2-3 days ago how to dynamically generate a while without creating one on the server. Adam On Thu, 29 Aug 2002, John Hegele wrote: I'm currently building a site for a band and one of the features I'd like to offer is vCalendar

RE: [PHP] file reading

2002-08-27 Thread Brad Dameron
'w+' - Open for reading and writing; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it. Change it to r since you are only reading. Also check to make sure your pathing is correct. --- Brad Dameron

Re: [PHP] File Upload size limit

2002-08-13 Thread Oliver Schönrock
Thanks for quick response. Just a couple of silly questions: - changed where? in php or apache? My host is running the three week old v 4.2.2 of php so I guess you mean apache? - If I can in fact get them to change it in http.conf for my virtual host block then I will have these huge (!)

Re: [PHP] File Upload size limit

2002-08-13 Thread Rasmus Lerdorf
Thanks for quick response. Just a couple of silly questions: - changed where? in php or apache? My host is running the three week old v 4.2.2 of php so I guess you mean apache? No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only. None of the changes for the past couple of

Re: [PHP] File Upload size limit

2002-08-13 Thread Oliver Schönrock
No, I mean PHP. The 4.2.2 release was a security fix for 4.2.1 only. None of the changes for the past couple of months, including this one, is in it. OK, but you said originally post_max_size and upload_max_filesize could not be set in your .htaccess file until recently. It was changed

RE: [PHP] File Upload size limit

2002-08-13 Thread RPS Internet
You can also do this all in a php file without changing the directives in either .htaccess or the httpd.conf file. Here is a sample: form enctype=multipart/form-data action=? $PHP_SELF ? method = post input tpye = hidden name = MAX_FILE_SIZE value = 4096 #1024 each meg :) input

Re: [PHP] File Question

2002-08-08 Thread Ray Hunter
I guess my question is does PHP support additional macros like this? .: B i g D o g :. - Original Message - From: B i g D o g [EMAIL PROTECTED] To: PHP GEN [EMAIL PROTECTED] Sent: Thursday, August 08, 2002 2:23 PM Subject: [PHP] File Question I have been looking all over the manual

RE: [PHP] File Question

2002-08-08 Thread Maxim Maletsky
: Ray Hunter [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 08, 2002 10:26 PM To: PHP GEN Subject: Re: [PHP] File Question I guess my question is does PHP support additional macros like this? .: B i g D o g :. - Original Message - From: B i g D o g [EMAIL PROTECTED] To: PHP

Re: [PHP] File Browser like Win Explorer in php

2002-07-27 Thread Bob Lockie
On 27 Jul 2002 17:16:52 -0400, Reuben D. Budiardja wrote: Hi, I am wondering if anyone has created or know where I can get a code for browsing files and directory in using php in linux. The one I am looking for is file browsing capability that is similar to Window Explorer, meaning you can

Re: [PHP] File upload memory usage.

2002-07-24 Thread Jason Wong
On Wednesday 24 July 2002 21:48, Reid Sutherland wrote: Hi, I'm currently locked in a battle with PHP and file uploads. I've searched the list to no avail. I actually found a guy with the same problem who ended up using perl to make this work. I'm trying to avoid that. The problem is,

Re: [PHP] File upload memory usage.

2002-07-24 Thread Reid Sutherland
Jason Wong wrote: Apparently that is how it will work in a _future_ version of PHP. But for now it's all stuffed in RAM until the complete file is received. That's crazy. Maybe I don't understand enough of how PHP deals with various web servers and maybe that's why this is the way it is.

Re: [PHP] File reading help with Syntax

2002-07-17 Thread Analysis Solutions
On Wed, Jul 17, 2002 at 10:00:29AM -0400, Chris Crane wrote: I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 21:53, Dave [Hawk-Systems] wrote: $users=file('.users'); # puts users in the file into an array so we can # check for valid or priv users with if(in_array($HTTP_SERVER_VARS[REMOTE_USER], $users)){} # we add additional users to the .users file with the following

RE: [PHP] file() and array values contain extra \n

2002-07-16 Thread Dave [Hawk-Systems]
On Tuesday 16 July 2002 21:53, Dave [Hawk-Systems] wrote: $users=file('.users'); # puts users in the file into an array so we can # check for valid or priv users with if(in_array($HTTP_SERVER_VARS[REMOTE_USER], $users)){} # we add additional users to the .users file with the following

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
On Tuesday 16 July 2002 22:35, Dave [Hawk-Systems] wrote: $users[]=$newuser; # adds the new user to the end of the above created users array # then write the array to the file $fd = fopen (.users, w+); fwrite ($fd, join(\n,$users)); fclose ($fd); the problem is after adding

RE: [PHP] file() and array values contain extra \n

2002-07-16 Thread Dave [Hawk-Systems]
$users[]=$newuser; # adds the new user to the end of the above created users array # then write the array to the file $fd = fopen (.users, w+); fwrite ($fd, join(\n,$users)); fclose ($fd); the problem is after adding users, only the last user returns the user name in the array,

Re: [PHP] file() and array values contain extra \n

2002-07-16 Thread Jason Wong
On Wednesday 17 July 2002 00:44, Dave [Hawk-Systems] wrote: if(in_array($HTTP_SERVER_VARS[REMOTE_USER] . \n, $users)) { ... } BTW, it should be: fwrite ($fd, join('', $users)); otherwise each time you write the file out it will have an increasing number of \n attached to each

RE: [PHP] file() and array values contain extra \n

2002-07-16 Thread Dave [Hawk-Systems]
Start from scratch. You have a file with a single user on each line: tom\n dick\n harry\n You use file() to read into array $users. You compare as in above. You add a user by: $users[] = NEW_USER\n; You write out the file as above. curious... when I ran through that (before posting

Re: [PHP] File Browser

2002-07-12 Thread Jason Wong
On Saturday 13 July 2002 09:51, Darren Young wrote: Anyone have any pointers to existing scripts? What would this type of application be called? A document repository perhaps? There's something called Owl (search sourceforge/freshmeat etc). Or you can try phprojeckt which has a document

Re: [PHP] File Uploading Question

2002-07-10 Thread Justin French
on 11/07/02 10:10 AM, Nick Oostveen ([EMAIL PROTECTED]) wrote: I've got a (hopefully) simple question which is indirectly related to php. Very indirectly. Infact, it's completely a HTML/CSS question. Try the comp.infosystems.www.authoring.stylesheets newsgroup. Justin French -- PHP

Re: [PHP] File Appended can not be viewed properly in Windows

2002-06-04 Thread Jason Wong
On Tuesday 04 June 2002 15:20, Manisha wrote: Some tricky things are happening : But have nothing to do with PHP. Our local network environment : server - Win2K, my computer Win 98 and Linux Red Hat. I have map network drive to Linux and working on File Append / Write programs. Are you

RE: [PHP] File Upload

2002-05-30 Thread Ford, Mike [LSS]
-Original Message- From: Edward Marczak [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 03:27 OK - I've read the manual, looked at sample codeand I sadly am missing something. I'm doing (basically) this in my form: form action=someform.php ENCTYPE=multipart/form-data

Re: [PHP] File Upload

2002-05-30 Thread Edward Marczak
On 5/29/02 10:39 PM, Gerard Samuel [EMAIL PROTECTED] pressed the keys forming the message: A guess, but is the tmp dir set in php.ini?? Yeah - sorry, I should have said that in the first place. -- Ed Marczak [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] File Upload

2002-05-30 Thread Edward Marczak
On 5/30/02 8:13 AM, Ford, Mike [LSS] [EMAIL PROTECTED] pressed the keys forming the message: -Original Message- From: Edward Marczak [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 03:27 OK - I've read the manual, looked at sample codeand I sadly am missing

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Martin Towell
IMO: use relative paths if the two files will be in the same place relative to each other, otherwise use absolute -Original Message- From: Manisha [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 11:51 AM To: [EMAIL PROTECTED] Subject: [PHP] File Path - Which way is better ? I

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha
e.g my directory structure is like below /usr/manisha/www/invitation - where all php files are situated /usr/manisha/incFiles - where all files are situated - from where I want to read There are also some files /usr/manisha/www/invitation/msgFiles - From this directory also I am reading

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread John Holmes
: Wednesday, May 29, 2002 10:02 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] File Path - Which way is better ? e.g my directory structure is like below /usr/manisha/www/invitation - where all php files are situated /usr/manisha/incFiles - where all files are situated - from where I want

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Martin Towell
: Manisha [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 12:02 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] File Path - Which way is better ? e.g my directory structure is like below /usr/manisha/www/invitation - where all php files are situated /usr/manisha/incFiles - where all files

RE: [PHP] File Path - Which way is better ?

2002-05-29 Thread Manisha
Thanks to all who responded. I have concluded that - if directory structure is fixed then we shall use relative path, so that we can copy the code as it is to different server without changing anything. But if we are not sure about the path on server - from where the files are going to be

Re: [PHP] File Upload

2002-05-29 Thread Gerard Samuel
A guess, but is the tmp dir set in php.ini?? Edward Marczak wrote: OK - I've read the manual, looked at sample codeand I sadly am missing something. I'm doing (basically) this in my form: form action=someform.php ENCTYPE=multipart/form-data method=post name=replysub id=replysub

Re: [PHP] file functions and clearstatcache

2002-05-21 Thread Miguel Cruz
On Tue, 21 May 2002, Gerard Samuel wrote: I have a function that checks whether a file exists and loads it like so function foo($bar) { if (file_exists($bar)) { include($bar); } } According to clearstat cache, its use is for files that change often. In my case

RE: [PHP] file upload problem

2002-05-19 Thread Rodney Davis
PROTECTED]] Sent: Saturday, May 18, 2002 7:31 PM To: Rodney Davis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] file upload problem On Sat, 18 May 2002, Rodney Davis wrote: I am trying to use the move_uploaded_file() function to upload files to a specific directory. It works fine with small .jpgs .txt

Re: [PHP] file upload problem

2002-05-18 Thread Miguel Cruz
On Sat, 18 May 2002, Rodney Davis wrote: I am trying to use the move_uploaded_file() function to upload files to a specific directory. It works fine with small .jpgs .txt etc etc but won't work with a large .mp3 file. Is this because it is too large? What can I do? You can tell us what

Re: [PHP] File Handling

2002-05-15 Thread Miguel Cruz
On Thu, 16 May 2002, karthikeyan wrote: Just assume that I have a text file with a separator like | It would be something like this ImagePath | DialogName | Dialog locationpath I have to read the text file of above format and display in the html file. pimg src =ImagePath1 a

[PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread Jochem
I guess you could check the $userfile_type for the correct type. John Ngo [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... basically i've got a file upload script (that works) what i want to do now is restrict it to filetypes of 'image/jpeg' however now i

[PHP] Re: php file uploads and type 'image/pjpeg' ???

2002-05-13 Thread John Ngo
actually i looked up pjpeg turns out its an actual filetype in its own right haha pjpeg uses progressive encoding as opposed to normal jpeg or something whats weirder is everyfile i've tried on my computer appears to be pjpeg encoded Jochem [EMAIL PROTECTED] wrote in message [EMAIL

<    2   3   4   5   6   7   8   9   10   >