how to convert dynamic url into static url in php that will run on any server?
538674
For apache you can use mod_rewrite, for iis isapirewrite. There was a good introductory article on Alistapart.com. All URLs attached.
1098237
no you dont\nyou just need a perl interpreter\n\nof course, if you are using perl to generate web content (like html) then you would need a web server to serve that content to the world.
64639
It depends on what software you have on the server, and if you want to do anything with the login. The most basic way is with .htpasswd and .htaccess files (many web hosts will let you set these up in your control panel, if not, searching on these names should turn up tutorials)
947473
Try this:\n\n$url = 'http://www.yahoo.com';\n$getcode = file_get_contents($url);\n\nthen go from there. php doesn't like to hash things out the way you have it set. Its kind of a bug. This is just a walk around. It should work.
101540
If you're asking what is the URL to your computer, there's none. Your personal computer is adressed via an ip adress, that is your URL in fact but as your ip adress is dynamic it's not easy to give to someone.\n\nWhat you can do is use dynamic aliases, that is you instal a software that will tell a server you current ip adress and that server will make the link between your ip adress and that name.\n\nThere are some free dynamic DNS servers that are easy to configure.\nOf course your computer's firewall must let people access at least to your web server (that you installed and that waits connection in general on port 80), in windows XP you can do this by going to start>configuration panel>firewall and create an exception...\nGood luck !!!
248694
In your 404.html file place the following <head> tag:\n\n<meta http-equiv="refresh" content="2;url=http://your.new/url.html"> \n\nYou made need to make sure that custom error pages is turned on depending on your webserver.\n\nIf your server allows scripting, use the response.redirect method for best results.  If you don't know what that is, then go with the above refresh method.
801103
Read the PHP Manual: \n\nhttp://www.php.net/tutorial\n\n__________
1099261
The previous answer would work, as long as the server is using an external 404 page and not the IIS embedded one.\n\nIf it is using the embedded 404 page, then you'll have to do a roundabout way to do it... Well, kind of...\n\nAssuming you want to transfer from an old link (or something like site.com/whatever to go to something like site.com/help.asp?var=val&var=val ) then all you have to do is creat an index.html and add your redirect code into that single file.
1059786
you need a PHP interpreter,  there are soem command line interpreetes available that are included with the standard php install.\n\nfrom a command line:\n\n$> php 'SOME_FILE_TO_RUN'
738591
Start off with http:// and then the URL. Such as, http://www.yahoo.com
813928
hello\nif u use linux with php scripting language, you may edit php.ini file.\nit's usually located in /etc directory, so the path is /etc/php.ini.\nin php.ini search tag 'safe_mode' (without quotes, around line 172) then change the value from on to off. \nthen you may also restart your webserver.\nCMIIW.
887903
In the URL you dont use the quotes. PHP will understand it to be a string.\n\nInstead of\n<a href="index.php?c="red"">Home</>\n\nTry \n<a href="index.php?c=red">Home</a>\n\nIf for some reason you need a quote then you can use the " but I am sure you dont need it.\n\n<a href="index.php?c=red">Home</a>\nIn PHP the var $c will hold a string of "red" (no quotes of course).
791556
this one is known a url rewriting. usually these kind of things will be there in .jsp,.asp,.php kind files.
33992
You may gave to do it through a server side languages. You can download free one. But It depends on our web server. It may support one or two server side script, not all.\n\nhere are some sites\nAll Scripts:\nhttp://www.hotscripts.com/\nASP:\nhttp://www.aspin.com/\nCGI:\nhttp://cgi.resourceindex.com/\nPHP:\nhttp://php.resourceindex.com/\n\n\nFOLLOW THE INSTRUCTION TO INSTALL. IT WON'T BE HARD. YOU DON'T NEED TO BE A NERD\n\nGOOD LUCK.
773
If you have a number of PHP pages that need to use a single piece of information, then you could use a link of the form:\n\nhref="/page3.php?var=xyz"\n\nIf it is a small piece of info, like a username, code or id, and you DON'T want it to be visible in the URL itself, then you can pass it as a "hidden" field in a form that is submitted by the POST method.\n\n//This is probably what you are looking for --\nIf it information that needs to be submitted to the server later, such as a registration spanning three pages, use PHP sessions:\n\n(1) In the beginning of the PHP page, call the function session_start()\n\n(2) Store the variable in the $_SESSION array like this:\n$_SESSION['var1'] = "some_value"\n\n(3) In later pages, check if the variable is set like this:\nif(IsSet( $_SESSION['var1'] ))\n    //Do something...use the variable
951066
It depends what kind of a website you have.  If it runs on a particular CMS, like Drupal or WordPress then there are some plugins or modules that will do that for you...otherwise you need a script.  Its pretty damn simple to write it in php, I can write it for you or find one...email me from my blog (source).
99202
use cgi print or php... any of those script will do the trick