KI4BBO.org Forum Index :: FAQ :: Search :: Memberlist :: Usergroups
Register :: Log in :: Profile

Log in to check your private messages



PHP Scripts

 
       KI4BBO.org Forum Index // PHP
View previous topic :: View next topic  
Author Message
posborne
Site Moderator


Joined: 15 May 2004
Posts: 69
Location: Minnesota

Posted: Sun May 23, 2004 6:05 pm    Post subject: PHP Scripts
::Post your PHP scripts on this page::

include source code if you want


Edited by Josh: Changed "Post You" to "Post your" And I made this topic a sticky
_________________
Paul Osborne :: Web Developer
posborne.net :: posborne.net forums
Back to top
posborne
Site Moderator


Joined: 15 May 2004
Posts: 69
Location: Minnesota

Posted: Sun May 23, 2004 6:07 pm    Post subject: Highlight PHP
Ok, just made a script that syntax highlights php code

It can be found HERE

Source Code:
Code:
highlight php string

          if($_POST['code'])
      {
         highlight_string($_POST['code']);
      }
   ?>

Input a string to highlight



   


   


_________________
Paul Osborne :: Web Developer
posborne.net :: posborne.net forums


Last edited by posborne on Mon May 24, 2004 5:32 pm; edited 1 time in total drugrevenue.com
Back to top
Josh
Site Admin


Joined: 13 May 2004
Posts: 269
Location: Schuyler, VA

Posted: Mon May 24, 2004 12:32 pm    Post subject: Translation!
I have found that I have a ton of out-of-country visitors, and so I made a simple PHP Translation Script, it uses both Babelfish and Google. It can be found on all my pages via include, and the actual file is here.

Source:
Code:

Translate this page:


$currenturl = $_SERVER["PHP_SELF"];
if ( $_SERVER['QUERY_STRING'] '') {
   $currenturl .= "?" . $_SERVER['QUERY_STRING'];
   }
$currenturl = 'http://' . $_SERVER["SERVER_NAME"] . $currenturl;
$currenturl = str_replace(":", "%3A", $currenturl);
$currenturl = str_replace("/", "%2F", $currenturl);
$currenturl = str_replace("&", "%26", $currenturl);
?>

    German |
    Spanish |
    French |
    Italian |
    Portuguese |
   Dutch |
   Greek |
   Japenese |
   Korean |
   Russian |
   Chinese |



_________________
Josh Powell - uber geek

Get Firefox! | Don't drop the torch - Spread Firefox
Back to top
       KI4BBO.org Forum Index // PHP All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Theme By: Andrew Charron
Powered by phpBB © phpBB Group
Sponsors: Distance Learning | Cape Town Accommodation | South Africa Hotels | Tiys | Knife Deals | Books | Audio Books | SEO Kit | SEO