Re: [PHP] strip_tags

2013-07-20 Thread Frank Arensmeier
20 jul 2013 kl. 18:25 skrev Tedd Sperling t...@sperling.com: Hi gang: I've been using $str = strip_tags($str, $allowable) as it is described via the manuals: http://php.net/manual/en/function.strip-tags.php The problem I've found is the tags br and br / are not stripped. How

Re: [PHP] Detecting massive web hits

2013-04-12 Thread Frank Arensmeier
12 apr 2013 kl. 17.23 skrev Angela Barone: Does anyone know if there's a ready-made script that detects if someone hits multiple web pages within seconds of each other and then can temporarily ban them by IP from accessing our site? Looking through the logs, I see

Re: [PHP] Expected behaviour or bug?

2012-09-17 Thread Frank Arensmeier
17 sep 2012 kl. 10.50 skrev Camilo Sperberg: Hello list, I have a little question with PHP's internal working. I've managed to reduce the test to the following lines: $globalVariable = 'i am a global variable'; function testFunction() { global $globalVariable;

Re: [PHP] extract Occurrences AFTER ... and before -30-

2012-09-02 Thread Frank Arensmeier
2 sep 2012 kl. 14.40 skrev Matijn Woudt: On Sun, Sep 2, 2012 at 6:23 AM, John Taylor-Johnston jt.johns...@usherbrooke.ca wrote: See: http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.php http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.phps In $mystring, I need to

Re: [PHP] array_push

2012-09-02 Thread Frank Arensmeier
2 sep 2012 kl. 19.48 skrev John Taylor-Johnston: How can I clean this up? My approach would be to split the hole text into smaller chunks (with e.g. explode()) and extract the interesting parts with a regular expression. Maybe this will give you some ideas: $chunks = explode(-30-,

Re: [PHP] no traffic

2012-03-06 Thread Frank Arensmeier
6 mar 2012 kl. 15.29 skrev Mike Mackintosh: On Mar 6, 2012, at 8:55, Lawrence Decker lld0...@gmail.com wrote: I've been playing with PHP for about 6 years and I have no idea why this is happening... I've been writing a script to auth to AD. When I run the script on my dev box, nothing. I

Re: [PHP] php://input

2012-01-15 Thread Frank Arensmeier
15 jan 2012 kl. 06.18 skrev Adam Tong: Hi, I am trying to read variables from input method. I am using this tuorial: http://www.lornajane.net/posts/2008/Accessing-Incoming-PUT-Data-from-PHP. Here is my code: ?php if($_SERVER['REQUEST_METHOD'] == 'GET') { echo this is a get request\n;

Re: [PHP] Question about date calculations

2011-12-29 Thread Frank Arensmeier
29 dec 2011 kl. 22.22 skrev Eric Lommatsch: So far in looking at the functions that are available at http://www.php.net/manual/en/ref.datetime.php I have not been able to figure out how to do what I need to do. Below is a snippet showing approximately what I am trying to do. On the same

Re: [PHP] PDF Page Size

2011-12-20 Thread Frank Arensmeier
20 dec 2011 kl. 16.15 skrev Floyd Resler: What is a good solution for get the size of a PDF page in pixels? I've tried a few different methods but haven't had much success. Thanks! Floyd If you don't mind using a command line tool, Xpdf would be my first choice. Look out for pdfinfo.

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Frank Arensmeier
7 sep 2011 kl. 16.21 skrev Ron Piggott: Hi Everyone I am trying to load an HTML book into mySQL. The book was distributed with each chapter being it’s own HTML file. The only way I know how to open a file is by specifying the file name. Such as: $myFile = B01C001.htm; $lines =

Re: [PHP] ftell Issue or Feature

2011-06-08 Thread Frank Arensmeier
8 jun 2011 kl. 09.09 skrev Christian Grobmeier: The object itself is always the same, for all threads. Every thread gets this Appender from a kind of a pool. My guess is, every thread gets some kind of a copy of this object, working at it. Once it reaches the method, its members states are

[PHP] RelaxNG parser in PHP?

2011-04-29 Thread Frank Arensmeier
Hello List! Currently I am using a pear package in one of my projects to parse and query XML DTD files. The package is called XML_DTD 0.5.2 and includes the so called XML_DTD_Parser. One of the purposes of this class is to parse a given DTD file and return that file as a tree like object. With

Re: [PHP] Re: echo?

2011-03-23 Thread Frank Arensmeier
23 mar 2011 kl. 02.42 skrev Jim Giner: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i$rows; $i++) { $j = $i+1; $row = mysql_fetch_array($qrslt); echo $j.'-'.$row['userid'];

Re: [PHP] extract price by preg_match_all

2011-02-14 Thread Frank Arensmeier
?php if ( preg_match_all(/([0-9]+[,\.]{1}[0-9]{2})/, $data, $matches) ) { echo Matches found:; echo pre; print_r($matches); echo /pre; } else { echo Didn't find anything...; } ? Untested. /frank 14 feb 2011 kl. 15.05 skrev Tontonq Tontonq: example

Re: [PHP] a quick question about array keys

2010-08-31 Thread Frank Arensmeier
Have a look at the manual, especially the function array_values(). /frank Skickat från min iPhone. 31 aug 2010 kl. 17:43 skrev Tontonq Tontonq root...@gmail.com: a quick question lets say i have an array like that Array ( [300] = 300 [301] = 301 [302] = 302 [303] = 303 [304] = 304

Re: [PHP] Server-side postscript-to-PDF on-the-fly conversion

2010-03-27 Thread Frank Arensmeier
27 mar 2010 kl. 05.41 skrev Rob Gould: Is there a free solution out there that will enable me to take a PHP- generated postscript output file, and dynamically, on-the-fly convert it to a PDF document and send to the user as a download when the user clients on a link? More description of

Re: [PHP] Merry Christmas!

2009-12-25 Thread Frank Arensmeier
Merry Christmas from Sweden! /frank Skickat från min iPhone. 25 dec 2009 kl. 15.16 skrev Shawn McKenzie nos...@mckenzies.net: Merry Christmas from Texas, USA! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] remove namespace from xml

2009-12-03 Thread Frank Arensmeier
2 dec 2009 kl. 19.12 skrev Augusto Flavio: Hi all, i'm trying to connect to a SOAP Server but i'm having a problem. Look the xml that i need send to the server: // THIS IS THE XML CORRECT THAT NEED BE SENT TO THE SERVER ?xml version=1.0 encoding=utf-8? soap:Envelope

Re: [PHP] installing php 5 with pdflib

2009-01-14 Thread Frank Arensmeier
13 jan 2009 kl. 22.38 skrev Merlin Morgenstern: Hi there, I am still facing trouble with pdflib and php 5. After hours of research I found that I do have to install the pecl package. So I decided to compile it into php staticly like described here:

Re: [PHP] Waste of storage space? [follow-up]

2008-11-07 Thread Frank Arensmeier
1 nov 2008 kl. 16.27 skrev Michelle Konzack: Hello Frank, Do you use Linux or Windows? Initially, the system I am working on will be installed under Mac OS X Server. If Windows you have already lost since the cluster size of e.g. Windows 2003 is 32 kByte or 64 kByte... If

Re: [PHP] Printing Web Page

2008-11-06 Thread Frank Arensmeier
6 nov 2008 kl. 21.21 skrev Patrick Moloney: I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a scrolling text area. The web page is static html and css, in a php

Fwd: [PHP] Waste of storage space?

2008-10-29 Thread Frank Arensmeier
Från: Yeti [EMAIL PROTECTED] Datum: ti 28 okt 2008 23.07.11 GMT+01:00 Till: Frank Arensmeier [EMAIL PROTECTED] Ämne: Re: [PHP] Waste of storage space? Hej, why not do a simple strlen() before comparison? Like if strlen (or mb_strlen()) is less than 50 do not serialize/ compare. Or Like

Re: [PHP] Waste of storage space?

2008-10-29 Thread Frank Arensmeier
28 okt 2008 kl. 23.56 skrev Chris: 1) Store the delta (=the actual change) of a text change. This could be done by utilizing the Pear package TextDiff. My idea was to compare the old with the new text with help of the TextDiff class. I would then grab the array containing the changes

[PHP] Re: Waste of storage space?

2008-10-29 Thread Frank Arensmeier
29 okt 2008 kl. 00.00 skrev Maciek Sokolewicz: Frank Arensmeier wrote: Hi all. In short, I am working on a system that allows me to keep track of changes to a large amount of short texts (a couple of thousand text snippets, two or three sentences per text). All text is stored

Re: [PHP] Waste of storage space?

2008-10-29 Thread Frank Arensmeier
29 okt 2008 kl. 01.08 skrev Bastien Koert: On Tue, Oct 28, 2008 at 4:24 PM, Frank Arensmeier [EMAIL PROTECTED] wrote: Hi all. In short, I am working on a system that allows me to keep track of changes to a large amount of short texts (a couple of thousand text snippets, two or three

[PHP] Waste of storage space?

2008-10-28 Thread Frank Arensmeier
Hi all. In short, I am working on a system that allows me to keep track of changes to a large amount of short texts (a couple of thousand text snippets, two or three sentences per text). All text is stored in a database. As soon as a user changes some text (insert, delete, update), this

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Frank Arensmeier
1 okt 2008 kl. 12.31 skrev Alain Roger: ... later on i try to use the content of this array, bt without success. Here is what i do: $bci = array($_SESSION['bc']); array_push($bci,$_SESSION['bc']); foreach($bci as $key=$value) { echo bci : .$bci[$key]['name']; echo br/; } how can i

Re: [PHP] Re: very very small CMS

2008-07-19 Thread Frank Arensmeier
19 jul 2008 kl. 05.05 skrev Robert Cummings: On Fri, 2008-07-18 at 19:40 -0400, tedd wrote: At 4:26 PM -0400 7/18/08, Al wrote: I've got one that sounds like it's exactly what you are looking for. This site uses it extensively. http://www.restonrunners.org Just about every single page on

Re: [PHP] de lester

2008-06-27 Thread Frank Arensmeier
27 jun 2008 kl. 09.05 skrev [EMAIL PROTECTED]: SORRY, IN THE LAST EMAIL I DONT SAY WHAT TYPE OF VIDEO I WAS WORKING, I AM WORKING WITH VIDEO .MOV THANKS. I am working with videos and I need to Know how I can obtain the duration of the videos I had a formula that did not need any function

Re: [PHP] substr?

2008-06-18 Thread Frank Arensmeier
17 jun 2008 kl. 22.14 skrev Jim Lucas: Jason Pruim wrote: Hi everyone, I am attempting to adopt some code to work more reliably then how it is now... What I am doing is coding a upload form where people could be uploading .zip files in excess of 200 MB... Yes I know that is large, but

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Frank Arensmeier
: http://www.php.net/unsub.php Frank Arensmeier Webmaster IT Development NIKE Hydraulics AB Box 1107 631 80 Eskilstuna Sweden phone +46 - (0)16 16 82 34 fax +46 - (0)16 13 93 16 [EMAIL

Re: [PHP] Know a JS list serve

2008-03-12 Thread Frank Arensmeier
11 mar 2008 kl. 22.39 skrev Skip Evans: Hey all, I've been Googling trying to find a JavaScript list serve to post a question to, but have been, embarrassingly, unable to find one. Anyone on one they'd recommend or know of one? Thanks *sigh* Evolt has a rather good list (not too much

Re: [PHP] How to measure memory leakage/usage in PHP?

2008-03-05 Thread Frank Arensmeier
6 mar 2008 kl. 06.10 skrev Zareef Ahmed: HI Chirs, On 3/6/08, Chris [EMAIL PROTECTED] wrote: Zareef Ahmed wrote: Hi Chris, Thanks for such quick response. quite good suggestion, but my application is using a framework and lots of includes and even autoloads of classes are being done,

Re: [PHP] Re: imagettftext and utf-8 (swedish characters)

2008-02-29 Thread Frank Arensmeier
29 feb 2008 kl. 03.41 skrev David Sveningsson: Nathan Rixham skrev: before going any further, your HTML page is in UTF-8 yes? with the appropriate content-type line. Yes, apache uses only utf-8 as charset and the html content-type meta tag is set to utf-8 too. Also, the html form

Re: [PHP] building PHP5.2.5 on Mac OS X Leopard (anyone know how to build a just an extension)

2007-12-20 Thread Frank Arensmeier
20 dec 2007 kl. 00.55 skrev Jochem Maas: hi guys, well having tried for countless hours to build php on leopard I pretty much gave up. that's too bad... apparently it's pretty much impossible unless your name is Marc Liyanage (entropy.ch) ... the problem lies with the fact that you

Re: [PHP] re-compiling PHP on Mac OS X

2007-12-17 Thread Frank Arensmeier
hi guys ( girls), any Mac heads about? I have a MacBook Pro in front of me ... super cool, it even comes with apache php installed as standard. nice. only thing is php is not compiled with with all the extensions I need, the question is what is the *correct* way to update/recompile the

Re: [PHP] re-compiling PHP on Mac OS X

2007-12-17 Thread Frank Arensmeier
17 dec 2007 kl. 12.03 skrev Jochem Maas: Frank Arensmeier schreef: hi guys ( girls), any Mac heads about? I have a MacBook Pro in front of me ... super cool, it even comes with apache php installed as standard. nice. only thing is php is not compiled with with all the extensions I need

Re: [PHP] re-compiling PHP on Mac OS X

2007-12-17 Thread Frank Arensmeier
17 dec 2007 kl. 18.23 skrev David Powers: Frank Arensmeier wrote: When you install PHP5 with the package from entropy.ch, the new PHP5 will install under /usr/local/php5. The Mac package from entropy.ch is not compatible with Leopard (Mac OS X 10.5). Marc Liyanage is working on a Leopard

Re: [PHP] Re: chrooted php5-cgi in a non chrooted apache

2007-11-16 Thread Frank Arensmeier
Maybe the Apache mailing list is a better place to ask. http://httpd.apache.org/userslist.html //frank 16 nov 2007 kl. 12.20 skrev Joerg Schoppet: Hi, no more tips for this problem? Joerg Schoppet Joerg Schoppet wrote: Hi, actually I try to make my webserver-installation more

Re: [PHP] Re: XML editors

2007-08-17 Thread Frank Arensmeier
16 aug 2007 kl. 13.12 skrev Colin Guthrie: Frank Arensmeier wrote: Although I am not able to give you any helping advice, I would like to know if there are any PHP based XML online - editors out there (that would allow me to edit XML files online so to say). One thing that poped up in my

Re: [PHP] XML editors

2007-08-16 Thread Frank Arensmeier
Although I am not able to give you any helping advice, I would like to know if there are any PHP based XML online - editors out there (that would allow me to edit XML files online so to say). One thing that poped up in my mind was Tiny MCE. Sure, it could be possible to customise Tiny MCE,

Re: [PHP] pdf and send to printer question

2007-06-20 Thread Frank Arensmeier
Mike. I would start by confirming that the pdf library has been enabled/loaded successfully. Call phpinfo() and look for the pdf library. It should be there. Since I am on Mac OS X, I am not sure what php_cpdf.dll/php_pdf.dll really is (pdflib? - why two libraries?). Anyway, the error you

Re: [PHP] Re: Not getting expected result from file()

2007-06-11 Thread Frank Arensmeier
If you are not able to get anything into your DB (and your connection is ok), then two things might be wrong: your input or the query string itself. Echo out the query string and try to use the query manually (directly with a MySQL client). If the query string is ok, you might check your

Re: [PHP] Re: Sample

2007-06-11 Thread Frank Arensmeier
Thats nice! Could correct mine also? ;-) //frank 11 jun 2007 kl. 11.01 skrev [EMAIL PROTECTED]: I have corrected your document. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sending mail on OS X

2007-06-09 Thread Frank Arensmeier
I think the key to your problem is to configure Postfix on Mac OS X properly. My best suggestion would be Postfix Enabler (look at e.g. versiontracker.com for the current version). Postfix Enabler makes it very easy to setup Postfix for exemple to use SMTP for the outgoing mails. Another

[PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Frank Arensmeier
Hi. I have been struggling with a little problem for quite some time now, without finding a good solution. On one of my pages, users are able to download files that contain none US ASCII characters in their filenames (e.g. character ö,ä,å). And I would like to set the original filename

Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Frank Arensmeier
Sorry, my misstake. It turned out that the filename (stored in MySQL) was UTF8 encoded. Setting the content header filename value manually to something including umlaut characters was no problem. Lazy me... Nice weekend. //frank 9 jun 2007 kl. 21.51 skrev Frank Arensmeier: Hi. I have

Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Frank Arensmeier
9 jun 2007 kl. 22.05 skrev Robert Cummings: On Sat, 2007-06-09 at 21:59 +0200, Frank Arensmeier wrote: Sorry, my misstake. It turned out that the filename (stored in MySQL) was UTF8 encoded. Setting the content header filename value manually to something including umlaut characters

Re: [PHP] [EMAIL PROTECTED]

2007-05-10 Thread Frank Arensmeier
Sorry, your question has nothing to do with PHP. Maybe try a CSS list? http://www.google.com/search?rls=sv-seq=css+discussion +listie=UTF-8oe=UTF-8 http://www.google.com/search?rls=sv-seq=why+ie+sucksie=UTF-8oe=UTF-8 http://whyiesucks.blogspot.com/ //frank 9 maj 2007 kl. 15.13 skrev Farid

Re: [PHP] Problem with timeout

2007-05-05 Thread Frank Arensmeier
4 maj 2007 kl. 23.48 skrev Richard Lynch: On Fri, May 4, 2007 3:42 pm, Frank Arensmeier wrote: I still think that the best way to go is to not involve Apache at all when running the script. Because the script already has functions for output logging etc. it is no big deal to change the code so

[PHP] Problem with timeout

2007-05-04 Thread Frank Arensmeier
Hello. I am currently working on a script that parses a given http adress by looking for anchor tags, background images and so on - a crawler if you like. The downloaded content is temporarily stored on the server (Mac OS X Server 10.4.9 with PHP 5) and, when the script is done, the

Re: [PHP] Re: Problem with timeout

2007-05-04 Thread Frank Arensmeier
// sorry for posting my answer off list... // 4 maj 2007 kl. 17.35 skrev Emmanuel Raulo-Kumagai: Frank Arensmeier a écrit : Hello. I am currently working on a script that parses a given http adress by looking for anchor tags, background images and so on - a crawler if you like

Re: [PHP] Problem with timeout

2007-05-04 Thread Frank Arensmeier
4 maj 2007 kl. 21.58 skrev Richard Lynch: On Fri, May 4, 2007 8:37 am, Frank Arensmeier wrote: I am currently working on a script that parses a given http adress by looking for anchor tags, background images and so on - a crawler if you like. The downloaded content is temporarily stored

Re: [PHP] sorting multi array

2007-04-25 Thread Frank Arensmeier
Jon, I would suggest that you should have a look at the function array_multisort. See the manual for details on what this function is capable of. //frank 25 apr 2007 kl. 01.58 skrev Jon Bennett: hi, I have the following array, which I need to sort by quantity... Array ( [2408] = Array

Re: [PHP] Catch STDERR

2007-02-19 Thread Frank Arensmeier
Spontaneously, my suggestion would to pipe the STDERR output from your command to a file. I have to admit that this doesn't feel like the most efficient solution since you would involve some reading / writing to your filesystem. Regards. //frank 17 feb 2007 kl. 21.49 skrev Peter Lauri:

Re: [PHP] Multi lingual pages

2007-02-09 Thread Frank Arensmeier
Anyone? //frank 8 feb 2007 kl. 11.24 skrev Frank Arensmeier: Hello. I would like to hook up on this issue a little bit more. I am wondering if anybody is willing to share some good advices regarding how to implement a good (normative) url structure so to say when it comes to multi

Re: [PHP] Multi lingual pages

2007-02-09 Thread Frank Arensmeier
Thank you Paul for your comments - very valuable! //frank 9 feb 2007 kl. 10.08 skrev Paul Novitski: 8 feb 2007 kl. 11.24 skrev Frank Arensmeier: I would like to hook up on this issue a little bit more. I am wondering if anybody is willing to share some good advices regarding how

Re: [PHP] Multi lingual pages

2007-02-09 Thread Frank Arensmeier
happen if a page is available in English and e.g. american English or when a certain domain is not available? Right now I am playing with mod_rewrite. Looks promising. //frank 9 feb 2007 kl. 13.23 skrev Robert Cummings: On Fri, 2007-02-09 at 09:03 +0100, Frank Arensmeier wrote: Anyone

Re: [PHP] Multi lingual pages

2007-02-09 Thread Frank Arensmeier
9 feb 2007 kl. 15.38 skrev Tim: -Message d'origine- De : Frank Arensmeier [mailto:[EMAIL PROTECTED] Envoyé : vendredi 9 février 2007 14:51 À : Robert Cummings Cc : PHP List; Jochem Maas; Otto Wyss Objet : Re: [PHP] Multi lingual pages Thank you Robert. Actually, I am not so sure

Re: [PHP] Multi lingual pages

2007-02-08 Thread Frank Arensmeier
'ditto' to most of what the other list members replied :-) O. Wyss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Frank Arensmeier

Re: [PHP] Opera advice needed!

2007-02-07 Thread Frank Arensmeier
7 feb 2007 kl. 09.50 skrev William Stokes: If there's an opera expert around could you please check out the following link: http://www.fcviikingit.com/new/testimenu.php This script contacts a DB and prints out the results as javascript to the client browser. As I mentioned earlier It

Re: [PHP] Regular Expression

2007-02-05 Thread Frank Arensmeier
5 feb 2007 kl. 22.12 skrev H.T: Do you know good regular expression editor or something simialar? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Regex online: www.regextester.com //frank -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Ongoing encoding issues

2007-01-26 Thread Frank Arensmeier
Hi Dave. I don't think you are able to detect your users character encoding with php only (at least not rock-solid). Just some days ago, there was a discussion about that issue (at least concerning Safari) on the Apple web dev mailing list. Have a look at:

Re: [PHP] Encoding issue with £

2007-01-24 Thread Frank Arensmeier
23 jan 2007 kl. 18.55 skrev Dave Goodchild: This may be more of a mysql issue, but I am using php for my app so here goes... I have a fee field in the database, and when users post events they can specify entrance fee in £. In some, not all, of the fields I am getting, for example, £7

Re: [PHP] Validating a link in php

2007-01-24 Thread Frank Arensmeier
25 jan 2007 kl. 07.06 skrev [EMAIL PROTECTED]: Richard Lynch wrote: I dunno what you did wrong with fsockopen... First of all, thanks for taking the time to respond. I had tried fsockopen, but here's the problem. The following calls work as expected, returning a valid file pointer for

Re: [PHP] I lied, another question / problem

2007-01-16 Thread Frank Arensmeier
I believe that only two things could be messing up your validation: a) input data b) your function a) Do a var_dump on your input data. Is there any white space characters or anything else that do not belong there in the string? b) Rewrite your function/rethink what you are doing. You said

