Re: [PHP] files and folders windows permission

2013-08-23 Thread Maciek Sokolewicz
On 23-8-2013 16:37, Matijn Woudt wrote: On Fri, Aug 23, 2013 at 4:03 PM, Emiliano Boragina < emiliano.borag...@gmail.com> wrote: Hi everyone, sorry my ugly english. I did an upload file form. Works very good. Upload the files in the right folder, with the right name. I use chmod 0644, and for t

Re: [PHP] files and folders windows permission

2013-08-23 Thread Matijn Woudt
On Fri, Aug 23, 2013 at 4:03 PM, Emiliano Boragina < emiliano.borag...@gmail.com> wrote: > Hi everyone, sorry my ugly english. I did an upload file form. Works > very good. Upload the files in the right folder, with the right name. > I use chmod 0644, and for try I use 0777. But always the files a

Re: [PHP] files outside of the web tree

2011-04-27 Thread Jason Pruim
Jason Pruim On Apr 27, 2011, at 1:11 PM, Joshua Kehn wrote: > On Wednesday, April 27, 2011 at 1:08 PM, Jim Giner wrote: > I have managed to build include files and store them above my public folder >> and the called pages manage to find them from the public folder and properly >> include the

Re: [PHP] files outside of the web tree

2011-04-27 Thread Joshua Kehn
On Wednesday, April 27, 2011 at 1:08 PM, Jim Giner wrote: I have managed to build include files and store them above my public folder > and the called pages manage to find them from the public folder and properly > include them. My problem is with the html src= attribute. I have uploaded > photo

Re: [PHP] files creation/access dates

2009-04-14 Thread haliphax
On Tue, Apr 14, 2009 at 4:12 AM, Per Jessen wrote: > Tom Sparks wrote: > >> >> how do I get the creation dates on a file? >> how do I get the last access date on a file? >> > > http://php.net/manual/en/function.stat.php Or, perhaps a bit easier: http://php.net/filemtime http://php.net/fileatime

Re: [PHP] files creation/access dates

2009-04-14 Thread Per Jessen
Tom Sparks wrote: > > how do I get the creation dates on a file? > how do I get the last access date on a file? > http://php.net/manual/en/function.stat.php /Per -- Per Jessen, Zürich (14.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Files and permission

2006-04-27 Thread Richard Lynch
On Wed, April 26, 2006 11:18 pm, Peter Lauri wrote: > Should I put the files outside of the web file system (outside of > httpdocs) > so that they can not get the file thru the web browser? Yes. > Or should I save the docs in a database instead and control the access > thru > that? I would only

Re: [PHP] Files and permission

