Results 1 to 13 of 13

Thread: help needed

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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.

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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).

  4. #4
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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!

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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...

  8. #8
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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!

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    Re: help needed

    Thanks for that, so that will be a easier program to setup for windows right with php etc.

  10. #10
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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!

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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?

  12. #12
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    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!

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2005
    Posts
    355

    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
  •  



Click Here to Expand Forum to Full Width