Re: [PHP] www. not working

2008-02-15 Thread Shawn McKenzie
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-15 Thread Shawn McKenzie
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 Apache, you do realize that al

Re: [PHP] www. not working

2008-02-15 Thread Shawn McKenzie
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 Apache, you do realize that all of this can be done > in

Re: [PHP] www. not working

2008-02-15 Thread Micky Hulse
Jim Lucas wrote: If you are running Apache, you do realize that all of this can be done in Apache instead of PHP right? .htaccess example: # Power-up the rewrite engine: RewriteEngine on # Redirect all non-www traffic: RewriteCond %{HTTP_HOST} ^mysite\.com [NC] RewriteRule ^/?(.*)$ http://www.

Re: [PHP] www. not working

2008-02-15 Thread Jim Lucas
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 Apache, you do realize that all of this can be done in Apache instead of PHP right?

Re: [PHP] www. not working

2008-02-15 Thread Jim Lucas
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? // Public Functions

[PHP] Semaphores without sysvmsg?

2008-02-15 Thread Michael McGlothlin
Does anyone have a good method of supporting semaphores when PHP's System V IPC functions can't be enabled? I'm trying to implement locking for using shmop (actually modifying someone elses code) and it requires sysvmsg but my shared host doesn't have this enabled. Thanks, Michael McGlothlin S

Re: [PHP] www. not working

2008-02-15 Thread Valedol
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? checkWWW(); $this->ServerName

Re: [PHP] Re: Posting Summary for Week Ending 15 February, 2008: php-general@lists.php.net

2008-02-15 Thread Jim Lucas
Nathan Rixham wrote: PostTrack [Dan Brown] wrote: Posting Summary for PHP-General List Week Ending: Friday, 15 February, 2008 Messages| Bytes | Sender ++-- 394 (100%) 601925 (100%)

RE: [PHP] How to read excel sheet and display it's contents.

2008-02-15 Thread g4me0ver
to get phpexcelreader to work you must change the require_once line for this one require_once 'OLERead.inc'; tedd-2 wrote: > > At 3:46 PM -0800 2/11/08, Warren Vail wrote: >>I finally settled for CSV, but even there Microsoft plays games with the >>format, or so it seems. > > Yes, it's a bu

[PHP] Re: Posting Summary for Week Ending 15 February, 2008: php-general@lists.php.net

2008-02-15 Thread Nathan Rixham
PostTrack [Dan Brown] wrote: Posting Summary for PHP-General List Week Ending: Friday, 15 February, 2008 Messages| Bytes | Sender ++-- 394 (100%) 601925 (100%)

Re: [PHP] https forced redirect question

2008-02-15 Thread Jim Lucas
Robert Cummings wrote: On Fri, 2008-02-15 at 15:05 -0500, Robert Cummings wrote: On Fri, 2008-02-15 at 14:58 -0500, nihilism machine wrote: why isnt this redirecting my page to https://www.mydomain.com instead the page stays at my domain.com checkHTTPS(); $this->checkWWW();

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

2008-02-15 Thread Daniel Brown
On Fri, Feb 15, 2008 at 3:55 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Still doing the old behavior (www.www.domain.com) This code works. You can see it in action at http://www.pilotpig.net/code-library/checkwww.php and see the source at http://www.pilotpig.net/code-library/source.php

Re: [PHP] question about database field-types and special characters

2008-02-15 Thread tedd
At 12:10 AM -0500 2/15/08, Robert Cummings wrote: > Or, and this is what I would do, convetr your database to UTF-8. That way you're prepared for the rest of the world. In this day and age I would creat a site with anything but UTF-8. Wouldn't create a site with anything but UTF-8.

[PHP] Posting Summary for Week Ending 15 February, 2008: php-general@lists.php.net

2008-02-15 Thread PostTrack [Dan Brown]
Posting Summary for PHP-General List Week Ending: Friday, 15 February, 2008 Messages| Bytes | Sender ++-- 394 (100%) 601925 (100%) EVERYONE 31 (7.9%)

Re: [PHP] www. check still not working

2008-02-15 Thread nihilism machine
thank you everyone! On Feb 15, 2008, at 3:53 PM, Nathan Rixham wrote: Anjan Upadhya wrote: // Redirect to WWW public function WWWRedirect() { if ($this->WWW == false) { $redir = "Location: http://www."; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; heade

Re: [PHP] www. check still not working

