Opening html files from PHP script

This is a discussion on Opening html files from PHP script within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi Thanx guys for the previous help on authentication. I could not get hold of my host, so decided I'...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-28-2006
Nakkie
 
Posts: n/a
Default Opening html files from PHP script

Hi
Thanx guys for the previous help on authentication.
I could not get hold of my host, so decided I'll just go with form
authentication iso Apachy - works fine now.

could anyone give me the code to open an html page from my login page? in
other words, once a user logs in, he/she is derected to another page?
in my current code I have: echo "memberarea/members.html";
for a successful login
This needs to be swapped with what ever code to open a page.....


Reply With Quote
  #2 (permalink)  
Old 12-29-2006
Serge Terryn
 
Posts: n/a
Default Re: Opening html files from PHP script

Nakkie schreef:
> Hi
> Thanx guys for the previous help on authentication.
> I could not get hold of my host, so decided I'll just go with form
> authentication iso Apachy - works fine now.
>
> could anyone give me the code to open an html page from my login page? in
> other words, once a user logs in, he/she is derected to another page?
> in my current code I have: echo "memberarea/members.html";
> for a successful login
> This needs to be swapped with what ever code to open a page.....
>
>


header('Location: memberarea/members.html');

--
Posting at the top because that's where the cursor happened to be,
is like shitting in your pants because that's where your asshole
happened to be.

http://www.essetee.be
Reply With Quote
  #3 (permalink)  
Old 12-29-2006
Nakkie
 
Posts: n/a
Default Re: Opening html files from PHP script

Thanx a mil that works perfectly.

I just discovered something else.......
On my login page I use a simple username and password form where the PHP
code authenticate that against a .txt file

The authentication works fine entering usernames and passwords. When leaving
the username and password fields blank - it authenticates you....
I used my scrip that generate the accounts and add the username and password
pair to my 'txt file with a dummy password, but it still authenticates when
leaving the fields blank....

Any ideas?



"Serge Terryn" <serge@essetee.be> wrote in message
news:aF4lh.262145$QD.5675039@phobos.telenet-ops.be...
> Nakkie schreef:
>> Hi
>> Thanx guys for the previous help on authentication.
>> I could not get hold of my host, so decided I'll just go with form
>> authentication iso Apachy - works fine now.
>>
>> could anyone give me the code to open an html page from my login page? in
>> other words, once a user logs in, he/she is derected to another page?
>> in my current code I have: echo "memberarea/members.html";
>> for a successful login
>> This needs to be swapped with what ever code to open a page.....

>
> header('Location: memberarea/members.html');
>
> --
> Posting at the top because that's where the cursor happened to be,
> is like shitting in your pants because that's where your asshole
> happened to be.
>
> http://www.essetee.be



Reply With Quote
  #4 (permalink)  
Old 12-29-2006
Michael Fesser
 
Posts: n/a
Default Re: Opening html files from PHP script

..oO(Serge Terryn)

>header('Location: memberarea/members.html');


header('Location: http://example.com/memberarea/members.html');

The full URL is required.

Micha
Reply With Quote
  #5 (permalink)  
Old 12-31-2006
Serge Terryn
 
Posts: n/a
Default Re: Opening html files from PHP script

Nakkie schreef:
> Thanx a mil that works perfectly.
>
> I just discovered something else.......
> On my login page I use a simple username and password form where the PHP
> code authenticate that against a .txt file
>
> The authentication works fine entering usernames and passwords. When leaving
> the username and password fields blank - it authenticates you....
> I used my scrip that generate the accounts and add the username and password
> pair to my 'txt file with a dummy password, but it still authenticates when
> leaving the fields blank....
>
> Any ideas?
>
>
>
> "Serge Terryn" <serge@essetee.be> wrote in message
> news:aF4lh.262145$QD.5675039@phobos.telenet-ops.be...
>> Nakkie schreef:
>>> Hi
>>> Thanx guys for the previous help on authentication.
>>> I could not get hold of my host, so decided I'll just go with form
>>> authentication iso Apachy - works fine now.
>>>
>>> could anyone give me the code to open an html page from my login page? in
>>> other words, once a user logs in, he/she is derected to another page?
>>> in my current code I have: echo "memberarea/members.html";
>>> for a successful login
>>> This needs to be swapped with what ever code to open a page.....

>> header('Location: memberarea/members.html');
>>
>> --
>> Posting at the top because that's where the cursor happened to be,
>> is like shitting in your pants because that's where your asshole
>> happened to be.
>>
>> http://www.essetee.be

>
>


if(empty($var)) { do something; }


--
Posting at the top because that's where the cursor happened to be,
is like shitting in your pants because that's where your asshole
happened to be.

http://www.essetee.be
Reply With Quote
  #6 (permalink)  
Old 01-04-2007
Nakkie
 
Posts: n/a
Default Re: Opening html files from PHP script


"Michael Fesser" <netizen@gmx.de> wrote in message
news:h6iap214kb55b8k2m86ifdlsrv2u40bn25@4ax.com...
> .oO(Serge Terryn)
>
>>header('Location: memberarea/members.html');

>
> header('Location: http://example.com/memberarea/members.html');
>
> The full URL is required.
>
> Micha


Thanx a mil Micha - got it sorted


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:01 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0