Re: [PHP-DB] File Upload in PHP

2012-02-02 Thread Trinath Somanchi
Hi- Thanks for the reply. I'm near to the solution but was struct at teh end. I have configured post_max_size, memory_limit, max_upload_filesize to '-1' and max_execution_time to ' 0'. and restarted the server. But then, Apache and Browser problems were in place. In IE6 and IE7, The

[PHP-DB] File Upload in PHP

2012-02-01 Thread Trinath Somanchi
Hi All- I have doubt regarding file upload in PHP. With out updating the INI file settings, Can PHP process File upload just like Apache handling Multipart post. Like, Irrespective of post_max_size being 8M, PHP must process a 15MB Post data (15MB Uploaded file.) How to work this out with PHP.

Re: [PHP-DB] File Upload in PHP

2012-02-01 Thread Karl DeSaulniers
I would set post_max_size in your htaccess for the directory where your upload.php file is. Or base64 your file and upload 8Mb chunks, then reassemble and store. but I am sure someone has a better solution than I. also, I may be wrong on this too, but this is a PHP General question, not

Re: [PHP-DB] File Upload in PHP

2012-02-01 Thread Karl DeSaulniers
Sry, not better help... better luck. :) Best, Karl On Feb 1, 2012, at 7:01 AM, Karl DeSaulniers wrote: I would set post_max_size in your htaccess for the directory where your upload.php file is. Or base64 your file and upload 8Mb chunks, then reassemble and store. but I am sure someone

Re: [PHP-DB] File Upload in PHP

2012-02-01 Thread Ege Sertçetin
Hi Trinath, You can use ini_set() function to change ini settings only for your upload script. http://php.net/manual/en/function.ini-set.php However, you cannot change any parameter you want. There is a list about php.ini parameters. As I remember, you just can set PHP_INI_ALL and

RE: [PHP-DB] File Downloads

2010-05-28 Thread Adam Schroeder
Subject: [PHP-DB] File Downloads Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded by 150 people and thats it.. ever, how can I go about doing this? Much obliged, Karl DeSaulniers Design

Re: [PHP-DB] File Downloads

2010-05-28 Thread Karl DeSaulniers
...@designdrumm.com] Sent: Friday, May 28, 2010 1:39 PM To: php-db@lists.php.net Subject: [PHP-DB] File Downloads Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able to be downloaded by 150 people and thats it.. ever, how can I go

Re: [PHP-DB] File Downloads

2010-05-28 Thread Karl DeSaulniers
Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Friday, May 28, 2010 1:39 PM To: php-db@lists.php.net Subject: [PHP-DB] File Downloads Hello, How can I go about restricting the number of downloads of a file on my server? For Eg: if I want a music track to only be able

RE: [PHP-DB] File Downloads

2010-05-28 Thread Adam Schroeder
... but depending on the importance of the content -- it should be good. Adam -Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Friday, May 28, 2010 2:36 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] File Downloads On May 28, 2010, at 4:33 PM, Karl DeSaulniers

Re: [PHP-DB] File Downloads

2010-05-28 Thread Karl DeSaulniers
On May 28, 2010, at 4:49 PM, Michael Stowe wrote: For that you would probably need to setup a databased system in which (best scenario) they would need to register prior to downloading or (not so secure) capture their IP address and prevent that IP from downloading it again (example

Re: [PHP-DB] File Downloads

2010-05-28 Thread Karl DeSaulniers
logging) Is there any reason not to log them in by personalized means? (such as email/username) -Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Friday, May 28, 2010 6:39 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] File Downloads On May 28, 2010, at 4:49 PM

Re: [PHP-DB] File Downloads

2010-05-28 Thread Karl DeSaulniers
logging) Is there any reason not to log them in by personalized means? (such as email/username) -Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Friday, May 28, 2010 6:39 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] File Downloads On May 28, 2010, at 4

RE: [PHP-DB] File Downloads

2010-05-28 Thread Systems
is 150 or username Is logged in join table (so the 150 first authenticated users can retrieve the file more than once...) Good luck Eli -Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Friday, May 28, 2010 7:40 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] File

