Jump to content

Posting my first php


oceans

Recommended Posts

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ;

 

 

"

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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