SamShade Posted June 12, 2007 Share Posted June 12, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/55257-htaccess-help/ Share on other sites More sharing options...
richardw Posted June 12, 2007 Share Posted June 12, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/55257-htaccess-help/#findComment-273117 Share on other sites More sharing options...
SamShade Posted June 12, 2007 Author Share Posted June 12, 2007 thx i'll try it out Quote Link to comment https://forums.phpfreaks.com/topic/55257-htaccess-help/#findComment-273511 Share on other sites More sharing options...
sKunKbad Posted June 12, 2007 Share Posted June 12, 2007 Are you sure you have php installed on your server? Quote Link to comment https://forums.phpfreaks.com/topic/55257-htaccess-help/#findComment-273525 Share on other sites More sharing options...
techiefreak05 Posted June 13, 2007 Share Posted June 13, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/55257-htaccess-help/#findComment-273618 Share on other sites More sharing options...
neel_basu Posted June 13, 2007 Share Posted June 13, 2007 Whats teh location of teh php file you run ?? http://localhost/????????????? Open your htdocs folder. Is there any .htaccess file ?? If there is Paste its contents here. Quote Link to comment https://forums.phpfreaks.com/topic/55257-htaccess-help/#findComment-273723 Share on other sites More sharing options...
SamShade Posted June 13, 2007 Author Share Posted June 13, 2007 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.... Quote Link to comment https://forums.phpfreaks.com/topic/55257-htaccess-help/#findComment-273866 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.