Re: [PHP] file_get_contents gets 404 error

2007-01-11 Thread Frank Arensmeier
In the manual it says: You can use a URL as a filename with this function if the fopen wrappers have been enabled First of all, I would check your php.ini file. If everything is ok (fopen wrappers are on), maybe you could post some code. The last option would be to use an other way

Re: [PHP] Weird behaviour with IE

2007-01-11 Thread Frank Arensmeier
And where does PHP come in here? The issue you describe could be anything - CSS related, html related, server related, php / asp / java you name it - maybe it is MS Explorer that sucks. Do some more research first and then - if you still feel that this might be related to PHP, you are

Re: [PHP] help with \n\r in strings

2006-12-29 Thread Frank Arensmeier
If you just want to test for \n\r - if ( substr ( -2, $my_string ) == \n\r ) { // substr with the negative value of 2 will give you the last two characters of your string // do some stuff } I think it would be a good idea to explain a little bit more what you are trying to

Re: [PHP] Re: pattern containing single quote in IF statement

2006-12-26 Thread Frank Arensmeier
First of all, I strongly feel that you should have double quotes around the string you like to compare with (e.g. new). Otherwise, you are comparing against a string but to something else (integer ?). Without quotes, PHP will throw an error (not sure if it will throw a fatal error or

Re: [PHP] Tidy HTML source?

2006-11-28 Thread Frank Arensmeier
As Richard already pointed out, ugly code can be a real problem occasionally. Besides that, I assume that you have some kind of coding standrad for your PHP code already, right? Basically, why do someone would make a difference between pretty styled PHP code and pretty styled html/CSS? Be

Re: [PHP] Attaching File to be Emailed

2006-11-24 Thread Frank Arensmeier
I think the OP was about how to send e-mail attachments - not a question about send a file to the client browser... 1) Read the manual about the function mail (especially the user notes) http://se2.php.net/manual/en/ref.mail.php 2) Google for e.g. php mail attachment Come back to this list

[PHP] Update function for content of existing CD?

2006-11-17 Thread Frank Arensmeier
Hello all. I am looking for some ideas on how to design / structure a script which checks for updates on files on a existing CD ROM. Every week, I generate content for a CD ROM containing a large number of html pages and PDF files (the CD is distributed to 20 - 30 dealers for ours) . The

Re: [PHP] php cli and mysql

2006-11-15 Thread Frank Arensmeier
FYI - the problem with mysql.sock has been an support issue at apple.com before. http://docs.info.apple.com/article.html?artnum=301457 /frank 15 nov 2006 kl. 11.03 skrev Roman Neuhauser: # [EMAIL PROTECTED] / 2006-11-14 18:56:01 -0500: Roman Neuhauser wrote: # [EMAIL PROTECTED] /

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

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Bad day? /frank 1 nov 2006 kl. 09.55 skrev Mel: Could you think of why my site loads so slowly? http://www.squareinch.net/home.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Maybe it's the 18 k of JavaScript from Google that slows your page down? Why not load this script locally from your server? /frank 1 nov 2006 kl. 10.26 skrev Mel: So do you mean that's it is ok and not slow? On Nov 1, 2006, at 1:09 AM, Robert Cummings wrote: On Wed, 2006-11-01 at 00:55

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
My suggestion: stripp out the JS from Google. Test you page again. Should the page load as slowly as before, it might have to do with PHP. Then, give us more details about your script) /frank 1 nov 2006 kl. 10.53 skrev Robert Cummings: On Wed, 2006-11-01 at 01:26 -0800, Mel wrote: So do

