RE: [PHP] Problems with date() - SOLVED

2006-09-14 Thread Arno Kuhl
Hi Ducarom Thanks, that clarifies the issue perfectly. Changing to 28 December now reliably gives the last week number of the year every time. Cheers Arno -Original Message- From: Ducarom [mailto:[EMAIL PROTECTED] Sent: 13 September 2006 09:23 To: [EMAIL PROTECTED] Cc:

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-14 Thread Rahul S. Johari
How can I set the drwxr-xr-x permissions on my mounted share? I've set everything I possibly could in the windows 2003 server to give the mac os x user full control! On 9/13/06 10:49 AM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote: Samba. It's an SMB share. On 9/13/06

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-14 Thread Rahul S. Johari
Nope. It looks like this... drwxr-xr-x 3 root root 4096 Sep 13 10:44 . drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. drwx-- 1 rjohari admin 16384 13 Sep 10:38 foresight Foresight being the mounted share. On 9/13/06 10:49 AM, John Nichel [EMAIL PROTECTED] wrote: Rahul S. Johari wrote:

Re: [PHP] How to skip browser's Warning?

2006-09-14 Thread Ruben Rubio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This is php cconfiguration. Add this to php.ini session.cache_limiter=none [EMAIL PROTECTED] wrote: Hi, Could somebody explain to me what to do to skip this message I'm getting after I search for some products on my page, got the list of

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Satyam
Try the properties innerHTML or outerHTML, the later will include the enclosing tag. Satyam - Original Message - From: Michael Williams [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, September 14, 2006 2:12 AM Subject: [PHP] DOM Question. No pun intended. Hi All,

[PHP] Pre-printed forms

2006-09-14 Thread Man-wai Chang
How do you guys and gals use PHP+HTML+CSS to print a report to preprinted forms with precision? if the report is to be printed at client side, how do you do it? Via networked printer? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the

RE: [PHP] Question on explode and join.

2006-09-14 Thread tedd
At 5:55 PM -0400 9/13/06, Beauford wrote: The problem with scripts like these is there is so many variables to deal with. First, this doesn't deal with uppercase. So a word like bAdWoRd would not get detected, or a word beginning a sentence. Also, a word within a word like wordbadwordword would

[PHP] Re: Pre-printed forms

2006-09-14 Thread Man-wai Chang
You'd probably have better luck using PHP+PDF Generation Classes of some sort if you need precision layouts for printing... With HTML+CSS it will still vary depending on the render used... Not a bad idea. But is there free PHP class to do it? -- .~. Might, Courage, Vision, SINCERITY.

Re: [PHP] Pre-printed forms

2006-09-14 Thread tedd
At 7:35 PM +0800 9/14/06, Man-wai Chang wrote: How do you guys and gals use PHP+HTML+CSS to print a report to preprinted forms with precision? if the report is to be printed at client side, how do you do it? Via networked printer? Hi: From my old days working with a vertical-mill, precision

[PHP] Re: Pre-printed forms

2006-09-14 Thread Colin Guthrie
Man-wai Chang wrote: How do you guys and gals use PHP+HTML+CSS to print a report to preprinted forms with precision? You'd probably have better luck using PHP+PDF Generation Classes of some sort if you need precision layouts for printing... With HTML+CSS it will still vary depending on the

RE: [PHP] security include from remote server

2006-09-14 Thread Brad Fuller
Miguel - If my solution is not viable, is there any other way of hosting my files someplace else, but still access the local database? Yes. Your remotely hosted code would call the database on your local server. Something like: ? $link = mysql_connect(foo.com, bar, PASSWORD); ? You

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread mwilliams
Satyam, I don't see any innerHTML or outerHTML in relation to PHP DOM. I'm familiar with them from a Javascript standpoint, but no references when it comes to PHP DOM. Regards, Mike Quoting Satyam [EMAIL PROTECTED]: Try the properties innerHTML or outerHTML, the later will include the

Re: [PHP] Pre-printed forms

2006-09-14 Thread Satyam
- Original Message - From: Man-wai Chang [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, September 14, 2006 1:35 PM Subject: [PHP] Pre-printed forms How do you guys and gals use PHP+HTML+CSS to print a report to preprinted forms with precision? if the report is to be

Re: [PHP] Question on explode and join.

2006-09-14 Thread Ray Hauge
On Wednesday 13 September 2006 11:51, Beauford wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I check it against another array that contains the

Re: [PHP] Question on explode and join.

2006-09-14 Thread Ray Hauge
On Thursday 14 September 2006 09:47, Ray Hauge wrote: On Wednesday 13 September 2006 11:51, Beauford wrote: Hi, I have a form which I want to check for inappropriate words before it is posted. I have used explode to put the string into an array using a space as the delimiter and then I

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Satyam
Sorry, I immediatly thought about the client side. No, I don't know there is any way on the server side with PHP. Satyam - Original Message - From: [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, September 14, 2006 4:16 PM Subject: Re:

Re: [PHP] security include from remote server

2006-09-14 Thread Jon Anderson
Brad Fuller wrote: Miguel - If my solution is not viable, is there any other way of hosting my files someplace else, but still access the local database? Yes. Your remotely hosted code would call the database on your local server. Something like: ? $link = mysql_connect(foo.com,

[PHP] Re: Pre-printed forms

2006-09-14 Thread Joao Candido de Souza Neto
I use fpdf class that you can get at: http://www.fpdf.org/ Man-wai Chang [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] You'd probably have better luck using PHP+PDF Generation Classes of some sort if you need precision layouts for printing... With HTML+CSS it will still vary

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Rob
[EMAIL PROTECTED] wrote: Satyam, I don't see any innerHTML or outerHTML in relation to PHP DOM. I'm familiar with them from a Javascript standpoint, but no references when it comes to PHP DOM. Regards, Mike Now that you have the element, why not just call: $doc-saveXML($node); Rob --

Re: [PHP] security include from remote server

2006-09-14 Thread Martin Marques
On Thu, 14 Sep 2006, Miguel Vaz wrote: I thought about having a simple php local file that would include my files that are hosted someplace else, and therefor be able to access my local database, would that be possible? My first thought would probably be no, but i cant really do any tests

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread mwilliams
Rob, I wasn't aware that that would work. I mean I suppose it should, but basically this is what I'm doing: 1) Create a new DOMDocument 2) DOMDocument-loadHTML() 3) find the elements I want with getElementsByTag() then finding the one with the correct attributes . . .at this point, I need

[PHP] Iteration through letter

2006-09-14 Thread Norbert Wenzel
Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) { echo($letter . ' '); } /code What surprised me was the output, which looked like this: A B C [...] Y Z AA AB AC [...] YY YZ I don't have any idea how these letters get printed out, so I'd

