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: http://www.php-resource.de/handbuch/insta

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 accompl

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 welco

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 tha

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 r

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 valid

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: http://lists.apple.com/archives/

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] 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 works

Re: [PHP] Multi lingual pages

2007-02-08 Thread Frank Arensmeier
nt - these are specified by the owner/user during the lifetime of the site/application for the rest I'll just say 'ditto' to most of what the other list members replied :-) O. W

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 to

Re: [PHP] Multi lingual pages

2007-02-09 Thread Frank Arensmeier
What would 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: An

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

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: H

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 http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.or

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 : Merry Christmas from Texas, USA! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP

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 wh

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 : > a quick question > lets say i have an array like that > > > Array > ( > [300] => 300 > [301] => 301 > [302] => 302 > [303] => 303 > [304] => 304

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 > 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 extract everything

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("

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; > unset($gl

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 someone/

Re: [PHP] strip_tags

2013-07-20 Thread Frank Arensmeier
20 jul 2013 kl. 18:25 skrev Tedd Sperling : > 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 "" and "" are not stripped. > > How do you

Re: [PHP] extract price by preg_match_all

2011-02-14 Thread Frank Arensmeier
"; print_r($matches); echo ""; } else { echo "Didn't find anything..."; } ?> Untested. /frank 14 feb 2011 kl. 15.05 skrev Tontonq Tontonq: > example data: > > > old price 829,00 > €your price 58,90 € * > > > another : > 9,90 € * > > i want to extract 829,.00 & 5

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['user

[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] 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 state

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";

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 "pdfinf

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] 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: > if($_SERVER['REQUEST_METHOD'] == 'GET') { >echo "this is a get request

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 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 have wire

[PHP] replace special characters

2005-02-24 Thread Frank Arensmeier
Hello everybody! I was wondering if you could help me with a little problem I ran into some days ago. In my database I have some information about file paths. Originally, those paths come from a Windows Excel spreadsheet and look like "..\1 PDF Filer\65051.PDF". In my PHP code I try to do two t

Re: [PHP] Re: replace special characters

2005-02-24 Thread Frank Arensmeier
Thank you Stian! In Swedish they say "Sometimes you can't see the forest by all the trees." /frank 2005-02-24 kl. 09.45 skrev Stian Berger: On Thu, 24 Feb 2005 09:14:32 +0100, Frank Arensmeier <[EMAIL PROTECTED]> wrote: Hello everybody! I was wondering if you could

Re: [PHP] function to resize images

2005-02-28 Thread Frank Arensmeier
Dave! I would start by reading the PHP manual. Look for a function called 'imagecopyresized()'. This might help. /frank 2005-02-28 kl. 16.34 skrev Bosky, Dave: Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that

Re: [PHP] textarea posting duplicate text

2005-03-01 Thread Frank Arensmeier
Bret -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ________ Frank Arensmeier Marketing Support NIKE HYDRAULICS AB Box 1107 631 80 Eskilstuna Sweden tel +46 16 82 34 fax +46 16 13 93 16 ema

[PHP] Connecting to a AS/400?

2005-03-02 Thread Frank Arensmeier
Hello! Is there anyone who has some experience in connecting to a IBM AS/400 server with PHP? Any ideas where to start? Regards, Frank Frank Arensmeier Marketing Support NIKE HYDRAULICS AB Box 1107 631 80 Eskilstuna Sweden tel +46 16 82 34 fax +46

Re: [PHP] Connecting to a AS/400?

2005-03-02 Thread Frank Arensmeier
Richard, you are my man! Thank you for the hints you gave me. I will do some digging in the list archives tonight. Thank you. /frank 2005-03-02 kl. 19.57 skrev Richard Lynch: Frank Arensmeier wrote: Is there anyone who has some experience in connecting to a IBM AS/400 server with PHP? Any ideas

Re: [PHP] How to sort a Multidimensional array?

2005-03-02 Thread Frank Arensmeier
Hello! This must be one of the most frequently asked questions ever. Anyway, take a look at the PHP manual. Look for a function called 'foreach'. To put it simple, with 'foreach' you are able to go through the array step-by-step, value by value. For example: $arr = array('value1', 'value2', 'v

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] [PHP] how to get checkbox form data as array?

2005-03-04 Thread Frank Arensmeier
Try: /frank 2005-03-04 kl. 04.06 skrev tx: i create the html form as below and i receive the form data in php file as below: global $aaa; print_r($aaa); this action only echo "4" not the total array in array format,why?

Re: [PHP] php-help

2005-03-08 Thread Frank Arensmeier
ot;select field2 from table 2 where field1 = (array of first query iterated)" can u help me doing this in php. thanks, karthik ________ Frank Arensmeier Marketing Support NIKE HYDRAULICS AB Box 1107 631 80 Eskilstuna Sweden tel +46 16 82 34 fax

[PHP] croping an image with GD and putting it into html code

2005-03-15 Thread Frank Arensmeier
thumbnail image directly to a tag in my html file? Is there a way to do this without storing the thumbnail into a tmp file? /frank Frank Arensmeier Marketing Support NIKE HYDRAULICS AB Box 1107 631 80 Eskilstuna Sweden tel +46 16 82 34 fax +46 16 13 93

Re: [PHP] Re: Renaming Directories

2005-03-21 Thread Frank Arensmeier
Hello Daniel! In the code it says: echo rename($path_old, $path_new) ? "done\n" : "failed\n"; I assume that this line is supposed to actually rename the directory. Why did you wrote "echo" before "rename"? Try to change the code to: if (!rename($path_old,$path_new)) { echo "failed\n"; } e

Re: [PHP] seraching / indexing in php

2005-03-22 Thread Frank Arensmeier
Hello! I suggest you take a look at: http://www.phpdig.net/ Regards, Frank 2005-03-22 kl. 15.47 skrev Reinhart Viane: I'm looking for a script which indexes the pages of a site (dynamic pages) in a dbase and makes it possible to search the site based on keywords/sentences/etc. Does anyone has any

Re: [PHP] seraching / indexing in php

2005-03-23 Thread Frank Arensmeier
pages. The intention is to make a site where several users have one page each which they can edit on there own. Do you think most of those engines can index pages like that? Or should I create an index every time a page is updated / made? Greetings -Oorspronkelijk bericht- Van: Frank Arensmei

Re: [PHP] reduce the following code "if ($colorVar == 'Black' || $colorVar == 'Red' || $colorVar == 'White' || $colorVar == 'Blue' ){"

2005-03-23 Thread Frank Arensmeier
) To unsubscribe, visit: http://www.php.net/unsub.php ____ Frank Arensmeier Marketing Support NIKE HYDRAULICS AB Box 1107 631 80 Eskilstuna Sweden tel +46 16 82 34 fax +46 16 13 93 16 email: [EMAIL PROTECTED] www.nikehydraulics.com

Re: [PHP] asking comment

2005-03-30 Thread Frank Arensmeier
Instead of generating filenames with random numbers, why not take a timestamp and use this as filenames? /frank 2005-03-30 kl. 14.44 skrev William Stokes: Hello, I got a bit frustrated with image upload stuff with different image name problems. So I created a system that gives the uploaded image

Re: [PHP] Little Help Needed

2005-04-05 Thread Frank Arensmeier
You should describe more specific what is going wrong with your script. What does the script output? Maybe you should post a vardump as well. /frank 2005-04-05 kl. 11.07 skrev Jason: Could someone tell me what I did wrong with this script. It should read the page http://www.mto.gov.on.ca/e

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] 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 p

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

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 exte

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] 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 nee

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 validates

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] 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 t

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 [E

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] => Arr

[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 conte

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

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 on the

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

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-se&q=css+discussion +list&ie=UTF-8&oe=UTF-8 http://www.google.com/search?rls=sv-se&q=why+ie+sucks&ie=UTF-8&oe=UTF-8 http://whyiesucks.blogspot.com/ //frank 9 maj 2007 kl. 15.13 skrev Far

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

[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 in

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: H

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 charact

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 you

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 unsub

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 g

[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 /tidy_wrapper.php

Re: [PHP] Problem with wrapper script for Tidy

2006-08-05 Thread Frank Arensmeier
HP, I'm not sure what you mean, but I 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 sc

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 200

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/ P

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] 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] 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 s

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 1

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 l

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

[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
Thank you Ilaria and Roman for your input. I did not know that preg is able to deal with PCRE patterns. As a matter of fact I came up with the following solution (if someone is interested): the function takes a text and an array with converters like: $converters[] = array ( "metric" => "mm",

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 w

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 ha

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 mod_rewrit

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

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 y

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

Re: [PHP] why so slow?

2006-11-01 Thread Frank Arensmeier
ave seen this happen 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

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 a

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] 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] / 2006-11-

[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] 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

  1   2   >