i know i am not a genius, but i also know that i am not dumb. so when i was stuck on this problem i can't solve, i doubt myself. am i really not dumb?
see, the problem i was trying to solve is how would i test my php codes. i tried opening it on my browser but all i see was my codes. it's not supposed to be like that. i am supposed to see the result or an error message but none of these came out. i checked my wamp server, it's ok. it is green so i know it is running perfectly. i tried mysql if it is good, made a few query, and it ran well. i spend hours thinking but to no effect. i can't solve it. so i did what most men do if they can't solve a problem, i went to sleep.
i think that was the best idea i ever had that day, to go to sleep. after that , i feel refreshed and good. my brain was working well that i solved my problem myself.
it is really not hard to figure out the solution. to test my codes, i was dragging my file into the browser. well, that is how i was testing my html codes and it works perfectly. a total noob in php as i am, i did the same for php. so there is where my trouble started. how did i found out of the solution, well through mysql. i am using mysql through phpmyadmin. i opened a browser then i go to localhost and click on phpmyadmin link. then i thought, is this supposed to be the way to test my php? turns out, you have to place your file into the www folder where your wamp is intalled. in my case it is in my d:\wamp\www. then access the file by typing in the address bar of your browser localhost/[the name of the php file]. just like that and i can test my codes now, one problem solved.
my headaches are supposed to go away but no. yes, i can test my php codes now but the results are still erroneous. so many error messages that i have to sleep again. hope that can solve my problems, again. i am still a noob but i can get past this, hopefully. 'till next time!
No comments:
Post a Comment