|
-
Apr 4th, 2005, 10:39 AM
#1
Thread Starter
Hyperactive Member
help needed
Hello, I'm new to PHP and I not understand what is the meaning of
1. CHMOD folder tmpfiles to 777
2. Execute the .sql file on your database
I have upload the content of public_html to inside my wwwroot folder and when I run my index.php, it say
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\public_html\config.php on line 44
?
Please give some advices.
-
Apr 4th, 2005, 11:02 AM
#2
Frenzied Member
Re: help needed
CHMOD 777 means changing the permissions for a directory or file. 777 gives read, write and execute permissions to everybody!
A .sql file contains SQL script that can be executed against your database to modify it. You can open it in a text editor to see what it does.
Put up the code that is on line 44 of config.php (plus a few surrounding lines to put it in context).
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
Apr 4th, 2005, 11:07 AM
#3
Thread Starter
Hyperactive Member
Re: help needed
Thanks for the reply,
First of all, how can I configure CHMOD 777 to set those permissions?
Secondly, my sql file shows that
#----------------------------
# Table structure for upload
#----------------------------
create table wapupld_upload (
idnm int(11) not null default '0',
filname varchar(100) not null,
dato int(11) not null default '0')
type=MyISAM;
Thridly, my config.php on line 44 shows
$db = mysql_connect($dbserver, $username, $password);
and I don't understand
Put up the code that is on line 44 of config.php (plus a few surrounding lines to put it in context).
-
Apr 4th, 2005, 11:15 AM
#4
Frenzied Member
Re: help needed
Could you give details of what exactly you are trying to do.
Are the PHP scripts and MySQL database hosted on your local computer or elsewhere?
The error on line 44 is probably cos you have entered the wrong data to connect to the MySQL database.
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
Apr 4th, 2005, 12:54 PM
#5
Re: help needed
The error you see is due to the fact that the PHP extension for MySql has failed to load or has not been loaded. See this thread.
-
Apr 5th, 2005, 02:00 AM
#6
Thread Starter
Hyperactive Member
Re: help needed
The php and mysql is host on my computer IIS as the web server.
I have download mysqlserver 4.1 and does not know how to use it for my php.
I have read that thread, the problem is something similar to me, so I will stay tune at this forum and check that thread.
-
Apr 6th, 2005, 09:22 AM
#7
Thread Starter
Hyperactive Member
Re: help needed
hmm, is there a great example to show a basic/advance template php is uploaded into IIS with sql server and it will teach you how to configure and using chmod well on windows and it won't show those error on line blah blah...
-
Apr 6th, 2005, 09:58 AM
#8
Frenzied Member
Re: help needed
CHMOD is a Unix/Linux command and therefore is not applicable to Windows installations. For Windows you can right-click the folder and change the permissions to allow everybody to have full access within the property pages.
Sounds to me like you have having problems with the MySQL command line interface - it might be of use to you to get a GUI for MySQL like a program called MySQLFront.
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
Apr 7th, 2005, 11:06 AM
#9
Thread Starter
Hyperactive Member
Re: help needed
Thanks for that, so that will be a easier program to setup for windows right with php etc.
-
Apr 7th, 2005, 11:29 AM
#10
Frenzied Member
Re: help needed
Depends which is you usual platform.
Do a Google search there are plenty of guides out there for installing Apache, PHP and MySQL. Sounds to me like you are a Windows user though - if you don't know CHMOD you'll find the Linux install difficult.
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
Apr 8th, 2005, 09:27 AM
#11
Thread Starter
Hyperactive Member
Re: help needed
I'm a windows user that use IIS as my web server, can I still download Apache? Will that be a conflication? Is Apache much better and more easy to configure?
-
Apr 8th, 2005, 10:05 AM
#12
Frenzied Member
Re: help needed
If you are using IIS then stay with that.
DJ
If I have been helpful please rate my post. If I haven't tell me!
-
Apr 9th, 2005, 10:26 AM
#13
Thread Starter
Hyperactive Member
Re: help needed
I have a php file that are like feedback form, but I have change the email value to my email and it prompt that the feedback is sent but I haven't receive the email?
Is it need to configure something for email access?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|