Jump to content

Posting my first php


oceans

Recommended Posts

  • Replies 57
  • Created
  • Last Reply

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.

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

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.

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.

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 ;

 

 

"

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.