| |

VerySource

 Forgot password?
 Register
Search
View: 1547|Reply: 9

Novice ask smarty questions

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-2 18:30:01
| Show all posts |Read mode
I just started to contact smarty, and I want to know how to configure the server to access the page from the original http: //localhost/index.php to access index.html?
I made a small smarty example by referring to the manual, but I still access .php, how can I set it to access .html?
Reply

Use magic Report

0

Threads

20

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-5-15 15:30:01
| Show all posts
This has nothing to do with SMARTY, you should set APACHE.
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-5-15 21:00:01
| Show all posts
Please advise, how to set up apache ??? Thank you !!
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-6-19 01:45:01
| Show all posts
Go to the Internet and search Google to search for "apache installation".
Reply

Use magic Report

0

Threads

27

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 China

Post time: 2020-6-21 15:30:01
| Show all posts
Why visit .html? smarty is just a template technology

Call the template in the program, or execute the php
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-7-11 21:00:01
| Show all posts
Then I would like to ask, just use the cache technology, or access the .php file, if the amount of access is relatively large, does it save access time, do you want to write a method to generate static pages??? About static pages and smarty What is the relationship???
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-13 01:45:01
| Show all posts
The DirectoryIndex index.php index.html index.html.var in apache is the first by default. If there is no index.php, he executes index, html. I just installed apache in the past two days. I originally wanted to ask you questions. I didn’t expect your first two. It’s been two days since I didn’t go to work.
Reply

Use magic Report

0

Threads

5

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 United States

Post time: 2020-7-14 16:30:01
| Show all posts
It's just a different extension.

Hide PHP

In general, improving security through hidden means is considered to be of little use. In some cases, it is worthwhile to add as much security as possible.

Some simple methods can help hide PHP, which can make it more difficult for attackers to find system weaknesses. Setting expose_php = off in the php.ini file can reduce the useful information they can obtain.

Another strategy is to have the web server use PHP to parse different extensions. Whether through .htaccess files or Apache configuration files, you can set a file extension that can mislead an attacker:

# Make PHP look like other programming languages
AddType application/x-httpd-php .asp .py .pl
# Make PHP look like unknown file type
AddType application/x-httpd-php .bop .foo .133t
# Make PHP code look like HTML page
AddType application/x-httpd-php .htm .html
For this method to take effect, you must change the extension of the PHP file to the above extension. This improves security through concealment, although the defense capability is very low and has some disadvantages.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-14 17:45:01
| Show all posts
ls is right and correct
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-16 11:30:02
| Show all posts
DirectoryIndex index.html index.htm index.html.var index.php
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list