Jump to content

Posting my first php


oceans

Recommended Posts

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

U r searching for free web hosting supporting php and mysql ok,

 

try these;

 

www.prophp.org

www.byethost7.com

 

I have account in prophp.org

They will give everything FTP,mysql db access,username, password,phpmyadmin.

Link to comment
Share on other sites

I visited your site ;D, pretty quick!

 

Ok let us get in sync.

 

My operating files are in MyPHP Folder (in my computer).

 

The Index.php goes into the "root/mysite/prohosts.org/htdocs"

I also noted ".override" file in the "root/mysite/prohosts.org/htdocs" folder

 

where does my MyPHP folder goes to?

 

Link to comment
Share on other sites

Its simple, if u have one folder myphp and all the files are, so just make new file in ur

php editor name it as index.php and just the below code there.

 

but remember that in the code below u have to change the file name to ur main file in myphp folder.

 

<?php
require_once('MyPHP/ur file name here.php'); ?>

 

Name this as index.php and paste it in the htdocs folder and paste ur Myphp folder in the htdocs directory.

 

It will call the main file.php fom Myphp folder.

 

I think u got some idea.

 

Link to comment
Share on other sites

ok,

1) Myphp folder is inside htdocs

2) Index.php is inside htdocs

 

problem:

 

despite of seeing my index page as my first page, i am seeing

"

Index of/

 

Index.php

MyPHP/

 

"

my Index page has hyper links to the files in the MyPHP.

 

Thanks I think I am bugging you, i will be ok after this.

 

P.S i have not done your code advice.

Link to comment
Share on other sites

ok,

1) Myphp folder is inside htdocs

2) Index.php is inside htdocs

 

problem:

 

despite of seeing my index page as my first page, i am seeing

"

Index of/

 

Index.php

MyPHP/

 

"

my Index page has hyper links to the files in the MyPHP.

 

Thanks I think I am bugging you, i will be ok after this.

 

P.S i have not done your code advice.

 

Now just make new file name as index.php and put this code there:

 

<?php
require_once('MyPHP/index.php'); ?>

And put this file in htdocs folder on the server not in the Myphp folder.

I think its clear now.

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.