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

[PHP] files and folders windows permission

2013-08-23 Thread Emiliano Boragina
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 are copyed blocked. I cant see them with windows preview for example. I read in forums that is Wi

[PHP] files outside of documentRoot

2011-10-08 Thread Ricardo Martinez
Hi List! I need to access files outside the DocumentRoot. I've been looking for info and documentation, and I've read that it can be done using symbolic links and another way is by using headers. I want to know, what do you think, what is the best way, and if anyone knows a good doc about of it.

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

[PHP] files outside of the web tree

2011-04-27 Thread Jim Giner
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 photos to be included in my web pages and I didn't want them in th

Re: [PHP] SSI not working on PHP files with Apache

2010-09-02 Thread Per Jessen
Michael Alaimo wrote: > Does special configuration have to take place with PHP to let apache > process server side include files that are HTML documents? > PHP doesn't care, but you will need to configure apache to do both SSI and PHP processing. -- Per Jessen, Zürich (17.8°C) -- PHP Gene

Re: [PHP] SSI not working on PHP files with Apache

2010-09-02 Thread Jim Lucas
Michael Alaimo wrote: > Does special configuration have to take place with PHP to let apache > process server side include files that are HTML documents? > > Mike > To clarify, you are talking about Apache SSI correct? If so, then now. PHP has nothing to do with it, nor does it need to be conf

[PHP] SSI not working on PHP files with Apache

2010-09-02 Thread Michael Alaimo
Does special configuration have to take place with PHP to let apache process server side include files that are HTML documents? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Question about creating php files from a form

2010-05-15 Thread Lawrance Shepstone
Kevin wrote: >>> I am having some issues with connecting to a SQLite database right now >>> ... I'm getting the following error "Fatal Error: 'sqlite_open' is an >>> unknown function" >>> But I'm putting that on the side right now. >> >> I think the docs are still screwed up. Try sqlite3_open() ins

Re: [PHP] Question about creating php files from a form

2010-05-14 Thread Lester Caine
Kevin wrote: I am having some issues with connecting to a SQLite database right now ... I'm getting the following error "Fatal Error: 'sqlite_open' is an unknown function" But I'm putting that on the side right now. I think the docs are still screwed up. Try sqlite3_open() instead and see if th

Re: [PHP] Question about creating php files from a form

2010-05-14 Thread Kevin
Paul M Foster wrote: On Thu, May 13, 2010 at 11:53:54PM -0400, Kevin wrote: /On a side note: I am having some issues with connecting to a SQLite database right now ... I'm getting the following error "Fatal Error: 'sqlite_open' is an unknown function" But I'm putting that on the side right

Re: [PHP] Question about creating php files from a form

2010-05-14 Thread tedd
At 11:07 PM -0400 5/13/10, Kevin wrote: Hello All, I am trying to figure out how to create files when a user submits a form ... I have seen something about '*fopen*' , is that the direction I should be going? Here is what I am trying to accomplish: I am creating a program to keep track of re

RE: [PHP] Question about creating php files from a form

2010-05-14 Thread Bob McConnell
From: Kevin > I am trying to figure out how to create files when a user submits a form ... > I have seen something about '*fopen*' , is that the direction I should > be going? > > Here is what I am trying to accomplish: > > I am creating a program to keep track of recipes for my wife. I have >

Re: [PHP] Question about creating php files from a form

2010-05-14 Thread Richard Quadling
On 14 May 2010 04:07, Kevin wrote: > Hello All, > > I am trying to figure out how to create files when a user submits a form ... > I have seen something about '*fopen*' , is that the direction I should be > going? > > Here is what I am trying to accomplish: > > I am creating a program to keep trac

Re: [PHP] Question about creating php files from a form

2010-05-14 Thread Ashley Sheridan
On Thu, 2010-05-13 at 23:53 -0400, Kevin wrote: > Ashley Sheridan wrote: > > On Thu, 2010-05-13 at 23:07 -0400, Kevin wrote: > >> Hello All, > >> > >> I am trying to figure out how to create files when a user submits a form > >> ... > >> I have seen something about '*fopen*' , is that the directi

Re: [PHP] Question about creating php files from a form

