This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
websites urls without file extension?
I'm not sure what it is exactly but after looking at sites like Facebook and others I often see urls like http://www.youtube.com/results?search_query=examplequery
My question on this is sites like Facebook and others are written in PHP but don't always use the .php extension on the end like youtube's search for example instead of results.asp or results.php it just uses /results? and then adds the query string on the end.
Can anyone tell me are these using PHP/ASP.Net or is it an EXE file like a cgi program? I'm confused.
Thanks in advance for anyone who can clear this up for me.
It's not an exe file. I think in PHP you can do that by using .htaccess to remove / hide PHP extension but I don't have any idea how to do that in ASP or other language
You can use MVC model to develop your site in PHP, here is an article(http://tonymarston.net/php-mysql/model-view-controller.html) to introduce basic theory, you can take a look. BTW, if you are developing a new site, you can consider using Drupal,it should be very easy to implement MVC model with no extension.
Related
This question already has answers here:
Is it possible to hide/encode/encrypt php source code and let others have the system?
(6 answers)
Closed 7 years ago.
Recently I developed a web application and I will publish it in the web by giving the code source to company which will do the necessary. All of I want is to know if there is any possibility to give them the application but without a source code, like an encrypted source code or some thing in this way. The application runs with Apache and phpmyadmin, and I don't want to make any confusing with them. Thanks a lot for you.
You can use any php code obfuscator or php code encoder
http://www.ioncube.com/ is a good code encoder and used by whmcs. And there are many free obfuscators
Obfuscation is making the source code difficult to understand for humans by changing the source code. It sometimes reduces size too. Encoders represent the code in another form which is difficult for humans.
This question already has answers here:
Access php files through a link on the web
(3 answers)
Closed 8 years ago.
Okay here's the scenario:
Suppose I'm already done designing and coding a website (in PHP, HTML, CSS and other stuffs that help create a website functional) which is still sitting on my desktop, the question is "What's next? How do I publish it to the web?"
Please help, I've seen some tutorials but couldn't understand them.
Well, once you got your website, next step is to find a hosting to place it.
Take in mind, if you are going to "free hosting", some of them don't allow PHP files.
Once you got it, I'll reccomend you a FTP client, such FileZilla or similars, to upload your content to the hosting. Make sure, of course you got a page called index.php/index.html, so it will be loaded when you type in your website.
You need to learn about How to do web hosting
And so many things like
Domain registration
Webserver
and so many.You can have a good and simple tutorial for a beginner in the reference link.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Question about php and dreamweaver?
I am having alot of trouble running my php file. I downloaded XAMPP and have both Apache and MySQL running. Do I need to save the file in a certain place, and what does Dreamweaver mean when it says:
To preview pages containing server-side code, you need a testing server. Would you like to specify one now?
I have good enough knowledge in HTML and CSS, and have gotten websites running, but I can't seem to get PHP to work. When I just run the code from google chrome plainly it looks like this:
"Hello World"
"; phpinfo(); ?>
You can put your PHP-files into the xampp/htdocs folder, e.g. xampp/htdocs/hello.php and then open it in your browser at http://localhost/hello.php.
The URL must say localhost or whatever you set it to in order to render a PHP page. You also need to make sure PHP handlers are working and correctly parsing PHP files.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Can you “compile” PHP code?
After I write an application in PHP, why can't I compile it into machine language? I know that it's possible to make a byte-code version of the file, which (as I understand it) is basically a file that has already been parsed into tokens.
But that's not what I want. Clearly it can't work in a general sense, since compiled code will be platform-specific, but let's say I have chosen a given platform. Why can't I create a binary file that would be the same code that PHP would run when given my .php file?
You can, facebook released a project which is currently being updated for php 5.3 (supports everything lower iirc) called HipHop, you can find it here: https://github.com/facebook/hiphop-php
There are a few compilers out there like facebook's, mentioned by #Howard, or http://www.roadsend.com/home/index.php?pageID=compiler. I've never tried them though.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Minify / Obfuscate PHP Code
I have a php file. Anyone knows of any encryption technics/keys to encrypt the code? I don't want to make it human readable. I was thinking if i could include the encrypt keys in an include file hosted separately somewhere. Any help and ideas?
Are you looking for something like Zend Guard ?
Zend Guard, the most widely accepted PHP encoding and obfuscation product on the market, protects your application from unlicensed use and reverse engineering.
I think the best way is to obfuscate the code. i've never do that on php, but i use yui for JS Code. I google'it and found http://www.codeeclipse.com/. Try that.
Nobody who cares a bit about security is going to use your app if it wants to include - e.g. EXECUTE - code from your server, loaded at runtime.
The only real solution if you really need to encrypt your code (usually you don't!) is buying ioncube or zend encoder to compile the PHP code to a bytecode which is then executed by a zend extension in the PHP core (i.e. the user needs to be able to load php extensions)