Re: [PHP] utf8_decode() not working, conflicts with urlencode()

2011-08-31 Thread Merlin Morgenstern
Am 30.08.2011 12:11, schrieb Per Jessen: Merlin Morgenstern wrote: Hi there, I am having some trouble with utf8_decode(). Somehow the function returns output=input e.g.: $input = '%20%C3%9Cbersetzung%20franz'; $output = utf8_decode($input); echo $input.'br'.$output; My goal is to decode

[PHP] Hide php action pages from google

2011-08-31 Thread Merlin Morgenstern
Hi there, I do have a search form on my site which posts search queries to follogin URL: /subapp_search/search.php Depending on the search parameters it will then redirect to the appropriate URL. e.g.: /suche/labrador I now discovered in google webmastertools that this very page

[PHP] utf8_decode() not working, conflicts with urlencode()

2011-08-30 Thread Merlin Morgenstern
Hi there, I am having some trouble with utf8_decode(). Somehow the function returns output=input e.g.: $input = '%20%C3%9Cbersetzung%20franz'; $output = utf8_decode($input); echo $input.'br'.$output; My goal is to decode the utf8, trim the input and encode with urlencode(); This is the

[PHP] correct character decoding

2011-08-30 Thread Merlin Morgenstern
Hi there, I am trying to find a solution for decoding the same string from 2 different character sets (UTF-8, Latin-1) Looks like in the case of latin-1 I need to add utf8_encode before to get the same results. Here is an example // utf-8 $input = urldecode('%20%C3%9Cbersetzung%20franz');

Re: [PHP] utf8_decode() not working, conflicts with urlencode()

2011-08-30 Thread Merlin Morgenstern
Am 30.08.2011 12:11, schrieb Per Jessen: Merlin Morgenstern wrote: Hi there, I am having some trouble with utf8_decode(). Somehow the function returns output=input e.g.: $input = '%20%C3%9Cbersetzung%20franz'; $output = utf8_decode($input); echo $input.'br'.$output; My goal is to decode

Re: [PHP] correct character decoding

2011-08-30 Thread Merlin Morgenstern
can't think of anything simpler right now. sincerely louis Hello Louis, thank you that solved the problem. Looks like I did not use the mb_detect_encoding properly in my tests. Regards, Merlin 2011/8/30 Merlin Morgenstern merlin.morgenst...@googlemail.com mailto:merlin.morgenst

[PHP] notices nightmare - looking for a regex solution

2011-06-01 Thread Merlin Morgenstern
Hi there, I am working on a pretty huge site with thousands of files with php code. Unfortunatelly the app throws a ton of notices du to missing '' in arrays. Of course I could simply disable the output on the dev server to surpress notices, but I would rather like to get it fixed. Has

Re: [PHP] preg_replace question