Re: [PHP] Iteration through letter

2006-09-14 Thread Robert Cummings
On Thu, 2006-09-14 at 19:26 +0200, Norbert Wenzel wrote: Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) { echo($letter . ' '); } /code What surprised me was the output, which looked like this: A B C [...] Y Z AA AB AC [...] YY

RE: [PHP] Iteration through letter

2006-09-14 Thread KermodeBear
What surprised me was the output, which looked like this: A B C [...] Y Z AA AB AC [...] YY YZ I don't have any idea how these letters get printed out, so I'd appreciate any guesses or explanations. http://www.php.net/manual/en/language.operators.increment.php -- PHP General Mailing

Re: [PHP] Iteration through letter

2006-09-14 Thread Jon Anderson
Norbert Wenzel wrote: Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) { echo($letter . ' '); } /code What surprised me was the output, which looked like this: A B C [...] Y Z AA AB AC [...] YY YZ I don't have any idea how these letters get

Re: [PHP] Iteration through letter

2006-09-14 Thread Ray Hauge
On Thursday 14 September 2006 12:26, Norbert Wenzel wrote: Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) { echo($letter . ' '); } /code What surprised me was the output, which looked like this: A B C [...] Y Z AA AB AC [...] YY YZ

Re: [PHP] Iteration through letter

2006-09-14 Thread Ray Hauge
On Thursday 14 September 2006 12:41, Robert Cummings wrote: On Thu, 2006-09-14 at 19:26 +0200, Norbert Wenzel wrote: Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) { echo($letter . ' '); } /code What surprised me was the

Re: [PHP] DOM Question. No pun intended.

2006-09-14 Thread Rob Richards
[EMAIL PROTECTED] wrote: Rob, I wasn't aware that that would work. I mean I suppose it should, but basically this is what I'm doing: 1) Create a new DOMDocument 2) DOMDocument-loadHTML() 3) find the elements I want with getElementsByTag() then finding the one with the correct attributes

Re: [PHP] Iteration through letter

2006-09-14 Thread Robert Cummings
On Thu, 2006-09-14 at 12:51 -0500, Ray Hauge wrote: On Thursday 14 September 2006 12:41, Robert Cummings wrote: On Thu, 2006-09-14 at 19:26 +0200, Norbert Wenzel wrote: Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) {

[PHP] Re: Iteration through letter

2006-09-14 Thread Norbert Wenzel
Norbert Wenzel wrote: Hi, just for fun I tried the following code: code for($letter = 'A'; $letter = 'Z'; ++$letter) { echo($letter . ' '); } /code What surprised me was the output, which looked like this: A B C [...] Y Z AA AB AC [...] YY YZ I don't have any idea how these letters get

[PHP] R: [PHP] session_start() and fopen

2006-09-14 Thread Fabri
Hi Christopher: this is just a simplified code, I use it to generate some xml file, no loop is present. Try it as it is: you will find that two files will be generated while it should be only one. If you remove 'session_start()' then only one file will be generated: that's correct! Fabri

Re: [PHP] R: [PHP] session_start() and fopen

2006-09-14 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fabri wrote: Hi Christopher: this is just a simplified code, I use it to generate some xml file, no loop is present. Try it as it is: you will find that two files will be generated while it should be only one. If you remove 'session_start()'

[PHP] R: [PHP] R: [PHP] session_start() and fopen

2006-09-14 Thread Fabri
Hi Chris, thanks for your feedback: at least now I know that the script is correct, I am using version 4.3.10, I will investigate if some bug is present in this version. Fabri -Messaggio originale- Da: Christopher Weldon [mailto:[EMAIL PROTECTED] Inviato: giovedì 14 settembre 2006 21.31

RE: [PHP] Question on explode and join.

2006-09-14 Thread Beauford
I read your email, but I'm not using sessions and not really planning too. But some of your code may be able to be modified to do what I need. Thanks for the input. B _ From: Dave Goodchild [mailto:[EMAIL PROTECTED] Sent: September 14, 2006 8:52 AM To: Beauford Subject: Re: [PHP]

Re: [PHP] security include from remote server

2006-09-14 Thread Miguel Vaz
Yes, right on the spot. Main reasons being code theft and using it on other projects. This being done by our office (its actually a college and i work in a multimedia department) system administrators, which are nothing left than arrogant leaches. All i was missing from

Re: [PHP] security include from remote server

2006-09-14 Thread Jon Anderson
Miguel Vaz wrote: Yes, right on the spot. Main reasons being code theft and using it on other projects. This being done by our office (its actually a college and i work in a multimedia department) system administrators, which are nothing left than arrogant leaches. All i was