Re: [PHP] re: php file extension

2008-02-09 Thread Nathan Nobbe
and if you want even more superfluous information windows, more specifically, ntfs, doest support files with only capitalization differences in the file names. eg. WindowsSucks.txt windowssucks.txt -nathan

Re: [PHP] re: php file extension

2008-02-08 Thread Per Jessen
MaryAnn Woodall wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? If you save the same file with two different names, the contents will remain the same. How the different extensions are

Re: [PHP] re: php file extension

2008-02-08 Thread Richard Lynch
On Thu, February 7, 2008 1:49 pm, MaryAnn Woodall wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? They are not the same file at all, unless you use really old Windows that only let you

[PHP] Re: php file extension

2008-02-07 Thread Shawn McKenzie
MaryAnn Woodall wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? MaryAnn Depends upon what your server is set to parse as PHP. AFAIK, the only portable extension would be .php.

Re: [PHP] re: php file extension

2008-02-07 Thread Jason Pruim
Hi MaryAnn I would recommend if you are going to be sending these files out to be used on a server other then you own, such as a clients server, leave the file as .php other wise the system admin for the client server will have to reconfigure the server to also parse .php4 files. But, if

Re: [PHP] re: php file extension

2008-02-07 Thread Andrew Ballard
On Feb 7, 2008 2:49 PM, MaryAnn Woodall [EMAIL PROTECTED] wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? MaryAnn No, they have different name and are different files. It would depend

[PHP] re: php file extension

2008-02-07 Thread MaryAnn Woodall
Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? MaryAnn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP file slow, same file in HTML faster

2007-11-27 Thread Colin Guthrie
Jose Toroscani Hernandez wrote: All .php files are displayed in 10 seconds (aprox). Example: test.php htmlbodyhello world/body/html But, the same file with extension html (test.html), is displayed in 1 second. The system is: - RHEL 5 - PHP 5.1 - Apache I apreciate your help.

RE: [PHP] File handling and different character sets