2011-01-25 Thread Merlin Morgenstern
Am 24.01.2011 18:08, schrieb Alex Nikitin: If you declare your arrays, and set k to 0 first, put quotes around array values and use the correct limit (you can default to -1), you will get results, here is code and example (hopefully this helps you) ?php function internal_links($str,

Re: [PHP] preg_replace question

2011-01-25 Thread Merlin Morgenstern
Am 25.01.2011 12:31, schrieb Merlin Morgenstern: Am 24.01.2011 18:08, schrieb Alex Nikitin: If you declare your arrays, and set k to 0 first, put quotes around array values and use the correct limit (you can default to -1), you will get results, here is code and example (hopefully this helps

[PHP] preg_replace question

2011-01-24 Thread Merlin Morgenstern
Hi there, I am trying to replace certain words inside a text with php. Unfortunatelly my function is creating invalid html as output. For example the words beagle and welpen have to be replaced inside this text: süße knuffige Beagle Welpen ab sofort My result looks like this: zwei süße

[PHP] Autorename extracted files from zip-archive

2011-01-19 Thread Merlin Morgenstern
Hello, I am using shell_exec to uncompress zip files which works fine, but has one big problem. Whenever the zip-archive containes an already existing file name, it will overwrite the current one. I need the file to be extracted and autorenamed. This is the code line: $output =

[PHP] Hot to replace words with preg_replace without duplicates

2010-12-18 Thread Merlin Morgenstern
Hi there, I want to create a function which will replace certain words out of a text with internal links. That works so far, but if I have two matches, I end up with invalid html code. Example: Welpen /hunde Chihuahua Welpen/hunde,chihuahua function

[PHP] export from one server to another

2010-06-15 Thread Merlin Morgenstern
HI there, I am thinking about building a partner network where partners can export content to my server which will then be imported. It should be as easy as possible for the partner and not rely on any special php functions. The best way to do this I guess is to deliver them a php file

Re: [PHP] Finding similar results with php from mysql

2010-05-08 Thread Merlin Morgenstern
Am 08.05.2010 03:04, schrieb David McGlone: On Friday 07 May 2010 19:37:32 Merlin Morgenstern wrote: Hi there, I am searching for a way to show the user similar records from the mysql database. A functionality like this could also be of interest to you. Does anybody know

[PHP] Finding similar results with php from mysql

2010-05-07 Thread Merlin Morgenstern
Hi there, I am searching for a way to show the user similar records from the mysql database. A functionality like this could also be of interest to you. Does anybody know if this is there is a standard functionality to do this, or a good way on retrieving this with the help of PHP? Kind

[PHP] classes and variables

2010-05-03 Thread Merlin Morgenstern
Hi there, I am new to classes in PHP and do want to change a class that has been in a package I downloaded. I do simply want to access a variable from outside. This is the code: class search_helper extends AjaxACApplication { //global $DB; var $db_database =

[PHP] finding out datasets in a certain distance of a zip code

2010-04-27 Thread Merlin Morgenstern
Hi there, I am trying to find mysql db entries inside a tabel with the help of php that are in the distance of a certain amount of kilometers from a given zip code. Unfortunatelly something must be wrong, as I do not get the desired results. Has anybody experience with that? Here is the

[PHP] Saving form data into session before leaving a page

2010-04-13 Thread Merlin Morgenstern
Hello everybody, I have form where users enter data to be saved in a db. How can I make php save the form data into a session before the user leaves the page without pressing the submit button? Some members leave the page and return afterwards wondering where their already entered data is.

[PHP] 404 redirects stolen by provider

2010-04-09 Thread Merlin Morgenstern
Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs with usernames like this: www.server.com/username The PHP script search_user.php looks in a db if the user name is

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Merlin Morgenstern
Am 09.04.2010 21:53, schrieb Ashley Sheridan: On Fri, 2010-04-09 at 21:29 +0200, Merlin Morgenstern wrote: Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Merlin Morgenstern
Am 09.04.2010 22:58, schrieb Peter Lind: On 9 April 2010 22:20, Merlin Morgensternmerli...@fastmail.fm wrote: This sounds like the best solution to me. The only problem is that my regex knowledge is pretty limited. The command: RewriteRule ^(.+) /subapp_members/search_user.php The

Re: [PHP] logic operands problem

2009-12-07 Thread Merlin Morgenstern
, But the result should never contain page = 1 and page = 2 in the same time. Any further idea? On Mon, Dec 7, 2009 at 4:22 PM, Merlin Morgenstern merli...@fastmail.fm mailto:merli...@fastmail.fm wrote: Hello everybody, I am having trouble finding a logic for following problem

[PHP] Re: logic operands problem

2009-12-07 Thread Merlin Morgenstern
Peter Ford wrote: Merlin Morgenstern wrote: Hello everybody, I am having trouble finding a logic for following problem: Should be true if: page = 1 OR page = 3, but it should also be true if page = 2 OR page = 3 The result should never contain 1 AND 2 in the same time. This obviously does

Re: [PHP] logic operands problem

2009-12-07 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Mon, 2009-12-07 at 11:52 +0100, Merlin Morgenstern wrote: Hello everybody, I am having trouble finding a logic for following problem: Should be true if: page = 1 OR page = 3, but it should also be true if page = 2 OR page = 3 The result should never contain 1

Re: [PHP] Re: logic operands problem

2009-12-07 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Mon, 2009-12-07 at 12:37 +0100, Merlin Morgenstern wrote: Peter Ford wrote: Merlin Morgenstern wrote: Hello everybody, I am having trouble finding a logic for following problem: Should be true if: page = 1 OR page = 3, but it should also be true if page = 2

Re: [PHP] Re: logic operands problem

2009-12-07 Thread Merlin Morgenstern
recordsets: one with page 1 and 3, and another with 2 and 3, am I right? SanTa Yes, you are right. Any ideas on how to do this within one query? - Original Message - From: Ashley Sheridan a...@ashleysheridan.co.uk To: Merlin Morgenstern merli...@fastmail.fm Cc: Peter Ford p...@justcroft.com

Re: [PHP] logic operands problem

2009-12-07 Thread Merlin Morgenstern
line that is different instead of checking it all over again for a second time. Any ideas? Kim Madsen wrote: Hey Merlin Merlin Morgenstern wrote on 2009-12-07 11:52: Hello everybody, I am having trouble finding a logic for following problem: Should be true if: page = 1 OR page = 3

[PHP] Finding out the first possible booking date with php

2009-12-03 Thread Merlin Morgenstern
Hello everybody, I am pretty much stuck with a problem and I was hoping to find some help here with you guys. A PHP Script with MySQL as DB has to find out the first possible booking period available. I can't figure out the logic behind and if there is a trick with PHP to do it. Following

[PHP] amount of overlaping dates

2009-12-03 Thread Merlin Morgenstern
Hello again, I am searching for a way to identify the amount of simultanious date ranges. Example: array start=('1.12', '5.12', '9.12'); array end =('8.12', '12.12', '16.12'); Looks like this in a table: start end 1.128.12 5.1212.12 9.1216.12 Obviously the first and last

Re: [PHP] amount of overlaping dates

2009-12-03 Thread Merlin Morgenstern
David Otton wrote: 2009/12/3 Merlin Morgenstern merli...@fastmail.fm: I am searching for a way to identify the amount of simultanious date ranges. Example: array start=('1.12', '5.12', '9.12'); array end =('8.12', '12.12', '16.12'); Looks like this in a table: start end 1.128.12

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Merlin Morgenstern
is called Raxan. Here's an example of what it can do: http://raxanpdi.com/form-state-example.html __ Raymond Irving *From:* Merlin Morgenstern merli...@fastmail.fm *To:* php-general@lists.php.net *Sent:* Tue, November 24, 2009 12

[PHP] processing html forms and keeping the values

2009-11-24 Thread Merlin Morgenstern
Hi there, I am trying to redirect a user back to a html form if a validation failes. The form shoult then hold all entered values. So far I did this over $_GET, but there is a 100 Character limitation. How could I do this while keeping all characters? Thank you for any hint, Merlin -- PHP

Re: [PHP] processing html forms and keeping the values

2009-11-24 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Tue, 2009-11-24 at 18:14 +0100, Merlin Morgenstern wrote: Hi there, I am trying to redirect a user back to a html form if a validation failes. The form shoult then hold all entered values. So far I did this over $_GET, but there is a 100 Character limitation. How

[PHP] regex for multiple line breakes

2009-10-14 Thread Merlin Morgenstern
Hi there, I am trying to remove multiple linebreakes from a textarea input. Spammers tend to insert multiple line breakes. The problem is, that I want to allow 2 line breaks so basic formating should be allowed. I am doing this by regex: $data[txt] = preg_replace('`[\r\n]+`',\n,$data[txt]);

Re: [PHP] regex for multiple line breakes

2009-10-14 Thread Merlin Morgenstern
are replacing 1 or more matchs of a new line. To match 2 or more you can use {2,}. It's a range, first number means min matches, second max matches. Omitting last number means no max limit. $data[txt] = preg_replace('`[\r\n]{2,}`',\n,$data[txt]); De: Merlin

Re: [PHP] regex for multiple line breakes

2009-10-14 Thread Merlin Morgenstern
Ashley Sheridan schrieb: On Wed, 2009-10-14 at 12:42 +0200, Merlin Morgenstern wrote: That sounds very logical but does not work unfortunatelly. The result is the same. It removes all linebreakes but one. I would like to pass this one: - first line second third

[PHP] Help on pregreplace

2009-08-18 Thread Merlin Morgenstern
Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find a fix. Can someone help? Here is the code: $pattern = /\b($words)\b/is;

Re: [PHP] Help on pregreplace

2009-08-18 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Tue, 2009-08-18 at 16:00 +0200, Merlin Morgenstern wrote: Hi there, I am highlighting keywords with the help of pregreplace. This works great with one limitation. If the word that has to be replaced contains a slash, preg throws an error. So far I could not find

[PHP] regex - filtering out chinese utf8 characters

2009-07-30 Thread Merlin Morgenstern
Hi there, I am trying to filter out content that is not ascii. Can I do this with regex? For example: $regex = '[AZ][09]'; if (preg_match($regex, $text)) { return TRUE; } else { return FALSE; } The reason I need to do

[PHP] detecting spam keywords with stripos

2009-05-29 Thread Merlin Morgenstern
Hi there, I am matching text against an array of keywords to detect spam. Unfortunatelly there are some false positives due to the fact that stripos also finds the keyword inside a word. E.G. Bewerbung - Werbung First thought: use strpos, but this does not help in all cases Second thought:

Re: [PHP] detecting spam keywords with stripos

2009-05-29 Thread Merlin Morgenstern
Per Jessen wrote: Merlin Morgenstern wrote: Hi there, I am matching text against an array of keywords to detect spam. Unfortunatelly there are some false positives due to the fact that stripos also finds the keyword inside a word. E.G. Bewerbung - Werbung First thought: use strpos

[PHP] unzip a file - destination folder wrong

2009-04-23 Thread Merlin Morgenstern
Hi there, I am trying to unzip a zip file. Therefore I am using this function: # unzip a file function extract_zipfile($filename){ $zip = zip_open($filename); if ($zip) { while ($zip_entry = zip_read($zip)) { $fp = fopen(zip_entry_name($zip_entry), w);

[PHP] Re: unzip a file - destination folder wrong

2009-04-23 Thread Merlin Morgenstern
Shawn McKenzie wrote: Merlin Morgenstern wrote: Hi there, I am trying to unzip a zip file. Therefore I am using this function: # unzip a file function extract_zipfile($filename){ $zip = zip_open($filename); if ($zip) { while ($zip_entry = zip_read($zip)) { $fp = fopen

[PHP] Regex not working with :

2009-04-22 Thread Merlin Morgenstern
Hi there, I am trying to remove a text which does contain a : inside. Somehow the regex does not match, no matter what I do: $contents = mb_ereg_replace('^(.*)this is the test: replace(.*)$', '', $contents ,'UTF-8'); Looks like this is a result of the :. Does anybody have an idea how to

Re: [PHP] Regex not working with :

2009-04-22 Thread Merlin Morgenstern
that it's the :? HTH, Kyle -Original Message- From: Merlin Morgenstern [mailto:merli...@fastmail.fm] Sent: Wednesday, April 22, 2009 4:09 AM To: php-general@lists.php.net Subject: [PHP] Regex not working with : Hi there, I am trying to remove a text which does contain a : inside. Somehow

[PHP] preg_match and multibyte

2009-04-09 Thread Merlin Morgenstern
Hello, I am trying to extract a number out of a string that is in utf-8 and contains chines characters. This unfortunatelly does not work: preg_match('{(\d+)}', $details, $m); $number = $m[1]; I also tried to utf8decode it, but still, no luck. Does anybody

Re: [PHP] preg_match and multibyte

2009-04-09 Thread Merlin Morgenstern
tedd wrote: At 4:18 PM +0200 4/9/09, Merlin Morgenstern wrote: Hello, I am trying to extract a number out of a string that is in utf-8 and contains chines characters. This unfortunatelly does not work: preg_match('{(\d+)}', $details, $m); $number = $m[1]; I also tried

[PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
Hello, I am trying read text out of a text that is inbetween two divs. Somehow this should be possible with regex, I just can't figure out how. Example: div id=test bla blub /div I would like to extract the text bla blub out of this example. Has anybody an idea on how to do that? Is there

Re: [PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
== TRUE) { echo $eos; } } fclose($handle); } ? On Wed, Apr 8, 2009 at 8:30 AM, Per Jessen p...@computer.org wrote: Merlin Morgenstern wrote: Hello, I am trying read text out of a text that is inbetween two divs. Somehow this should be possible with regex, I just can't

[PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In order to do this I do: $handle = fopen($file, r); $contents = fread($handle, filesize($file));

[PHP] Re: opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Merlin Morgenstern wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In order to do this I do: $handle = fopen($file, r); $contents = fread

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Per Jessen wrote: Merlin Morgenstern wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In order to do this I do: $handle = fopen($file, r

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Andrew Ballard wrote: On Wed, Apr 8, 2009 at 11:38 AM, Per Jessen p...@computer.org wrote: Merlin Morgenstern wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Paul Gregg wrote: In mail.php.general, Merlin Morgenstern merli...@fastmail.fm wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some text from the file. In order

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Merlin Morgenstern
Merlin Morgenstern wrote: Paul Gregg wrote: In mail.php.general, Merlin Morgenstern merli...@fastmail.fm wrote: Hello everybody, I am having some trouble with utf-8 encoding. The html file containes chinese characters and looks ok, when opened in a browser. Now I want to extract some

[PHP] php bug from 2003 still alive?!

2009-03-30 Thread Merlin Morgenstern
Hello, I am experiencing problems with utf-8 and php. There seems to be a problem with BOM. Some postings say that I have to compile php with --enable-zend-multibyte. HOwever those postings are very old (2003!). http://bugs.php.net/bug.php?id=22108 Is this still necessary with the newest

[PHP] Re: php bug from 2003 still alive?! - UTF8 BOM

2009-03-30 Thread Merlin Morgenstern
Hello everybody, has anybody an idea on how to fix this? Is it really necessary to recomplile for utf-8 BOM support? Regards, Merlin Merlin Morgenstern wrote: Hello, I am experiencing problems with utf-8 and php. There seems to be a problem with BOM. Some postings say that I have

Re: [PHP] php bug from 2003 still alive?!

2009-03-30 Thread Merlin Morgenstern
regarding this support. Thiago H. Pojda wrote: On Mon, Mar 30, 2009 at 12:42 PM, Merlin Morgenstern merli...@fastmail.fmwrote: Some postings say that I have to compile php with --enable-zend-multibyte. HOwever those postings are very old (2003!). http://bugs.php.net/bug.php?id=22108 Did you see

[PHP] UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - )

2009-03-30 Thread Merlin Morgenstern
, Merlin Merlin Morgenstern wrote: Yes I was reading about this. However, try to do a search on this: http://www.google.de/search?hl=deq=enable-zend-multibytebtnG=Google-Suchemeta= Loads of postings that do not look that good. What are all the chinese sites do? It is strange

Re: [PHP] UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - )

2009-03-30 Thread Merlin Morgenstern
haliphax wrote: On Mon, Mar 30, 2009 at 12:34 PM, Merlin Morgenstern merli...@fastmail.fm wrote: HI there, I now compiled php with zend multibyte. The trouble with the extra characters is now gone, but all special characters are now replaced with a questionmark! The document type shows utf-8

[PHP] Working in UTF-8 - BOM trouble

2009-03-30 Thread Merlin Morgenstern
Hi there, I am having trouble to switch with an i18n project to utf-8. The problem is, that php has trouble with files that are saved in UTF-8 with BOM. It is causing strange bahavior like adding extra headers. On the other hand most editors only save UTF-8 with BOM. Has somebody

Re: [PHP] Re: compiling php with libjpg64

2009-03-04 Thread Merlin Morgenstern
/ otherwise: http://www.google.com/search?q=compile+php+64+bit+libs Merlin Morgenstern schreef: Hi everybody, I have to compile from source for several reasons. Any idea on how to fix this particular problem with the lib64? Regards, merlin Shawn McKenzie schrieb: Ashley Sheridan wrote

Re: [PHP] Re: compiling php with libjpg64

2009-02-28 Thread Merlin Morgenstern
Hi everybody, I have to compile from source for several reasons. Any idea on how to fix this particular problem with the lib64? Regards, merlin Shawn McKenzie schrieb: Ashley Sheridan wrote: On Fri, 2009-02-27 at 12:43 -0600, Shawn McKenzie wrote: Merlin Morgenstern wrote: Hi there, I

[PHP] compiling php with libjpg64

2009-02-27 Thread Merlin Morgenstern
Hi there, I am trying to get a 64 bit suse 10.3 system to run with php 5. Somehow it does not recognize the libjpg which is definatelly in place: server:/home/sw/php-5.2.9 # './configure' '--enable-fastcgi' '--with-mysql=/usr/local/mysql' '--prefix=/usr/local/php'

[PHP] Converting Euro sign

2009-02-26 Thread Merlin Morgenstern
Hello everybody, I have an xml-file where a euro sign is in. Now the sign shows up as questionmark after importing into a mysql db. On the utf_8_decode site I found that iconv will help here, but first of all I do not even know if the xml file is utf8encoded (I doubt it), and secondly I do

[PHP] XML and :

2009-02-24 Thread Merlin Morgenstern
Hi there, I am trying to pars an XML file with php. This works if the xml tag looks like this: anbieternr88/anbieternr In that case I retrieve the info: $xml-anbieternr But now the tag looks different like this: imo:anbieternr88/imo:anbieternr The command $xml-imo:anbieternr does not work

[PHP] German characters Ö,Ä etc. show up as ?

2009-02-05 Thread Merlin Morgenstern
Hi there, I recently upgraded on my prod system from php 4.x to the newest php version. Now german characters lik Ö show up as ?. I have the same setup running on a test server, where the characters show up OK. After searching on Google I found that there is an entry in the php.ini:

[PHP] unlink file rights problem

2009-01-28 Thread Merlin Morgenstern
Hi there, I am trying to unlink a file which is inside a folder that is not writable to phps user www. Of course this failes, but I need to find a solution for it. Backgroud is following: I have pure-ftpd installed where user directories get created by pure-ftpd. Unfortunatelly there seems

[PHP] importing from XML-files

2009-01-22 Thread Merlin Morgenstern
Hi everybody, I am creating an import script which is getting data out of an xml file. Now I do have a problem with a file where 2 images are included. I need to access the second image name, but can not find out how. I do: $xml = simplexml_load_file($files[$i]); $data[pic1_base64] =

[PHP] Re: importing from XML-files

2009-01-22 Thread Merlin Morgenstern
Carlos Medina wrote: Merlin Morgenstern schrieb: Hi everybody, I am creating an import script which is getting data out of an xml file. Now I do have a problem with a file where 2 images are included. I need to access the second image name, but can not find out how. I do: $xml

[PHP] libphp5.so error

2009-01-17 Thread Merlin Morgenstern
Hi there, I have installed php5.2.8 successfully on my suse test system. Now I want to reproduce it on my prod system, but there is an error I can't find a solution for. I compiled php and the I did run configtest on apache 1.x /etc/init.d/apachectl configtest Syntax error on line 223 of

[PHP] Re: libphp5.so error

2009-01-17 Thread Merlin Morgenstern
Hi there, I could solve this error. It was due to not compiling php with mdo which is needed for mysql 3.x Now I am running into a new strange error :-( Will post into a new topic. Best regards, Merlin Merlin Morgenstern schrieb: Hi there, I have installed php5.2.8 successfully on my

[PHP] php5 with apache 1.x - white page

2009-01-17 Thread Merlin Morgenstern
Hi there, after strugling a while with the installation of php5 on an older suse system with mysql 3.x and apache 1.x I got it compiled and installed. Apache starts and there are processes running, even the access log shows access to it. Response is 500 (internal error). The page itself

[PHP] Re: php5 with apache 1.x - white page

2009-01-17 Thread Merlin Morgenstern
got it :-) Both are needed! --with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/' Merlin Morgenstern schrieb: Hi there, after strugling a while with the installation of php5 on an older suse system with mysql 3.x and apache 1.x I got it compiled and installed. Apache starts

Re: [PHP] Re: php5 with apache 1.x - white page

2009-01-17 Thread Merlin Morgenstern
Ashley Sheridan schrieb: On Sat, 2009-01-17 at 15:31 +, Nathan Rixham wrote: Merlin Morgenstern wrote: got it :-) Both are needed! --with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/' Merlin Morgenstern schrieb: Hi there, after strugling a while with the installation

[PHP] PMA_List_Database

2009-01-17 Thread Merlin Morgenstern
Hi guys.. here comes the last question for today :-) Everything works fine. My Apps run beautiful with php5. The only thing now left which does not work ist phpmyadmin. I googled the error msg, but could only find servers which had the same problem. No solution to find. Config looks fine.

