som3aa Posted March 10, 2008 Share Posted March 10, 2008 I am a beginner so my question is probably toooo easy for you please someone help me I am using dreamweaver to create a new website. i am trying to host a new website on a shared server. i created a new database and tables using phpmyadmin. i connected to the database using dreamweaver and i created a new page called firsttest.php and saved it in public_html/php then i created a new recordset and tried to link it to firsttest.php when i ran on the hosting server i got this error: Warning: main(../Connections/test.php) [function.main]: failed to open stream: No such file or directory in /home/som3aa/public_html/php/firsttest.php on line 1 Fatal error: main() [function.require]: Failed opening required '../Connections/test.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/som3aa/public_html/php/firsttest.php on line 1 test is the name of my database The problem is that it can't locate the database itself, i don't know where is it stored (i just created it with phpmyadmin). in cpanel i opened php pear. it says You will need to add /home/som3aa/php to the include path. You can do this by adding the following code to your script: ini_set("include_path", '/home/som3aa/php:' . ini_get("include_path") ); all i need to do is type in firsttest.php {Recordset1.Username} for example and i want it to read the name from the database instead it gives me an error that it can't locate the database Please guys someone help me Thanx in advance Quote Link to comment Share on other sites More sharing options...
max_w1 Posted March 10, 2008 Share Posted March 10, 2008 Dont depend on dreamweaver for php programming. learn yourself. PHP is easy to learn and you'll have fun while learning it... visit this website to learn it http://w3schools.com/php/default.asp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.