Re: [PHP-DB] File Downloads

2010-05-28 Thread Karl DeSaulniers
the file more than once...) Good luck Eli -Original Message- From: Karl DeSaulniers [mailto:k...@designdrumm.com] Sent: Friday, May 28, 2010 7:40 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] File Downloads This is for a small project of limited edition audio or pictures or scripts

[PHP-DB] File read question

2005-07-22 Thread Chris Payne
Hi there everyone, I'm having to make an editor with PHP and MySQL for assigning column values that change (Long story), basically I can open the file and read it no problem, but how can I open a file and only display the first row of information with all columns? The column count changes

Re: [PHP-DB] File read question

2005-07-22 Thread Micah Stevens
What's the file format, if things are delimited, just read the first line out from the file, after getting it with file() or something, and then use explode() to break it up into an array based on the delimeter. Then you can foreach through it. Assuming it's comma seperated, this would work

RE: [PHP-DB] File read question

2005-07-22 Thread Chris Payne
Hi there, That actually looks like it might do it, thank you. I'm having a slow brain day today :0) Chris What's the file format, if things are delimited, just read the first line out from the file, after getting it with file() or something, and then use explode() to break it up into an

Re: [PHP-DB] File retrieval

2005-04-03 Thread Mark Cain
Cain - Original Message - From: Ron Piggott [EMAIL PROTECTED] To: PHP DB php-db@lists.php.net Sent: Friday, April 01, 2005 11:43 PM Subject: [PHP-DB] File retrieval If I have a file named data.txt Is it possible to load the contents of it into a variable search as $contents

RE: [PHP-DB] File retrieval

2005-04-03 Thread Bastien Koert
[EMAIL PROTECTED] Reply-To: Ron Piggott [EMAIL PROTECTED] To: PHP DB php-db@lists.php.net Subject: [PHP-DB] File retrieval Date: Fri, 1 Apr 2005 22:43:17 -0500 If I have a file named data.txt Is it possible to load the contents of it into a variable search as $contents idealy I would like to know

Re: [PHP-DB] File retrieval

2005-04-03 Thread Calvin Lough
or fread http://www.php.net/fread Bastien From: Ron Piggott [EMAIL PROTECTED] Reply-To: Ron Piggott [EMAIL PROTECTED] To: PHP DB php-db@lists.php.net Subject: [PHP-DB] File retrieval Date: Fri, 1 Apr 2005 22:43:17 -0500 If I have a file named data.txt Is it possible to load

[PHP-DB] File retrieval

2005-04-02 Thread Ron Piggott
If I have a file named data.txt Is it possible to load the contents of it into a variable search as $contents idealy I would like to know if I am able to do something like $contents = data.txt; Ron -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP-DB] File Mime Type Function

2004-09-23 Thread Jasper Howard
I've looked around for a while, does anyone know of a PHP function already built in to the install that gets the Mime type of a file on the server? thanks, -- Jasper Howard - Database Administration ApexEleven.com 530 559 0107

Re: [PHP-DB] File Mime Type Function

2004-09-23 Thread Matt M.
I've looked around for a while, does anyone know of a PHP function already built in to the install that gets the Mime type of a file on the server? you might try this http://pear.php.net/package/MIME_Type/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-DB] File Mime Type Function

2004-09-23 Thread Jasper Howard
cool, that's what I was looking at doing, I was just wondering if there was anything native to php 4.3.8. On Thu, 23 Sep 2004 11:59:41 -0500, Matt M. [EMAIL PROTECTED] wrote: I've looked around for a while, does anyone know of a PHP function already built in to the install that gets the Mime

[PHP-DB] File there or not?

2004-04-07 Thread Robert Sossomon
Still a newbie and clums at this stuff and am running into a brick wall with this. I need to pull an item out of the database, turn it to lowercase, and then look to see if the file is located in another directory. If it is then it prints out one thing, if not it prints out another. What I am

