[PHP] Re: PHP running as CGI? How to set x.php as index page?

2007-03-04 Thread Joker7
In news: [EMAIL PROTECTED],
Micky Hulse  said:
 PHP gurus I need your help!

 I worked on a small site for a client who uses a host that I think
 has PHP running as or under CGI (not much experience with this type
 of setup personally.)

 Long story short, this host really sucks... they are very
 restrictive... I guess understandably so, but it is frustrating from
 a developer perspective -- for example, no .htaccess to edit... is
 this because of the CGI setup (assuming yes)?

 Well, my question:

 Anyone know of a way to set a non index.php page as the index?
 Normally I would use the .htaccess file to do this, but
 unfortunately the server blows-up when one is uploaded.

 Can I drop a CGI script into my cgi-bin folder to do similar
 .htaccess things? For example, I would love to make sure all my
 non-www (http://domain.com) traffic is routed to
 http://www.domain.com -- I could easily do this with my .htaccess
 file... Can that, or setting a default index page, be done with a
 CGI script(s)?

 Should I RTFM? :D

 Many thanks in advance... sorry if noob questions. :)

 Cheers,
 Micky

 --
  Wishlist: http://snipurl.com/vrs9
Switch: http://browsehappy.com/
  BCC?: http://snipurl.com/w6f8
My: http://del.icio.us/mhulse

I would suggest you change host as this one seem very restrictive or ask 
your host to edit the .htaccess  file for you ;(

Chris

-- 

Superb hosting  domain name deals http://host.kick-butt.co.uk 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP running as CGI? How to set x.php as index page?

2007-03-04 Thread Micky Hulse

Joker7 wrote:
I would suggest you change host as this one seem very restrictive or ask 
your host to edit the .htaccess  file for you ;(


Hi Chris, thanks for the reply. :)

Yeah, I actually talked to client today, and they are fed-up with host 
too... sounds like they want to make a switch asap. On top of being too 
developmentally restrictive, they are also very expensive.


Thanks for help -- have a great day/night.
Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP running as CGI? How to set x.php as index page?

2007-03-04 Thread Micky Hulse

Hi Mike, thanks for the help, I really appreciate your time. :)

Michael Weaver wrote:

It's not a PHP trick, but it should work for you, even with restrictions.


Definitely a good option. Actually, that is close to what I am doing now:

?php
	#header(Refresh: 0; URL=http://www.domain.com/start.php?page=home;); 
/* Old technique. */
	require('http://www.domain.com/start.php?page=home'); /* Current 
technique. */

?

I chose to use require() for SEO purposes... I think Google tends to 
frown upon header redirects and/or refreshes... but require() has become 
slightly problematic for other reasons... I think the bottom line is 
that this host sucks... need to make a switch. :D


Thanks for the tip, I greatly appreciate your help.

Cheers,
Micky

--
 Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP running as CGI? How to set x.php as index page?

2007-03-03 Thread Michael Weaver

Hi Micky,

You could get around this using the HTML meta tag in the index.html  
page:


html
head
meta http-equiv=refresh content=0; url=http://www.yourdomain.com/ 
x.php/

/head
/html

It's not a PHP trick, but it should work for you, even with  
restrictions.


Best regards,

Mike Weaver

--
Michael Weaver
Founder/Chief Facilitator
Dynamic Insight
Enhancing Professional Awareness   Communication
Tel: 1.814.574.4871
Email: [EMAIL PROTECTED]

The information in this email and subsequent attachments may contain
confidential information that is intended solely for the attention  
and use of
the named addressee(s). This message or any part thereof must not be  
disclosed,
copied, distributed or retained by any person without authorization  
from the
addressee. If you are not the intended recipient, please contact the  
sender by

reply email and destroy all copies of the original message.