[PHP] Caching in php?

2002-02-06 Thread Erick Papadakis
hello, i used asp and it seems there is an application object which can help in caching of data. (e.g., http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=142). is this possible using php? what can i do to use caching on my website which is totally database driven? thanks/erick ___

[PHP] regexp question - extracting wanted ascii characters only?

2001-04-04 Thread Erick Papadakis
Hi, I need to do a simple thing. I want to read a binary file (e.g., microsoft word, excel etc) and then extract only the text from it. I am using simple fopen() and fread() and when I print out the contents of the file, it returns me the text but apart from the text, there is some junk which is

Re: [PHP] mail(): "\r\n" gives extra empty line between each line in Outlook

2001-04-01 Thread Erick Papadakis
I am not sure what you want to do, but you could try this: $myText = nl2br($dataFromSubmittedTextBox); Then $myText will have the correct values. Cheers --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.237 / Virus Database

Re: [PHP] login without database

2001-04-01 Thread Erick Papadakis
Does this work on Windows machines? WHat is the $PHP_AUTH_USER and where does it come from? What should my access.inc.php look like? I saw the PHP_AUTH_USER on the www.php.net website but looks like it is only possible on PHP module, not pHP CGI? Thanks in advance - "Romeo Manzur" <[EMAI

Re: [PHP] reading microsoft word, excel, pdf document text

2001-03-25 Thread Erick Papadakis
hi renike, thanks for that link, but looks like that tutorial will only work on windows machines (because of COM objects)? i am on a linux box. cheers/erick --- Reinke Bonte <[EMAIL PROTECTED]> wrote: > Hey Erick, > > unfortunately I know little about this myself, but > I'm sure, this arti

Re: [PHP] reading microsoft word, excel, pdf document text

2001-03-25 Thread Erick Papadakis
hi david, thanks for the note. ok, here is what i want to do. i want my users to upload WORD, XLS, PPT and PDF files. when they upload, i store these files in the temp directory, grab the text from them, and then put it into my database for later searching. i dont care about the formatting, i onl

[PHP] PHP_SELF problems!

2001-03-23 Thread Erick Papadakis
hi, i am using my program http://localhost/test.php inside this program is a form, which points to $PHP_SELF but, when i submit this form, the link actually becomes http://localhost/php/php.exe/test.php this results in some images not being displayed correctly! is there anyway i can

Re: [PHP] reading microsoft word document text in php?

2001-03-23 Thread Erick Papadakis
actually, i am not sure how i can use this to convert an uploaded word or pdf file into plain text and then do somethign with that text? can someone please help? thanks/erick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] reading microsoft word document text in php?

2001-03-23 Thread Erick Papadakis
hi david, thanks for the response! would u also know how i can read some excel and powerpoint files? thanks/erick > If youu are on a *nix system, there is a package called mswordview, or > alternatively you could check the www.htdig.org site for document parsers > (catdoc.pl and parsedoc.pl,

[PHP] reading microsoft word document text in php?

2001-03-21 Thread Erick Papadakis
hello, i need to read a microsoft Word document on the server through my file system. is there a way i can read the text of a word document? thanks/erick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: [PHP] problem with include/require

2001-03-11 Thread Erick Papadakis
Hi Yasuo, Thanks for the reply, but yes I do know that the include_path in php.ini should have the entries. But is this something new? I want to know how to allow including and requiring files just like we used to do in PHP3! For instance, let us say that we have two software programs on the ser

[PHP] problem with include/require

2001-03-10 Thread Erick Papadakis
i installed my php on my windows machine using the "php triad" software which i downloaded from www.sourceforge.net. however, now i have a problem with "include" command. for everything i wish to include into my programs, i need to speficy this folder in the "include_path" inside my php.ini. can i

[PHP] Is PHP ready for XML?

2001-03-05 Thread Erick Papadakis
I am beginning on how to work with xml, but i need some prelim help. let us say i have an XML file as follows: --- Jonathan Swift Gulliver's Travels Agatha Christie Murder on 57 --- I want to know if PHP supports the fo

Re: [PHP] Stripping HTML selectively?

2001-03-03 Thread Erick Papadakis
Thanks Brian, I have tried the allowable tags, but I need to remove the ATTRIBUTES of a tag, not the tag itself. STRIP_TAGS totally removes the tag, and ALLOWABLE_TAGS lets the tag be. WHat I wish to do is let the main tag be but remove its attributes, as follows: Original text: Hi!

[PHP] Stripping HTML selectively?

2001-03-02 Thread Erick Papadakis
Hello, need some help. i need to take an HTML file that is written by a user in a very bad format, for instance: Hi! and get the following: Hi! i tried to look at "strip_tags" but then it only returns me: Hi! thanks in advance/erick --- Outgoing mail is certified Virus Fre

[PHP] newbie: xslt help!

2001-01-23 Thread Erick Papadakis
hi, i dug around and found that there is something called XSLT and that there are things like coccon etc in java from apache group, and php's own parser (sablotron?) that i can use to transform xml into javascript and html. my problem is that i need to create a xslt parser that i can use both

[PHP] random no. between two numbers?

2001-01-16 Thread Erick Papadakis
hi, in php, how can i generate a random no. but between two numbers? for example, i need to generate any integer, randomly, between 1 and 1000. thanks a lot! regards/erick __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http:

[PHP] load balancing with php/apache?

2001-01-13 Thread Erick Papadakis
hello people this might be a very silly question, but folks in my company have now started asking some enterprise questions like "sure, we'll do php but how about load balancing?" i have a feeling that this can be achieved with some caching on apache? how can i achieve this? thanks/erick __