Re: [PHP-DB] File there or not?

2004-04-07 Thread John W. Holmes
From: Robert Sossomon [EMAIL PROTECTED] My question: How do I pull the item and turn it to lower? Strtolower? strtolower() How do I check it against a directory to see if the file exists? file_exists() Imagine that. :) ---John Holmes... -- PHP Database Mailing List

RE: [PHP-DB] File there or not?

2004-04-07 Thread Robert Sossomon
] Sent: Wednesday, April 07, 2004 11:35 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DB] File there or not? From: Robert Sossomon [EMAIL PROTECTED] My question: How do I pull the item and turn it to lower? Strtolower? strtolower() How do I check it against a directory to see

Re: [PHP-DB] File there or not?

2004-04-07 Thread John W. Holmes
From: Robert Sossomon [EMAIL PROTECTED] Oh well, thanks for the kick in the pants and commands! That's what I'm here for, to get into pants... or something... um, back to work. ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-DB] File upload bug

2004-03-25 Thread Ricardo Lopes
Crespo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:19 PM Subject: [PHP-DB] File upload bug Hi all you there... I realized that when I try to upload a file of about 1MB or more, it doesn't upload... Even changing all the max_limit stuff at the config files of Apache

[PHP-DB] File upload bug

2004-03-24 Thread Daniel Crespo
Hi all you there... I realized that when I try to upload a file of about 1MB or more, it doesn't upload... Even changing all the max_limit stuff at the config files of Apache and PHP... So, I don't now how to solve this. In the form, there are: form enctype=multipart/form-data name=frmUploadFile

[PHP-DB] Re:RE: [PHP-DB] File upload bug

2004-03-24 Thread Daniel Crespo
the setting in MySQL, since that seems to be where are uploading it to. some configureations of MySQL set a file size limit that can be loaded in at once From: Daniel Crespo To: [EMAIL PROTECTED] Subject: [PHP-DB] File upload bug Date: Wed, 24 Mar 2004 15:19:15 -0400 Hi all you

[PHP-DB] File Upload

2004-03-16 Thread Bruno Santos
Hello all Can someone tell me why PHP give all this erros, when it really opens the file and displays all it's contents ? Uploading files... File Type: text/plain UP: /tmp/teste.txt UP2: teste.txtFile uploaded successfully *Warning*: fopen(teste.txt): failed to open stream: Permission denied

[PHP-DB] file date upload

2004-01-05 Thread Larry Sandwick
Is there a way for PHP to query a database and get the date that a data file was uploaded? Scenario: Table is cleared. A flat file gets uploaded on Monday Jan 5, 2004. Where can I query to get the timestamp of the upload? On Wednesday the 7th I would like to query something to get

Re: [PHP-DB] file date upload

2004-01-05 Thread Jason Wong
On Tuesday 06 January 2004 04:18, Larry Sandwick wrote: Is there a way for PHP to query a database and get the date that a data file was uploaded? Yes, as long as you've stored into the database the date that the data file was uploaded. A flat file gets uploaded on Monday Jan 5, 2004.

[PHP-DB] file upload into mySQL

2003-12-24 Thread Hiro
hi! I am uploading file into mySQL database from web site. But it is unable to upload it into database. If you know how to upload the file from web site into mySQL, could you please teach me how! the database information is; create table objects b_col blob, name varchar(30),

[PHP-DB] file upload into mySQL

