[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 (search.p

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.''.$output; My g

Re: [PHP] correct character decoding

2011-08-30 Thread Merlin Morgenstern
be the most elegant version, but I 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 <mailto:merlin.

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.''.$output; My g

[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'); $

[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.''.$output; My goal is to decode the utf8, trim the input and encode with urlencode(); This is the string

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

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

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) \\1'; $k++;

[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üß

[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 = shel

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

[PHP] zip_entry_read buggy? runs endless on file with crc-error - freezes on corrupt file

2010-12-08 Thread Merlin Morgenstern
Hi there, I am running a php file via cron where zip files will be extracted with the help of zip_entry_read. This worked great until I had a corrupted zip file to extract. This braught the server down as the php script never ended. The function max_execution_time does not help as it zip is a

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

[PHP] configure php 5.2.12 with-pdflib failes after upgrade from php 5.2.9

2010-06-11 Thread Merlin Morgenstern
Hi there, I had a working version 5.2.9 running on my suse system. Then I upgraded to 5.2.12 with the same configure command. Unfortunatelly I lost pdf creation now. Here is what the configure output says: Notice: Following unknown configure options were used: --with-pdflib=/usr/local/lib C

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 if this i

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

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

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

Re: [PHP] 404 redirects "stolen" by provider

2010-04-10 Thread Merlin Morgenstern
Am 09.04.2010 23:15, schrieb Peter Lind: On 9 April 2010 23:08, Merlin Morgenstern wrote: Am 09.04.2010 22:58, schrieb Peter Lind: On 9 April 2010 22:20, Merlin Morgensternwrote: This sounds like the best solution to me. The only problem is that my regex knowledge is

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 Morgenstern 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 above rule will try

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 with

[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] logic operands problem

2009-12-07 Thread Merlin Morgenstern
ace unset($shift); } unset($booked); } while ($shift); // shift as long as we find free space } ######## This is rather a dirty solution. Maybe someon

Re: [PHP] Re: logic operands problem

2009-12-07 Thread Merlin Morgenstern
t two different 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" To: "Merlin Morgenstern" Cc: "Peter Ford" ; Sent: M

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

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 AND

[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
age=2 OR page= 3 , 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 mailto:merli...@fastmail.fm>> wrote: Hello everybody, I am having trouble finding a logic for following problem:

[PHP] logic operands problem

2009-12-07 Thread Merlin Morgenstern
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 not work: (page = 1 OR page = 3) OR (page = 2 OR

Re: [PHP] amount of overlaping dates

2009-12-03 Thread Merlin Morgenstern
David Otton wrote: 2009/12/3 Merlin Morgenstern : 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

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

[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

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

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

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] 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] 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 - But not

Re: [PHP] regex for multiple line breakes

2009-10-14 Thread Merlin Morgenstern
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]); ____

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

2009-09-28 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Mon, 2009-09-28 at 12:27 +0200, Merlin Morgenstern wrote: Hi there, I am trying to find out similarity between 2 strings. Somehow the similar_text function returns 33% similarity on strings that are not even close and on the other hand it returns 21% on strings

[PHP] Text similarity

2009-09-28 Thread Merlin Morgenstern
Hi there, I am trying to find out similarity between 2 strings. Somehow the similar_text function returns 33% similarity on strings that are not even close and on the other hand it returns 21% on strings that have a matching word. E.G: 'gemütliche sofas' Wohngemeinschaften - similarity: 33

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 a

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

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

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

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

[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] 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");

Re: [PHP] Regex not working with ":"

2009-04-22 Thread Merlin Morgenstern
ef 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

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

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 als

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

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

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

2009-04-08 Thread Merlin Morgenstern
Paul Gregg wrote: In mail.php.general, 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

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

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, &q

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

[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));

Re: [PHP] extracting text - regex

2009-04-08 Thread Merlin Morgenstern
$echo_output = TRUE; } if (strpos($eos,"<\div>") !== FALSE) { $echo_output = FALSE; } if ($echo_output == TRUE) { echo $eos; } } fclose($handle); } ?> On Wed, Apr 8, 2009 at 8:30 AM, Per Jessen wrote: Merlin Morgenstern wrote: Hell

[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: bla blub I would like to extract the text "bla blub" out of this example. Has anybody an idea on how to do that? Is there a special php

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

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 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, but somehow php

[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=de&q=enable-zend-multibyte&btnG=Google-Suche&meta= Loads of postings that do not look that good. What are all the chinese sites do? It is strange t

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

2009-03-30 Thread Merlin Morgenstern
n on php.net regarding this support. Thiago H. Pojda wrote: On Mon, Mar 30, 2009 at 12:42 PM, Merlin Morgenstern wrote: 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 what

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

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

Re: [PHP] Re: compiling php with libjpg64

2009-03-04 Thread Merlin Morgenstern
85606/ 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

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' '--with-apxs2=/usr/local/ap

[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: 88 In that case I retrieve the info: $xml->anbieternr But now the tag looks different like this: 88 The command $xml->imo:anbieternr does not work in that case. Has somebody an idea how to adress

[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: default_

[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] 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] 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] = $xml->anb

[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. May

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 t

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

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

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

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

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

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=158&t=35941&start=0 All point to the fact that there needs

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

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

[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 is_readable(

Re: [PHP] Adressing XML Objects

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

Re: [PHP] Adressing XML Objects

2009-01-08 Thread Merlin Morgenstern
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 mailto:merli...@fastmail.fm>> wrote: Hi there, I am justing walking my first steps on XML

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 mailto:merli...@fastmail.fm>> wrote: Hi there, I am justing walking my first steps on XML and PHP. As I learned

[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: This does not work: echo $xml->anbieter->immobilie->anhaenge->

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

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

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

2009-01-05 Thread Merlin Morgenstern
ook into existing web based mgmt apps for FTP 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,

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 not be

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

[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

  1   2   >