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
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
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
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.
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?
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
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
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
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%)
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
PostTrack [Dan Brown] wrote:
Posting Summary for PHP-General List
Week Ending: Friday, 15 February, 2008
Messages| Bytes | Sender
++--
394 (100%) 601925 (100%)
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();
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
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.
Posting Summary for PHP-General List
Week Ending: Friday, 15 February, 2008
Messages| Bytes | Sender
++--
394 (100%) 601925 (100%) EVERYONE
31 (7.9%)
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
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
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
>
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
>
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[
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'];
}
//
// 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
checkWWW();
}
// Check if site is preceeded by 'WWW'
public function checkWWW() {
$myDomain = $_SERVER['SERVER_NAME'];
$FindWWW = 'www.';
$POS = strpos($myDomain, $FindWWW);
if ($POS === 1) {
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 = '.';
>
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) {
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
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;
>
>
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() {
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.
>
>
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
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
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
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
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.
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
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
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
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
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
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
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
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
>
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
(
[
43 matches
Mail list logo