Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Extensionless PHP scripts (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Extensionless PHP scripts
#443
fattymattybrewing (User)
Support Your Local Brewer
Expert Boarder
Posts: 105
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Fatty Matty Brewing Location: Southwestern Wisconsin Birthdate: 1974-11-05
Extensionless PHP scripts 3 Months, 2 Weeks ago Karma: 3  
This topic was started off-topic in another thread which is here: http://www.dew-code.com/component/option,com_fireboard/func,view/Itemid,26/catid,8/id,439/

To recap, I have setup a new hosting account at Godaddy.com (happy with so far) and I read in the Godaddy user knowledgebase this...

http://help.godaddy.com/article/1274
QUOTE:
For security reasons, we run PHP as a CGI and not as a module. Because of this and the version of Apache we run (1.3.3), you cannot use extensionless PHP files on your Web site without employing a tool like mod_rewrite.


I have been thinking about setting up this Dew-NewPHPLinks BETA script for helping tweek and contribute to this beta script project and have the opportunity with a new website I have built for a client. After our recent initial launch with his site I am now at the door steps of promoting his site- SEO style.

Don't understand what I am doing here, but I think the below comments about using an .htaccess file may be ignored(??) if I can figure out how to use mod_rewrite to run "directory".

I have messed around with using a test .htaccess file which tells the server(??) to use my extensionless PHP script (in our case "directory" as a PHP file. The test .htaccess file looks like this:

Code:

<Files godaddy_phpscript> #ForceType application/x-httpd-php #SetHandler application/x-httpd-php #SetHandler application/x-httpd-php5 ForceType x-httpd-php </Files>
To accompany the test .htaccess file, I have the test extentionless PHP script here: http://www.glacierviewlandscape.com/landscaping_links/godaddy_phpscript The godaddy_phpscript file actually shows the php and html code. I tried un-commenting each ForceType & SetHandler lines and reuploading the .htaccess file each time but non of them actuall just showed...
QUOTE:
This PHP script is running
Funny enough, I did try running this test extensionless script "godaddy_phpscript" using a joomla iframes wrapper and it worked. This relates to my other post today.
 
Report to moderator   Logged Logged  
 
Lifes Too Short To Drink Crappy Beers
fattymattybrewing.com
  The administrator has disabled public write access.
#454
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Extensionless PHP scripts 3 Months, 1 Week ago Karma: 7  
I've read this several times over the past few days and am still having a tough time wrapping my brain around it. The fact that it runs as intended when in a Joomla wrapper is mind boggling.

The only thing that comes to mind is the fact that directives in a .htaccess file impacts all files and directories beneath it.. so, a .htaccess file in the root directory affects all files in your landscaping_links , in addition to a .htaccess file within that same directory.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#471
fattymattybrewing (User)
Support Your Local Brewer
Expert Boarder
Posts: 105
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Fatty Matty Brewing Location: Southwestern Wisconsin Birthdate: 1974-11-05
Re:Extensionless PHP scripts 3 Months, 1 Week ago Karma: 3  
I don't get it either but am glad it works through the joomla! wrapper, this is how I would make it work. Am still waiting for my client to ok the SEO work and don't see it happening immediately as he is just starting up his business and the $$ is not too liquid for him. He has been honestly one of the best fast paying customers and have gone way beyond what I billed him for. Anyway, I am still working with my old host - Jaguarpc.com using fattymattybrewing.com & my other client - craigscakeshop.com.

Cheers - my brother in arms!
 
Report to moderator   Logged Logged  
 
Lifes Too Short To Drink Crappy Beers
fattymattybrewing.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008