I need to display in a textarea the url of the current page i'm on. How can i do that if my pages are in php? its a static page!
If you can use .htaccess you can add .htm or .html to file types that will be parsed as php. Do this in .htaccess in the root folder of your site: AddType application/x-httpd-php .htm .html Code (markup): You can then use php on the static page just as if it were php.
I think what your looking for is this: <? echo "<textarea>Current page: http://yoursite.com" . $_SERVER['PHP_SELF'] . "</textarea>"; ?> PHP: