php-general Digest 16 Feb 2008 11:31:00 -0000 Issue 5296

2008-02-16 Thread php-general-digest-help
php-general Digest 16 Feb 2008 11:31:00 - Issue 5296 Topics (messages 269392 through 269404): Re: How to read excel sheet and display it's contents. 269392 by: g4me0ver Re: Posting Summary for Week Ending 15 February, 2008: [EMAIL PROTECTED] 269393 by: Jim Lucas Re: www.

php-general Digest 16 Feb 2008 23:40:05 -0000 Issue 5297

2008-02-16 Thread php-general-digest-help
php-general Digest 16 Feb 2008 23:40:05 - Issue 5297 Topics (messages 269405 through 269420): Re: Gzipped output 269405 by: Per Jessen 269417 by: Michael McGlothlin Fwrite Function 269406 by: Yuval Schwartz 269408 by: Bastien Koert Re: check if website has

Re: [PHP] www. not working

2008-02-16 Thread Valedol
On Sat, 16 Feb 2008 05:45:54 +0300, Jim Lucas [EMAIL PROTECTED] wrote: Valedol wrote: just try if ($POS !== 0) { well, that said, isn't the first position in a string 0 ? So, in the above example the OP would need // This would mean that www. was found any where in the string if ( $POS

Re: [PHP] www. not working

2008-02-16 Thread M. Sokolewicz
Jim Lucas wrote: Valedol wrote: On Fri, 15 Feb 2008 23:46:57 +0300, nihilism machine [EMAIL PROTECTED] wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? ?php class URL

Re: [PHP] check if website has www. in front of domain

2008-02-16 Thread Richard Heyes
// Check if site is preceeded by 'WWW' public function checkWWW() { $myDomain = $_SERVER['SERVER_NAME']; $FindWWW = '.'; $POS = strpos($myDomain, $FindWWW); if ($POS === false) { return false; } else { return true;

Re: [PHP] Gzipped output

2008-02-16 Thread Per Jessen
Eric Butera wrote: Let us look at XSS now. http://sla.ckers.org/forum/list.php?2 Looks like there are quite a few of those too. If Google/Yahoo can't stop this stuff how are us mere mortals supposed to? In my experience, the bigger the organisation, the more mere mortals. Also, a small

[PHP] Fwrite Function

2008-02-16 Thread Yuval Schwartz
Hello, Can you please help me, I am writing code where I create a file and write to it from a form on a webpage and then read and display this file on the webpage. I want to change the color of the text that is written to the file. Do you know how I can do this? This is some of my code if you

Re: [PHP] check if website has www. in front of domain

2008-02-16 Thread Christoph
// Check if site is preceeded by 'WWW' public function checkWWW() { $myDomain = $_SERVER['SERVER_NAME']; $FindWWW = '.'; $POS = strpos($myDomain, $FindWWW); if ($POS === false) { return false; } else { return true;

RE: [PHP] Fwrite Function

2008-02-16 Thread Bastien Koert
Its a text file and so doesn't support markup. You could write out html into the file that does mark it up and could be displayed to the user via the browser...or you could use regex or str_replace to mark up certain text on the read of the file to display to the user bastien

Re: [PHP] XSLTProcessor without validation

2008-02-16 Thread Siegfried Gipp
Am Freitag, 15. Februar 2008 15:35:02 schrieb Andrew Ballard: It's there for me as well. (Firefox and IE6, Windows XP). Any chance you've got a browser plugin or other feature that is blocking the image? I thought it was privoxy, but i tried without proxy and had the same result. I copied the

Re: [PHP] Re: XSLTProcessor without validation

2008-02-16 Thread Siegfried Gipp
Am Freitag, 15. Februar 2008 10:13:15 schrieb Peter Ford: What if you don't have a DTD in the XML to validate it with? I haven't tested it but it was something that worked in the Java XML processing stuff. No DTD, no validation: simple! So have you tried stripping the DOCTYPE declaration

Re: [PHP] XSLTProcessor without validation

2008-02-16 Thread Siegfried Gipp
Am Freitag, 15. Februar 2008 15:35:02 schrieb Andrew Ballard: It's there for me as well. (Firefox and IE6, Windows XP). Any chance you've got a browser plugin or other feature that is blocking the image? I just tried it with Firefox in safe mode, same result: No captcha. -- PHP General

Re: [PHP] www. not working

2008-02-16 Thread Nathan Rixham
Shawn McKenzie wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Jim Lucas wrote: nihilism machine wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas? If you are running

Re: [PHP] www. not working

2008-02-16 Thread Shawn McKenzie
Nathan Rixham wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Jim Lucas wrote: nihilism machine wrote: this still does not work, if a domain has no preceeding www. it redirects to http://www.www.site.com, if it has a www. it goes to www.www.mydomain.com, any ideas?

Re: [PHP] Uploading PDF

2008-02-16 Thread Martin Marques
Pastor Steve escribió: Greetings, I am getting an error when I am trying to upload a PDF file through a script. When I do a print_r($_FILES) I get the following: Array ( [userfile] = Array ( [name] = document.pdf [type] = [tmp_name] =

[PHP] Session destruction problem

2008-02-16 Thread Adil Drissi
Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). After the user submits his username and password, the script checks if that corresponds to a record in a mysql table. If this is the case $_SESSION['sessioname'] =

[PHP] Protected ZIP file with password

2008-02-16 Thread Petrus Bastos
Hey folks, Do you know how can I create a protected zip file with password? Is there anyway? I've search on the internet, but without success. Thank's in advance, Petrus Bastos.

Re: [PHP] Gzipped output

2008-02-16 Thread Michael McGlothlin
Let us look at XSS now. http://sla.ckers.org/forum/list.php?2 Looks like there are quite a few of those too. If Google/Yahoo can't stop this stuff how are us mere mortals supposed to? In my experience, the bigger the organisation, the more mere mortals. Also, a small team has a much

[PHP] PHP/mySQL dropping zeros after inserting number into record

2008-02-16 Thread Rob Gould
I've got a PHP script that inserts 00012345678 into a record in a mySQL database (it's a barcode). Things work ok unless the number has preceding zeros, and then the zeros get cut off and all I get is 12345678. I have the mySQL database fieldtype set to bigint(14). If the maximum length a

RE: [PHP] PHP/mySQL dropping zeros after inserting number into record

2008-02-16 Thread Bastien Koert
char(14) is a better data type bastien Date: Sat, 16 Feb 2008 15:22:17 -0800 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] PHP/mySQL dropping zeros after inserting number into record I've got a PHP script that inserts

