Jump to content

.htaccess help!!!!!


SamShade

Recommended Posts

i'm very new 2 php & while tryin 2 implement a cgi database script i changed the htaccess file of the folder. for whatever reason i wasnt able to get that to work so now im attemptin to use php.

 

here's my dilemna. i dont even know where to start. when i run a php script in html or php file it receive a '500 Internal Server Error'. I've tried changin permissions still no luck. so i've come to the conclusion it must be somethin with the htaccess file.

 

all im tryin to do is create a VERY simple database-driven page which lists the records in my database. i used PHPMyAdmin to create the database so as far as i can see all i need to is to figure out how to connect to it. plz help

Link to comment
Share on other sites

Upload a new .htaccess file in it's place. Either leave it empty, or place proven code into the replacement file. Use notepad or an editor that you know will not add any extra code. Then test your script.

 

There are lots of information on htaccess... try a google search on "fun with .htaccess" for pages with useful tips.

 

Best  :)

Link to comment
Share on other sites

i dont think this error means he doesnt have php installed, if he didnt, he wouldnt get a 500 erro. it would just show the page, with the code, just like my host does not have ColdFusion installed, so if try to run a .cfm file, it just shows the whole source without executing any code.

Link to comment
Share on other sites

my server def has php installed, i've ran a phpbb forum before, what i'm simply trying to do is execute a php database search to retrieve all entries from a csv file and show info in html table. i can figure out the php code to do that but i just dont know what my first step is to implement it. if that helps....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.