2010-05-13 Thread Paul M Foster
On Thu, May 13, 2010 at 11:53:54PM -0400, Kevin wrote: > /On a side note: > I am having some issues with connecting to a SQLite database right now > ... I'm getting the following error "Fatal Error: 'sqlite_open' is an > unknown function" > But I'm putting that on the side right now. I think th

Re: [PHP] Question about creating php files from a form

2010-05-13 Thread Kevin
Ashley Sheridan wrote: On Thu, 2010-05-13 at 23:07 -0400, Kevin wrote: Hello All, I am trying to figure out how to create files when a user submits a form ... I have seen something about '*fopen*' , is that the direction I should be going? Here is what I am trying to accomplish: I am creati

Re: [PHP] Question about creating php files from a form

2010-05-13 Thread Ashley Sheridan
On Thu, 2010-05-13 at 23:07 -0400, Kevin wrote: > Hello All, > > I am trying to figure out how to create files when a user submits a form ... > I have seen something about '*fopen*' , is that the direction I should > be going? > > Here is what I am trying to accomplish: > > I am creating a pro

[PHP] Question about creating php files from a form

2010-05-13 Thread Kevin
Hello All, I am trying to figure out how to create files when a user submits a form ... I have seen something about '*fopen*' , is that the direction I should be going? Here is what I am trying to accomplish: I am creating a program to keep track of recipes for my wife. I have have page set

[PHP] Re: Structure of PHP files

2009-07-23 Thread Lupus Michaelis
Sándor Tamás (HostWare Kft . ) a écrit : It isn't really a programming question, but rather a structural. It is part of our burden ;) Which is the better approach: They are no better approch, only bad ones. I'm using to organize my code in module. Each module require the needed modules. T

Re: [PHP] Structure of PHP files

2009-07-23 Thread Robert Cummings
Paul M Foster wrote: On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote: Not that I disagree with your methodology at this time, but you could have just made that single big file, include all those little files and still had a single load statement in each of your consumer sour

Re: [PHP] Structure of PHP files

2009-07-23 Thread Paul M Foster
On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote: > Not that I disagree with your methodology at this time, but you could > have just made that single big file, include all those little files and > still had a single load statement in each of your consumer source files. > With com

Re: [PHP] Structure of PHP files

2009-07-23 Thread Floyd Resler
'Tis true. I just find dealing with the smaller files much easier. At the time I was using Komodo IDE and it would get very sluggish with the larger files. Take care, Floyd On Jul 23, 2009, at 9:34 AM, Robert Cummings wrote: Floyd Resler wrote: When I first started programming in PHP I

Re: [PHP] Structure of PHP files

2009-07-23 Thread Robert Cummings
Floyd Resler wrote: When I first started programming in PHP I used the second method you mentioned. I had a single file I called utils.php and it contained all the functions I could possibly need throughout my site. Unfortunately, this file grew to be over 10,000 lines and most of the t

Re: [PHP] Structure of PHP files

2009-07-23 Thread Floyd Resler
file. Take care, Floyd On Jul 23, 2009, at 5:36 AM, Sándor Tamás (HostWare Kft.) wrote: Hi, It isn't really a programming question, but rather a structural. Let's suppose I have a PHP page, which is built by other PHP files' includes. Which is the better approach: i

RE: [PHP] Structure of PHP files

2009-07-23 Thread Ford, Mike
> -Original Message- > From: Dengxule [mailto:dengx...@gmail.com] > Sent: 23 July 2009 10:53 > > > Hoping for the coming of the concept of PACKAGE. Seems that > NAMESPACE will > be introduced in PHP6. Already present in 5.3, actually. Cheers! Mike -- Mike Ford, Electronic Informatio

Re: [PHP] Structure of PHP files

2009-07-23 Thread Dengxule
2009/7/23 Sándor Tamás (HostWare Kft.) > Hi, > > It isn't really a programming question, but rather a structural. > > Let's suppose I have a PHP page, which is built by other PHP files' > includes. > > Which is the better approach: > in a switch-like

[PHP] Structure of PHP files

