Re: [PHP] Tool Tip in pdf

2008-08-18 Thread Subhranil
Hi Micah, Sorry for late reply. Actually 15th August is our INDEPENDENCE DAY and I was out of work. I am a newbie. I have very little knowledge about pdf. Could you please give some tip for wraping the text Thanks, Subhranil. Micah Gersten wrote: > > Why not wrap the text? > > Thank you, >

Re: [PHP] Re: PHP editor for linux

2008-08-18 Thread Pavel
I use Zend Studio (shareware, but i couldn't find better things). There are some plugins for Eclipse,but if you used Zend before, you will be cunfused by that plugins... P.S. Sorry for my English... -- === С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:[EMAIL PROTECTED

[PHP] pdo compilation question

2008-08-18 Thread Tim Rupp
Hi list, I hope this is the right area to ask, I'm trying to compile PDO support in 5.2.6 and am following the instructions here http://us2.php.net/manual/en/pdo.installation.php My compile line is the following ./configure --enable-force-cgi-redirect \ --disable-rpath \ --wi

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-18 Thread Christoph Boget
>> A textarea is a simple editor, I am assuming you want something better than >> that, or you wouldn't have looked further. > I just tried Demo and got this: > "Sorry, you must have Internet Explorer 5.5 or higher to use the WYSIWYG > editor" > ?!? Wow. You know people who are still using IE5.5?

RE: [PHP] Negative Look Ahead Regex

2008-08-18 Thread Simcha Younger
Hi I do not know if this is possible using negative assertions, but you can do it with a search for any links, and then applying a callback which will conditionally add your session id. This seems to do the trick: function addid($href){ $id = "?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;"; $href = $hr

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-18 Thread afan pasalic
Warren Vail wrote: > A textarea is a simple editor, I am assuming you want something better than > that, or you wouldn't have looked further. > I just tried Demo and got this: "Sorry, you must have Internet Explorer 5.5 or higher to use the WYSIWYG editor" ?!? I'm using FF. -afan > Have you h

Re: [PHP] php-gd problems on Ubuntu 8.04

2008-08-18 Thread Chantal Rosmuller
I did, but it doens't help On Thursday 14 August 2008 18:58:57 Micah Gersten wrote: > Make sure that your php.ini file for the cli is loading gd. > > Thank you, > Micah Gersten > onShore Networks > Internal Developer > http://www.onshore.com > > Chantal Rosmuller wrote: > > Hi list, > > > > I hav

Re: [PHP] Number of duplicates in an array?

2008-08-18 Thread tedd
At 3:33 PM +0100 8/18/08, Ashley Sheridan wrote: Best way to remove duplicates from an array is to use the built in PHP function array_unique(). As for counting the number of times each unique value occurs, use array_count_values(). Ash www.ashleysheridan.co.uk Ash: I'm aware of array_uniq

Re: [PHP] File download problem

2008-08-18 Thread Stefano Noffke
Hi, Thank you for your reply. I tried your code, but the problem remains. I still can download PDF, TXT, and MP3 fine, but the ODT, DOC, and JPG are still corrupted. I wonder why it works with some files and not with others... Stefano Ashley Sheridan ha scritto: Hi Stefano, You can use th

Re: [PHP] php-gd problems on Ubuntu 8.04

2008-08-18 Thread Luke
Which gd package did you install? Php5-gd worked for me. Could be something like it trying to install a php4 module onto php5 Luke Slater Lead Developer NuVoo On 18 Aug 2008, at 15:47, Chantal Rosmuller <[EMAIL PROTECTED]> wrote: I did, but it doens't help On Thursday 14 August 2008 18:58:5

Re: [PHP] Re: Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-18 Thread Cameron B. Prince
Hi Al, I am using preg_quote in the live code. I omitted it from the example code to simplify the example. Thanks, Cameron On 8/18/08 8:31 AM, "Al" <[EMAIL PROTECTED]> wrote: > Run your pattern thru preg_quote() prior to using it in your preg_replace(). > Don't backslash > anything yourself,

Re: [PHP] Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-18 Thread Cameron B. Prince
Hi Simcha, I tried your suggestion and it does prevent the SID from being inserted inside the extension, but causes double ?'s and SID's in some cases. Thanks, Cameron On 8/18/08 2:25 AM, "Simcha Younger" <[EMAIL PROTECTED]> wrote: > > Hi > > > You did not put a question mark in your charac

Re: [PHP] Number of duplicates in an array?

2008-08-18 Thread David Otton
2008/8/18 tedd <[EMAIL PROTECTED]>: > Anyone have a cool method of finding duplicate items in an array and the > number of times they appear? > > I'm doing it in a way that is probably less than optimum. I want to see how > you guys solve it. Hmm. Assuming the following inputs and outputs: $inpu

Re: [PHP] Number of duplicates in an array?

2008-08-18 Thread Ashley Sheridan
Best way to remove duplicates from an array is to use the built in PHP function array_unique(). As for counting the number of times each unique value occurs, use array_count_values(). Ash www.ashleysheridan.co.uk --- Begin Message --- Hi gang: Anyone have a cool method of finding duplicate ite

Re: [PHP] PHP Prado

2008-08-18 Thread Dan Joseph
On Mon, Aug 18, 2008 at 10:11 AM, Hélio Rocha <[EMAIL PROTECTED]> wrote: > Does anyone has an opinion 'bout developing with Prado? > > Thanks in advance, > Hélio Rocha > I tried it out a couple times about a year and a half ago. I had a coworker at the time that used it heavily. It looked to me

[PHP] Number of duplicates in an array?

2008-08-18 Thread tedd
Hi gang: Anyone have a cool method of finding duplicate items in an array and the number of times they appear? I'm doing it in a way that is probably less than optimum. I want to see how you guys solve it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earths

[PHP] PHP Prado

2008-08-18 Thread Hélio Rocha
Does anyone has an opinion 'bout developing with Prado? Thanks in advance, Hélio Rocha

Re: [PHP] File download problem

2008-08-18 Thread Ashley Sheridan
Hi Stefano, You can use this code instead to read in the file and output it to the browser, as it is binary safe. I've used it for the same reason you require, and it works fine with video clips. $fp = fopen($path, "rb"); while(!feof($fp)) { print(fread($fp, 1024)); flush($fp); } fc

[PHP] File download problem

2008-08-18 Thread Stefano Noffke
Greetings, I need to create a script to let registered users to download files from a non-public folder. The files name, type, and size are stored in a MySQL Database. The user need to click on a link, and a PHP script should handle the download of the file. Here is how I organized it: Th

Re: [PHP] Re: SOAP - return a list of items

2008-08-18 Thread Dan Joseph
On Sun, Aug 17, 2008 at 8:32 AM, Luke <[EMAIL PROTECTED]> wrote: > why use soap for this? I just use a javascript array for this kind of > thing... > > 2008/8/13 Dan Joseph <[EMAIL PROTECTED]> > > Maybe more info will help: >> >> Here is what I have so far for the WSDL... >> >> >> >>

[PHP] Re: Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-18 Thread Al
Run your pattern thru preg_quote() prior to using it in your preg_replace(). Don't backslash anything yourself, let preg_quote() do it. Cameron B. Prince wrote: Hello, I¹ve run into a problem with a regex and need help determining if this is my mistake or a bug. The regex is for inserting a SI

Re: [PHP] Regexp to get paramname

2008-08-18 Thread Richard Heyes
> eregi(); That would be your first mistake. The preg_* functions are better. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regexp to get paramname

2008-08-18 Thread HostWare Kft.
Hi, I have these lines to get parameters' name to $regs, but I always get the first one twice. What do I do wrong? $sql = 'select * from hotsys where ALREND=:alrend and SYSKOD=:syskod'; eregi('(:[a-z,A-Z,0-9]+)', $sql, $regs); Thanks, SanTa -- PHP General Mailing List (http://www.php.ne

RE: [PHP] preg_replace strange behaviour, duplicates

2008-08-18 Thread Simcha Younger
Simcha Younger -Original Message- From: Adz07 [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 10:17 AM To: php-general@lists.php.net Subject: Re: [PHP] preg_replace strange behaviour, duplicates Problem is that a negative assertion assumes i know what is going

Re: [PHP] Regarding threads...

2008-08-18 Thread Richard Heyes
Hi, > hope we all know about threads in java.. Not really. But anyway... > Like that, can we use that in php?... IIRC there was a pthread extension in PECL, however it seems to have been removed. You could try pcntl (http://uk.php.net/pcntl) if you want mul

Re: [PHP] Regarding threads...

2008-08-18 Thread Ashley Sheridan
As far as I'm aware, threading is not possible in PHP. You can run separate processes off in the background, but they are not actual threads. I found a good article some guy wrote about it http://immike.net/blog/2007/04/08/fork-php-and-speed-up-your-scripts/ which might be of some use? Ash www.ash

Re: [PHP] preg_replace strange behaviour, duplicates

2008-08-18 Thread Adz07
Problem is that a negative assertion assumes i know what is going to come after the match, but i don't. I am a bit stuck now :( Adz07 wrote: > > I am trying to nail down a bit of code for changing processor names > depending on matches. > Problem i am having is the replacement takes place then

Re: [PHP] Re: PHP editor for linux

2008-08-18 Thread Aschwin Wesselius
Carlos Medina wrote: It flance schrieb: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks Hi it´s allways the same: What for Editor are you using? and blah. Please this dicussion is old and not funny anymore (i think ). The Developer wh

Re: [PHP] Re: PHP editor for linux

2008-08-18 Thread Ashley Sheridan
To be honest, I've always favoured KATE. It's just a plain old text editor with syntax highlighting for most languages. There are plugins for Eclipse which let you edit PHP code, so yu could start looking in that direction. Oh, and it should never really matter what distro you use. You can install

[PHP] Re: PHP editor for linux

2008-08-18 Thread Carlos Medina
It flance schrieb: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks Hi it´s allways the same: What for Editor are you using? and blah. Please this dicussion is old and not funny anymore (i think ). The Developer which vi or nano on d

[PHP] Re: Negative Look Ahead Regex - Code Mistake or Bug?

2008-08-18 Thread Lupus Michaelis
Cameron B. Prince a écrit : An example of the code is here: $buffer = preg_replace('/"http\:\/\/www\.domain\.com([\/\w\.-]*)(?!\?PHPSESSID\=2u0cca ffoh6jaeapkke35qpp87;?)/', '"http://www.domain.com$1?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;', $buffer); I never build my regex inline. I write