Fwd: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
Please send a CC of your answer to the PHP list as well... /frank Vidarebefordrat brev: Från: Toby Osbourn [EMAIL PROTECTED] Datum: onsdag 1 nov 2006 10.57.17 GMT+01:00 Till: Frank Arensmeier [EMAIL PROTECTED] Ämne: Re: [PHP] why so slow? Yeah it will be that hit counter or whatever

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
with any other site! On Nov 1, 2006, at 2:12 AM, Frank Arensmeier wrote: My suggestion: stripp out the JS from Google. Test you page again. Should the page load as slowly as before, it might have to do with PHP. Then, give us more details about your script) /frank 1 nov 2006 kl. 10.53 skrev

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
In fact, validator.w3.org validates the hmtl page at http:// www.squareinch.net/client_testing_html401.php as valid 4.01 html. So obviously, html comments are allowed before the doctype declaration. Anyway, the page contains almost one hundred (haven't count them) totally unnecessary empty

Re: [PHP] PHP Template Trouble

2006-10-26 Thread Frank Arensmeier
Kevin, there is no need to post the same question three times to this list. Your chances on getting helpful responses won't increase. The issue you describe is more related to Apache (assuming that you are on an Apache server) and URL rewriting than to PHP. Ask Google for Apache

Re: [PHP] canon jpegs