2008-02-15 Thread Nathan Rixham
Anjan Upadhya wrote: // Redirect to WWW public function WWWRedirect() { if ($this->WWW == false) { $redir = "Location: http://www."; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header($redir); } } Regards, Anjan Upadhya nihilism machine

Re: [PHP] www. not working

2008-02-15 Thread Daniel Brown
I'm sorry, the thread to which I was referring is "check if website has www. in front of domain". On Fri, Feb 15, 2008 at 3:50 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > Go back to the original thread you started (https ). > > > > On Fri, Feb 15, 2008 at 3:46 PM, nihilism machine >

Re: [PHP] www. not working

2008-02-15 Thread Daniel Brown
Go back to the original thread you started (https ). On Fri, Feb 15, 2008 at 3:46 PM, 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 >

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

2008-02-15 Thread Daniel Brown
Please don't start a new thread for every time you change a bit of your code. It messes up the archives and fills people's inboxes. In any case, change the following two functions as shown. You were setting $this->WWW to False (with only one = operator), and you should also use $_SERVER[

[PHP] www. not working

2008-02-15 Thread nihilism machine
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? checkWWW(); $this->ServerName = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; } //

Re: [PHP] www. check still not working

2008-02-15 Thread Anjan Upadhya
// Redirect to WWW public function WWWRedirect() { if ($this->WWW == false) { $redir = "Location: http://www."; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header($redir); } } Regards, Anjan Upadhya nihilism machine wrote: // Pu

[PHP] www. check still not working

2008-02-15 Thread nihilism machine
checkWWW(); } // Check if site is preceeded by 'WWW' public function checkWWW() { $myDomain = $_SERVER['SERVER_NAME']; $FindWWW = 'www.'; $POS = strpos($myDomain, $FindWWW); if ($POS === 1) {

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

2008-02-15 Thread Daniel Brown
On Fri, Feb 15, 2008 at 3:18 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > here is my function: > > // Check if site is preceeded by 'WWW' > public function checkWWW() { > $myDomain = $_SERVER['SERVER_NAME']; > $FindWWW = '.'; >

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

2008-02-15 Thread nihilism machine
here is my function: // Check if site is preceeded by 'WWW' public function checkWWW() { $myDomain = $_SERVER['SERVER_NAME']; $FindWWW = '.'; $POS = strpos($myDomain, $FindWWW); if ($POS === false) {

Re: [PHP] https forced redirect question

2008-02-15 Thread Robert Cummings
On Fri, 2008-02-15 at 15:05 -0500, Robert Cummings wrote: > On Fri, 2008-02-15 at 14:58 -0500, nihilism machine wrote: > > why isnt this redirecting my page to https://www.mydomain.com instead > > the page stays at my domain.com > > > > > class URL { > > > > // Public Variables > > pu

Re: [PHP] https forced redirect question

2008-02-15 Thread Robert Cummings
On Fri, 2008-02-15 at 14:58 -0500, nihilism machine wrote: > why isnt this redirecting my page to https://www.mydomain.com instead > the page stays at my domain.com > > class URL { > > // Public Variables > public $HTTPS; > public $ServerName; > public $WWW; > >

[PHP] https forced redirect question

2008-02-15 Thread nihilism machine
why isnt this redirecting my page to https://www.mydomain.com instead the page stays at my domain.com checkHTTPS(); $this->checkWWW(); $this->ServerName = $_SERVER['SERVER_NAME']; } // Check if HTTPS public function checkHTTPS() {

Re: [PHP] Sending XML to MSIE7

2008-02-15 Thread Shawn McKenzie
Brian Dunning wrote: > I just tried that, and unfortunately the MSIE7 toolkit behavior was the > same. Darn, I had high hopes for your suggestion as soon as I read it. I > fear this means there's little we can do server-side in PHP, except to > choose something other than XML for the result. > >

Re: [PHP] Sending XML to MSIE7

2008-02-15 Thread Peter Ford
Stut wrote: > Brian Dunning wrote: >> I just tried that, and unfortunately the MSIE7 toolkit behavior was >> the same. Darn, I had high hopes for your suggestion as soon as I read >> it. I fear this means there's little we can do server-side in PHP, >> except to choose something other than XML for

Re: [PHP] Re: Create collections of objects

2008-02-15 Thread Peter Ford
Emilio Astarita wrote: > Peter Ford <[EMAIL PROTECTED]> writes: > >> Emilio Astarita wrote: >>> Hi people, >>> >> A static method should still be able to set values of private members. I do >> something like: >> ... >> > > Thank you, I was not sure how to implement it. > > Another question. It w

