[PHP] Re: OPTIMIZING - The fastest way to open and show a file

2005-10-17 Thread Ruben Rubio Rey
In a almost idle desktop machine always takes arround 0.04. The measured is on a server when it was with low traffic (average load arround 0.7) ac wrote: where did these time measured? on a heavily loaded server or on your own almost idle desktop machine ? On 10/14/05, Ruben Rubio Rey

Re: [PHP] OPTIMIZING - The fastest way to open and show a file

2005-10-17 Thread Ruben Rubio Rey
Richard Lynch wrote: On Fri, October 14, 2005 6:29 am, Ruben Rubio Rey wrote: if(file_exists($filename)){ $modified_date=filemtime($filename); if(time()($modified_date+1 * 24 * 60 * 60)){ $handle = fopen($filename, r); $contents = fread($handle,

[PHP] Re: OPTIMIZING - The fastest way to open and show a file

2005-10-17 Thread ac
try `ssh' onto the server and test locally on the server, use `wget', `curl' or even write a small script... what do you get this time ? low traffic may also problemical, if the server shares bandwith with other host, and there are busy ones among them. On 10/17/05, Ruben Rubio Rey [EMAIL

[PHP] can't get IIS to run php if the script is not directly under wwwroot

2005-10-17 Thread tony yau
Can someone help please, in w2k, when i put a test.php directly under wwwroot then it works, when i try using a virtual directory it fails/refused to run the script?! any hint anyone? -- Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: a couple of problems with PHP form

2005-10-17 Thread Mark Rees
- sorry, my editor has not indented again - also, I want the field to appear hilighted when there is no information so I am doing this: input class=? if($error_msg){ echo error; } ELSE { echo

[PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Aftab Alam
hi, any one can help me i want to generate Pdf file using php. how can i what tools is required for this. Regards, _ Aftab Alam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 4:06 PM To: php-general@lists.php.net

[PHP] Re: can't get IIS to run php if the script is not directly under wwwroot

2005-10-17 Thread tony yau
Hi, the security for my 'Project' folder (aliases 'phpproject' where test.php is under) has Access Permission: Read, Script source access, Write, Directory Browsing Application permission: Execute(includes scripts) under window explorer I've allowed Everyone and Internet Guest Account Full

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Ravi
I just had a small doubt..Is it possible to write JavaScript through PHP??? On 10/17/05, Aftab Alam [EMAIL PROTECTED] wrote: hi, any one can help me i want to generate Pdf file using php. how can i what tools is required for this. Regards, _ Aftab Alam -Original

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Jordan Miller
if you have compiled php with pdflib support, you can do this fairly easily. see the manual: http://www.php.net/pdf Jordan On Oct 17, 2005, at 6:06 AM, Aftab Alam wrote: hi, any one can help me i want to generate Pdf file using php. how can i what tools is required for this.

RE: [PHP] Re: can't get IIS to run php if the script is not direc tly under wwwroot

2005-10-17 Thread Jay Blanchard
[snip] the security for my 'Project' folder (aliases 'phpproject' where test.php is under) has Access Permission: Read, Script source access, Write, Directory Browsing Application permission: Execute(includes scripts) under window explorer I've allowed Everyone and Internet Guest Account Full

[PHP] Re: Re: can't get IIS to run php if the script is not directly under wwwroot

2005-10-17 Thread tony yau
Executable : C:\Apache\Apache2\php501\php5isapi.dll Extension .php Verb All checked Script engine I've have tried php.exe here but with no joy! Tony Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] the security for my 'Project' folder (aliases 'phpproject' where

RE: [PHP] Re: Re: can't get IIS to run php if the script is not d irectly under wwwroot

2005-10-17 Thread Jay Blanchard
[snip] Executable : C:\Apache\Apache2\php501\php5isapi.dll Extension .php Verb All checked Script engine I've have tried php.exe here but with no joy! [/snip] Did you install PHP as a CGI or ISAPI? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Re: Re: can't get IIS to run php if the script is not directly under wwwroot

2005-10-17 Thread tony yau
Hi Jay thanks for your time. i installed it as ISAPI can i ask if you have had IIS5 on win2k professional running php scripts that is not under the \wwwroot ? some how i getting to think it can't (?!) be done although it does work for II6 win2003 server! Tony Jay Blanchard [EMAIL PROTECTED]

RE: [PHP] Re: Re: Re: can't get IIS to run php if the script is n ot directly under wwwroot

2005-10-17 Thread Jay Blanchard
[snip] thanks for your time. i installed it as ISAPI can i ask if you have had IIS5 on win2k professional running php scripts that is not under the \wwwroot ? some how i getting to think it can't (?!) be done although it does work for II6 win2003 server! [/snip] I have IIS5 installed on W2K Pro

[PHP] Invoking a DLL with PHP

2005-10-17 Thread Jay Blanchard
Good morning gurus and gurettes! I have been asked (and I think that we may have discussed this before in general terms, a long time ago) to perform the preliminary analysis on a project that ideally would have me invoking an existing .DLL using PHP. I have been googling for tidbits for several

[PHP] Uploaded CSV - database

2005-10-17 Thread Brian Dunning
Does anyone have an example of code to process a CSV file submitted via a file upload and parse it out in order to write its records to a db? Hopefully yours, - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Invoking a DLL with PHP

2005-10-17 Thread Richard Davey
Hi Jay, Monday, October 17, 2005, 3:20:58 PM, you wrote: Does anyone have any insight to this type of process? Would I have to build a PHP extension and compile the DLL as part of PHP's configuration? Ideally the DLL would be a black box that could be accessed utilizing functions that I

RE: [PHP] Uploaded CSV - database

2005-10-17 Thread Jim Moseby
-Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 10:37 AM To: php-general@lists.php.net Subject: [PHP] Uploaded CSV - database Does anyone have an example of code to process a CSV file submitted via a file upload and parse it out

RE: [PHP] Uploaded CSV - database

2005-10-17 Thread Jim Moseby
-Original Message- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 10:41 AM To: 'Brian Dunning'; php-general@lists.php.net Subject: RE: [PHP] Uploaded CSV - database -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent:

[PHP] Re: Re: Re: Re: can't get IIS to run php if the script is not directly under wwwroot

2005-10-17 Thread tony yau
THANKS JAY, YOU ARE A SAINT :) I commented out the doc_root and restart and it came alive :) Thank you all Tony Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] thanks for your time. i installed it as ISAPI can i ask if you have had IIS5 on win2k professional

Re: [PHP] Uploaded CSV - database

2005-10-17 Thread Mark Rees
-Original Message- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 10:41 AM To: 'Brian Dunning'; php-general@lists.php.net Subject: RE: [PHP] Uploaded CSV - database -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED]

RE: [PHP] Invoking a DLL with PHP

2005-10-17 Thread Jay Blanchard
[snip] The DLL was built specifically with a COM interface which I accessed using the PHP COM functions (as I'm sure you've seen already). The DLL authors had to rejig their original code a little, but it was a far less painful process than compiling the DLL into PHP. However for the next revision

RE: [PHP] Uploaded CSV - database

2005-10-17 Thread Jim Moseby
-Original Message- From: Mark Rees [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 11:11 AM To: php-general@lists.php.net Subject: Re: [PHP] Uploaded CSV - database -Original Message- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: Monday, October 17,

Re[2]: [PHP] Invoking a DLL with PHP

2005-10-17 Thread Richard Davey
Hi Jay, Monday, October 17, 2005, 4:15:58 PM, you wrote: Unfortunately I may not be able to have the DLL re-built with the COM interface. It is an older DLL containing engineering functions and it is huge. The real dingle here is that I only need to access some of the functionality of the

Re: [PHP] Uploaded CSV - database

2005-10-17 Thread Brian Dunning
It looks like all of those tips will easily cover me for the latter half of the operation. Any tips on how to get the uploaded CSV file into memory in order to attack it with fgetcsv()? I'd rather not ever have to actually write the file to the server's disk. Thanks! -- PHP General

RE: [PHP] Uploaded CSV - database

2005-10-17 Thread Jay Blanchard
[snip] It looks like all of those tips will easily cover me for the latter half of the operation. Any tips on how to get the uploaded CSV file into memory in order to attack it with fgetcsv()? I'd rather not ever have to actually write the file to the server's disk. [/snip] Once you have

RE: [PHP] Uploaded CSV - database

2005-10-17 Thread Jim Moseby
-Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 11:39 AM To: php-general@lists.php.net Subject: Re: [PHP] Uploaded CSV - database It looks like all of those tips will easily cover me for the latter half of the operation. Any tips

[PHP] PHP5+FastCGI Segmentation Fault

2005-10-17 Thread Jason Kovacs
Hello, I have Apache 2, PHP5 (cgi-fcgi), FastCGI, and Suexec on FC4 64-bit, and it works for the most part, but some 3rd-party PHP software written for PHP4 will break and in my error_log I've seen the message: FastCGI: (dynamic) server /.../php-fcgi terminated due to uncaught signal '11'

[PHP] Test

2005-10-17 Thread J.Lubelan
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and sessions

2005-10-17 Thread J.Lubelan
Hello Can anybody help me with sessions? Where is the problem? I start session in start.php script. ?php // start.php script session_name('test'); session_start(); $_SESSION['fig1'] = 'split'; .. .. .. $split = http://;. $_SERVER['HTTP-HOST']. dirname($_SERVER['PHP_SELF']). /split.php; ? a

Re: [PHP] Re: a couple of problems with PHP form

2005-10-17 Thread Richard Lynch
On Mon, October 17, 2005 5:32 am, Mark Rees wrote: - sorry, my editor has not indented again - also, I want the field to appear hilighted when there is no information so I am doing this:

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Richard Lynch
On Mon, October 17, 2005 6:06 am, Aftab Alam wrote: i want to generate Pdf file using php. how can i what tools is required for this. One way is to start here: http://php.net/pdf -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: can't get IIS to run php if the script is not directly under wwwroot

2005-10-17 Thread Richard Lynch
On Mon, October 17, 2005 6:24 am, tony yau wrote: the security for my 'Project' folder (aliases 'phpproject' where test.php is under) has Are there any security settings on the alias itself 'phpproject'? Is an alias folder the same as a shortcut like you make in Windows desktop explorer

Re: [PHP] Troubleshott GD Freetype under Linux

2005-10-17 Thread Richard Lynch
On Sat, October 15, 2005 11:24 am, Feris Thia C. wrote: My PHP engine still cannot load JPEG library (GD) and Freetype fonts... I use ./config.nice to reconfigure PHP coz it works... and I have compile it with --jpeg-dir options. And seems not working at all. How can I troubleshoot and

Re: [PHP] Uploaded CSV - database

2005-10-17 Thread Ben Litton
Actually I think fgetcsv will work with any valid file pointer and at least in PHP 5, the streams implementation will allow you to use a variety of protocols to create the stream. http://us2.php.net/manual/en/wrappers.php I understand that it isn't even too teribbly difficult to implement

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Richard Lynch
On Sat, October 15, 2005 7:26 am, Edward Vermillion wrote: Do they want the PDF to display in the page, or is a link to a PDF ok for them? I've already warned them that a PDF embedded into a page is impossible. That may not be true, technically, for all I know, but I've sure never seen it, and

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Richard Lynch
On Fri, October 14, 2005 6:03 pm, Jason Kovacs wrote: Richard Lynch said the following on Friday, October 14, 2005 3:39 PM: So... Do I: A) Attempt to hack fckEditor to allow a PDF to get uploaded, and then display a link to the PDF instead of alink to the fckEditor output. B) Give them

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Torgny Bjers
Richard Lynch wrote: On Sat, October 15, 2005 7:26 am, Edward Vermillion wrote: Do they want the PDF to display in the page, or is a link to a PDF ok for them? I've already warned them that a PDF embedded into a page is impossible. That may not be true, technically, for all I know,

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Ben
Richard Lynch said the following on 10/17/05 13:14: On Mon, October 17, 2005 6:06 am, Aftab Alam wrote: i want to generate Pdf file using php. how can i what tools is required for this. One way is to start here: http://php.net/pdf When reading the above link note the last sentence

Re: [PHP] Obsession with BC, take 2

2005-10-17 Thread Richard Lynch
On Fri, October 14, 2005 5:18 pm, GamblerZG wrote: The second one is by using two different apache modules. It *does not break anything*, but it's a pain to setup. Judging sheerly by functionality and compatibility the second ways is better. However, judging from what I know about PHP, nobody

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Jasper Bryant-Greene
Richard Lynch wrote: On Sat, October 15, 2005 7:26 am, Edward Vermillion wrote: Do they want the PDF to display in the page, or is a link to a PDF ok for them? I've already warned them that a PDF embedded into a page is impossible. That may not be true, technically, for all I know,

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Torgny Bjers
Jasper Bryant-Greene wrote: Richard Lynch wrote: On Sat, October 15, 2005 7:26 am, Edward Vermillion wrote: Do they want the PDF to display in the page, or is a link to a PDF ok for them? I've already warned them that a PDF embedded into a page is impossible. That may not be

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Richard Lynch
On Mon, October 17, 2005 3:31 pm, Torgny Bjers wrote: I think you would be able to use an IFRAME, or even a FRAME, to load the PDF into like you would open it in any normal browser using the standard PDF plugin that's used when you click a PDF in your browser. That is, set the src of the

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Richard Lynch
On Mon, October 17, 2005 3:56 pm, Torgny Bjers wrote: Also, when using iframe/ you are weeding out those old browsers that If somebody else wants to weed out old browsers, that's all fine and good, but that's not me... Besides, if this is for an editor interface, for a specific client, one

RE: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Jason Karns
-Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 5:11 PM To: Torgny Bjers Cc: php-general@lists.php.net Subject: Re: [PHP] fckeditor and PDF and pesky users On Mon, October 17, 2005 3:56 pm, Torgny Bjers wrote: Also, when using iframe/ you

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Torgny Bjers
Richard Lynch wrote: On Mon, October 17, 2005 3:56 pm, Torgny Bjers wrote: Also, when using iframe/ you are weeding out those old browsers that If somebody else wants to weed out old browsers, that's all fine and good, but that's not me... Didn't say I wanted to. It was a

Re: [PHP] fckeditor and PDF and pesky users

2005-10-17 Thread Jason Kovacs
Richard Lynch said the following on Monday, October 17, 2005 3:30 PM: On Fri, October 14, 2005 6:03 pm, Jason Kovacs wrote: Richard Lynch said the following on Friday, October 14, 2005 3:39 PM: I added a custom drop-down menu to FCKEditor's Link window that fills in the URL upon selecting

Re: [PHP] Invoking a DLL with PHP

2005-10-17 Thread Gonzalo Monzón
Richard Davey escribió: Hi Jay, Monday, October 17, 2005, 4:15:58 PM, you wrote: Unfortunately I may not be able to have the DLL re-built with the COM interface. It is an older DLL containing engineering functions and it is huge. The real dingle here is that I only need to access some of

[PHP] re: some problems with php form

2005-10-17 Thread Bruce Gilbert
-- Forwarded message -- From: Richard Lynch [EMAIL PROTECTED] To: Mark Rees [EMAIL PROTECTED] Date: Mon, 17 Oct 2005 15:12:50 -0500 (CDT) Subject: Re: [PHP] Re: a couple of problems with PHP form On Mon, October 17, 2005 5:32 am, Mark Rees wrote:

Re: [PHP] re: some problems with php form

2005-10-17 Thread Minuk Choi
Wait a minute... you meant input class= ?PHP if ($error_msg) { echo input.error; } else { echo input.normal; } ? id=firstname name=firstname type=text value=?PHP echo $_POST['firstname'];? ...or am I looking at the wrong thing?

Re: [PHP] re: some problems with php form

2005-10-17 Thread Chris
Bruce Gilbert wrote: -- Forwarded message -- From: Richard Lynch [EMAIL PROTECTED] To: Mark Rees [EMAIL PROTECTED] Date: Mon, 17 Oct 2005 15:12:50 -0500 (CDT) Subject: Re: [PHP] Re: a couple of problems with PHP form On Mon, October 17, 2005 5:32 am, Mark Rees wrote: