thugsmoke058 0 Report post Posted September 4, 2007 where can i upload php file and use it?im using this free webs the Xistoi want to use php like a website Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted September 4, 2007 PHP is already included in your hosting account, no need to upload anything, simply name your files with a php file extension and they will be parsed as php. Share this post Link to post Share on other sites
YungOdo 0 Report post Posted September 4, 2007 and also a good hosting site you can use to upload php files is http://www.seektoexplore.com/?dn=ripway.com&pid=7POF8BU45&_glst=2 Share this post Link to post Share on other sites
thugsmoke058 0 Report post Posted September 4, 2007 i upload mu file in public_html and there's an error come out >,> Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted September 4, 2007 Can you post a link please.Or post the error message you are receiving. There are simply too many possibilities to 'guess' what the error is or how to fix it.We may also ask for the code to be posted, but let us see the error message first. Thanks. Share this post Link to post Share on other sites
thugsmoke058 0 Report post Posted September 4, 2007 (edited) my error is that only script come out that when i try to click it Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 32Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 33Warning: mysql_query() [function.mysql-query]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 47Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 47Fatal error: Database error in "/home/smoke058/public_html/thugsmoke058/index.php" on line 44in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 88 Notice from rvalkass: You need to quote the error message. Edited September 5, 2007 by rvalkass (see edit history) Share this post Link to post Share on other sites
rvalkass 5 Report post Posted September 5, 2007 Your problem lies with this part: Access denied for user 'nobody'@'localhost' (using password: NO)You need to provide a username and password if you want to connect to MySQL and access your database. However, this shows you are being referred to as 'nobody' and you have not given the script a password. You need to put this line in before you try to access the database:mysql_connect (localhost, "YOUR USERNAME", "YOUR PASSWORD");Obviously replace the username and password with your actual cPanel username and password.Try that and see if the error disappears. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted September 5, 2007 rvalkass has given good advise, but also, you need to check to make certain the Database has been created, and that you have the correct name, user and password. The Trap is set-up so that the database names are pre-fixed with your cpanel name and an underscore.Example: DB named "stuff" should be referenced by "jlhaslip_stuff" as the DB name. And the DB user needs to be set-up in MYSQLADMIN on the Cpanel, too. Share this post Link to post Share on other sites
thugsmoke058 0 Report post Posted September 5, 2007 weee.. thanks guys :Pit help me a lot now i will try all your advice :Di will try my best to do this Share this post Link to post Share on other sites