2006-10-13 Thread Frank Arensmeier
It would be helpful for us if you could provide some detailed information about those jpeg pictures (resolution, color depth/ channel, color space etc.). Furthermore, do you get any error message? This would be helpful as well. /frank 13 okt 2006 kl. 03.24 skrev Ed Lazor: Until someone

Re: [PHP] ereg_replace with user defined function?

2006-10-11 Thread Frank Arensmeier
10 okt 2006 kl. 19.25 skrev Roman Neuhauser: # [EMAIL PROTECTED] / 2006-10-09 22:01:34 +0200: Thank you Ilaria and Roman for your input. I did not know that preg is able to deal with PCRE patterns. preg is obviously short for Perl REGular expressions, while PCRE positively means

Re: [PHP] ereg_replace with user defined function?

2006-10-11 Thread Frank Arensmeier
Thanks again for your suggestions. Actually, - believe it or not - I have never written a class (I am still learning PHP after three years working with that language). So I am not quite sure of the benefits of your class. One thing I do realise is the benefit of replacing the foreach loop

[PHP] ereg_replace with unser defined function?

2006-10-09 Thread Frank Arensmeier
Hello all. Is it possible to have a user defined function for the replacement within an ereg_replace (like preg_replace_callback)? I am working on a script that converts html pages with metric data into imperial data. My script takes text strings containing one or more instances of e.g.