2003-12-24 Thread Hiro
hi! (B (B (BI am uploading file into mySQL database from web site. But it is unable to (Bupload it into database. (BIf you know how to upload the file from web site into mySQL, could you (Bplease teach me how! (B (Bthe database information is; (B (Bcreate table objects (B b_col

[PHP-DB] file upload into mySQL

2003-12-24 Thread Hiro
hi! (B (B (BI am uploading file into mySQL database from web site. But it is unable to (Bupload it into database. (BIf you know how to upload the file from web site into mySQL, could you (Bplease teach me how! (B (Bthe database information is; (B (Bcreate table objects (B b_col

[PHP-DB] file upload into mySQL

2003-12-24 Thread Hiro
hi! Sorry I send many times of my question. because I changed email address! Please see the question below; I am uploading file into mySQL database from web site. But it is unable to upload it into database. If you know how to upload the file from web site into mySQL, could you please teach me

[PHP-DB] File Creation Date

2003-10-31 Thread Zachary Krakov
Hello All, Is there a way to get a file¹s creation date using any of the file handling functions in PHP? All I can find is the last modification date of a file. Thanks for your help, -Zak Krakov

RE: [PHP-DB] file upload security issue

2003-08-14 Thread Jennifer Goodie
I try to learn file uploading in PHP. I've successfully uploaded a file onto my server. I use move_uploaded_file(tmp_dir/tmp_filename, destination_dir/filename) to move the temp file. The thing is that I have to do a chmod 777 destination_dir in order to move the file. Is this bad for

[PHP-DB] file upload security issue

2003-08-14 Thread Chen, Mao
Hi everyone, I try to learn file uploading in PHP. I've successfully uploaded a file onto my server. I use move_uploaded_file(tmp_dir/tmp_filename, destination_dir/filename) to move the temp file. The thing is that I have to do a chmod 777 destination_dir in order to move the file. Is

[PHP-DB] File upload...

2003-07-11 Thread Tristan . Pretty
Just been asked for a 'quick' job... A mate needs a system that can upload a file, and place it in a specific directory... Via FTP he says, but I know there's other ways Has anyone directions to a tutorial, or script, that can get this out of my inbox on this hot, stuffy Friday afternoon?

Re: [PHP-DB] File upload...

2003-07-11 Thread Hardik Doshi
Hi, Go to the Hotscripts.com and search for the File upload. You will get so many scripts.. You can use any of those. Hardik --- [EMAIL PROTECTED] wrote: Just been asked for a 'quick' job... A mate needs a system that can upload a file, and place it in a specific directory... Via FTP he

RE: [PHP-DB] File input from form not detected

2003-06-02 Thread Dewi Wahyuni
Hi everyone I changed the code a bit. Using the file tmp now. Here's the code and the error (still error but less) Thanks for the help upload.php - ? phpinfo(); echo $_POST['userfile']['tmp']; if (is_uploaded_file($_POST['userfile']))

Re: [PHP-DB] File input from form not detected

2003-06-01 Thread Dewi Wahyuni
Hi everyone thanks. I did add the enctype but it's still not working. Here're the codes Sorry if I posted to the wrong list. because I was trying to store the file as well in the mysql db blob. Someone suggested to print all the $ post vars as I print, only the MAX_FILE_SIZE shows up as a

[PHP-DB] File input from form not detected

2003-05-31 Thread Dewi Wahyuni
Hi, following my earlier post My input file from form in eg upload.html was not detected in the upload.php (handler) The example can be seen in http://www.busybees.com.my/tryout/upload.html I tried uploading using the input type=file name=userfile which is supposed to be captured by the php

Re: [PHP-DB] File input from form not detected

2003-05-31 Thread Paul Burney
on 05/30/2003 9:16 AM, Dewi Wahyuni at [EMAIL PROTECTED] appended the following bits to my mbox: if($userfile) it fails. BUT $userfile_name is able to display the filename . With print_f($HTTP_POST_VARS) also the userfile was not displayed, only other input element which is Maximum file

RE: [PHP-DB] File input from form not detected

2003-05-31 Thread Hutchins, Richard
, 2003 9:17 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] File input from form not detected Hi, following my earlier post My input file from form in eg upload.html was not detected in the upload.php (handler) The example can be seen in http://www.busybees.com.my/tryout/upload.html I

Re: [PHP-DB] File input from form not detected

2003-05-31 Thread Paul Burney
on 05/30/2003 9:16 AM, Dewi Wahyuni at [EMAIL PROTECTED] appended the following bits to my mbox: if($userfile) it fails. BUT $userfile_name is able to display the filename . I just tried the script on your site... It looks like you are trying to fopen the actual file name. You need to fopen

[PHP-DB] file save part 2

2003-03-08 Thread Ryan Holowaychuk
I have tried a few things and I can get the file to have each line on its own line. Once again this is a roster input that I adding to our website: No, name grade . The roster will contain 15 players So right now the implode puts everything on one line in the text file!!! So I am no sure

Re: [PHP-DB] file save part 2

2003-03-08 Thread Paul Burney
on 3/8/03 6:13 PM, Ryan Holowaychuk at [EMAIL PROTECTED] appended the following bits to my mbox: I have tried a few things and I can get the file to have each line on its own line. FYI, this is probably on the wrong list since it isn't database related. You should post to PHP-GENERAL to get

[PHP-DB] file save

2003-03-07 Thread Brian Evans
Did you put a \r\n at the end of each line?? This just might be it. Brian I am saving some data to a text file and what I want to do is have each line of data collected to be on its own line. What I am collecting is a roster (no, name, grade) so there is 10-15 people on a roster, and now

[PHP-DB] file save

2003-03-06 Thread Ryan Holowaychuk
I am saving some data to a text file and what I want to do is have each line of data collected to be on its own line. What I am collecting is a roster (no, name, grade) so there is 10-15 people on a roster, and now when it saves it saves to one line. Thanks Ryan -- PHP Database Mailing

[PHP-DB] file and https

2003-02-21 Thread Ryan Jameson (USA)
Has anyone found a way to import data through ssl into a php script? If I can pull xml formatted data through a secure socket it will save some major headaches with a problem I need to solve. $url = file(https://www.mydomain.com;); Would be ideal, but it does not work Ryan Ryan Jameson

Re: [PHP-DB] file and https

2003-02-21 Thread Jeffrey_N_Dyke
: ibs.org Subject: [PHP-DB] file and https 02/21/2003

Re: [PHP-DB] file and https

2003-02-21 Thread Paul Burney
on 2/21/03 9:52 AM, Ryan Jameson (USA) at [EMAIL PROTECTED] appended the following bits to my mbox: Has anyone found a way to import data through ssl into a php script? If I can pull xml formatted data through a secure socket it will save some major headaches with a problem I need to solve.

RE: [PHP-DB] file and https

2003-02-21 Thread Ryan Jameson (USA)
. :-) Ryan -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 8:05 AM To: Ryan Jameson (USA); [EMAIL PROTECTED] Subject: Re: [PHP-DB] file and https Has anyone found a way to import data through ssl into a php script? If I can pull xml

[PHP-DB] File Upload ---Thanks!

2003-01-06 Thread J . Keith Tew
Thanks folks - persistence pays off and so does group discussions . I had chmodded the uploads directory to 777 but it was within the public_html directory with different file permissions so I guess public_html permissions were taking presidence. After reading all of your suggestions... a

Re: [PHP-DB] file upload array problem

2002-12-21 Thread Jason Wong
On Saturday 21 December 2002 05:25, Seabird wrote: Hi everyone, every time I try to upload a picture I get the same problem in return. First of all, it's not being uploaded (but this is for later concern I'm afraid). Trying to display the info of the (not)uploaded file should be done with:

[PHP-DB] file upload array problem

2002-12-20 Thread Seabird
Hi everyone, every time I try to upload a picture I get the same problem in return. First of all, it's not being uploaded (but this is for later concern I'm afraid). Trying to display the info of the (not)uploaded file should be done with: $_FILES['picture']['name'] but every time I run this

[PHP-DB] File Download - Complete Newbie

2002-10-26 Thread Alex Francis
I am trying to download file stored in a directory on my server. The information and the path to the file are stored in a MySQL database. This information is then displayed in a table. I now need to link to the correct file to download it and hav'nt a clue how to do it. Can someone help or point

Re: [PHP-DB] File Download - Complete Newbie

2002-10-26 Thread Micah Stevens
if you have the following variables: $path = your download directory path, relative to the webserver address. Like http://www.yoursite.com/downloads/;. $file = filename $name = Name or description of file. Just create your table, and in the proper cell, put: echo a href=\$path$file\$name/a;

[PHP-DB] file upload and php (Not a begginer question!)

2002-10-15 Thread Baroiller Pierre-Emmanuel
Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php function. But... It's a slow method for multiple files huge files transfert. I'm currently working on a big photo album tool, and I want to provide user the

RE: [PHP-DB] file upload and php (Not a begginer question!)

2002-10-15 Thread Rich Hutchins
: Tuesday, October 15, 2002 4:42 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] file upload and php (Not a begginer question!) Hi, everyone know how to upload files from the browser to your web server using multipart-form method with move_downloaded_file() php function. But... It's a slow method

[PHP-DB] file timout

2002-09-18 Thread Ryan Jameson (USA)
Does anyone know a good way to have the file function timeout quickly if it cannot find the file requested? I've tried set_time_limit (5) but for some reason it still sits for about 30 seconds before failing. Thanks. Ryan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

[PHP-DB] File Update

2002-06-30 Thread Chris Earle
I want to be able to update a file on my server (which can be accessed through FTP). My question is how do I go about accessing it? Do I have to use the ftp_connect(); functions or can I just go about with something like this: --- // This doesn't

[PHP-DB] File Upload

2002-03-25 Thread David McInnis
I wrote s script to upload a file. The script works, but when I point my browser to the file it downloads, but I can no longer open the file in MS Word. What is happening to my file? My client is Windows and the server is Linux. David McInnis -- PHP Database Mailing List

[PHP-DB] File Upload and MySQL

2002-03-09 Thread Carl E Shmidt
I have an admin site where users can upload files. Information about the file like file name and song name are stored in a Mysql db. Here's a snippet of code: //add the MP3 meta data to the database $mp3ID=addMP3($songName,$isStudio,$HTTP_POST_FILES['userfile']['name'],$user

[PHP-DB] File deletion

2002-02-07 Thread Todd Williamsen
I created a couple of forms where one inserts new contact data with a file, in this case its a resume. Now, I want to create a form where a user can update the information by inserting their updated information and if there is a new resume then it would be uploaded. I got the upload part down,

[PHP-DB] File Uploading... Two problems...

2002-02-05 Thread Todd Williamsen
I have been successfully able to upload the files to the server and its path stored in the database.. Now I have two small issues... 1. How would I automate the file naming otherwise errors will fly (can't copy file... blah blah) 2. The second part is the most annoying. It seems that I

Re: [PHP-DB] File Uploading... Two problems...

2002-02-05 Thread Robert Weeks
On 2/5/02 9:58 AM, Todd Williamsen [EMAIL PROTECTED] wrote: Now I have two small issues... 1. How would I automate the file naming otherwise errors will fly (can't copy file... blah blah) You could replace the file name with a randomly generated number. There are a number of ways to

RE: [PHP-DB] File Uploading... Two problems...

2002-02-05 Thread JD Daniels
name with special chars stripped out. JD -Original Message- From: Robert Weeks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 7:19 AM To: Todd Williamsen; [EMAIL PROTECTED] Subject: Re: [PHP-DB] File Uploading... Two problems... On 2/5/02 9:58 AM, Todd Williamsen [EMAIL

Re: [PHP-DB] File Uploading... Two problems...

2002-02-05 Thread Robert Weeks
Yeah, My chown reference was to chowning the folder that the files are uploaded to, not the indv. files. Robert - Original Message - From: JD Daniels [EMAIL PROTECTED] To: Todd Williamsen [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 12:21 PM Subject: RE: [PHP-DB

[PHP-DB] FIle Uploading to database

2002-02-03 Thread Todd Williamsen
I don't want the file to be stored in the database, but its location. What I want to do: Upload a file, it gets stored on the webserver, but its location on the server is stored in the database. Where do I look for something like this? What data type would I use to store the URL or file

RE: [PHP-DB] FIle Uploading to database

2002-02-03 Thread Dan Brunner
if your on windoze Good Luck!!! Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 03, 2002 4:14 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] FIle Uploading to database I don't want the file to be stored in the database, but its location

[PHP-DB] file upload, again

2001-11-13 Thread koelwebdesign
hi there, I've searched the lists and forums for a couple of days now but nope... when I upload a file all is well, it get stored in the tmp directory, the filename and path get stored in the mysql database, however, it won't copy to the desired directory unless I give everyone write permissions

Re: [PHP-DB] file upload, again

2001-11-13 Thread Grant Johnson
The web server user needs to have access to that directory. On NT, there are 2 of these users. On *nix, there is one. Giving these users access to write to that directory is not a huge risk. koelwebdesign wrote: hi there, I've searched the lists and forums for a couple of days now but

Re: [PHP-DB] file upload, again

2001-11-13 Thread koelwebdesign
to make an ftp connection and upload the file from there. am I right? Leo Kuiper www.koelwebdesign.nl - Original Message - From: Grant Johnson [EMAIL PROTECTED] To: koelwebdesign [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 9:43 PM Subject: Re: [PHP-DB] file upload

Re: [PHP-DB] file upload, again

2001-11-13 Thread koelwebdesign
PROTECTED] Sent: Tuesday, November 13, 2001 9:43 PM Subject: Re: [PHP-DB] file upload, again The web server user needs to have access to that directory. On NT, there are 2 of these users. On *nix, there is one. Giving these users access to write to that directory is not a huge risk

Re: [PHP-DB] file() fails to read https

2001-05-16 Thread Shawn Reed
the answer to this as well, since I may be doing some projects involving secure servers in the near future. Regards, Shawn - Original Message - From: Steve Sobol [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 7:50 PM Subject: Re: [PHP-DB] file() fails to read https From

Re: [PHP-DB] file() fails to read https

2001-05-16 Thread Steve Sobol
From 'Shawn Reed': I'm going to assume that you meant I don't think the standard PHP file functions support HTTPS, because they definitely DO support HTTP. Check http://www.php.net/file if you don't believe me. :) I meant HTTPS. -- Tired of Earthlink? Get JustTheNet! Nationwide Dialup,

Re: [PHP-DB] file() fails to read https

2001-05-15 Thread Steve Sobol
From 'Mark Cain': Yes. I am actually getting real content on the non-secure connection. Yes. The secure connection is really functional on the other server. (I = can actually cut the above address and paste it into the address bar and = get the results that I am expecting.) I don't think the

[PHP-DB] file() fails to read https

2001-05-14 Thread Mark Cain
I am writing php code on a Unix server which reads a call to Micro$oft SQL statement via asp on an IIS server. I am using file() to get the results. This works beautifully: $fcontents = file (http://www.domain.com/URLSearch.asp?Info=$info;); The results of the query are in $fcontents.

[PHP-DB] file() shooting blanks - importing fixed width file for use in MySQL

2001-05-06 Thread Jay Lepore
Hello, I have an ASCII fixed width text file I'm trying to convert to an array of fields. When I use file() to place each line (record) in it's own array element, it strips out any blanks it finds except one. This results in in ABC MOTORS becoming ABC MOTORS. That creates a problem if ABC is

Re: [PHP-DB] file and mail

2001-04-27 Thread Kelvin
Hi Kancha, Try this one. $to=trim($staff[$x]); Kelvin. kancha [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I have a text file with email addresses. Each line contains one email address. I read the file using file() function. Below is a

Re: [PHP-DB] file and mail

2001-04-26 Thread kancha
That is not the problem. @ and . need not be escaped. It's got to do with the array that stores the file. Just need to dump the array and try to debug. Any idea on how I can dump an array regards, kancha On Thu, 26 Apr 2001 00:30:40 +0530, Subodh Gupta wrote: Hi Kancha, Since you are

[PHP-DB] file and mail

2001-04-25 Thread kancha
Hi all I have a text file with email addresses. Each line contains one email address. I read the file using file() function. Below is a snippet of my code $staff = file(staff); for($x=0; $xcount($staff); $x++){ $to = $staff[$x]; mail($to, New User Added, $mailBody, From: [EMAIL

Re: [PHP-DB] file and mail

2001-04-25 Thread Sigitas Paulavicius
Hi all I have a text file with email addresses. Each line contains one email address. I read the file using file() function. Below is a snippet of my code $staff = file(staff); for($x=0; $xcount($staff); $x++){ $to = $staff[$x]; mail($to, New User Added, $mailBody, From: [EMAIL

Re: [PHP-DB] file and mail

2001-04-25 Thread Subodh Gupta
. You will ultimately be known by what you give and not what you get. - Original Message - From: kancha [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 6:57 PM Subject: [PHP-DB] file and mail Hi all I have a text file with email addresses. Each line contains one

[PHP-DB] file name extentions

2001-03-24 Thread Dan Eskildsen
Hi there, Currently my ISP has PHP 3 installed and to run php scripts I have to save the file as name.php3 I expect to install my own server and php4 in the foreseeable future - how can I save the files as .php so that they are upwardly compatible? I have tired using the filenmae file.php but

Re: [PHP-DB] file name extentions

2001-03-24 Thread Felix Kronlage
On Sat, Mar 24, 2001 at 12:40:48PM +0100, Dan Eskildsen wrote: I have tired using the filenmae file.php but the server will not execute the file. This depends on the configuration of the webserver. The webserver needs to be told which file-suffixes should be used to identify files to parse.

Re: [PHP-DB] file name extentions

2001-03-24 Thread JJeffman
HTH Jayme. -Mensagem Original- De: Dan Eskildsen [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Enviada em: sbado, 24 de maro de 2001 08:40 Assunto: [PHP-DB] file name extentions Hi there, Currently my ISP has PHP 3 installed and to run php scripts I have to save the file as name.php3 I expect

RE: [PHP-DB] File Optimisation

2001-03-15 Thread Steve Brett
. :-) -Original Message- From: Mal McKay [mailto:[EMAIL PROTECTED]] Sent: 14 March 2001 17:12 To: Steve Brett Cc: [EMAIL PROTECTED] Subject: RE: [PHP-DB] File Optimisation I wouldn't know about flushing the buffer. Another approach would be changing to ADO. This being an intranet, i'd assume

[PHP-DB] File Optimisation

2001-03-14 Thread Steve Brett
I have a calendar system that details the appointments for various departments in the company and am having problems with the sheers size of the html docs that are returned. One department insists that they nned to see all the users in one go (approx 110) and the calendars for 3 months. This

RE: [PHP-DB] File Optimisation

2001-03-14 Thread Mark Newnham
such as mouseovers. Regards Mark -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 4:02 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] File Optimisation I have a calendar system that details the appointments for various departments in the company

RE: [PHP-DB] File Optimisation

2001-03-14 Thread Michael Rudel
Brett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:02 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] File Optimisation I have a calendar system that details the appointments for various departments in the company and am having problems with the sheers size of the html docs

RE: [PHP-DB] File Optimisation

2001-03-14 Thread Steve Brett
: 14 March 2001 16:11 To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] File Optimisation The first thing I would look at ( having had the same issue ) is whats actually in the document. I managed to reduce the size of data delivered by 60% by 2 methods. 1. Ruthless use of css in table formatting. 2

Re: [PHP-DB] File Optimisation

2001-03-14 Thread clayton collie
Steve, look at the output buffering/filtering methods in PHP (ob_) In particular, you can enable the gzip filter to automatically zip your html server side, assuming your user's browsers support auto gzip deflation, which the newer browsers seem to "Steve Brett" [EMAIL PROTECTED]

Re: [PHP-DB] File retrieval from DB

2001-01-24 Thread nuitari
Beau Lebens wrote: Greetings all, I am having great difficulties with an online app that I am developing. To avoid issues with file permissions etc, I am saving files into a MySQL database (soon to be PostgreSQL), which works marvellously. Along with the contents of the file, I save