Re: [PHP] create archive file in memory with zipArchive class

2010-02-10 Thread Richard Quadling
On 9 February 2010 16:47, Ryan Sun ryansu...@gmail.com wrote: thanks, Richard, maybe you are right, the actual file name is not my job I changed it to 'php://temp' but its still the same, nothing has been changed... On Tue, Feb 9, 2010 at 11:13 AM, Richard Quadling rquadl...@googlemail.com

Re: [PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Richard Quadling
On 9 February 2010 15:42, Ryan Sun ryansu...@gmail.com wrote: I want to generate credential zip file for user on the fly with zipArchive and render it for download, so I created following code - $zip = new ZipArchive(); $filename =

Re: [PHP] create archive file in memory with zipArchive class

2010-02-09 Thread Ryan Sun
thanks, Richard, maybe you are right, the actual file name is not my job I changed it to 'php://temp' but its still the same, nothing has been changed... On Tue, Feb 9, 2010 at 11:13 AM, Richard Quadling rquadl...@googlemail.com wrote: On 9 February 2010 15:42, Ryan Sun ryansu...@gmail.com

Re: [PHP] Create .php file with php

2007-07-03 Thread Richard Lynch
On Mon, June 25, 2007 7:13 pm, Marius Toma wrote: I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache 2, safe_mode is off Is this a security

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-27 Thread Crayon Shin Chan
On Wednesday 27 June 2007 06:32, Edward Vermillion wrote: Most /tmp directories are world rwx. So anyone that can log into the server through a shell, or any account running on the server, has at least read access to anything in the /tmp directory. They wouldn't need to do it through a web

Re: [PHP] Create .php file with php

2007-06-26 Thread Marius Toma
I can not believe how stupid I can be sometime. I was trying to create a file, but a file with the same name already existed on the server - and I did not have the write permission to it, so from here I got the error message saying that I can not create the file :( Thank for your time,

Re: [PHP] Create .php file with php

2007-06-26 Thread Tijnema
On 6/26/07, Marius Toma [EMAIL PROTECTED] wrote: I can not believe how stupid I can be sometime. I was trying to create a file, but a file with the same name already existed on the server - and I did not have the write permission to it, so from here I got the error message saying that I can not

Re: [PHP] Create .php file with php

2007-06-26 Thread Daniel Brown
On 6/26/07, Marius Toma [EMAIL PROTECTED] wrote: I can not believe how stupid I can be sometime. I was trying to create a file, but a file with the same name already existed on the server - and I did not have the write permission to it, so from here I got the error message saying that I can not

Re: [PHP] Create .php file with php

2007-06-26 Thread Daniel Brown
On 6/26/07, Daniel Brown [EMAIL PROTECTED] wrote: On 6/26/07, Marius Toma [EMAIL PROTECTED] wrote: I can not believe how stupid I can be sometime. I was trying to create a file, but a file with the same name already existed on the server - and I did not have the write permission to it, so

Re: [PHP] Create .php file with php

2007-06-26 Thread Daniel Brown
On 6/26/07, Marius Toma [EMAIL PROTECTED] wrote: I can not believe how stupid I can be sometime. I was trying to create a file, but a file with the same name already existed on the server - and I did not have the write permission to it, so from here I got the error message saying that I can not

Re: [PHP] Create .php file with php

2007-06-26 Thread Adam Schroeder
You might also consider looking at variable variables and dynamic PHP (writing and evaluating php expressions on the fly). http://us.php.net/variables.variable http://us.php.net/eval Writing the PHP to a file could be a potential security vulnerability. Especially if this was going to go

Re: [PHP] Create .php file with php

2007-06-26 Thread Al
Would it not be better to create the file with tmpfile() and to put it in the system /tmp dir; which, I believe, is generally not in the webspace? Daniel Brown wrote: On 6/26/07, Marius Toma [EMAIL PROTECTED] wrote: I can not believe how stupid I can be sometime. I was trying to create a

Re: [PHP] Create .php file with php

2007-06-26 Thread Daniel Brown
On 6/26/07, Al [EMAIL PROTECTED] wrote: Would it not be better to create the file with tmpfile() and to put it in the system /tmp dir; which, I believe, is generally not in the webspace? The problem here, though, Al, is that it relies on the server admin not to be lazy, and to have the box

Re: [PHP] Create .php file with php

2007-06-26 Thread Daniel Brown
On 6/26/07, Al Rider [EMAIL PROTECTED] wrote: I thought that the php engine took care of deleting tmp files when the script ended. Thus, if his script is terminated before his code deletes the file, the engine will insure it's deleted. Otherwise, he should use an ignore_user_abort().

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Daniel Brown
On 6/26/07, Al Rider [EMAIL PROTECTED] wrote: I think most systems have a /tmp directory above the web dir, so outsiders can't watch it anyhow. True, but on an unsecured box, this becomes possible, as Apache will most likely be running universally as `nobody`, `httpd`, `apache`, or `daemon`

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Crayon Shin Chan
On Wednesday 27 June 2007 03:53, Daniel Brown wrote: On 6/26/07, Al Rider [EMAIL PROTECTED] wrote: I think most systems have a /tmp directory above the web dir, so outsiders can't watch it anyhow. True, but on an unsecured box, this becomes possible, as Apache will most likely be

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Daniel Brown
On 6/26/07, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Wednesday 27 June 2007 03:53, Daniel Brown wrote: On 6/26/07, Al Rider [EMAIL PROTECTED] wrote: I think most systems have a /tmp directory above the web dir, so outsiders can't watch it anyhow. True, but on an unsecured box,

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Edward Vermillion
On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote: On Wednesday 27 June 2007 03:53, Daniel Brown wrote: On 6/26/07, Al Rider [EMAIL PROTECTED] wrote: I think most systems have a /tmp directory above the web dir, so outsiders can't watch it anyhow. True, but on an unsecured box, this

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Adam Schroeder
... if you really couldn't write it as dynamic PHP -- you could also save it in a database. Edward Vermillion wrote: On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote: On Wednesday 27 June 2007 03:53, Daniel Brown wrote: On 6/26/07, Al Rider [EMAIL PROTECTED] wrote: I think most

Re: [PHP] Create .php file with php

2007-06-25 Thread Daniel Brown
On 6/25/07, Marius Toma [EMAIL PROTECTED] wrote: I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache 2, safe_mode is off Is this a security measure

Re: [PHP] Create .php file with php

2007-06-25 Thread jekillen
On Jun 25, 2007, at 5:13 PM, Marius Toma wrote: I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache 2, safe_mode is off Is this a security measure

Re: [PHP] Create .php file with php

2007-06-25 Thread jekillen
On Jun 25, 2007, at 9:08 PM, jekillen wrote: On Jun 25, 2007, at 5:13 PM, Marius Toma wrote: I can not create .php files from PHP. I can save them as *.php5, *.php3, asp, *.txt , etc... but not as .php. I tried both touch and fopen but none of them worked. I'm running PHP 5.1.6 on Apache

Re: [PHP] Create MDB File

2005-03-29 Thread gustav
What's the reason reason converting from MySQL to Access? *curious* /G @varupiraten.se Thanks for your reply, but this only works on Windows. I need a program that will create an MDB file on the fly from a query on the MySQL database... Johannes Findeisen [EMAIL PROTECTED] wrote in

Re: [PHP] Create MDB File

2005-03-28 Thread Johannes Findeisen
Hello, i had the same problem some years ago. At this time i have set up all tables in Access and wrote a script which reads from MySQL and inserts into the MDB file via the ODBC connector. This works but is much work when your database is very big. 2 Years ago i had the same problem but it

Re: [PHP] Create MDB File

2005-03-28 Thread Johannes Findeisen
Sorry, i forgot that link: http://www.convert-in.com/sql2acc.htm On Monday 28 March 2005 22:46, Johannes Findeisen wrote: Hello, i had the same problem some years ago. At this time i have set up all tables in Access and wrote a script which reads from MySQL and inserts into the MDB file

Re: [PHP] Create MDB File

2005-03-28 Thread Shaun
Thanks for your reply, but this only works on Windows. I need a program that will create an MDB file on the fly from a query on the MySQL database... Johannes Findeisen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry, i forgot that link:

Re: [PHP] create a file

2004-01-26 Thread Raditha Dissanayake
Hi, Certainly not with PHP! you will need to use a signed java applet or an activex all the best Viviane Hu wrote: hi, How can I create a file (txt) in client-side? Thanks a lot for you help. viviane -- Raditha Dissanayake.

Re: [PHP] create a file

2004-01-26 Thread Matt Matijevich
snip How can I create a file (txt) in client-side? /snip I dont think there is a way unless you are using some kind of java applet. You can create the text on the server and give the user a link to save the text file on their computer. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] create a file?

2002-05-23 Thread John Holmes
www.php.net/fopen ---John Holmes... -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 7:29 AM To: php-general Subject: [PHP] create a file? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I'm clearly missing the obvious here ;-)

Re: [PHP] create a file?

2002-05-23 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then John Holmes declared www.php.net/fopen Damn! I looked at that (of course) but must have missed it. Jeez, I looked at that page twice! Thanks John. - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE-

RE: [PHP] create a file

2002-02-28 Thread Niklas Lampén
fopen(file, w) -Original Message- From: Thomas Franz [mailto:[EMAIL PROTECTED]] Sent: 1. maaliskuuta 2002 9:55 To: [EMAIL PROTECTED] Subject: [PHP] create a file good morning, i want to create a new file and save it in the current dir. I look in the manual but only i found how to

RE: [PHP] create a file .png

2002-01-07 Thread Michael Geier
problems with this email: - no script to look at problems with the script: - directory permissions? - gd installation incomplete? - php installation missing gd? -Original Message- From: aurelio [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002