2006-04-26 Thread Robert Cummings
On Thu, 2006-04-27 at 00:18, Peter Lauri wrote: > Best group member, > > > > I am creating a file system class. I will have a web based document center > with different access roles. All users in the system will not be able to > view the files. It will all be run thru the web tool. > > > >

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Karl-Heinz Christian Zeck
Thank you very much. That was the problem, I didn't noticed that I don't use the server path. On 3/17/06, Barry <[EMAIL PROTECTED]> wrote: > > Karl-Heinz Christian Zeck wrote: > > Thank you for your quick reply. > > > > I tried to modify the file. I removed all it's content and wrote only a > >

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Jason Gerfen
Well on another note I see that you are trying to point to a local file on a windows machine (i.e. c:\path\to\php-script), that won't work but if you place the php script on the server it may. i am unfamiliar with the organization you are refering to. Karl-Heinz Christian Zeck wrote: I canno

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Karl-Heinz Christian Zeck
I cannot use such a code, because the file I'm using is added to the element in the html page. The guys from Horde, that created the files say this should work without any problems, but it doesn't. If you have any other suggestions, please let me know. Thank you! On 3/17/06, Jason Gerfen <[EMA

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Barry
Karl-Heinz Christian Zeck wrote: Thank you for your quick reply. I tried to modify the file. I removed all it's content and wrote only a single line: alert("test"); When I refresh the main page, I get the alert message - this means the file was loaded successfuly. Then I tried this code: alert

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread - Edwin -
Hi! On Fri, 17 Mar 2006 17:42:51 +0200 Karl-Heinz Christian Zeck wrote: > Thank you for your quick reply. > > I tried to modify the file. I removed all it's content and wrote > only a single line: > alert("test"); > > When I refresh the main page, I get the alert message - this > means the file

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Jason Gerfen
You will want to write PHP code to output the java-script. Because the java-script (client side scripting) gets executed without communicating with the server there is no PHP engine that java-script can push the PHP through on the client machine. So you would want to do something like: alert

Re: [PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Karl-Heinz Christian Zeck
Thank you for your quick reply. I tried to modify the file. I removed all it's content and wrote only a single line: alert("test"); When I refresh the main page, I get the alert message - this means the file was loaded successfuly. Then I tried this code: alert(""); This way it doesn't work, no

[PHP] Re: PHP files in the SRC attribute of an SCRIPT element

2006-03-17 Thread Barry
Karl-Heinz Christian Zeck wrote: Hi everybody, Are you allowed to do this? I mean, is the php file parsed by the PHP engine first and a js code is generated that will be used by the script element? Yes -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP

Re: [PHP] Files passing through

2005-08-23 Thread Philip Hallstrom
Benchmark it both ways and see. I benched this with a 100 MiB text file (largest I could find at short notice). Buffer used for fread() calls was 2 KiB as above. Values are averaged over 100 runs (I would have liked to do more, but I don't have time). All values are to 4 significant figures

Re: [PHP] Files passing through

2005-08-23 Thread Jasper Bryant-Greene
Richard Lynch wrote: On Tue, August 23, 2005 12:48 am, Jasper Bryant-Greene wrote: Kim Steinhaug (php list) wrote: I'm using this method, works fine with 50mb+ files : if( $fd = fopen ($filepath, 'r')){ while(!feof($fd)) { $buffer = fread($fd, 2048); print $buffer;

Re: [PHP] Files passing through

2005-08-23 Thread Richard Lynch
On Tue, August 23, 2005 12:48 am, Jasper Bryant-Greene wrote: > Kim Steinhaug (php list) wrote: >> I'm using this method, works fine with 50mb+ files : >> >> if( $fd = fopen ($filepath, 'r')){ >> while(!feof($fd)) { >> $buffer = fread($fd, 2048); >> print $buffer; >>

Re: [PHP] Files passing through

2005-08-23 Thread Jasper Bryant-Greene
Kim Steinhaug (php list) wrote: I'm using this method, works fine with 50mb+ files : if( $fd = fopen ($filepath, 'r')){ while(!feof($fd)) { $buffer = fread($fd, 2048); print $buffer; } fclose ($fd); exit; } Is there a reason why you assign the

Re: [PHP] Files passing through

2005-08-23 Thread Kim Steinhaug \(php list\)
I'm using this method, works fine with 50mb+ files : if( $fd = fopen ($filepath, 'r')){ while(!feof($fd)) { $buffer = fread($fd, 2048); print $buffer; } fclose ($fd); exit; } Regards, Kim Steinhaug - - - - - - - - - www.easycms.no - Original

Re: [PHP] Files passing through

2005-08-22 Thread Richard Lynch
On Mon, August 22, 2005 12:30 pm, Evert | Rooftop wrote: > I want to use a PHP script to pass through a file to the browser [ > right > after some processing ]. > What is the fastest way to do this? I know > echo(file_get_contents('myfile')); is not a good idea ;) Actually, it's a Fine Idea *IF* t

Re: [PHP] Files passing through

2005-08-22 Thread Jasper Bryant-Greene
Kevin Waterson wrote: This one time, at band camp, Philip Hallstrom <[EMAIL PROTECTED]> wrote: My guess would be because file_get_contents returns the contents as a string. So if 'myfile' is 100mb, you're going to have to allocate 100mb of memory to store that string while echo() spits it ba

Re: [PHP] Files passing through

2005-08-22 Thread Kevin Waterson
This one time, at band camp, Philip Hallstrom <[EMAIL PROTECTED]> wrote: > My guess would be because file_get_contents returns the contents as a > string. So if 'myfile' is 100mb, you're going to have to allocate 100mb > of memory to store that string while echo() spits it back out. > > But I'

Re: [PHP] Files passing through

2005-08-22 Thread Philip Hallstrom
What is the fastest way to do this? I know echo(file_get_contents('myfile')); is not a good idea ;) Why not? My guess would be because file_get_contents returns the contents as a string. So if 'myfile' is 100mb, you're going to have to allocate 100mb of memory to store that string while ech

Re: [PHP] Files passing through

2005-08-22 Thread Kevin Waterson
This one time, at band camp, Evert | Rooftop <[EMAIL PROTECTED]> wrote: > What is the fastest way to do this? I know > echo(file_get_contents('myfile')); is not a good idea ;) Why not? Kevin -- "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb

