oceans Posted May 7, 2007 Author Share Posted May 7, 2007 Sorry, I already have a index.php files in your said location. this file contains the hyperlinks. if i create your new index, what shell i rename it to Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247141 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 Can you please help me, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247725 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 Sorry, I already have a index.php files in your said location. this file contains the hyperlinks. if i create your new index, what shell i rename it to I know that there is one index.php in ur Myphp folder and one will go in ur root directory on ur server Thats why i post the above code and put this index.php in ur server root folder. Dont change ut index.php in ur Myphp folder. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247765 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 Dear mmarif4u, Please go to "http://firefire.prohosts.org/" I have the following in the index file you wanted me to make, " <?php require_once('MyPHP/index.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title></title> <link href="MyPHP/CSS/StyleSheet.css" rel="stylesheet" type="text/css" /> </head> <body> </body> </html> " but no effect thanks Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247871 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 1st clear my mind. how many files u have in ur Myphp folder.what is the main file name there. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247874 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 friend please go to my site you will find all the files and folder structure( as it is still not working) Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247875 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 Ur index.php file will contain only this code not html. <?php require_once('Myphp/index.php'); ?> Save it as index.php and paste it in the root directory not in Myphp folder. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247878 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 Dear Friend, I only these codes in the index.php in the root. " <?php require_once('Myphp/index.php'); ?> " but i still get it to work Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247880 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 ok please send ur yahoo id to this email, mmarif4u@lycos.com Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247881 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 ok my user id for this site ph_574725 password firefire do what ever you want but please inform where i have went wrong Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247884 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 Now check ur site. It was header not require_once sorry for that. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247892 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 Thanks it is working, but i noted there are 2 index.php(s) is it normal Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247895 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 yeh its normal, when u r using that it create a temp file there for page u using. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247898 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 I am slightly confused, when I open the site, the hyperlinks are coming from main.php or index.php, as I noted the contents are same. another issue is yesterday i also noted that i cannot create or update my mysql data base but reading is fine, but there is no place for me to set Privileges, can you guide me, i know the commands but not working. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247900 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 I did not get u can u be more clear. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247902 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 I appologise, (1) When I open the site, the first page is main.php or index.php (2) I can access and read MySQL data, but cannot write or update, I understand that I may have to set Privileges, but how. I am also using "WAMP" in my computer, thus the environment is the same. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247904 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 please try signup or or login you will understand Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247905 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 I shoud us the following command, but it is not accepting, correct me " REVOKE ALL PRIVILEGES ON * . * FROM 'ph_574725'@'sql4.prohosts.org'; REVOKE GRANT OPTION ON * . * FROM 'ph_574725'@ 'sql4.prohosts.org'; GRANT SELECT , INSERT , UPDATE , DELETE , FILE ON * . * TO ''ph_574725'@ 'sql4.prohosts.org' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ; " Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247908 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 Where u r setting these priviligies. Or simply go to ur cpanel there and click on mysql dbs, there u can set these things. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247909 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 i just typed the above at the sql search field as i could not find a link to set privilages, any way can you play with my control and let me know where. you can run my sign up, the error message will go away if it can write. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247910 Share on other sites More sharing options...
mmarif4u Posted May 8, 2007 Share Posted May 8, 2007 ok now i am going to be offline , Tonite i will take a look there... Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247911 Share on other sites More sharing options...
oceans Posted May 8, 2007 Author Share Posted May 8, 2007 Thanks. I leave the name and password as it is. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-247913 Share on other sites More sharing options...
mmarif4u Posted May 9, 2007 Share Posted May 9, 2007 Ok, I have the mysql dbs but i did not any link to set priviligies bcoz this is a free of server thats why that did not any other users, only one user at time, and only three dbs. let try these: Db level: grant all on database1.* to user1@”%” identified by “secret”; revoke all on database1.* from user1@”%”; table level: grant all on company.inventory to invent_depart@”192.168.1.%” identified by “secret1”; revoke all on company.inventory from invent_depart@”192.168.1.%”; grant select,update on company.inventory to sales_depart@”192.168.1.%” identified by “secret2”; revoke select,update on company.inventory from sales_depart@”192.168.1.%”; column level: grant select (emp_id,salary) on company.hr to finance_depart@”192.168.1.%” identified by “secret3”; revoke select (emp_id,salary) on company.hr from finance_depart@”192.168.1.%”; I think now u will get some idea but i am not that the host will give these things bcoz the free server is limited. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-248699 Share on other sites More sharing options...
oceans Posted May 9, 2007 Author Share Posted May 9, 2007 Dear Friend, I tried, not working, Can you try same id and pw thanks. secondly the page I am seeing as my first page, is it from index.php or main.php? Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-248795 Share on other sites More sharing options...
mmarif4u Posted May 9, 2007 Share Posted May 9, 2007 The page is actully main.php but this calle dby index.php in the root directory by using header. And for the mysql db i dont think they allow u to make changes in the db priviligies. Already they give u all priviligies. Quote Link to comment https://forums.phpfreaks.com/topic/49945-posting-my-first-php/page/2/#findComment-248796 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.