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
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
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
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.
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
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
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
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.
-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
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
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
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
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.
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.
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
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
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
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.
Why not use umask?
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
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
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.
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
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
: '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
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.
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
.
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
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
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
: [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
, 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
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
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
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
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
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
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
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
@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
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
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
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
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
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
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;
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
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
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
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
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
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
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
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
-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
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
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
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
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
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!? ;-)
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
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?
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
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
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
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
# [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
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
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
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
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
.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
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
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.
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
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
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
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
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
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);
, 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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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,
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
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
101 - 200 of 938 matches
Mail list logo