Re: [PHP] Sending XML to MSIE7

2008-02-15 Thread Stut
Brian Dunning wrote: I just tried that, and unfortunately the MSIE7 toolkit behavior was the same. Darn, I had high hopes for your suggestion as soon as I read it. I fear this means there's little we can do server-side in PHP, except to choose something other than XML for the result. You shou

Re: [PHP] Gzipped output

2008-02-15 Thread Eric Butera
On Thu, Feb 14, 2008 at 3:52 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > On Mon, February 11, 2008 9:59 am, Eric Butera wrote: > > On Feb 11, 2008 10:44 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > >> Eric Butera wrote: > >> > >> >> I like it from a coding point of view (it's neat and e

Re: [PHP] XSLTProcessor without validation

2008-02-15 Thread Andrew Ballard
On Fri, Feb 15, 2008 at 3:31 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > 2008. 02. 15, péntek keltezéssel 07.54-kor Siegfried Gipp ezt írta: > > Am Donnerstag, 14. Februar 2008 21:01:42 schrieb Richard Lynch: > > > > > You could also consider filing a "Feature Request" in > > > http://bugs.php.

Re: [PHP] Sending XML to MSIE7

2008-02-15 Thread Brian Dunning
I just tried that, and unfortunately the MSIE7 toolkit behavior was the same. Darn, I had high hopes for your suggestion as soon as I read it. I fear this means there's little we can do server-side in PHP, except to choose something other than XML for the result. On Feb 14, 2008, at 11:56

Re: [PHP] Re: Create collections of objects

2008-02-15 Thread Emilio Astarita
Peter Ford <[EMAIL PROTECTED]> writes: > Emilio Astarita wrote: >> Hi people, >> > > A static method should still be able to set values of private members. I do > something like: > ... > Thank you, I was not sure how to implement it. Another question. It would be a better approach, making the c

[PHP] Question about cURL, and iFrames...

2008-02-15 Thread Jason Pruim
Happy friday to all of you! May the Beer[1] flow freely from the kegs to your lips after work! I am trying to think through something, I am writing a simple proxy script for my own knowledge and to simplify my life :) What I want to do is bring in multiple website by going to 1 webpage (Th

[PHP] Re: stream_select problem with signals

2008-02-15 Thread Nathan Rixham
Marcos Lois Bermúdez wrote: I'm rewriting an API to access OneWire Net, i have a problem with select and signals. The class will support both types of sockets, trought BSD sockets and with streams. My problem is that when the PHP app is in socket select and a signal arrives it threat it as a err

[PHP] stream_select problem with signals

2008-02-15 Thread Marcos Lois Bermúdez
I'm rewriting an API to access OneWire Net, i have a problem with select and signals. The class will support both types of sockets, trought BSD sockets and with streams. My problem is that when the PHP app is in socket select and a signal arrives it threat it as a error, so i can fix in socket_se

[PHP] Re: Create collections of objects

2008-02-15 Thread Peter Ford
Emilio Astarita wrote: > Hi people, > > I want a class that allows create objects that get the information > consulting the DB. So, I am thinking to do something like this: > > class element { > public __construct($id,$type = 'id') { > switch($type) { > case 'id': > $where = sprin

[PHP] Re: XSLTProcessor without validation

2008-02-15 Thread Peter Ford
Siegfried Gipp wrote: > Hi, > > i still got no answer. Maybe i did not see it, altough i'm trying to read any > single post. But may be i overlooked it due to high traffic. So now i have > set up a filter (hopefully) copying answers to another folder. > > Here is the question: Is it possible to

Re: [PHP] XSLTProcessor without validation

2008-02-15 Thread Zoltán Németh
2008. 02. 15, péntek keltezéssel 07.54-kor Siegfried Gipp ezt írta: > Am Donnerstag, 14. Februar 2008 21:01:42 schrieb Richard Lynch: > > > You could also consider filing a "Feature Request" in > > http://bugs.php.net/ > Well, the bug reporting page has a bug. A graphical captcha is needed, but >

Re: [PHP] Re: Uploading PDF

2008-02-15 Thread Aleksandar Vojnovic
Upload error 2 occurs when the file size exceeds the maximum allowed upload size. Aleksander David Robley wrote: Pastor Steve wrote: 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 ( [