php-general Digest 6 Dec 2008 21:24:07 -0000 Issue 5830

2008-12-06 Thread php-general-digest-help
php-general Digest 6 Dec 2008 21:24:07 - Issue 5830 Topics (messages 284233 through 284243): Re: Convert .docx /.pdf file to .txt 284233 by: Colin Guthrie 284234 by: Ashley Sheridan Re: How to Insert ?xml-stylesheet .? into DOMDocument 284235 by: Nathan Rixham

[PHP] Re: Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Ross McKay
On Fri, 5 Dec 2008 12:28:08 -0600, Terion Miller wrote: I have a huge form to validate and wonder which is better javascript validation or php, the page is a php page, I actually put js validation on it but then it stopped working (stopped inserting into the db) not sure if that had anything to

[PHP] Re: Convert .docx /.pdf file to .txt

2008-12-06 Thread Colin Guthrie
'Twas brillig, and Jagdeep Singh at 06/12/08 06:46 did gyre and gimble: Hi! I need a function to fetch text from docx file, but it is showing formated characters in output. I was using fopen, fgets etc function . I want to fetch text from .docx and save it to .txt file Without special

Re: [PHP] Re: Convert .docx /.pdf file to .txt

2008-12-06 Thread Ashley Sheridan
On Sat, 2008-12-06 at 09:17 +, Colin Guthrie wrote: 'Twas brillig, and Jagdeep Singh at 06/12/08 06:46 did gyre and gimble: Hi! I need a function to fetch text from docx file, but it is showing formated characters in output. I was using fopen, fgets etc function . I want to

[PHP] Re: How to Insert ?xml-stylesheet .....? into DOMDocument

2008-12-06 Thread Nathan Rixham
Shanon Swafford wrote: I have the following code: #!/usr/bin/php -q ?PHP error_reporting(E_ALL); ini_set('display_errors', '1'); $doc = new DOMDocument(); $doc-formatOutput = true; $foo = $doc-createElement(foo); $doc-appendChild($foo); $bar = $doc-createElement(bar);

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Per Jessen
Terion Miller wrote: I have a huge form to validate and wonder which is better javascript validation or php, the page is a php page, I actually put js validation on it but then it stopped working (stopped inserting into the db) not sure if that had anything to do with it What does

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Nathan Rixham
Per Jessen wrote: Terion Miller wrote: I have a huge form to validate and wonder which is better javascript validation or php, the page is a php page, I actually put js validation on it but then it stopped working (stopped inserting into the db) not sure if that had anything to do with it

Re: [PHP] Parsing Strings

2008-12-06 Thread tedd
At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote: How might I also parse and address like: SCOTTSDALE, AZ 85254 It has a comma and a space -Jason On Dec 5, 2008, at 4:02 PM, Jason Todd Slack-Moehrle wrote: OK, making good learning progress today. I have a string that is: Jason

Re: [PHP] Parsing Strings

2008-12-06 Thread VamVan
u can use split() or explode (). Thanks On Sat, Dec 6, 2008 at 9:27 AM, tedd [EMAIL PROTECTED] wrote: At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote: How might I also parse and address like: SCOTTSDALE, AZ 85254 It has a comma and a space -Jason On Dec 5, 2008, at 4:02 PM,

Re: [PHP] Parsing Strings

2008-12-06 Thread Nathan Rixham
tedd wrote: At 4:18 PM -0800 12/5/08, Jason Todd Slack-Moehrle wrote: How might I also parse and address like: SCOTTSDALE, AZ 85254 It has a comma and a space -Jason On Dec 5, 2008, at 4:02 PM, Jason Todd Slack-Moehrle wrote: OK, making good learning progress today. I have a string that

[PHP] Re: How to Insert ?xml-stylesheet .....? into DOMDocument

2008-12-06 Thread Carlos Medina
Shanon Swafford schrieb: I have the following code: #!/usr/bin/php -q ?PHP error_reporting(E_ALL); ini_set('display_errors', '1'); $doc = new DOMDocument(); $doc-formatOutput = true; $foo = $doc-createElement(foo); $doc-appendChild($foo); $bar = $doc-createElement(bar);

[PHP] Re: How do you organise your PHP work ?

2008-12-06 Thread Nathan Rixham
franzemmanuel wrote: Hi ! I wanted to know how you organise your work when you develop a project ? - I have a checking list to control each file. - I make a diagram (with Impress). - And a CalcSheet to follow my variables. (examples : http://www.surleweb.biz/development.php). And you ? How do

RE: [PHP] Re: How to Insert ?xml-stylesheet .....? into DOMDocument

2008-12-06 Thread Shanon Swafford
Is there a way to make it create the following XML? ?xml version=1.0? ?xml-stylesheet href=xsl_table.xsl type=text/xsl? foo bar/ bazz/ /foo I can't seem to find any dom functions to do this. Thanks in advance, Shanon DOMProcessingInstruction as such: ?php

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-06 Thread Michael Kubler
I agree with Nathan. Always do server side validation, and if you have the skills, time, or are being paid then add javascript validation to make the user experience better. I have a general contact form which checks the input server side (PHP) and if there's something wrong then it indicates