Re: [PHP] PHP/mySQL dropping zeros after inserting number into record

2008-02-16 Thread Emilio Astarita
Rob Gould [EMAIL PROTECTED] writes: I've got a PHP script that inserts 00012345678 into a record in a mySQL database (it's a barcode). Things work ok unless the number has preceding zeros, and then the zeros get cut off and all I get is 12345678. I have the mySQL database fieldtype set to

Re: [PHP] Check time in between times

2008-02-16 Thread Nathan Nobbe
On Feb 17, 2008 12:53 AM, Johny Burns [EMAIL PROTECTED] wrote: I am having fields in my table where I put times like 4:30pm in string format Can anybody help with function which helps detect. Is it the current time between those fields? function checkinzone($time1,$time2):boolean Has to

[PHP] Check time in between times

2008-02-16 Thread Johny Burns
I am having fields in my table where I put times like 4:30pm in string format Can anybody help with function which helps detect. Is it the current time between those fields? function checkinzone($time1,$time2):boolean Has to verify does the current time is in those 2 variables. Thank you for

Re: [PHP] Hex Strings Appended to Pathnames

2008-02-16 Thread Mick
Nathan Rixham wrote: Richard Lynch wrote: I don't know if it's before/after, but PHP can't change the GET request to something it wasn't... So THAT was the URL requested. You might have some kind of funky mod_rewrite rule messing you up... On Tue, January 29, 2008 5:22 am, Mick wrote:

Re: [PHP] Check time in between times

2008-02-16 Thread Emilio Astarita
Johny Burns [EMAIL PROTECTED] writes: I am having fields in my table where I put times like 4:30pm in string format Check this: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-types.html Perhaps you could use a data type date for that. Can anybody help with function which helps

Re: [PHP] Fwrite Function

2008-02-16 Thread Nick Stinemates
Yuval Schwartz wrote: Hello, Can you please help me, I am writing code where I create a file and write to it from a form on a webpage and then read and display this file on the webpage. I want to change the color of the text that is written to the file. Do you know how I can do this? This