Re: [PHP] upgrade php 5.2.6 - 5.2.8 mysql problems!

2009-01-13 Thread Merlin Morgenstern
Hi there, has somebody an idea how to fix this? I do appreciate any help. Thank you in advance, Merlin Merlin Morgenstern wrote: No. The with-pdo-mysql command secures compatibility with oder databases . That workes fine. The yes in the error msg. seams to be normal in this case. I found

[PHP] installing php 5 with pdflib

2009-01-13 Thread 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/install.pecl.static.htm The configure command stops

[PHP] update von php 4.4.6 zu 5.2.8

2009-01-12 Thread Merlin Morgenstern
Hello everybody, I want to upgrade my system and do face some trouble with pdflib. compile says: Notice: Following unknown configure options were used: --enable-gd-imgstrttf --with-pdflib I guess the gd functionality is enabled now anyway? How about the pdflib? Is there another command for

[PHP] upgrade php 5.2.6 - 5.2.8 mysql problems!

2009-01-12 Thread Merlin Morgenstern
Hello everybody, I am trying to update php 5.2.6 to 5.2.8 on a test system. Somehow it can not find the working mysql installation. With 5.2.6 I everything is fine. Here is the configure command that is pretty much the same as in 5.2.6: './configure' '--enable-fastcgi' '--with-mysql'

