View previous topic :: View next topic |
Author |
Message |
java
Joined: 15 Feb 2003 Posts: 5 Location: Paris
|
Posted: Sat Jul 05, 2003 1:54 pm Post subject: source d'un .php |
|
|
Dans un autre thread, Michel dit que michel v wrote: | (le source est à b2.phps si tu veux voir, y'a un filter dedans) |
j'aurais voulu savoir comment créer un .phps à partir d'un .php, cette fonction me serait très utile...
merci à tous  _________________ hiho powered - http://www.vaurien.net/ |
|
Back to top |
|
 |
TigerDE2
Joined: 04 Jan 2003 Posts: 57 Location: Germany, Erfurt
|
Posted: Tue Jul 08, 2003 7:14 pm Post subject: |
|
|
salut!
malhereusement, je ne parle pas francais. (pas assez pour l'expliqué, ca veut dire... )
(Tu prend le source d'un php et change l'extension à phps, c'est tout.
le server fait le reste.)
So, you basicly just rename your file tp phps, upload it and Apache's doing the rest with the help of php. You don't have to do anything else afaik.
Christian _________________ Make me happy.
Correct my awful grammar and spelling mistakes...
-----
b2 is now WordPress.
Names change, excellence remains. Go, change. |
|
Back to top |
|
 |
java
Joined: 15 Feb 2003 Posts: 5 Location: Paris
|
Posted: Tue Jul 08, 2003 7:22 pm Post subject: |
|
|
okay thanx so much, but look what's appearing : http://www.vaurien.net/index.phps
could you explain this bug ?
and one more time, thanx a lot
(and my english is very bad too, but I understand it - well I'm actually trying ) _________________ hiho powered - http://www.vaurien.net/ |
|
Back to top |
|
 |
TigerDE2
Joined: 04 Jan 2003 Posts: 57 Location: Germany, Erfurt
|
Posted: Tue Jul 08, 2003 9:23 pm Post subject: |
|
|
I think it has sth. to do with either your php.ini or the apache configuration settings.
Ask your webhost.
Maybe, you can use a .htaccess in order to get it working...
Maybe, this helps:
http://fr.php.net/function.highlight-file
>>make sure your Apache httpd.conf file includes the line
>>AddType application/x-httpd-php-source .phps
So, try to create an empty file txt.htaccess and insert the following:
Code: |
AddType application/x-httpd-php-source .phps
|
Upload it into your root directory and rename it to .htaccess
Hope this helps.
Christian _________________ Make me happy.
Correct my awful grammar and spelling mistakes...
-----
b2 is now WordPress.
Names change, excellence remains. Go, change. |
|
Back to top |
|
 |
|