2009-07-23 Thread HostWare Kft.
Hi, It isn't really a programming question, but rather a structural. Let's suppose I have a PHP page, which is built by other PHP files' includes. Which is the better approach: in a switch-like statement I include the required PHP files, which contain all the functions, and t

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

[PHP] files creation/access dates

2009-04-14 Thread Tom Sparks
how do I get the creation dates on a file? how do I get the last access date on a file? tom_a_sparks Please avoid sending me Word or PowerPoint attachments. but instead use OpenDocument File Formats or use OpenOffice http://en.wikipedia.org/wiki/OpenDocument http://en.wikipedia.org/wiki/OpenOf

[PHP] Files redirect - using PHP and .htaccess

2009-02-16 Thread Martin Zvarík
Hi, there are two choices (example): 1) file_redirect.php?src=file/root.jpg --- shows an image 2) .htaccess --- if is requested file/root.jpg than redirect to "xyzfile/root.jpg" In both cases I can restrict the access to some files only. If we talk about PHP, the file/image.jpg can be direc

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Jochem Maas wrote: Richard Heyes wrote: Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. huh? I generally save my files in the same encoding as the output encoding of the site, this is so that literal strings are output corre

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Jochem Maas
Richard Heyes wrote: > Guus Ellenkamp wrote: >> What encoding should a PHP file itself have (so not it's output setting). > > Plain ASCII AFAIK. huh? I generally save my files in the same encoding as the output encoding of the site, this is so that literal strings are output correctly. > --

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Encoding of PHP files

2007-06-22 Thread Guus Ellenkamp
What encoding should a PHP file itself have (so not it's output setting). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Encoding of PHP files

2007-06-22 Thread Guus Ellenkamp
What encoding should a PHP file itself have (so not it's output setting). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread Guillaume Theoret
On 6/14/07, dave peaachepea <[EMAIL PROTECTED]> wrote: storeFile(); } ?> I'm not a programmer, and I'm very new at php so im sure there are errors and stupid logic in my code. It would be greatly appreciated if anyone here could critique and rip apart my code. thank you, -dave Si

[PHP] Re: does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread Darren Whitlen
dave peaachepea wrote: storeFile(); } ?> I'm not a programmer, and I'm very new at php so im sure there are errors and stupid logic in my code. It would be greatly appreciated if anyone here could critique and rip apart my code. thank you, -dave A bit easier: // Not sure where y

Re: [PHP] does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread clive
why don't you run it and find out. with errors turned on you will have quickly found out if it worked or not $filelinks=t3lib_div::_POST('file_name'); // the posting of the file name ok Ive never seen syntax like that before, maybe some else can help, looks like your doing this code from wit

[PHP] does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread dave peaachepea
storeFile(); } ?> I'm not a programmer, and I'm very new at php so im sure there are errors and stupid logic in my code. It would be greatly appreciated if anyone here could critique and rip apart my code. thank you, -dave

Re: [PHP] Using PHP files from Ajax and from other PHP files

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 4:00 pm, Otto Wyss wrote: > I want move all database access into separate PHP files so I could use > these files either through an Ajax call from the client or in another > PHP files (require_once) on the server. Is this possible? What > interface > would

Re: [PHP] Using PHP files from Ajax and from other PHP files

2007-04-17 Thread Edward Vermillion
On Apr 17, 2007, at 4:00 PM, Otto Wyss wrote: I want move all database access into separate PHP files so I could use these files either through an Ajax call from the client or in another PHP files (require_once) on the server. Is this possible? What interface would be needed? Has anybody

[PHP] Using PHP files from Ajax and from other PHP files

2007-04-17 Thread Otto Wyss
I want move all database access into separate PHP files so I could use these files either through an Ajax call from the client or in another PHP files (require_once) on the server. Is this possible? What interface would be needed? Has anybody else tried something similar? Since I plan use

Re: [PHP] Uploading into website directory for Php files

2007-02-27 Thread Richard Lynch
hange the PHP include path via .htaccess or with set_include_path to have your directory tacked onto the list of directories PHP will search for include. > > -- > View this message in context: > http://www.nabble.com/Uploading-into-website-directory-for-Php-files-tf3288031.html#a9145868 >

Re: [PHP] Re: Uploading into website directory for Php files