RE: [PHP] Files

2005-06-28 Thread Shaw, Chris - Accenture
Hello, I am not sure what problems you are having, but Shouldn't the id's in the files match up? So, File1: 1, test@test.com 2, [EMAIL PROTECTED] 3, [EMAIL PROTECTED] File2: 1, doc1.doc 2, doc2.doc 3, doc3.doc Also, where you are comparing the $groupid to the $id, shouldn't it be: if($

Re: [PHP] [Files suffix] .inc.php files

2005-06-01 Thread John Nichel
Leif Gregory wrote: Hello Martin, Sunday, May 29, 2005, 9:24:00 PM, you wrote: M> I saw files like "file.inc.php" and "file.inc" M> What is the *.inc suffix good for ? It's good for a lot of trouble if the webserver hasn't been set up to parse .inc files as PHP. If it hasn't then someone can re

Re: [PHP] [Files suffix] .inc.php files

2005-06-01 Thread Rory Browne
moving outside the webtree is the best option, where practical. Calling the files whatever.inc.php allows you to disallow access to .inc.php files via the apache config file. On 6/1/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Tue, May 31, 2005 10:55 am, Leif Gregory said: > > Hello Martin, >

Re: [PHP] [Files suffix] .inc.php files

2005-06-01 Thread Marcus Bointon
On 1 Jun 2005, at 06:22, Richard Lynch wrote: You've got files that people can get executed *COMPLETELY* out of context, that *NOBODY* even though about being executed out of context, much less *TESTED* in any kind of QA process! I can surf to http://example.com/admin.inc and who knows what

Re: [PHP] [Files suffix] .inc.php files

2005-05-31 Thread Richard Lynch
On Tue, May 31, 2005 10:55 am, Leif Gregory said: > Hello Martin, > > Sunday, May 29, 2005, 9:24:00 PM, you wrote: > M> I saw files like "file.inc.php" and "file.inc" > M> What is the *.inc suffix good for ? > > It's good for a lot of trouble if the webserver hasn't been set up to > parse .inc file

Re: [PHP] [Files suffix] .inc.php files

2005-05-31 Thread Leif Gregory
Hello Martin, Sunday, May 29, 2005, 9:24:00 PM, you wrote: M> I saw files like "file.inc.php" and "file.inc" M> What is the *.inc suffix good for ? It's good for a lot of trouble if the webserver hasn't been set up to parse .inc files as PHP. If it hasn't then someone can request that file in a b

Re: [PHP] [Files suffix] .inc.php files

2005-05-31 Thread Jochem Maas
sorry Martin, forgot to post to list! oh and the list is a little overworked so don't go posting double if your post doesn't appear immediately... it will get there eventually ;-) Martin Zvarik wrote: > Hi, > > I saw files like "file.inc.php" and "file.inc" I saw penguins :-) > > What is th

RE: [PHP] [Files suffix] .inc.php files

2005-05-31 Thread Jay Blanchard
[snip] I saw files like "file.inc.php" and "file.inc" What is the *.inc suffix good for ? Thank you for replies. [/snip] Once is enough...wait for an answer. The suffix is good for identifying files. For instance, say you have a group of standard functions that you use in all applications.