2007-11-24 Thread Andrés Robinet
-Original Message- From: Per Eriksson [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 7:15 AM To: php-general@lists.php.net Subject: [PHP] File handling and different character sets Hi, I would like to know how you work with the PHP Directory Functions and different

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Your array that you get from the file() will contain the ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. Best regards, Peter Lauri www.dwsasia.com - company web site

RE: [PHP] file() ignores PHP tags

2007-09-23 Thread Peter Lauri
Oh, and by the way, remember that the array that file() returns also will contain the newline. Add the flag FILE_IGNORE_NEW_LINES if you don't want them. Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread magoo
Peter Lauri wrote: Your array that you get from the file() will contain the ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. Hi NG! I wanna output several kinds of ascii

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread magoo
Peter Lauri wrote: Your array that you get from the file() will contain the ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. I wanna output several kinds of ascii files.

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread magoo
Peter Lauri wrote: Your array that you get from the file() will contain the ?php tag, but you will not see it in your browser as it is parsed as html. header(Content-type: text/plain); ontop of your script will output plain text. Hope it helps. I wanna output several kinds of ascii files.

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread lists
Yes, that is a little better. Thanks for that! But now all the PHP is removed. Is there some other header to send, in order to get PHP in my output? Could you send the code you are having? If you are doing it properly all should be shown, it will not remove anything. The file() don't parse

Re: [PHP] file() ignores PHP tags

2007-09-23 Thread Chris
magoo wrote: Hi NG! I wanna output several kinds of ascii files. Two things are bothering me right now: 1. I don`t get the PHP starttag (?php) in my output, but the ending tags. Is there anything I can to to get all of it? 2. How can I stop the browser to render HTML output, in order to get

Re: [PHP] file charset: something like file -i

2007-06-19 Thread Greg Donald
On 6/14/07, Martin Marques [EMAIL PROTECTED] wrote: Is there something like the UNIX command file -i to know the charset of a file? I don't want to use a system call, so I was wondering if there was some predefined function in PHP. P.D.: I'm using PHP 5.2.0

Re: [PHP] file permissions

2007-06-09 Thread Richard Lynch
On Thu, June 7, 2007 7:30 am, Ross wrote: n relation to my other posts it is not that the folder permission are not working, when I put an image inside them the image automatically has a 600 chmod and has the owner is 'nobody'. This means I cannot delete the files.

Re: [PHP] file permissions

2007-06-09 Thread Dave Goodchild
Why not use umask?

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-08 Thread Stut
Sukhwinder Singh wrote: You don't appear to have read what I said. A Java applet can use FTP to upload the file - PHP does not get involved in that part. Once the upload is complete the applet can POST to your PHP file giving it information like where it's put the file and this other

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-08 Thread tedd
At 4:35 PM +0100 6/7/07, Stut wrote: You need to look into maybe a java applet, or just plain FTP/SFTP/SCP for files that big. HTTP was never designed to handle uploading files of that size. For a start there is no facility to restart the upload should it get interrupted and fail. -Stut

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-08 Thread Stut
tedd wrote: At 4:35 PM +0100 6/7/07, Stut wrote: You need to look into maybe a java applet, or just plain FTP/SFTP/SCP for files that big. HTTP was never designed to handle uploading files of that size. For a start there is no facility to restart the upload should it get interrupted and fail.

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-08 Thread Robert Cummings
On Fri, 2007-06-08 at 10:53 -0400, tedd wrote: At 4:35 PM +0100 6/7/07, Stut wrote: You need to look into maybe a java applet, or just plain FTP/SFTP/SCP for files that big. HTTP was never designed to handle uploading files of that size. For a start there is no facility to restart the

RE: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-08 Thread Richard Lynch
On Thu, June 7, 2007 10:52 am, Jim Moseby wrote: Rumor has it that uploaded files are stored in memory before being committed to disk. If so, the amount of free RAM available to PHP would be the limit to the filesize regardless of the ini file settings. I think you have to go pretty far back

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-08 Thread Sukhwinder Singh
: 'Sukhwinder Singh' [EMAIL PROTECTED]; php-general@lists.php.net Sent: Saturday, June 09, 2007 5:15 AM Subject: RE: [PHP] File Upload - post_max_size and upload_max_filesize in GBs On Thu, June 7, 2007 10:52 am, Jim Moseby wrote: Rumor has it that uploaded files are stored in memory before being

Re: [PHP] file permissions

2007-06-07 Thread Daniel Brown
On 6/7/07, Ross [EMAIL PROTECTED] wrote: n relation to my other posts it is not that the folder permission are not working, when I put an image inside them the image automatically has a 600 chmod and has the owner is 'nobody'. This means I cannot delete the files.

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Stut
Sukhwinder Singh wrote: I want to allow uploading of huge video files, which may be as big as 4 GB. But when I try to set post_max_size = 4G upload_max_filesize = 4G in php.ini, it doesn't work and everything in post (posted data) is ignored. I get a warning about size of posted data greater

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Sukhwinder Singh
. Any utility which allows this? Thanks, Sukhwinder Singh - Original Message - From: Stut [EMAIL PROTECTED] To: Sukhwinder Singh [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, June 07, 2007 8:35 PM Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize

RE: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Jim Moseby
Hello, I want to allow uploading of huge video files, which may be as big as 4 GB. But when I try to set post_max_size = 4G upload_max_filesize = 4G in php.ini, it doesn't work and everything in post (posted data) is ignored. I get a warning about size of posted data greater

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Stut
Message - From: Stut [EMAIL PROTECTED] To: Sukhwinder Singh [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, June 07, 2007 8:35 PM Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs Sukhwinder Singh wrote: I want to allow uploading of huge video files

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Sukhwinder Singh
: [PHP] File Upload - post_max_size and upload_max_filesize in GBs Hello, I want to allow uploading of huge video files, which may be as big as 4 GB. But when I try to set post_max_size = 4G upload_max_filesize = 4G in php.ini, it doesn't work and everything in post (posted data) is ignored. I

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Sukhwinder Singh
, 2007 8:59 PM Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs A beeter method is to send the file via ftp. I think most browsers allow this. And for example store the file in a user specific file. Then the user, via a web interface, select the file it has uploaded

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Stut
Sukhwinder Singh wrote: Rumor has it that uploaded files are stored in memory before being committed to disk. If so, the amount of free RAM available to PHP would be the limit to the filesize regardless of the ini file settings. I don't think that is the case. File is written to temp

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Sukhwinder Singh
PROTECTED] Cc: Jim Moseby [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, June 07, 2007 9:16 PM Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs Sukhwinder Singh wrote: Rumor has it that uploaded files are stored in memory before being committed

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Sukhwinder Singh
and php will get it in $_FILES array it seems (in case of japplet). so the problem will remain. - Original Message - From: Stut [EMAIL PROTECTED] To: Sukhwinder Singh [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, June 07, 2007 8:56 PM Subject: Re: [PHP] File Upload

RE: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Jim Moseby
Rumor has it that uploaded files are stored in memory before being committed to disk. If so, the amount of free RAM available to PHP would be the limit to the filesize regardless of the ini file settings. I don't think that is the case. File is written to temp directory as it is

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Stut
the file from a Java applet. -Stut - Original Message - From: Stut [EMAIL PROTECTED] To: Sukhwinder Singh [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, June 07, 2007 8:56 PM Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs Sukhwinder

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Sukhwinder Singh
for replying. Sukhwinder Singh - Original Message - From: Stut [EMAIL PROTECTED] To: Sukhwinder Singh [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Friday, June 08, 2007 1:28 AM Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs Sukhwinder Singh

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Stut
Sukhwinder Singh wrote: Even java applets have to hand over the file to some script, in this case php and php will get it in $_FILES array it seems (in case of japplet). so the problem will remain. Not at all true. A Java applet can use FTP to handle the upload and still pass meta data about

Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs

2007-06-07 Thread Sukhwinder Singh
@lists.php.net Sent: Friday, June 08, 2007 2:10 AM Subject: Re: [PHP] File Upload - post_max_size and upload_max_filesize in GBs Sukhwinder Singh wrote: Even java applets have to hand over the file to some script, in this case php and php will get it in $_FILES array it seems (in case of japplet

Re: [PHP] File uploading and saving info on mysql

2007-05-04 Thread Marcelo Wolfgang
Richard Lynch wrote: Browsers will probably NOT populate these reliably... Mac Safari, might, for example, choose application/x-pdf for the PDF file. You really can't rely on 'type' to be useful in any way, shape, or form. Thanks for the tips, I've deleted this check, and changed how I

Re: [PHP] File uploading and saving info on mysql

2007-05-03 Thread Jim Lucas
Marcelo Wolfgang wrote: Hi all, I'm developing for my first time an upload file form which will populate a sql insert query, I think I got everything working fine, but the data isn't been saved on the database. Can someone help me with what I'm doing wrong here ? the code follow: ?php if

Re: [PHP] File uploading and saving info on mysql

2007-05-03 Thread Richard Lynch
On Thu, May 3, 2007 3:23 pm, Marcelo Wolfgang wrote: I'm developing for my first time an upload file form which will populate a sql insert query, I think I got everything working fine, but the data isn't been saved on the database. Can someone help me with what I'm doing wrong here ? the

Re: [PHP] file open dialog box

2007-03-05 Thread Alain Roger
Thanks for your answer Chris, but i already used this example yesterday as base for my request. Alain On 3/5/07, Chris [EMAIL PROTECTED] wrote: Alain Roger wrote: Hi, I would like to have an Open file dialog box in my PHP page like it exist on Microsoft Windows. This dialog box should

Re: [PHP] file open dialog box

2007-03-04 Thread Chris
Alain Roger wrote: Hi, I would like to have an Open file dialog box in my PHP page like it exist on Microsoft Windows. This dialog box should allow user to select a file from his computer. Is there something like that in PHP ? Showing that box isn't php related, but this page has a

RE: [PHP] File reading code2

2007-01-06 Thread Peter Lauri
This just dumps the content to the browsers. You could use file() instead if you want to loop thru every line. $file = test1.txt; if(file_exists($file)) { if(is_readable($file)) { if($file_content = get_file_contents($file)) { echo pre;

Re: [PHP] file uploads Q?

2006-12-13 Thread tedd
At 5:14 PM +0100 12/12/06, Børge Holen wrote: On Tuesday 12 December 2006 15:02, Jochem Maas wrote: Børge Holen wrote: It is sad to see that you got an amazing tool like this list and still manages to read and understand it the way you FEEL like at any moment. what makes this list

[PHP] [so O T that it hurts :-)] Re: [PHP] file uploads Q?

2006-12-13 Thread Jochem Maas
tedd wrote: At 5:14 PM +0100 12/12/06, Børge Holen wrote: On Tuesday 12 December 2006 15:02, Jochem Maas wrote: Børge Holen wrote: ... Well... if Jochem is a moron, then I must be dunce because I've learn a lot from him, and continue to do so. If you take the time to listen, even you

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 12:01, you wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Tim wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: On Tuesday 12 December 2006 12:01, you wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: ... is that crack your smoking? No, I LEARN from this list. you? we'll I'll admit to learning plenty on this list from 'old

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 14:10, Jochem Maas wrote: Tim wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all

RE: [PHP] file uploads Q?

2006-12-12 Thread Tim
-Message d'origine- De : Jochem Maas [mailto:[EMAIL PROTECTED] Envoyé : mardi 12 décembre 2006 14:10 À : Tim Cc : php-general@lists.php.net Objet : Re: [PHP] file uploads Q? Tim wrote: Børge Holen wrote: On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch

Re: [PHP] file uploads Q?

2006-12-12 Thread Stut
Børge Holen wrote: No, I LEARN from this list. you? I smoke this list. Keeps me happy, out of trouble, and best of all it's free! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Børge Holen wrote: ... It is sad to see that you got an amazing tool like this list and still manages to read and understand it the way you FEEL like at any moment. what makes this list 'amazing' is the handful of people who regularly answer (even the most banal) questions. the

Re: [PHP] file uploads Q?

2006-12-12 Thread Stut
Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! Damn, that does feel better. -Stut (fairly bored today) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file uploads Q?

2006-12-12 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! you have my condolences. Damn, that does feel better. see, just let it out... (said in soothing psychoanalyst's voice) -Stut (fairly bored today) really!? ;-) -- PHP General Mailing List

Re: [PHP] file uploads Q?

2006-12-12 Thread David Giragosian
On 12/12/06, Jochem Maas [EMAIL PROTECTED] wrote: Stut wrote: Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! you have my condolences. Damn, that does feel better. see, just let it out... (said in soothing psychoanalyst's voice) -Stut (fairly bored today) really!? ;-)

Re: [PHP] file uploads Q?

2006-12-12 Thread Børge Holen
On Tuesday 12 December 2006 15:02, Jochem Maas wrote: Børge Holen wrote: ... It is sad to see that you got an amazing tool like this list and still manages to read and understand it the way you FEEL like at any moment. what makes this list 'amazing' is the handful of people who regularly

Re: [PHP] file uploads Q?

2006-12-11 Thread Jochem Maas
Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse buttons to allow multiple file uploads?

Re: [PHP] file uploads Q?

2006-12-11 Thread Børge Holen
On Monday 11 December 2006 20:48, Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to

Re: [PHP] file uploads Q?

2006-12-11 Thread Jim Lucas
Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse buttons to allow

Re: [PHP] file uploads Q?

2006-12-11 Thread Chris
Jim Lucas wrote: Jochem Maas wrote: Richard Lynch wrote: On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse

Re: [PHP] file uploads Q?

2006-12-09 Thread Richard Lynch
On Sat, December 9, 2006 12:18 pm, William Stokes wrote: Is it possible to allow user pick several images and upload them all at once? (I need to pass the images to a function for the resize). Or do I need to give several browse buttons to allow multiple file uploads? Yes, you would need to

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-27 02:06:22 +0100: Hello Chris Thanks for responding. But what file extension should I use for PHP's serialization format? Obviously it can't be .php - aside from being inaccurate (it's not PHP code), using this extension would probably trigger the web

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Hamish Lawson
Hello Chris You could convert it to a php file: RewriteCond %{REQUEST_URI} *.json RewriteRule ^(.*).json$ json.php?$1 [T=application/x-httpd-php,L] Thanks for continuing to work on this, but I'm afraid my inadequate explanation has sent you in the wrong direction. Let's see if I can do

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Hamish Lawson
Hello Roman there's no standard filename extension for PHP-serialized data, I'd just use txt or something... .psdf or whatever. .ser is used for serialized Java objects and I've found .jser also being used (though less frequently) for that. On the analogy of the latter I'll plump for

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Stut
Hamish Lawson wrote: I have a web application (not written in PHP) that can return data in various formats, including JSON and PHP's serialization format. At the moment my URL scheme looks like this: staff/engineering?format=json but I'd like to switch to using a file extension to denote

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Alister Bulman
On 27/10/06, Stut [EMAIL PROTECTED] wrote: Hamish Lawson wrote: I have a web application (not written in PHP) that can return data in various formats, including JSON and PHP's serialization format. At the moment my URL scheme looks like this: staff/engineering?format=json but I'd like

Re: [PHP] File extension for PHP's serialization format?

2006-10-27 Thread Richard Lynch
.phps is taken for PHP Source, so using it for PHP Serialized would be Bad. Perhaps phpd for PHP Data would suit you. You could make it anything you want, as far as I know. Actually, you could make it be .php and use ForceType in .htaccess to do what you describe, but that's probably not a Good

Re: [PHP] File extension for PHP's serialization format?

2006-10-26 Thread Chris
Hamish Lawson wrote: I have a web application (not written in PHP) that can return data in various formats, including JSON and PHP's serialization format. At the moment my URL scheme looks like this: staff/engineering?format=json but I'd like to switch to using a file extension to denote

Re: [PHP] File extension for PHP's serialization format?

2006-10-26 Thread Hamish Lawson
Hello Chris Thanks for responding. But what file extension should I use for PHP's serialization format? Obviously it can't be .php - aside from being inaccurate (it's not PHP code), using this extension would probably trigger the web server into trying to run a (nonexistent) PHP script.

Re: [PHP] File extension for PHP's serialization format?

2006-10-26 Thread Chris
Hamish Lawson wrote: Hello Chris Thanks for responding. But what file extension should I use for PHP's serialization format? Obviously it can't be .php - aside from being inaccurate (it's not PHP code), using this extension would probably trigger the web server into trying to run a

Re: [PHP] File Uploads not working over SSL

2006-10-05 Thread Richard Lynch
On Wed, October 4, 2006 3:02 pm, Rahul S. Johari wrote: form method=post action=http://www.myurl.com/imsafm2_main.php; If you MOVED everything to the SSL server, then http://www.myurl.com ain't the right ACTION anymore. It's now https://www.myurl.com -- Some people have a gift link here. Know

Re: [PHP] File Uploads not working over SSL

2006-10-05 Thread Rahul S. Johari
Richard, I corrected that mistake in a previous email you must have missed. I had copied the wrong code in my email to the list. The correct code is indeed form method=post action=https://www.myurl.com/imsafm2_main.php; I'm pretty baffled at this stage. I don't understand why this won't work

Re: [PHP] File Uploads not working over SSL

2006-10-05 Thread Richard Lynch
On Thu, October 5, 2006 3:42 pm, Rahul S. Johari wrote: Richard, I corrected that mistake in a previous email you must have missed. I had copied the wrong code in my email to the list. The correct code is indeed form method=post action=https://www.myurl.com/imsafm2_main.php; I'm pretty

Re: [PHP] File Uploads not working over SSL

2006-10-04 Thread Jo�o C�ndido de Souza Neto
Please, show us your code. Rahul S. Johari [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Ave, I have a File Manager application in place for over 2 years now. Everything¹s been working groovy! Until yesterday. Yesterday we purchased and installed an SSL Certificate. And now the

Re: [PHP] File Uploads not working over SSL

2006-10-04 Thread Rahul S. Johari
Well, the File Manager application itself is pretty extensive... But if you're looking for the upload code, here it is (sensitive information erased): if($upload_file) { $db = mysql_connect(localhost,usr,pwd);

Re: [PHP] File Uploads not working over SSL

2006-10-04 Thread Rahul S. Johari
, October 04, 2006 9:02 PM Subject: Re: [PHP] File Uploads not working over SSL Well, the File Manager application itself is pretty extensive... But if you're looking for the upload code, here it is (sensitive information erased): if($upload_file

Re: [PHP] file to blob

2006-10-03 Thread Richard Lynch
On Tue, October 3, 2006 2:38 pm, Joshua Capy wrote: I am relatively new to php and could use a good pointing in the right direction. I have a soap client in NuSoap that I developed for a webservice that I wrote in another language and I need it to be able to send a file in a blob. I can't

Re: [PHP] file to blob

2006-10-03 Thread Daniel A. Ramaley
On Tuesday 03 October 2006 14:58, Richard Lynch wrote: On old old Mac OS on which PHP probably doesn't even run, you had the file DATA fork and the file RESOURCE fork where your question would, in theory, make sense... Forks are not widely used much these days, but they still exist. HFS still

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread tedd
At 6:43 PM -0500 9/26/06, Richard Lynch wrote: On Mon, September 25, 2006 3:58 pm, Andy Hultgren wrote: -- Since I'm only allowing image uploads, I can strictly filter which files are allowed to be uploaded (with extension checks and get_image_size). Extension check is kinda useless... I

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 10:11 am, tedd wrote: So when you read advice to use 0777 you can immediately change that to 0700, because the only access needed is for you, not your group, and not the world of other users on that machine. Excellent point -- thanks. This applies only to Andy -- or

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
So I've been trying to figure out where php uploads files to temporarily store them before I move them to their permanent storage directory, and I'm having some difficulties: -- php_info() says the temporary file upload directory is /tmp but I don't know if that's relative to my root directory

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 12:12 pm, Andy Hultgren wrote: So I've been trying to figure out where php uploads files to temporarily store them before I move them to their permanent storage directory, and I'm having some difficulties: -- php_info() says the temporary file upload directory is

Re: [PHP] File Upload Security and chmod

2006-09-27 Thread Andy Hultgren
Well, seeing as I have no directory anywhere in my file structure called /tmp and yet my file uploads are still working, it would appear that my temporary file upload directory /tmp given by php_info() is somewhere outside of my root directory. So that's good news! That's were I'll be doing my

Re: [PHP] File Upload Security and chmod

2006-09-26 Thread Richard Lynch
The FTP will be slower, almost for sure. He's doing it because he can FTP in as himself, and not as the nobody user Apache runs as. Your webhost has you running as yourself already, so you can chmod your files at will in PHP. On Mon, September 25, 2006 2:11 pm, Andy Hultgren wrote: Tedd,

Re: [PHP] File Upload Security and chmod

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 3:58 pm, Andy Hultgren wrote: So I tried to implement the example code given in the php tmpfile() documentation and it wouldn't do anything, which suggests that I don't have access to the /tmp directory. Also, the FAQ's section on my server's website say that /tmp

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread tedd
At 9:32 PM -0600 9/24/06, Andy Hultgren wrote: Hi Tedd, Yes, when I browse to www.myDomain.com I get the index.html file, and so I have been leaving the .public_html/ directory alone since it is not my root. I'm curious, what you described is exactly what I'm trying to do - what permissions do

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
Tedd, Thanks so much your thorough response - it's good to know that I'm not the only one trying to figure this out! I'm curious, in your code you use the PHP ftp functions, but I have used the PHP functions chmod() and mkdir() without establishing an ftp connection. Is it faster to establish

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Eric Butera
On 9/25/06, Andy Hultgren [EMAIL PROTECTED] wrote: Tedd, Thanks so much your thorough response - it's good to know that I'm not the only one trying to figure this out! I'm curious, in your code you use the PHP ftp functions, but I have used the PHP functions chmod() and mkdir() without

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread tedd
Andy: It was never a question of speed for me -- it was a question of being able to change file permissions from within a php script so that I could create and write files safely. You see, I am *not* able to use chmod() within a php script at all regardless of what permissions the file and

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
Well, that didn't sound too good... So I tried to implement the example code given in the php tmpfile() documentation and it wouldn't do anything, which suggests that I don't have access to the /tmp directory. Also, the FAQ's section on my server's website say that /tmp is not shared between

Re: [PHP] File Upload Security and chmod

2006-09-25 Thread Andy Hultgren
Hey Tedd and Eric, Between the two of you and Richard Lynch's last post, I understand why I can use chmod() and mkdir() within php without having to use the ftp commands: I run on a server that is configured to run my php scripts as username (ie. me!) instead of as nobody (which is much more

Re: [PHP] File Upload Security and chmod

2006-09-24 Thread Andy Hultgren
Hi Tedd, Yes, when I browse to www.myDomain.com I get the index.html file, and so I have been leaving the .public_html/ directory alone since it is not my root. I'm curious, what you described is exactly what I'm trying to do - what permissions do you set the parent folder at when you are

Re: [PHP] File Upload Security and chmod

2006-09-23 Thread Børge Holen
On Saturday 23 September 2006 01:27, you wrote: Hi Borge, host/users/myDomain is the actual directory (and it's the root directory), and I do not have access to higher directories. So basically I do not have access to directories higher than my root directory, which is unfortunate. Also,

Re: [PHP] File Upload Security and chmod

2006-09-23 Thread tedd
At 7:19 PM -0600 9/22/06, Andy Hultgren wrote: For whatever reason when I ftp in using WinFtp I don't see public_html (it's hidden, don't know why; if I make a directory called .public_html it gets created and then disappears), but I can see my file structure from my host's website and so I know

Re: [PHP] File Upload Security and chmod

2006-09-22 Thread Børge Holen
On Friday 22 September 2006 22:58, Andy Hultgren wrote: Hi, I am relatively new to php and am trying to set up a file upload process for my website. I have read through the php security documentation and a number of the security-related questions on these lists and am attempting to implement

<    1   2   3   4   5   6   7   8   9   10   >