2007-02-26 Thread Edward Vermillion
On Feb 26, 2007, at 12:06 PM, Edward Vermillion wrote: Or you can set a constant to the includes directory: Ooopps... should be define('INCLUDE_DIR', '/files/include/'); forgot the last '/'... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Re: Uploading into website directory for Php files

2007-02-26 Thread Edward Vermillion
On Feb 26, 2007, at 11:22 AM, [EMAIL PROTECTED] wrote: Thanks alot for your response.. your information really was a help. but now knowing that I an use a folder in my root DIR.. how do I let PHP know where to look? For example the location lets say of my include fold is www.example.

Re: [PHP] Uploading into website directory for Php files

2007-02-25 Thread Edward Vermillion
/Uploading-into- website-directory-for-Php-files-tf3288031.html#a9145868 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php While I will preface this with 'You should ask Yahoo..

[PHP] Uploading into website directory for Php files

2007-02-25 Thread StainOnRug
view the fold on my ftp program to upload the file.. do I upload it through php script? Can I change the path to a folder on my website?? Thank you soo much everyone! -- View this message in context: http://www.nabble.com/Uploading-into-website-directory-for-Php-files-tf3288031.html#a9145868 Sent

Re: [PHP] Read Through PHP Files

2006-11-10 Thread Frank Arensmeier
There are search engins written in PHP available already. E.g. PHPdig. http://www.phpdig.net/ PHPdig for example is able to index PDF and doc files (I think - see the docs). Maybe it would also be a good idea to have a look at the source code. /frank /frank 10 nov 2006 kl. 14.50 skrev Tho

Re: [PHP] Read Through PHP Files

2006-11-10 Thread Thomas Munz
You cannnot just open those files. That things that you see are not 'rubish' or whatever. Those files are in a binary format. You need to understand the .doc format and the .pdf format. You can get this infromation by using google and search for 'Binary word format' and so on. Then you have to

[PHP] Read Through PHP Files

2006-11-10 Thread Kevin
Hi, I am using the function fopen to open a word document, loading the contents into a variable and then using a substr_count to count the number of times a certain string is found, this is allowing me to search through the file and say how many times the word appears, I can even use str_repl

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. > > > >

[PHP] Files and permission

2006-04-26 Thread Peter Lauri
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. I will have a class that is called file. That file can give an authori