Re: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-21 Thread Marek Kilimajer
Steven Altsman wrote: Got packet bigger than 'max_allowed_packet' ... Gotta love mysql_error(); If I find out what causes this, I'll bring it over to this list too.. since it's been pretty quiet, I guess I've gotten folks stumped. I think you can put the encrypted file to the database in chunks. Sp

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-21 Thread Richard Lynch
On Fri, March 18, 2005 12:00 pm, Steven Altsman said: > Got packet bigger than 'max_allowed_packet' > > ... Gotta love mysql_error(); > > If I find out what causes this, I'll bring it over to this list too.. > since > it's been pretty quiet, I guess I've gotten folks stumped. If that's a MySQL err

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-18 Thread Steven Altsman
Got packet bigger than 'max_allowed_packet' ... Gotta love mysql_error(); If I find out what causes this, I'll bring it over to this list too.. since it's been pretty quiet, I guess I've gotten folks stumped. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-18 Thread Steven Altsman
: php-general@lists.php.net Subject: Re: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL) Steven Altsman wrote: > Yes, the link is http://www.radinks.com/upload/config.php > > file_uploads = On > upload_max_filesize = 40M > max_input_time = 9000 (seconds)

RE: [PHP] Files upload - Encrypt into a variable - Do not injectinto db (PHP/Apache/MySQL)

2005-03-18 Thread Steven Altsman
out the correct size. >From here, I'm just going to see if it encrypts and spits out a different (or no) number. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 4:26 AM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [P

Re: [PHP] Files upload - Encrypt into a variable - Do not inject into db (PHP/Apache/MySQL)

2005-03-18 Thread Marek Kilimajer
Steven Altsman wrote: Yes, the link is http://www.radinks.com/upload/config.php file_uploads = On upload_max_filesize = 40M max_input_time = 9000 (seconds) memory_limit (not limited, per handload config, from source) max_execution_time = 9000 (seconds) post_max_size = 40M also, hidden INPUT tag MAX

RE: [PHP] Files upload - Encrypt into a variable - Do not inject into db (PHP/Apache/MySQL)

2005-03-17 Thread Steven Altsman
Yes, the link is http://www.radinks.com/upload/config.php file_uploads = On upload_max_filesize = 40M max_input_time = 9000 (seconds) memory_limit (not limited, per handload config, from source) max_execution_time = 9000 (seconds) post_max_size = 40M also, hidden INPUT tag MAX_FILE_SIZE with valu

[PHP] Re: Php files with .html extension?

2004-10-25 Thread M. Sokolewicz
Phpu wrote: Hi, How can i do a php script with a html extensionsuch as http://www.blinds-wise.com/shop/p/blind/bid/1/venetian_blinds.html Thanks when using eg. apache, you can add a .htaccess file with the following line: AddType application/x-httpd-php .html That will overwrite the "normal" w

RE: [PHP] Files question

2003-10-30 Thread Ray Hunter
> Well, Bas, the fopen and it's associated manual pages describe just how > to do this. Basic example > > $theFile = fopen("myfile.foo", "r"); //open the file for reading > while(!feof($theFile)){ // while the file is not at the end of the file > $theLine = fgets($theFile, 1024); // get a li

RE: [PHP] Files question

2003-10-30 Thread Jay Blanchard
[snip] Now sorry... I already know to use fopen... I want a script that parses all lines from a file... Just like a loop that with every time it is executed, it echos a line from the file... (this is just a example... else i was using file_get_contents and nl2br...) [/snip] Well, Bas, the fopen an

Re: [PHP] Files question

2003-10-30 Thread Bas
Now sorry... I already know to use fopen... I want a script that parses all lines from a file... Just like a loop that with every time it is executed, it echos a line from the file... (this is just a example... else i was using file_get_contents and nl2br...) "Jay Blanchard" <[EMAIL PROTECTED]> wro

RE: [PHP] Files question

2003-10-30 Thread Jay Blanchard
[snip] How can i read all files line by line? I am running windows. I know that there is then a \r\n but i don't know how to extract them... Can you help me? [/snip] start with http://www.php.net/fopen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] Files in /etc/php.d/