Re: [PHP] upgrade php 5.2.6 - 5.2.8 mysql problems!

2009-01-12 Thread Merlin Morgenstern
No. The with-pdo-mysql command secures compatibility with oder databases . That workes fine. The yes in the error msg. seams to be normal in this case. I found loads of such via google. e.g: http://www.rootforum.de/forum/viewtopic.php?f=158t=35941start=0 All point to the fact that there needs

[PHP] is_readable() returns 1 if file is still uploading

2009-01-10 Thread Merlin Morgenstern
Hi there, I am importing data out of xml files on a linux server. Now I am running into problems if the file is currently beeing uploaded and the upload has not finished to the server. Is there a function which returns true if the file is complete and not in upload status? I tried

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Merlin Morgenstern
you for any hint. Best regards, Merlin Merlin Morgenstern schrieb: Hello Nathan, I upgraded to PHP 5, so I am using nativ support. Best regards, Merlin Nathan Nobbe schrieb: On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern merli...@fastmail.fm mailto:merli...@fastmail.fm wrote: Hi

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Merlin Morgenstern
, Jan 8, 2009 at 4:02 PM, Merlin Morgenstern merli...@fastmail.fm mailto:merli...@fastmail.fmwrote: Hello nathan, I am unsing simplexml as it looks really simple :-) However, I could still not figure out how to adress data inside tags