Re: [PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread David Tulloh
Alan Schneider wrote: > I tired sending via name-value pairs with the following but it did not work > > require (DIR_WS_INCLUDES . 'filenames.php?lv_user_id=$user_id'); > > "DIR_WS_INCLUDES" is a defined constant and filenames.php is NOT a web page; > just a php file that sets the file names to

[PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread Alan Schneider
I tired sending via name-value pairs with the following but it did not work require (DIR_WS_INCLUDES . 'filenames.php?lv_user_id=$user_id'); "DIR_WS_INCLUDES" is a defined constant and filenames.php is NOT a web page; just a php file that sets the file names to be used in the application. Is th

[PHP] Re: Best Way to Pass Variables between PHP files

2006-04-08 Thread Al
Alan Schneider wrote: What is the best way to pass variable values from one php file to another thanks Alan $_GET is the simplest if: The size of the variables is small, there aren't too many and whether you care if users see it. -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Best Way to Pass Variables between PHP files

2006-04-08 Thread Alan Schneider
What is the best way to pass variable values from one php file to another thanks Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

2006-03-17 Thread Karl-Heinz Christian Zeck
Hi everybody, Does anybody know if it's possible to specify a php file as the src attribute of an script element in a html page. For example: I've installed the HORDE framework (www.horde.org) and I'm trying to make their AJAX web client work. It seems that this line of code causes problems. T

Re: [PHP] Apache is not parsing .php files

2006-01-28 Thread sanjay
Thanks for the help. Yeah problem was with php.ini file. Entry for memory limit is 12MB in the file actually it should read 12M (not 12MB). sanjay www.apptility.com Richard Lynch wrote: On Thu, January 26, 2006 2:19 pm, sanjay wrote: I have a strange problem while trying to run php base

Re: [PHP] Apache is not parsing .php files

2006-01-27 Thread Richard Correia
have you added .php .php3 .php4 extenstions to be treated as php files? Thanks, Richard On 1/27/06, sanjay <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a strange problem while trying to run php based applications. > > Lets start with phpMyAdmin, a very popular op

Re: [PHP] Apache is not parsing .php files

2006-01-26 Thread Ray Hauge
> headers and HTML that is coming out from the broken pages. > > -- > Like Music? > http://l-i-e.com/artists.htm I ran into this a while ago. My hosting company did some "updates" and messed up the httpd.conf file. I eventually tracked it down to the php directives being

Re: [PHP] Apache is not parsing .php files

2006-01-26 Thread Richard Lynch
On Thu, January 26, 2006 2:19 pm, sanjay wrote: > I have a strange problem while trying to run php based applications. > > Lets start with phpMyAdmin, a very popular open source tool to manage > MySQL written in php. > I have already installed phpMyAdmin and was running fine. > One day suddenly whe

[PHP] Apache is not parsing .php files

2006-01-26 Thread sanjay
Hi, I have a strange problem while trying to run php based applications. Lets start with phpMyAdmin, a very popular open source tool to manage MySQL written in php. I have already installed phpMyAdmin and was running fine. One day suddenly when I pointed my browser at : http://localhost/phpMyAdm

Re: [PHP] Included php files in a cron job?

2006-01-06 Thread Rodolfo Andrade
Hi Jay, Yes, you can use include(); with cron. Regards, Rodolfo Andrade - Original Message - From: Jay Paulson (CE CEN) To: php-general@lists.php.net Sent: Friday, January 06, 2006 2:29 PM Subject: [PHP] Included php files in a cron job? I'm in the process of writing a PHP pr

[PHP] Included php files in a cron job?

2006-01-06 Thread Jay Paulson \(CE CEN\)
I'm in the process of writing a PHP program that is going to be called once a week via a cron job. I don't have a place to really test this hence the reason why I'm asking about it here. My question is can my php program include other php files and still get executed correctl

Re: [PHP] use SMB share to run php files

2005-11-08 Thread Richard Lynch
On Sun, November 6, 2005 1:32 pm, Ross wrote: > Ok been looking into in and know a bit of terminology now. > > I have an SMB share on my mac which is my WWWROOT folder on my windows > computer. These files have all permissions enabled so I can edit in > dreamweaver (on mac). All I want to so is set

[PHP] use SMB share to run php files

2005-11-06 Thread Ross
Ok been looking into in and know a bit of terminology now. I have an SMB share on my mac which is my WWWROOT folder on my windows computer. These files have all permissions enabled so I can edit in dreamweaver (on mac). All I want to so is setup PHP/Apache so it recognises the WWWROOT folder a

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\)
- Original Message - From: "Evert | Rooftop" <[EMAIL PROTECTED]> To: "PHP-Users" Sent: Monday, August 22, 2005 9:30 PM Subject: [PHP] Files passing through > Hi People, > > I want to use a PHP script to pass through a file to the browser [ right &g

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

[PHP] Files passing through

2005-08-22 Thread Evert | Rooftop
Hi People, 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 ;) Is fpassthrough the right choice? maybe virtual, so it won't go through php but apac

RE: [PHP] Files

2005-06-28 Thread Shaw, Chris - Accenture
27;t it be: if($groupid == $id) hth Chris. -Original Message- From: Chris Grigor [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 11:24 To: PHP General Subject: [PHP] Files * This e-mail has been received by the Revenue Internet

[PHP] Files

2005-06-28 Thread Chris Grigor
Hey all, I am having a bash at working with flat files. What I am trying to achieve is the following There are 2 files with info in them, file1 has id,email and file2 has id,filename what I am trying to achieve is open up file1 get the id and email then open file2 and match the id of file1 t

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
le name you might see is 'file.class.php' for files which contain (usually a single) class definitions or 'file.funcs.php' for files which just contain a 'library' of functions. basically name your files anyway you see fit, php does not care - do bare in mind that yor we

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.

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

2005-05-31 Thread Martin Zvarik
Hi, I saw files like "file.inc.php" and "file.inc" What is the *.inc suffix good for ? Thank you for replies. Martin

  1   2   3   4   >