2003-10-27 Thread Marek Kilimajer
I supose you need to install php-mysql, php-interbase ... Todd Cary wrote: About a year ago, I installed RH 9.0 and in the process installed/updated php 4.2.2. The directory, /etc/php.d/ contains many ini files instructing php to load modules including mysql.so and interbase.so. phpinfo() sh

Re: [PHP] files being downloaded when a 404 occurs

2003-08-14 Thread Mukul Sabharwal
Look at this bug file : http://bugs.php.net/bug.php?id=25009 It's been fixed in the CVS snapshots, anything after the 11PM GMT on the 10th of August works. hth. --- Rigi Toney <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using Apache 2.0.47 (Unix) with PHP 4.3.3RC2. > > My httpd.conf file rea

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
Curt Zirzow wrote: > * Thus wrote Joachim ([EMAIL PROTECTED]): >> > Yes that is a big security hole. There are some hosting solutions, >> > I cant really help you there, but this concept I think should work >> > would be: >> > [...] >> > user/group: $virtualuser/apache >> >> Hmm, well. It may be

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Curt Zirzow
* Thus wrote Joachim ([EMAIL PROTECTED]): > Curt Zirzow wrote: > > >> This way, it seems to me like security hole, because I have to > >> use 0777 while creating, then everybody could do everything with > >> the files. Well, there is the open_basedir setting, put then, > >> what's about other user

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
Curt Zirzow wrote: >> This way, it seems to me like security hole, because I have to >> use 0777 while creating, then everybody could do everything with >> the files. Well, there is the open_basedir setting, put then, >> what's about other user doing other things (not PHP)? >> > > Yes that is a

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Curt Zirzow
* Thus wrote Joachim ([EMAIL PROTECTED]): > Cpt John W. Holmes wrote: > > >> So in fact the script has to run with the rights of the user > >> web2?? > > Perhaps > >> it does, but files/dirs are create with owner apache. > > > > PHP runs as a module inside of apache, so any files it creates > > a

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread Joachim
Cpt John W. Holmes wrote: >> So in fact the script has to run with the rights of the user web2?? > Perhaps >> it does, but files/dirs are create with owner apache. > > PHP runs as a module inside of apache, so any files it creates are owned > by the Apache user. That's the way it works. > > If y

Re: [PHP] Files created by PHP/Apache

2003-07-30 Thread CPT John W. Holmes
> I've got a problem with preconfigured server (Apache 1.3/MySQL 3/PHP 4): > > Files and directories created by a PHP script are always owned by the apache > user and apache group. But the script itself is inside of a virtualhost > which has another user and group (web2 / ftponly)! > > So in fact t

Re: [PHP] Files uploads problem

2003-04-01 Thread Adrian Greeman
ROTECTED]> To: "Adrian Greeman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 11:37 PM Subject: Re: [PHP] Files uploads problem > > - Original Message - > From: "Adrian Greeman" <[EMAIL PROTECTED]> > To: <[EMA

Re: [PHP] Files uploads problem

2003-03-31 Thread Kevin Stone
- Original Message - From: "Adrian Greeman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 31, 2003 3:04 PM Subject: [PHP] Files uploads problem > I am a learner in PHP - I have been using Larry Ullman's Peachpit beginners > book which I have found useful to take me thro

Re: [PHP] Files upload