[PHP] XML package on PHP

2009-01-07 Thread Merlin Morgenstern
Hi there, I need pars an xml file with php 4. There seems to be a good package out there active link xml. However, last development was 2004. Is there something new around which you would recommend over active link? Thank you for any hints. Best regards, Merlin -- PHP General Mailing List

Re: [PHP] XML package on PHP

2009-01-07 Thread Merlin Morgenstern
^THANX: Will upgrade to php5. c...@l-i-e.com wrote: XML in PHP4? Don't. :-) It was very painful and with all kinds of quirks, from my limited experience. PHP5 was a breeze. Consider hosting a quick/easy service on a PHP5 box to convert XML to PHP serialized data or something as well. Could

[PHP] Adressing XML Objects

2009-01-07 Thread Merlin Morgenstern
Hi there, I am justing walking my first steps on XML and PHP. As I learned from a tutorial adressing is very simple: echo $xml-anbieter-immobilie-preise-kaufpreis; I simply just can't figure out how to adress this structure: anhang location=INTERN gruppe=TITELBILD This does not work: echo

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Merlin Morgenstern
Hello Nathan, I upgraded to PHP 5, so I am using nativ support. Best regards, Merlin Nathan Nobbe schrieb: On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern merli...@fastmail.fm mailto:merli...@fastmail.fm wrote: Hi there, I am justing walking my first steps on XML and PHP. As I

