1.

Solve : this problem stop me to run?

Answer»

hi
after learning html and cgi i ready to design my website.
now i have problem to make link with url (href="http://.....").
i can not use this type of links in my local PC.
some one say me test you website in your host and some one say test it in a web server in your local PC and create visual host(s) for more website.
i test it in iis and apache and make visual host but have problem and the links are not work.

please say me the correct way
thanks Just use:

<a href="C:\...\...\file.txt">A Text File[/url]

If the HTML file is in the same folder as the file you are linking to, use:

<a href="file.txt">A Text File[/url]The other thing which may be relevant - you will have to ''connect'' to your virtual server on your own PC initially - and that (after starting it up) will usually be using an IP number - it may be like - http://127.0.0.1/ then if you have your site build within a www folder - the site index page should come up with SOMETHING like this in address bar ..... http://127.0.0.1/mysite.com/ - mysite.com being a subfolder under the www folder and with its own index file.

If then inside that site build you have relative links it should run fine - tho absolute links can work if you already have some components on a server and address those with a full web url.

I have not I confess used my on board server for other than PHP - so am not sure how well you could integrate SSI stuff if you want to run CGI material. MAYBE kpac can answer that one.Quote from: kpac on November 17, 2008, 09:32:49 AM

Just use:

<a href="C:\...\...\file.txt">A Text File[/url]

If the HTML file is in the same folder as the file you are linking to, use:

<a href="file.txt">A Text File[/url]

thanks kpac
i know this , but with this addressing i can not upload my pages (30~50 page) to my host. also handily replacing the address is too problem.Quote from: ChrisXPPro on November 17, 2008, 01:39:41 PM
The other thing which may be relevant - you will have to ''connect'' to your virtual server on your own PC initially - and that (after starting it up) will usually be using an IP number - it may be like - http://127.0.0.1/ then if you have your site build within a www folder - the site index page should come up with something like this in address bar ..... http://127.0.0.1/mysite.com/ - mysite.com being a subfolder under the www folder and with its own index file.

If then inside that site build you have relative links it should run fine - tho absolute links can work if you already have some components on a server and address those with a full web url.

I have not I confess used my on board server for other than PHP - so am not sure how well you could integrate SSI stuff if you want to run CGI material. Maybe kpac can answer that one.

thanks
the ip of 127.0.0.1 is "localhost". and i have to make address with "localhost" but this address not work in server. i want to addressing whit this:
"http://www.someserver.net"
i think there are two ways for my work.
1. change the name of "localhost" to my target address "www.someserver.net"
2. change my os (win xp pro 32bit) to WINDOWS Server 2003 or LINUX.
# Linux and Windows Server 2003 have DNS#The local host IP is something you probably won't be able to change.

But if your site files are in the local server ''www'' folder in a folder called ... someserver.net then you should be able to get round this - but - if when working on site files in this mode and on line - then absolute url calls will still I think be able to call from a remote host as well - certainly if you are testing your work in a browser as you go along.thanks
now , what can i must do? i want to learn php and mysql , and want to put my website in free or non-free web hosts.
what the Pro web designer do for local testing of their site?

thanks again
I use "Vertrigo" as my ONBOARD server for testing - it will run php and has phpMyAdmin plus mysql. Set it up under a folder called usr.

There is another similar deal - forget name - which effectively runs an Apache on your machine. Someone else may well remember.

You will probably need paid hosting to get all the bells and whistles. Also - if your connection is fast and your open time thru FTP is long enough you can work ''on the fly'' direct to outside server and preview in browser that way too. Local testing tho is IMO a better option - at least initially.

Lots of good web sites with info on php and mysql if you want to learn - books too.


Discussion

No Comment Found