Re: [PHP] PEAR_Exception & PEAR_Error

2008-05-27 Thread Chris
Al wrote: > I'm using the pear class Mail_RFC822::parseAddressList() which > apparently only throws an error_object for PEAR_Error. > > The manual says that PEAR_Error is deprecated, so I'd like to use > PEAR_Exception; but; am having trouble getting it to recognize the error. Probably better to

Re: [PHP] Restricting access to a file

2008-05-27 Thread Adam Richardson
I usually set up what amounts to a quick controller page. The page accepts a GET variable that identifies the download, and it also delegates to a helper object that determines the access level. If the delegate determines that the person should be able to download/ view the content, the con

[PHP] Restricting access to a file

2008-05-27 Thread John Comerford
Hi Folks, This may not be strictly a PHP question but there may be something in PHP to do what I want. I am in the process of putting together a pretty basic website using MySql and PHP on a third party host. One of the function is to allow known stockist download a catalogue (.pdf). I am

[PHP] read xml files with namespaces

2008-05-27 Thread Selwyn Polit
I am writing code to read a bunch of xml files which describe pharmaceutical drugs. They have namespace references at the top of each file that look like this: http://www.hl7.org/v3/voc"; xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="urn:hl

[PHP] PEAR_Exception & PEAR_Error

2008-05-27 Thread Al
I'm using the pear class Mail_RFC822::parseAddressList() which apparently only throws an error_object for PEAR_Error. The manual says that PEAR_Error is deprecated, so I'd like to use PEAR_Exception; but; am having trouble getting it to recognize the error. Can anyone help me with this? -- P

Re: [PHP] Re: scanned in & manipulate to a pdf

2008-05-27 Thread Christian Flickinger
PDFTK is a great tool, but if you want to keep everything inside PHP, using imagick is great. I use PDFTK to populate form fields in PDF files before I do other things using imagick. - spoon "Brady Mitchell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On May 27, 2008, at 9

Re: [PHP] Re: scanned in & manipulate to a pdf

2008-05-27 Thread Christian Flickinger
If that is the case, then the task is admittedly harder, but not impossible ;) As for PDF manipulation & merging directly in PHP (with the help of imagick extension), I will be posting the code to my blog (the website associated with my email address) as per Scott MacVicar's suggestion, within

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
On 27 May 2008, at 19:18, Robert Cummings wrote: On Tue, 2008-05-27 at 18:04 +0100, Stut wrote: On 27 May 2008, at 17:54, Robert Cummings wrote: On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: On 27 May 2008, at 17:06, Yui Hiroaki wrote: I would like to have some question. For example, I am i

[PHP] looking a regular expresion

2008-05-27 Thread Manuel Pérez López
Hello: I need to include a pair of negations with two complete word into a regular expresion for preg_replace. How to do this? I want to replace "I want to be a SUN and a SIR" with "FRIKI FRIKI FRIKI FRIKI FRIKI SUN FRIKI FRIKI SIR" ie. the words are: SUN and SIR. And the replacement word is: FRI

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
On 27 May 2008, at 18:58, elk dolk wrote: What about using .htaccess for redirection for example, to redirect a single page: Redirect 301 /oldpage.html http://www.example.com/newpage.html I'm assuming the OP is actually doing something with that number before throwing it away. If not the

Re: [PHP] Header Redirect

2008-05-27 Thread Robert Cummings
On Tue, 2008-05-27 at 18:04 +0100, Stut wrote: > On 27 May 2008, at 17:54, Robert Cummings wrote: > > On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: > >> On 27 May 2008, at 17:06, Yui Hiroaki wrote: > >>> I would like to have some question. > >>> > >>> For example, > >>> I am in http://example.com

Re: [PHP] Header Redirect

2008-05-27 Thread elk dolk
What about using .htaccess for redirection for example, to redirect a single page: Redirect 301 /oldpage.html http://www.example.com/newpage.html Stut <[EMAIL PROTECTED]> wrote: CC: PHP General List From: Stut <[EMAIL PROTECTED]> To: Robert Cummings <[EMAIL PROTECTED]> Date: Tue, 27 May 200

Re: [PHP] Re: scanned in & manipulate to a pdf

2008-05-27 Thread Brady Mitchell
On May 27, 2008, at 923AM, Bastien Koert wrote: Interesting to know, however the OP's question was about using PHP to run the scanner, not on the already present PDFs in the FS. That's not how I read the question, but clearly I could be wrong... Could / Would you be willing to share you s

Re: [PHP] validating username

2008-05-27 Thread Ted Wood
You need to encode the # mark. It is a special character in URLs. Example (not a real url): www.php.net/documentation.php#help That #help points to an anchor in that page. Try using the javascript escape() function. http://www.javascripter.net/faq/escape.htm ~Ted On 27-May-08, at 10:14 AM,

[PHP] validating username

2008-05-27 Thread Sudhakar
my question is about validation using php. i am validating a username which a user would enter and clicks on a image to find if that username is available. example if a user enters abc#123 php file is reading this value as abc ONLY which i do not want instead the php file should read as abc#123.

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
On 27 May 2008, at 17:54, Robert Cummings wrote: On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: On 27 May 2008, at 17:06, Yui Hiroaki wrote: I would like to have some question. For example, I am in http://example.com/?12324242 I would like to REDIRECT from http://example.com/?1312323232 to

Re: [PHP] Header Redirect

2008-05-27 Thread Stut
On 27 May 2008, at 17:45, Yui Hiroaki wrote: I try it following your adivice; Code*** http://example.com/";); exit(); } ?> But I still need toconfigure below; http://example/index.php?123233 and http://example/index.php/?123233 Can you help me? 0)

Re: [PHP] Header Redirect

2008-05-27 Thread Robert Cummings
On Tue, 2008-05-27 at 17:10 +0100, Stut wrote: > On 27 May 2008, at 17:06, Yui Hiroaki wrote: > > I would like to have some question. > > > > For example, > > I am in http://example.com/?12324242 > > > > I would like to REDIRECT from http://example.com/?1312323232 > > to http://example.com/ > >