[PHP] setting up FTP account names via PHP

2009-01-05 Thread Merlin Morgenstern
Hello everybody, I am running a real estate site where I would like to enable bulk upload via real estate software that exports an xml file into an ftp account. In order to give every user unique access I would need to generate individual ftp name and passwords for each member. I can not see

Re: [PHP] setting up FTP account names via PHP

2009-01-05 Thread Merlin Morgenstern
Is there a good FTP Daemon that can be recommended for this purpose? pure-ftpd seams out of development since 2006. Jason Pruim wrote: On Jan 5, 2009, at 9:55 AM, Merlin Morgenstern wrote: Yes, it would be great if he could use the already existing username and password. It should

Re: [PHP] setting up FTP account names via PHP

2009-01-05 Thread Merlin Morgenstern
create a one time user/passwd for the user so that it changes each time they access the FTP server? -Original Message- From: Merlin Morgenstern [mailto:merli...@fastmail.fm] Sent: Monday, January 05, 2009 6:44 AM To: php-general@lists.php.net Subject: Re: [PHP] setting up FTP account names

Re: [PHP] setting up FTP account names via PHP

2009-01-05 Thread Merlin Morgenstern
Marc Steinert wrote: Merlin Morgenstern schrieb: Hello everybody, I am running a real estate site where I would like to enable bulk upload via real estate software that exports an xml file into an ftp account. In order to give every user unique access I would need to generate individual

