[PHP] PECL-Haru and UTF-8

2013-05-05 Thread Puiu Hrenciuc
Hello, Does anyone have experience with using Haru extension for creating PDF files containing UTF-8 encoded characters? I saw that UTF-8 encoding was added to libHaru 2.3.0RC1 ( see http://libharu.org/ ), but I did not find support for this in latest PECL-Haru (1.0.4). Am I missing something? T

[PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Puiu Hrenciuc
Hi, The simplest way (actually the single way I know :) ) would be to capture the output using output buffering functions, something like this: // start output buffering ob_start(); // include the file that generates the HTML (or whatever content) include ""; // get output buffer content $

[PHP] Re: scaling images

2007-09-20 Thread Puiu Hrenciuc
Hulf wrote: Sorry my message was cut off. Yes I want to scale to 300 x 200px before I upload the image to my folder. Here is my code so far. thanks, H. $imageinfo = getimagesize($_FILES['userfile']['tmp_name']); echo $x=$imageinfo[0]; echo $y=$imageinfo[1]; $newwidth = 300; $newheight =

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Puiu Hrenciuc
C.R.Vegelin wrote: - Original Message - From: "Puiu Hrenciuc" <[EMAIL PROTECTED]> To: Sent: Thursday, September 20, 2007 12:56 PM Subject: Re: [PHP] highlighting searchterms as bold text Sorry, I didn't read d) right (NOT Methyl), here is teh new regex : /(

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Puiu Hrenciuc
Sorry, I didn't read d) right (NOT Methyl), here is teh new regex : /(\b#SearchTermHere#(\w+)?)/i The code sample is the same, replace regex, of course . Output should be : ethyl Lorem Ethyl ipsum MeThYl dolor Ethylene sit Cheers Puiu Hrenciuc wrote: Hi, Here's what you ne

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Puiu Hrenciuc
Hi, Here's what you need: RegEx: /((\w+)?#SearchTermHere#(\w+)?)/i Of course, replace your #SearchTermHere# with what you need, i.e. /((\w+)?ethyl(\w+)?)/i Code sample: $_textToHighlight='ethyl Lorem Ethyl ipsum MeThYl dolor Ethylene sit'; $_search='/((\w+)?ethyl(\w+)?)/i'; $_replace='\\1';

Re: [PHP] Undefined class constant

2007-09-19 Thread Puiu Hrenciuc
ooLongMessage=$_tooLongMessage; $this->Class=$_class; $this->FieldValues=$_fieldValues; $this->FieldType=$_type; } Trust me, it doesn't have any logical explanation :) Puiu T.Lensselink wrote: On Wed, 19 Sep 2007 17:13:02 +0

Re: [PHP] Undefined class constant

2007-09-19 Thread Puiu Hrenciuc
=> [AllowedValues] => Array ( ) [IsValid] => [IsVisible] => 1 [Sorted] => 0 [Primary] => [Foreign] => [Negated] => [GroupBy] => [Aggregate] => [_value:protected] => ) $_type: (int) 1 T . Lensselink wrote: On Wed, 19 Sep 2007 15:56:22 +0

[PHP] Undefined class constant

2007-09-19 Thread Puiu Hrenciuc
Hi everyone, I'm having a hard time dealing with an error that appeared overnight in one of my PHP script: Fatal error: Undefined class constant 'self::TYPE_HIDDEN' in /#/classes/framework/HTML/HTMLForm.php on line 120 HTMLForm.php snippet: . // Creates the HTMLFormFields for

[PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
shows that the problem is somewhere in PHP generating another SID for the same user before session's timeout in a randomly manner. I will try to report this in the PHP bugs database. Thanks all for help. Puiu Hrenciuc. "Puiu Hrenciuc" <[EMAIL PROTECTED]> wrote in message news

[PHP] Re: Cookie Problems (Different than the post by David Jackson)

2004-03-02 Thread Puiu Hrenciuc
I bet you have some session management functions in include('lib/sessionfunc.php'); something like session_start() that also sends out header informations, but you can't send any headers AFTER you have started the output for eg: Some HTML output like: code1 will work ok, but code2 will fail

[PHP] Re: readfile error

2004-03-02 Thread Puiu Hrenciuc
Can you try : readfile("http://ip.address.here/paperchase/blogger_rss.xml";) ? I don't know the cause, but I think replacing the host name with it's IP address would work... "Ashley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I posted this on Novell's PHP forum, but I have not

[PHP] Re: session_id and cookie settings

2004-03-02 Thread Puiu Hrenciuc
Firs of all I think it would be easier to conult PHP Help before posting. Quoting from PHP Help - function session_destroy(): " [EMAIL PROTECTED] (18-Jan-2002 02:26) When users log in and out of your site they will keep the original session you have set for them. if you need to have this change on

[PHP] Re: interbase + php

2004-03-02 Thread Puiu Hrenciuc
I also think addslashes() and stripslashes() could be useful.. "Puiu Hrenciuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why don't you use base64_encode and base64_decode functions ? > It will take about 33% more space but will be SQL and PHP

[PHP] Re: interbase + php

2004-03-02 Thread Puiu Hrenciuc
Why don't you use base64_encode and base64_decode functions ? It will take about 33% more space but will be SQL and PHP safe . "Markus Ecker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi all!! > > i have the problem that i want to put an image into a firebird database. the >

[PHP] Re: Session and MS-IE6

2004-03-02 Thread Puiu Hrenciuc
I'm not sure what you mean by "session management". I use: > session_start(); > at the top of every PHP page and I try to verify the user by: > if (!$_SESSION['user_id']){ > printf("You have not logged in. Please click this to > do so."); > exit(

[PHP] Re: Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
y client's > computer Win98 and MS-IE6. > > I think there's something seriously wrong somewhere (either PHP or MS). I'll > keep you posted if I find a solution. > > Pance. > > "Puiu Hrenciuc" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL

[PHP] Re: Session and MS-IE6

2004-03-02 Thread Puiu Hrenciuc
Have you tried other browsers ? Before you can say it is a browser issue you have to try as many browsers as possible and see if the problem is still there. What server/os/php is on your machine and what on client's ? Can you post the session management part of tour code ? Please provide more info

Re: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
:[EMAIL PROTECTED] > all i can think of here, you could be calling start_session twice in the > same page ? also init set the session timeout to an hour or so > > -----Original Message- > From: Puiu Hrenciuc [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 02, 2004 10:1

Re: [PHP] Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
1. No. If that would be the problem i think that sessions would expire after the same period of time and not randomly , right ? 2. The site consists in a single page (index.php) that includes the subpages as needed. The session_start() is at the begining of the file. If this would be

[PHP] Sessions, sessions and... sessions

2004-03-02 Thread Puiu Hrenciuc
think this is PHP or Cookies related. If you would like to see the phpinfo() snapshots: Development server : http://www.pur.ro/devphpinfo.htm Release server : http://www.pur.ro/relphpinfo.htm Can someone please help me, coz' my hair is turning white and I'm too young to die :) T