Re: [PHP] ereg_replace with user defined function?

2006-10-09 Thread Frank Arensmeier
[$i][0], 0, 3)) *0.039370079),1); //take the last part of match with no digits, I don't know if there are sure 3 digits } for(int i=0; icount($matches); i++){ preg_replace($string, $matches[$i][0], $replacement[$i].in); } hope to help you Ilaria Frank Arensmeier wrote: Hello all

Re: [PHP] Problems with date()

2006-09-13 Thread Frank Arensmeier
And what exactly did you expect? Have you checked a calendar? The 31st of december 2001, 2002 and 2003 are Monday, Tuesday and Wednesday respectively. In other words. those days are more or less in the middle of the week 01. So, I would say that your results are absolutely right. /frank

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Frank Arensmeier
Hi there. Look at the man page for mount_smbfs - especially the -M option which ia able to set permissions on the mounted SMB volume. If that doesn't help, when you said you tried to make a shortcut to the file - did you do this in the Finder? Try it with a symbolic link in stead (man

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Frank Arensmeier
Sorry for the typos btw... It's late. /frank 13 sep 2006 kl. 21.20 skrev Frank Arensmeier: Hi there. Look at the man page for mount_smbfs - especially the -M option which ia able to set permissions on the mounted SMB volume. If that doesn't help, when you said you tried to make