Re: [PHP] setting up FTP account names via PHP

2009-01-05 Thread Merlin Morgenstern
servers to see if any already exist. -Original Message- From: Merlin Morgenstern [mailto:merli...@fastmail.fm] Sent: Monday, January 05, 2009 6:56 AM To: php-general@lists.php.net Subject: Re: [PHP] setting up FTP account names via PHP Yes, it would be great if he could use the already

[PHP] Import files from directory

2009-01-05 Thread Merlin Morgenstern
Hi everybody, I am running a real estate portal and would like to allow users to upload their listing from their existing software. They do this with a XML file which they will upload on a ftp server that places this xml file into a seperate directory on the file system. My basic idea was

[PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Merlin Morgenstern
Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local/bin/php /home/www/create_notification_emails.php?tf=2 Could not open input file: /home/www/create_notification_emails.php?tf=2 The problem seems to be

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Merlin Morgenstern
Hello Jochem, thank you this has solved my problem: bla.php 2 $tf = $argv[1]; Best regards, Merlin Jochem Maas wrote: Merlin Morgenstern schreef: Hi there, I would like to run a php file via cron job and there is a parameter to be passed. Unfortunatelly this does not work: # /usr/local

Re: [PHP] Individual bulk e-mails - performance question (was skinning a cat) :-)