2003-02-09 Thread Andrew Brampton
I beleive move_uploaded_file is prefered since copy won't work in Safe Mode. Andrew - Original Message - From: "Max 'AMiGo' Gashkov" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL PROTECTED]> Sent: Sunday, February 09, 2003 6:09 PM Subject: [PHP] Files upload > Is there any differen

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
No it's simple php file on websites with include on websites Nico "Michael Sims" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, 24 Jan 2003 13:05:16 +0100, you wrote: >and my ls dir >-rw--- 1 nobody nobody 3687 Jan 23 14:25 phpqlG5ny >-

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread Michael Sims
On Fri, 24 Jan 2003 13:05:16 +0100, you wrote: >and my ls dir >-rw--- 1 nobody nobody 3687 Jan 23 14:25 phpqlG5ny >-rw--- 1 nobody nobody621 Jan 22 21:06 phpqt95I4 >-rw--- 1 nobody nobody424 Jan 23 00:04 phprM5Vkx [...] Some PHP applications do their

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
'./configure' '--with-mysql' '--with-apache=../apache_1.3.27' '--enable-track-vars' '--with-imap=/var/imap-2002b/' '--with-gettext' '--with-png-dir=/var/libpng-1.0.15' '--with-zlib-dir=/var/zlib-1.1.4' My installation.. and my ls dir -rw--- 1 nobody nobody 3687 Jan 23 14:25 phpqlG5

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread Marek Kilimajer
Well, you should know what have installed, but there is no caching system by default. nico wrote: For information : i have php 4.3 (perhaps a new caching system) ? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Those are temporery uploade

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
For information : i have php 4.3 (perhaps a new caching system) ? "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Those are temporery uploaded files, they should be there only while some > script handling the upload is running, otherwise you

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread nico
No, I have some 300 php and in these files , there is some html of my sites. Nico "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Those are temporery uploaded files, they should be there only while some > script handling the upload is

Re: [PHP] Files PHP in tmp ?