Re: [PHP] Directory Structure

2006-09-08 Thread Frank Arensmeier
I think that these kind of questions are very annoying - it is almost rude to post this to a list. Why don't you a) show that you have done some thinking b) have at least scanned the manual c) have asked Google. /frank 8 sep 2006 kl. 07.12 skrev Manoj Singh: Hello all, I am developing a

Re: [PHP] Arabic

2006-09-07 Thread Frank Arensmeier
I would... a) read the PDFlib manual b) search the PDFlib list archives for information (this has been discussed previously, I am rather sure) c) post your question to the PDFlib list /frank 7 sep 2006 kl. 21.16 skrev Ronald Cole: Hi, I'm trying to use pdflib to generate Arabic.

Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Frank Arensmeier
You seem to use FPDF. Although I never tried working with FPDF, you might take a look at http://fpdi.setasign.de/ which is a class that extends FPDF. If you are looking for a library with support for all PDF features, maybe PDFlib (http://www.pdflib.com) is the one for you (sure, PDFlib/

Re: [PHP] Working with an existing PDF doc

2006-09-01 Thread Frank Arensmeier
Tedd, this issue has been discussed recently on the PDFlib mailing list. Search for the topic search replace on PDF. Archive is here: http://groups.yahoo.com/group/pdflib/ regards, /frank 1 sep 2006 kl. 16.33 skrev tedd: You seem to use FPDF. Although I never tried working with FPDF,