2008-09-01 Thread Merlin Morgenstern
Per Jessen schrieb: Jochem Maas wrote: lockfile=/var/lock//file # clear out a lock older than 60mins find $lockfile -cmin +60 | xargs rm test ! -f $lockfile ( touch $lockfile run some php rm -f $lockfile ) wouldn't creating a dir be better here? (with regard to atomicity) I haven't

Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-20 Thread Merlin Morgenstern
Richard Lynch schrieb: On Tue, December 18, 2007 8:41 am, Merlin Morgenstern wrote: I am running a small community page with PHP. Members can select notification e-mails on comments etc. Since today those e-mails - or basically all e-mails from the system - get taged as spam with a score

[PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Merlin Morgenstern
Hi there, I am running a small community page with PHP. Members can select notification e-mails on comments etc. Since today those e-mails - or basically all e-mails from the system - get taged as spam with a score of 3.5 that totally results to BAYES_99. How come? I am using PHP-Mailer

Re: [PHP] Ham marked as Spam with BAYES_99 - PhpMailer to old?

2007-12-18 Thread Merlin Morgenstern
Hello everybody, thank you for the reply. Stut schrieb: Merlin Morgenstern wrote: I am running a small community page with PHP. Members can select notification e-mails on comments etc. Since today those e-mails - or basically all e-mails from the system - get taged as spam with a score

  1   2   >