php? Posted August 3, 2007 Share Posted August 3, 2007 Okay guys... I am completely new to php (call me a noob if you'd like) and im hoping for a complete overview of php/mySQL. Every guide ive seen makes no sense to me. You can also post some tips and hints to learning Im a fast learner in my opinion... hoping to start a text-based game in about a year. :-\ I already have php/mySQL/apache and a ton of other junk that came with the Xampp download. Where the heck do i put scripts... and what are the different servers for? Host im guessing. Anyways... Please help Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/ Share on other sites More sharing options...
seikan Posted August 3, 2007 Share Posted August 3, 2007 Here is my starting point. Let me share with you: http://www.tizag.com/phpT/ Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314644 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 Thanx Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314648 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 Well im reading... and im wondering when it says "If you save this file (e.g. helloworld.php) and place it on PHP enabled server and load it up in your web browser, then you should see "Hello World!" displayed. If not, please check that you followed our example correctly." What exactly would my PHP server be? Apache? And how would i place a file on it. Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314655 Share on other sites More sharing options...
cooldude832 Posted August 3, 2007 Share Posted August 3, 2007 best way to learn php is php.net, tizag and w3schools. when you come across a function you don't understand (or find a need for a function you havn't used yet) serach it up on php.net and read about it, or ask here for a function that does that Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314657 Share on other sites More sharing options...
seikan Posted August 3, 2007 Share Posted August 3, 2007 Well im reading... and im wondering when it says "If you save this file (e.g. helloworld.php) and place it on PHP enabled server and load it up in your web browser, then you should see "Hello World!" displayed. If not, please check that you followed our example correctly." What exactly would my PHP server be? Apache? And how would i place a file on it. PHP server is refer to your apache server. The server path by default is under "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs". But seem like you are using XAMPP, the folder should avialble in ur XAMPP directory. Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314660 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 Well on my Xampp directory theres a file called Apache, i click on it and it comes up with a ton of sub-folders (eg: bin, conf, logs, error, proxy, symbols, modules) :-\ Any idea where to go from there? Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314664 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 Also found a folder called htdocs Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314665 Share on other sites More sharing options...
seikan Posted August 3, 2007 Share Posted August 3, 2007 Also found a folder called htdocs That's it. Put your PHP files there. And open your browser, type in "http://localhost/yourfile.php" Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314667 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\dk1111.php\lib.php on line 55 Access denied for user 'ODBC'@'localhost' (using password: NO) Comes up with that? Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314670 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 ...................? Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314676 Share on other sites More sharing options...
shen Posted August 3, 2007 Share Posted August 3, 2007 post your code that shows the error Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314684 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 http://paste.stirk.org/3280 Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314694 Share on other sites More sharing options...
shen Posted August 3, 2007 Share Posted August 3, 2007 check whether, the mysql server, username and password is correct or not? if its correct, ODBC'@'localhost' instead of localhost, given ur ip address of mysql server. Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314704 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 how do i check that... Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314714 Share on other sites More sharing options...
shen Posted August 3, 2007 Share Posted August 3, 2007 in your code, line no. 51 function opendb() { // Open database connection. include('config.php'); extract($dbsettings); $link = mysql_connect($server, $user, $pass) or die(mysql_error()); mysql_select_db($name) or die(mysql_error()); return $link; } the function opendb, where it is called from, check the varialbes $server,$user and $pass are assigned or not. Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314718 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 My whole mySQL wont start up.... it starts and then shuts down Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314727 Share on other sites More sharing options...
php? Posted August 3, 2007 Author Share Posted August 3, 2007 K its loaded up... but there are no variables or nothing Quote Link to comment https://forums.phpfreaks.com/topic/63142-php-tutorialhelp/#findComment-314729 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.