DOWNLOAD | DEMO | SCREENSHOT | INSTALL | BUGS | INFO | MENTIONED...   

Frontpage
Contact
PHP-help?


PHP-Scripts:
DivX
Linklist
Easydirlist
Base64img
Munin-noc
Astropicture
Buttonmaker
Antispam
Javascripts:
Javatest
Perl:
dixit2etomite.pl
getdilbert.pl
mIRC:
psybnc.mrc

Windows:
MSN SongText


Your own domain?



INSTALL:


1.Download base64img.v2.x.tar.gz from php.holtsmark.no
  Move the downloaded file in to your webserver
2.Untar it: tar -xvzf base64img.v2.x.tar.gz

* 

6.Point your webbrowser to the script e.g 
  http://yourphpwebserver.com/base64img/index.php 
  or http://php.holtsmark.no/base64img/demo.php
7.Select/upload the jpg or gif-file you want to encode
  **

8.Save/put the new file into your webserver-root
9.point your webbrowser to the new file you just saved.


10.Se the result.


--------------------------------------------------------

*= if your webserver does not handle uploading correct
     follow here:
3. cd base64img
4. Edit base64img.php (use pico or vi or your best 
   text-editor).
5. Set variable $f to be a imagefile located in the same
   directory 
   (default: testimg.gif should work just fine. It is 
   included in this package as an example)

**= Does not apper if the script is edited and 
    configured to use a spesific file.

--------------------------------------------------------

How to put more than one picture into the script?
you can also look at base64img.php script.. it got two 
images inside it..


First, upload two images to the base64img.php script. 
Copy one of the function img() into the other script 
and rename it from "function img()" such as each image 
got an uniq function. f.ex   

  function img1() {... image ...}
  function img2() {... image ...}
 # etc...

and change:

  if ( array_key_exists("image", $_REQUEST) && $_REQUEST["image"]==1) { img(); die(); }

to :

  if ( array_key_exists("image", $_REQUEST) && $_REQUEST["image"]==1) { img1(); die(); }
  if ( array_key_exists("image", $_REQUEST) && $_REQUEST["image"]==2) { img2(); die(); }
#  etc...


Then the links in the html-part should be like this to show the images:
  <img src=<?php echo $_SERVER["PHP_SELF"]; ?>?image=1><br>
  <img src=<?php echo $_SERVER["PHP_SELF"]; ?>?image=2><br>
etc...

You could test each image with url_to_your_script.php?image=1 or url_to_your_script.php?image=2


--------------------------------------------------------

The base64img script does not work? 
It has been tested by a lot and have not been changed much in the last 3 years.
If you're new to PHP, you can rather claim the problem you have with your own skills. 
But, prove me wrong. I will fix the error if you can tell me what's wrong.. :)



POWERED BY WWW.HOLTSMARK.NO