Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Need Help Uploading Php
thugsmoke058
post Sep 4 2007, 03:08 PM
Post #1


Member [Level 1]
****

Group: Members
Posts: 65
Joined: 25-August 07
From: Philippines
Member No.: 48,803



where can i upload php file and use it?

im using this free webs the trap17

i want to use php like a website
Go to the top of the page
 
+Quote Post
jlhaslip
post Sep 4 2007, 03:15 PM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,300
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:46.50



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.
Go to the top of the page
 
+Quote Post
YungOdo
post Sep 4 2007, 03:22 PM
Post #3


Advanced Member
*******

Group: Members
Posts: 103
Joined: 31-July 07
From: New Jersey
Member No.: 47,304



and also a good hosting site you can use to upload php files is http://www.ripway.com
Go to the top of the page
 
+Quote Post
thugsmoke058
post Sep 4 2007, 04:07 PM
Post #4


Member [Level 1]
****

Group: Members
Posts: 65
Joined: 25-August 07
From: Philippines
Member No.: 48,803



i upload mu file in public_html and there's an error come out >,>
Go to the top of the page
 
+Quote Post
jlhaslip
post Sep 4 2007, 04:15 PM
Post #5


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,300
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:46.50



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.
Go to the top of the page
 
+Quote Post
thugsmoke058
post Sep 4 2007, 04:41 PM
Post #6


Member [Level 1]
****

Group: Members
Posts: 65
Joined: 25-August 07
From: Philippines
Member No.: 48,803



my error is that only script come out T_T that when i try to click it

QUOTE
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 32

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 33

Warning: 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 47

Warning: 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 47

Fatal error: Database error in "/home/smoke058/public_html/thugsmoke058/index.php" on line 44

in /home/smoke058/public_html/thugsmoke058/sources/sql/mysql.php on line 88


Notice from rvalkass:

You need to quote the error message.


This post has been edited by rvalkass: Sep 5 2007, 06:24 AM
Go to the top of the page
 
+Quote Post
rvalkass
post Sep 5 2007, 06:27 AM
Post #7


apt-get moo
Group Icon

Group: [MODERATOR]
Posts: 2,236
Joined: 28-May 05
From: Devon, England
Member No.: 7,593
Spam Patrol
myCENT:20.88



Your problem lies with this part:
QUOTE
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:

CODE
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.
Go to the top of the page
 
+Quote Post
jlhaslip
post Sep 5 2007, 06:39 AM
Post #8


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 4,300
Joined: 24-July 05
From: Linix, DOS and Windows…the good, the bad and the ugly
Member No.: 9,787
Spam Patrol
myCENT:46.50



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.
Go to the top of the page
 
+Quote Post
thugsmoke058
post Sep 5 2007, 07:23 AM
Post #9


Member [Level 1]
****

Group: Members
Posts: 65
Joined: 25-August 07
From: Philippines
Member No.: 48,803



weee.. thanks guys happy.gif
it help me a lot now i will try all your advice happy.gif
i will try my best to do this
Go to the top of the page
 
+Quote Post