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/ I can REDIRECT

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*** ?php $uuu=$_SERVER[QUERY_STRING]; if ($_SERVER['REQUEST_URI'] == '/index.php'.?.$uuu) { header(HTTP/1.1 301 Moved Permanently); header(Location: http://example.com/;);

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

[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] 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,

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

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 php-general@lists.php.net From: Stut [EMAIL PROTECTED] To: Robert Cummings [EMAIL PROTECTED]

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/?12324242 I

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

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

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

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

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

[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: document xmlns:voc=http://www.hl7.org/v3/voc; xmlns=urn:hl7-org:v3 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;