How does it work, on my Windows 7 Home premieum, Apache just closes and i use WAMP, any sugestions>
Maybe this will fix the issue:Quote:
How does it work, on my Windows 7 Home premieum, Apache just closes and i use WAMP, any sugestions>
Quote:
i used both but i get this error
Warning: main(./inc/class.captcha.php) [function.main]: failed to open stream: No such file or directory in c:\wamp\www\config.php on line 2
Fatal error: main() [function.require]: Failed opening required './inc/class.captcha.php' (include_path='.;C:\php5\pear') in c:\wamp\www\config.php on line 2
i know wat exacly it is in his config it will look like thisQuote:
The error tells you pretty much what is wrong. Check inside you have the class.captcha.php inside your www folder. If you do then chcek out your config.php right around the second line, it should give you some info.
Your require once is wrong. It should look likeQuote:
i know wat exacly it is in his config it will look like this
<?php
require_once './inc/class.captcha.php';
// Configurations
$myhost="localhost";
$mypass="test"; //your server login password
$myuser="root"; //your server login username
$mydbacc="account"; <-----change that to my //your server account database
$mydbdata="my"; //your server my database name
$serveraddress="86.153.151.142"; //your server ip
$serverport=5816; //your server connection port
$mydb="my"; //your server my database
$servername = "Immortal-Gaming"; //Put your servername here.
$link = "http://86.153.151.142/"; //Put your website link here
// Dont Edit after this
mysql_connect($myhost,$myuser,$mypass);
mysql_select_db($mydb);
?>
its wat i did and should work
require_once('./inc/class.captcha.php');
That is incorrect. If the website is hosted on the same machine as the server files, you can use root/test. If your website is external then you must set up a specific user/pass for the host.Quote:
your pass and user in your config.php cannot be root and test
heres the proper one i use :PQuote:
Your require once is wrong. It should look like
Code:require_once('./inc/class.captcha.php');
That is incorrect. If the website is hosted on the same machine as the server files, you can use root/test. If your website is external then you must set up a specific user/pass for the host.
thanks maybe this helped more people here;)Quote:
heres the proper one i use :P
<?php
// Configurations
$myhost = "localhost"; //your database ip
$mypass = "test"; //your server login password
$myuser = "root"; //your server login username
$mydb = "my"; //your server my database
$myaccount ="my"; //your server account database
$servername = "Immortal-Gaming"; //Put your servername here.
// Dont Edit after this, unless you know what you're doing.
mysql_connect($myhost,$myuser,$mypass);
mysql_select_db($mydb);
?>