Re: [PHP] display a single thumb per gallery

2006-08-28 Thread Frank Arensmeier
http://dev.mysql.com/doc/refman/5.0/en/join.html you could use something like this: SELECT DISTINCT thumbnails.gallery, thumbnails.id, thumbnails.binary_data FROM thumbnails you can insert everything you want from your table after the DISTINCT by writing: table.colName /frank 27 aug

Re: [PHP] Problem with wrapper script for Tidy

2006-08-05 Thread Frank Arensmeier
don't see this making the PHP code any less secure than it was before you wrapped Tidy around it... On Fri, August 4, 2006 6:21 am, Frank Arensmeier wrote: Hello. Since my ISP does not provide the tidy module for Apache, I tested writing a wrapper script for a locally installed tidy binary

[PHP] Problem with wrapper script for Tidy

2006-08-04 Thread Frank Arensmeier
Hello. Since my ISP does not provide the tidy module for Apache, I tested writing a wrapper script for a locally installed tidy binary. In general, the script is triggered by a modification to the .htaccess file like so: AddHandler server-parsed .php Action server-parsed

Re: [PHP] Serving a graphic downloads it instead of displaying it

2006-06-17 Thread Frank Arensmeier
: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 16/06/2006 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Frank Arensmeier Marketing Support Webmaster NIKE Hydraulics AB Box 1107 631 80 Eskilstuna

Re: [PHP] Re: Setting headers for file download

2006-06-14 Thread Frank Arensmeier
I was working on a script that was supposed to generate PDF files on the fly and ran into the same problem as you described. MS IE has always been and will always be (?) a P.I.T.A. when it comes to following standards (I am not really sure if the header application/x- octet-steam is a

Re: [PHP] HTML (php page) - PDF recommendation

2006-06-10 Thread Frank Arensmeier
Depending on what you need (CSS support, good table support and so on) and which plattform you are working with it might be a good idea to have a look at: http://www.digitaljunkies.ca/dompdf/ There are also several on-line services available like: http:// www.pdfonline.com/ If you are on

  1   2   >