Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Links url lists code of directory file (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Links url lists code of directory file
#43
canoe (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Links url lists code of directory file 9 Months ago Karma: 2  
My DewNewPHPLinks installation suddenly stopped working after operating fine for over a year. The links url now just lists the code in the file called "directory". How can I fix this?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#44
Dewed (Moderator)
Moderator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Links url lists code of directory file 9 Months ago Karma: 7  
This likely means that the server has been upgraded, or possibly had it's security setting tweaked. A responsible web host should alert you prior to making such a change, or at least alert you afterwards.

Basically the directive in the included .htaccess file is being ignored, so Apache doesn't know that the "directory" file is indeed a PHP script.

Possibly you can fix it by trying a different syntax for the directive, but if none of these 3 variations work, I can on;y suggest you contact your web host.

Code:

<Files directory> ForceType application/x-httpd-php #SetHandler application/x-httpd-php #ForceType x-httpd-php </Files>
Try each of the 3 directives by toggling the commented lines (lines that start with # are commented, and ignored) Possibly you just have teh wrong syntax.. or worst case, your server has been configured to completly ignore .htaccess files
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#45
canoe (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Links url lists code of directory file 8 Months, 4 Weeks ago Karma: 2  
Thanks. I tried all three directives and none of them worked. The support person at VistaPages, my host, says:

"Any of the upgrades that were done would not have affected your site unless your script is old, really old. We're using PHP5 + ModSUPHP. There have been no major changes made to the server. So you'll have to figure it out..."

Any other ideas or options would be appreciated.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#46
Dewed (Moderator)
Moderator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Links url lists code of directory file 8 Months, 4 Weeks ago Karma: 7  
GRRRR.. I just love how these guys point fingers. The script could be written on stone tablets, it wouldn't matter, it isn't being executed, because Apache is either ignoring the directives in the .htaccess file, doesnt understand them, or is configured to disallow them.

PHP is not even processing the script, Apache is sending it straight to the browser. so the contents of the script doesn't even come into play yet. Hopefully that much is apparent to even the rather short sighted techie who emailed you.

I have heard that some servers don't see changes to the .htaccess files right away.


And just to be clear... you are trying one directive at a time, by editing the .htaccess file that is in the same directory as the "directory" file.

See if you get different behavior by browsing these variations on the URL
http://yoursite/install-dir/directory?
http://yoursite/install-dir/directory/?
http://yoursite/install-dir/directory/
http://yoursite/install-dir/directory

I'm curious if they all behave the same way, possibly, one would work correctly, if so, which one.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/13 19:20 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#47
Dewed (Moderator)
Moderator
Posts: 250
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:Links url lists code of directory file 8 Months, 4 Weeks ago Karma: 7  
The tech says...

"There have been no major changes made to the server. So you'll have to figure it out..."

You say ...

"My DewNewPHPLinks installation suddenly stopped working after operating fine for over a year."

Obviously one of you is mistaken, so far, based on available info I vote the tech is.. um wrong. Obviouly something has changed, it just doesn't affect most people, because DewNewPHPLinks is one of the few open source scripts that uses this method to generate friendlier URLs.. but certainly not the only one.
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#50
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:Links url lists code of directory file 8 Months, 4 Weeks ago Karma: 3  
What is the URL of your dew-new phplinks site? Maybe that can help us figure out what is going on?
 
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