2003-01-24 Thread Marek Kilimajer
Those are temporery uploaded files, they should be there only while some script handling the upload is running, otherwise you have some problems. nico wrote: Hello, I've a lot of files named php in my tmp folders .. What's these files ? Nico -- PHP General Mailing List (http://www

Re: [PHP] files no longer upload!

2003-01-20 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 sure...we could look at your code if you showed it to us. Other than seeing it I'd say check 'register_globals'... HTH! ~Paul On Monday 20 January 2003 05:27 pm, Phil Powell wrote: > I'm having a day, gang! > > I have done nothing to my code and now i

RE: [PHP] Files

2002-06-06 Thread Martin Towell
if the file's not too long, you could use file() to read the file into memory, then loop through the array you get back and look for the line(s) you're after. if you don't want to read the entire file into memory, you can loop through the file with: $f = fopen($file, "r") or die("can't open file

Re: [PHP] Files sorted by date?

2002-04-30 Thread Jason Wong
On Wednesday 01 May 2002 00:24, Randum Ian wrote: > Hi there, > > I got a number of files in the directory "/reviews/txt" which are reviews. > They are submitted by people all over the world. > > Can someone please tell me what I need to do so that I can display them in > date order, newest at the

Re: [PHP] Files sorted by date?

2002-04-30 Thread heinisch
At 30.04.2002 17:24, you wrote: > >Hi there, > >I got a number of files in the directory "/reviews/txt" which are reviews. >They are submitted by people all over the world. > >Can someone please tell me what I need to do so that I can display them in >date order, newest at the top on a webpage? >

[PHP] RE: php files on cd

2002-03-05 Thread Rodya Jörn Koester [B2A]
| -Original Message- | From: Ivan Carey [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, March 05, 2002 10:17 AM | Subject: [PHP] php files on cd | | Is it possible to put a mysql & php web site on CD or maybe to | capture the site statically to put it onto cd. Hello, Ivan! Since php

[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-04 Thread Gerard Samuel
I just sent an email just before reading this, to the developers I report to. I suggested that we take out the nice little feature I worked so hard on. I dont think it would be benificial to people Im writing it for, if it doesn't work for a great number of people who have their websites on

[PHP] Re: php, files, ownership....(was file manipulation)

2001-10-04 Thread Richard Lynch
You *CAN* do that with PHP as CGI wrapped with suexec... But you lose performance, and you'll have to convince the ISP to install that as a second mime-type with a different extension... They'll need to read the suexec docs at http://apache.org first and foremost. (Doing suexec incorrectly is q

[PHP] Re: PHP files appearing in error_log

2001-08-21 Thread Richard Lynch
> The issue is that every once in a while I get a full copy of a page in my > system error_log. That is, not the error_log for the site the page exists > on, but the /var/log/httpd/error_log. Wild Hypothesis: Some worm/virus/hacker is trying to access: http://yoursite.com/something/something/../

RE: [PHP] files

2001-05-23 Thread Don Read
On 23-May-01 Jon Yaggie wrote: > Okay I am making a small script for a web design company. What it does so > far is take info - name, email, username,, pasword - which as all inputted > by the designer. Then it creates a directory clients/$username on the > company's server for the temp home of

RE: Re: [PHP] files

2001-05-23 Thread Rudolf Visagie
return 0; } Rudolf Visagie [EMAIL PROTECTED] -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: 23 May 2001 04:55 To: [EMAIL PROTECTED] Subject: Re: Re: [PHP] files What i need is the function that allows me to read the files in the directory. This is what i can

Re: [PHP] files

2001-05-23 Thread Brian Clark
Hi Jon, @ 10:55:03 AM on 5/23/2001, Jon Yaggie wrote: > What i need is the function that allows me to read the files in the > directory. This is what i can'g find. --(snip)-- readdir() -Brian -- PGP is spoken here: 0xE4D0C7C8 Please, DO NOT

Re: Re: [PHP] files

2001-05-23 Thread Jon Yaggie
What i need is the function that allows me to read the files in the directory. This is what i can'g find. To be honest I am lazy and was hoping there may be a secret function out there like filetime() that worked on the whole directory. but all i really need is what function will read the co

Re: [PHP] files

2001-05-23 Thread Brian Clark
Hi Jon, @ 10:25:43 AM on 5/23/2001, Jon Yaggie wrote: --(snip)-- > I need to find the last update of one of any file in > clients/$username. With out specificly knowing any of the filenames. > As i can see there is no way for my script to list the files in this > directory and there is no functi

Re: [PHP] files created with mkdir and open(file,"w+) are owned by nobody

2001-05-07 Thread tk
the owner of the files i believe will be hte user running the webserver since the webdserver itself is making the files. apache by defauly runs as nobody:nobody if you want to change this i think php has a chown funciton or you can run your webserver as a different user name/group Ryan Hilton

Re: [PHP] files

2001-05-06 Thread Zak Greant
Change the permissions of the /etc/passwd file, use safe mode or suExec --zak - Original Message - From: "php" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 06, 2001 11:14 PM Subject: [PHP] files > > Good day to you all > > How can I keep php scripts from reading th

Re: [PHP] Files without type???

2001-04-17 Thread David Robley
On Wed, 18 Apr 2001 15:53, Morten Winkler Jørgensen wrote: > Hi php'ers > > Executing the following code on my Redhat 7.2 box, through Apache i > get the most annoying output: > > Code: > > function listDirectory($basedir){ > $diary_directory = opendir($basedir); > while($filename = readdir(

RE: [PHP] files with html extension

2001-03-22 Thread Jeff Armstrong
: Jeff Armstrong Cc: [EMAIL PROTECTED] Subject: Re: [PHP] files with html extension Jeff Armstrong wrote: > This is exactly why http://www.w3.org recommend that you DONT > SPECIFY A FILE TYPE TYPE in your HREFs. But doth that actually work - how many web servers are able to handle this t

Re: [PHP] files with html extension

2001-03-22 Thread Harshdeep S Jawanda
Jeff Armstrong wrote: > This is exactly why http://www.w3.org recommend that you DONT > SPECIFY A FILE TYPE TYPE in your HREFs. But doth that actually work - how many web servers are able to handle this type of link correctly? Ummm... and what happens (or is supposed to happen) to resolve xx

Re: [PHP] files with html extension

2001-03-20 Thread Derek Sivers
>I recommend people don't do this unless their web server is going >to serve only(or mostly) php pages, and very few straight html pages. >the increase in overhead isn't really worth it. I've tried this in many real-world examples. I have PHP parsing ALL files on ALL of my 8 Linux servers.

RE: [PHP] files with html extension

2001-03-20 Thread Jeff Oien
>From the doc: --- How can I remove the file extensions... ...from my URIs in a practical file-based web server? If you are using, for example, Apache, you can set it up to do content negotiation. -- How is this done? Jeff Oien > On 3/20/2001 at 6:49 PM Jeff Armstrong

RE: [PHP] files with html extension

2001-03-20 Thread Rick VanNorman
This is the best idea I've heard/read yet. Thanks Jeff! Rick VanNorman *** REPLY SEPARATOR *** On 3/20/2001 at 6:49 PM Jeff Armstrong wrote: > This is exactly why http://www.w3.org recommend that you DONT > SPECIFY A FILE TYPE TYPE in your HREFs. > > Cool URIs Dont change - htt

RE: [PHP] files with html extension

2001-03-20 Thread Jeff Armstrong
hp or even xxx.my_new_language_of_the_moment. }; Jeff -Original Message- From: Phillip Bow [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 6:35 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] files with html extension Personally I recommend people don't do this unless their web

Re: [PHP] files with html extension

2001-03-20 Thread Phillip Bow
Personally I recommend people don't do this unless their web server is going to serve only(or mostly) php pages, and very few straight html pages. It will save you time mucking around on the server, but the increase in overhead isn't really worth it. IMHO of course. -- phill -- PHP General Ma

RE: [PHP] files with html extension

2001-03-20 Thread Mark Maggelet
for php4: AddType application/x-httpd-php .html for php3: AddType application/x-httpd-php3 .html On Tue, 20 Mar 2001 10:12:56 -0800, Rick VanNorman ([EMAIL PROTECTED]) wrote: >On 3/20/2001 at 12:29 PM Jack Dempsey wrote: > >>You can tell apache to have the php interpreter parse files with an >>h

RE: [PHP] files with html extension

2001-03-20 Thread Rick VanNorman
On 3/20/2001 at 12:29 PM Jack Dempsey wrote: >You can tell apache to have the php interpreter parse files with an html >extension, thereby letting you use the tags in html files...whether >this >is a good solution or not is another question.that would mean that each >file would get parse

RE: [PHP] files with html extension

2001-03-20 Thread Jack Dempsey
You can tell apache to have the php interpreter parse files with an html extension, thereby letting you use the tags in html files...whether this is a good solution or not is another question.that would mean that each file would get parsedwhy are you trying to do this? jack -Orig

Re: [PHP] Files only available via HTTPS

2001-02-09 Thread Chris
And if you can't seperate the root directorys of the secure and not secure servers, you can setup and aliases directory under the secure server and it will be the only one that can see that dir. > On Fri, 9 Feb 2001, Daniel Tryba wrote: > > >On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Con

Re: [PHP] Files only available via HTTPS

2001-02-09 Thread Adam Knight
On Fri, 9 Feb 2001, Daniel Tryba wrote: >On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote: >> I have several PHP files that I only want users to be able to access via >> HTTPS. How can I control that on an Apache 1.3.14 server running on RedHat >> 7? I have openssl and mod_ssl wor

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Jason Brooke
http://www.modssl.org/docs/2.6/ssl_reference.html#ToC22 jason - Original Message - From: "Daniel Tryba" <[EMAIL PROTECTED]> To: "Michael Conley" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 09, 2001 12:24 PM Subject: Re: [PHP]

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Christopher Allen
> On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote: > > I have several PHP files that I only want users to be able to access via > > HTTPS. One way is to place these files only where the https server can see them. heres an example: . . DocumentRoot "/secure/secure_di

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Aaron Tuller
HTTPS is set to "on", at least on my Apache when SSL is enabled. it's undefined when it's not. this is what I would do (untested code below): function UsingHTTPS() { $HTTPS = getenv("HTTPS"); return ($HTTPS == "on"); } function UsingHTTP() // might be useful? { return

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Daniel Tryba
On Thu, Feb 01, 2001 at 04:29:09PM -0800, Michael Conley wrote: > I have several PHP files that I only want users to be able to access via > HTTPS. How can I control that on an Apache 1.3.14 server running on RedHat > 7? I have openssl and mod_ssl working fine. Currently, I can access all of >

Re: [PHP] Files only available via HTTPS

2001-02-02 Thread Nathan Crause
I think your best bet would be to use cookies tagged as secure. My understanding is that if a cookie is tagged as secure, then the web server should not give any scripting language access to it (i.e. if you have a secure cookie LOGGEDIN, then PHP would NOT have $LOGGEDIN set [use isset] if the use