What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » General Chit Chat » php script...

Pages: (4): « First [ 1 ] 2 3 4 » Last »
php script...
Author: Message:
Eric
Junior Member
**

Avatar
The miracles of PHP

Posts: 52
49 / Male / –
Joined: Mar 2004
O.P. php script...
Ok you guys know about the php script for displaying a random image with every refresh...but theres another php script that embeds an image within the .php/.php3/.phtml file, that is, you don't have to link to an external site to retrieve the image, or you don't need to upload it anywhere, saving space....well my request is...would anyone be kind enough to make such a script for me? please?:D
king.of.fanelia@Gmail.com
king_of_fanelia@msgplus.net
07-12-2004 04:35 AM
Profile E-Mail PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: php script...
quote:
Originally posted by Eric
saving space
Not really... if the image data is inside the php file, it's still taking up that space. :p Actually, it would take even more space, because you must encode the binary data to make it safe for storage in a PHP script. Encoded data is about 33% larger.
07-12-2004 04:55 AM
Profile PM Web Find Quote Report
GJ-tje
Junior Member
**

Avatar
Free your Mind

Posts: 33
– / Male / –
Joined: Mar 2003
RE: php script...
The attachment, is a PHP-script, that just randomly selects an image, and views it. I use it too, for my avatar ;)
The script doesn't encode it, into it's own, due to the need of 30% of more space, like WDZ said before ;)

It works with .jpg and it's not been tested with .png or .gif

Enjoy! :D

[edit]
Maybe your script doesn't work, due to the Lycos banner... ;)
Oh and The PHP-support at Lycos sucks (at least for Lycos Netherlands...) :)
Maybe you can put the script on some webspace of your provider...

.php File Attachment: index.php (1.35 KB)
This file has been downloaded 171 time(s).

This post was edited on 07-12-2004 at 07:11 AM by GJ-tje.
I'm the Puppet... Controlled by the Puppetmaster :(
07-12-2004 07:02 AM
Profile PM Find Quote Report
Eric
Junior Member
**

Avatar
The miracles of PHP

Posts: 52
49 / Male / –
Joined: Mar 2004
O.P. RE: php script...
i know why it doesn't work, I was asking for something else, I don't care if it takes up more space, I wanna store it INSIDE the .php file.

Edit: Besides, I only want to store only ONE image in the .php file, not multiple files that are displayed randomly.

someone please make a script that can take a picture and store it INSIDE a .php file(I want it for my sig)



mod: can we start using this button please -  [Image: edit.gif]

This post was edited on 07-12-2004 at 07:01 PM by Johnny_Mac.
king.of.fanelia@Gmail.com
king_of_fanelia@msgplus.net
07-12-2004 11:50 AM
Profile E-Mail PM Web Find Quote Report
GJ-tje
Junior Member
**

Avatar
Free your Mind

Posts: 33
– / Male / –
Joined: Mar 2003
RE: RE: php script...
quote:
Originally posted by Eric
someone please make a script that can take a picture and store it INSIDE a .php file(I want it for my sig)

As far as I can see, you allready got such an script wich does it, and if you want it really fast, you could make it yourself...

http://www.php.net
http://www.google.com

Those sites can help you if you want to create a script on your own...

We are just members on a forum... Not a helpdesk, to do stuff for you...

O and 1 question? Why do you want it? My PHP-script DOESN'T store the image inside the script... And does work HERE too... ;)
You can get my PHP-script in one of my previous posts in this topic ;)

This post was edited on 07-12-2004 at 02:06 PM by GJ-tje.
I'm the Puppet... Controlled by the Puppetmaster :(
07-12-2004 02:05 PM
Profile PM Find Quote Report
Eric
Junior Member
**

Avatar
The miracles of PHP

Posts: 52
49 / Male / –
Joined: Mar 2004
O.P. RE: php script...
lol I don't want it for random images, I just want to store a picture inside a php file for another reason
king.of.fanelia@Gmail.com
king_of_fanelia@msgplus.net
07-12-2004 02:10 PM
Profile E-Mail PM Web Find Quote Report
GJ-tje
Junior Member
**

Avatar
Free your Mind

Posts: 33
– / Male / –
Joined: Mar 2003
RE: RE: php script...
quote:
Originally posted by Eric
lol I don't want it for random images, I just want to store a picture inside a php file for another reason

Maybe a stupid question, but what is that reason? Maybe there are other solutions for it... ;)
I'm the Puppet... Controlled by the Puppetmaster :(
07-12-2004 02:11 PM
Profile PM Find Quote Report
Stigmata
Veteran Member
*****



Posts: 3520
Reputation: 45
21 / Other / Flag
Joined: Jul 2003
RE: php script...
his server may not allow remote linking on images


hmmmm ok try this, open a image in notepad

code:
<?php
    header("Content-type: image/bmp");
    echo base64_decode('enter all those image crap numbersletter etc here');
    ?>



mod: can we start using this button please -  [Image: edit.gif]

This post was edited on 07-12-2004 at 07:02 PM by Johnny_Mac.
07-12-2004 02:27 PM
Profile PM Web Find Quote Report
GJ-tje
Junior Member
**

Avatar
Free your Mind

Posts: 33
– / Male / –
Joined: Mar 2003
RE: RE: php script...
quote:
Originally posted by jackass_wanabe
hmmmm ok try this, open a image in notepad

code:
<?php
    header("Content-type: image/bmp");
    echo base64_decode('enter all those image crap numbersletter etc here');
    ?>

He wants randomly images, not just one... So PHP needs to read a random image... and than later put al the 'text' trough base64_decode I guess...
I'm the Puppet... Controlled by the Puppetmaster :(
07-12-2004 02:29 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: php script...
quote:
Originally posted by Eric
lol I don't want it for random images, I just want to store a picture inside a php file for another reason
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-12-2004 02:34 PM
Profile PM Find Quote Report
Pages: (4): « First [ 1 ] 2 3 4 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On