PHP-dynamically re create a remote image, instead of downloading   it?

Hi all
this is what I'm trying to do, using PHP:
say I have two sites: "example.com" and "mysite.com".
I would like to get an image from example.com to mysite.com.
I mean get the physical image file.
It would be great if instead of having to manually download
the image from one site, then upload it
to the other, I could dynamically "read" the remote image,
and re-create it dynamically on mysite.
Is it possible? I know PHP can "read" files (although I'm not
familiar with this), and I am familiar
with creating images dynamically (creating thumbnails for
example).
Ho, and I am in total control of both sites, so I can
implement whatever system on either sites, to
enable the transfer of the image.
I'd like to know if you have done that before or if anyone
can think of a simple chain of functions
to acheive this.
seb ( [email protected])
http://webtrans1.com | high-end web
design
An Ingenious WebSite Builder:
http://sitelander.com

(_seb_) wrote:
> David Powers wrote:
>> (_seb_) wrote:
>>> So I store the style sheet and their images on
sitelander.com, but I
>>> want anybody using my system to be able to pick
and choose any style,
>>> from a page on THEIR website, and apply it to
THEIR website.
>>> Basically like you change the skin of your
FireFox browser, I want to
>>> do the same with website "skins".
>>> So I need to transfer the images used by the
css, because I don't
>>> want my site to serve the background-images for
hundreds of web
>>> sites... (and hopefully thousands some day)
>>
>> In your original post, you said you have total
control of both sites.
>> In this scenario, it sounds as though you want to
transfer the files
>> to someone else's site. Unless the request is
triggered by a script on
>> the target site, any attempt by sitelander.com to
write files to the
>> target site is likely to be rejected by the server
as a hostile attack.
>>
>> On the other hand, if you do have total control of
both sites, it
>> means that anyone using your system must be hosted
on one of your
>> servers. In that case, it makes no difference if the
images are served
>> directly from sitelander.com. You might just as well
leave them where
>> they are.
>>
>> Or have I misunderstood what you're trying to do?
>>
>
> The user uploads the website builder package to their
own server, not
> mine. But the package will already include the code for
getting the
> files from my server. So the script to get the files
from my server will
> be on their server.
> Now, my website builder only works on a server that has
world
> permissions to write files.
That is the main limitation with my website builder. I have
tried to include a FTP solution where if
there is no world permission to write file on the server, the
user can enter his FTP info in the
website builder, and the website builder attempts to log them
in as FTP user, and chmod dirs and
files via an FTP command:
$conn_id = ftp_connect($ftp_server);
if(ftp_login($conn_id, $ftp_user_name, $ftp_user_password)){
if(ftp_site($conn_id, 'CHMOD 0777 '.$dir)
But that part is a little bit over my head and I have trouble
testing it since the servers I use all
have world permissions (I choose them because of that)...
> So if they have successfully installed and tested
SiteLander on their
> server, it already means that they have world
premissions to write files
> on it, and the script in the package can assume that.
>
seb ( [email protected])
http://webtrans1.com | high-end web
design
An Ingenious WebSite Builder:
http://sitelander.com

Similar Messages

  • Showing image instead of download link

    I am using an interactive report and entered this for the source. I want to show the picture instead of a download link however I don't get the picture I get a
    Source:
    select "IMAGE_ID",
    "SUBJECT",
    "CREATED_DATE",
    "CREATED_BY",
    decode(nvl(dbms_lob.getlength(image),0), 0, null, '<img src=
    "'||apex_util.get_blob_file_src('P53_IMAGE', image_id)||
    '" height="75" width="75" />') Image
    from "#OWNER#"."IMAGES"
    Shown in the report:
    <img src= "apex_util.get_blob_file?a=100&s=3229276571420106&p=53&d=1943731550155986&i=1941402717155956&p_pk1=1&p_pk2=&p_ck=58C90FE7F1EC9618676F23C2FC24FA0A" height="75" width="75" />
    Any idea as to what I may be doing wrong?

    Hi ,
    It looks like your report column is set to display as Text. Go to "Home>Application Builder>Application #>Page #>Interactive Report Attributes" and change it to Standard report Column and you should be all set.
    Thanks,
    Manish

  • Dynamically Calling Background Image instead of standard setting

    Hi all,
    There is a requirement that, based on some condition I have to display shaded background image, say 'zimage1' .so as a result it should print in all pages. If condition fails, we have to display other image, say 'zimage2' in background. If both fails, no need to display background image.
    If any body knew the solution please assist me in this regards.
    Thanks & Regards,
    Nagesh.

    Do any one knew how to set Dynamic Background (Watermark) Image instead of going for the standard setting in Page. (by selecting BACKGROUND PictureTab).
    I want to pass a variable kind of information to the following fields during runtime.
    ie.,
    Path: Page->Background Picture.
    Name: <Variable image name>
    Object: GRAPHICS
    ID: BMAP
    and other properties like Ouput Mode, Position..etc.
    That image should come at backgroudn for all the pages.
    Hope, you have understood the issue here.
    Please do update me with relevnat ideas, if any.
    Thanks & Regards,
    Nagesh.

  • Most times when I import photos from my desktop or dropbox to iPhoto, iPhoto will keep the title I created for the image as the display title under the image. but occasionally it displays the filename instead and I have to go back through and reenter

    most times when I import photos from my desktop or dropbox to iPhoto, iPhoto will keep the title I created for the image as the display title under the image. but occasionally it displays the filename instead and I have to go back through and reenter the title in iPhoto. why the inconsistency? running OS 10.9.5 and using iPhoto 9.5.1

    Try this:  select one of the photos that are showing the wrong title and use the Photos ➙ Batch Change ➙ Title to File Name menu option.
    See if that will put the name that you want under the thumbnail.

  • Force iWeb to create images instead of using text

    Hello,
    I recently made a site using the Travel template and it uses the font Baskerville. I noticed that on a windoze machine it is not a common font and so it substitutes the secondary font given in the code, which in this case is Times New Roman, a very common font. Therefore, I get a page using a common secondary font and no creation of an image.
    Hence my question: Is it possible to force iWeb to create an image instead of using the text. Hey, I figure after 700k, what's a little more if I get the look that I want.
    Thanks!
    Stephen

    I get to answer my own question. I found a workaround should you ever what to be sure a certain font is used and not replaced. Granted, this will add my download time but you at least can preserve the look.
    Simply make any text with a shadow. But make the offset 0 and the transparency to 1 (you can't make it 0). You won't even notice the "shafow" and the text will be made into a graphic every time.
    Stephen

  • Disk Utility create encrypted disk image hangs

    I'm trying really, really hard to backup my data but apple is not making it easy for me.
    I need my files encrypted for an offline backup. Time machine only allows home folder to be encrypted, and due to my home folder being on my SSD drive I cannot fit my files all in there, not by a long shot.
    Using Disk Utility, I choose "new disk image from folder", and select "read only", 256-bit encryption. Some of the folders worked. However some will just hang for hours on "Creating Image, copying...". I can see at the destination the dmg file has stopped incrementing larger. It has reached the full size of the folder approximately. Does apple fail at some file types? I already ran disk repair several times to no avail. I don't know what else to try, it just doesn't want to work. All I want is an encrypted backup, that any OSX install can retrieve without any special software involved. Sometimes I'll get a very unhelpful error message "Operation not supported". Whatever that is supposed to mean. Google was no help so hoping for some insights here.

    Create an encrypted sparse disk image instead of from folder, mount it, and then drag & drop your files into ii.

  • In Mail 3.6 remote images in HTML messages display as blue squares with ? even though checked in viewing references.

    In Mail 3.6 remote images in HTML messages display as blue squares with ? even though checked in viewing references.

    Nurit,
    The point is that that button should not be there, if the preference setting is as you say. This indicates the preference setting is stuck, and that is what I was trying to help you resolve.
    The full purge is done as follows:
    Quit Mail, and in the Finder open Home/Library and locate the Mail folder. Control-click over the Mail folder, and choose Duplicate -- then drag the resulting copy to the Desktop for temporary backup. Next, open Home/Library/Preferences and find the com.apple.mail.plist file and drag it to the desktop.
    Relaunch Mail, which will open as though new, and when prompted to import anything DECLINE. Instead, re-enter your account info, and Mail will re-discover the account folders for your accounts, and all should be well, after setting preferences as you desire.
    Ask any needed questions, and keep us posted.
    Ernie

  • Is it possible to use the drawing dynamic content to erase an image rather than draw over the top?

    I'm trying to create a cover for my magazine  that has a chalk board with writing on. I want the user to be able to erase the writing with their finger but can't figure out how to do it. All i can do is draw a solid colour over the top. What i want is for the finger swipe to erase the .png image instead. wondered if it can be done using a mask but I can only get a mask to reveal solid colour not an image.

    If the images are exactly the same size then make sure the layer with the mask
    is the active layer and in the other documents go to Select>Load Selection and choose
    your document with the layer mask under Source document and under channel choose the layer mask.
    After the selection loads press the layer mask icon at the bottom of the layers panel.
    MTSTUNER

  • Unable to create restore disk image with Disk Utility

    I've tried three times in order to create a restore image of the users' volume of my Powerbook. I followed exactly the procedure explained typing "man asr" in a terminal window. I booted the Powerbook in target disk mode while connected to my iMac G5 from which Disk utility was run. Every time the disk image creation failed with a log report like this:
    Creating Image “HOME_HD.dmg”
    Initializing...
    Copying...
    /Volumes/HOME_HD: Authentication error
    Initializing...
    Finishing...
    Initializing...
    Creating...
    Copying...
    could not access /Volumes/HOME_HD/./Users/delos/Music/iTunes/iTunes Music/David Bowie/The Best Of David Bowie 1974-1979/01 Sound And Vision.m4a - Input/output error
    Finishing...
    Unable to create “HOME_HD” - Input/output error.
    I don't know how my imported music could create such a problem to Disk utility, nevertheless I removed the incriminated song from the Music library but another one raised to be not accessible. Then I booted the powerbook from the supplied Tiger DVD too, and I got an error over the music file, something about an allocation that was 190 instead of 1, I got the volume repaired from Disk utility but the Disk image creation failed again without any hint because booting from DVD does not allow to save log file anywhere. Why on Earth I can't manage such a critical task as back up under Tiger while using Panther everything worked like a charm following the same procedure? Is anyone experiencing something similar?
    Greetings
    Gianmarco

    Hi Lee, thank you for your answer, indeed I've just read carefully your article few hours ago, while I googled the net to find some hints on my issue. I think that I've followed exactly the right procedure to make the back up image, and can't find what is wrong. Actually Disk utility Repair disk successfully repaired the allocation bit (whatever that means) of the music files but that wasn't enough to let the creation of the disk image. Quite odd that the music files where recognized as messed up by Disk utility only booting from Tiger DVD and not while the Powerbook was connected to an iMac running Tiger too.
    I'll do further investigation during weekend.
    Greetings
    Gianmarco

  • Create encrypted disk image with OS install disk utility.

    I thought to make a full backup of Macintosh HD, and followed instructions in /kb/ht1553.  However, every time I tried to creae an encrypted disk image, it barfed with "Failed - User interaction required". I assume it needed the encryption password, but for some reason was unable to display a prompt for this. Anyone know how to fix this?  Thanks, Stephen.

    Create an encrypted sparse disk image instead of from folder, mount it, and then drag & drop your files into ii.

  • Image instead of Java

    Hi Folks,
    Im hoping that one of you guys can give me a bit of help on a project im doing. I have created a HTML page which at the moment simply consists of an image (logo.gif) which when rolled over animates with a water ripple effect.
    Its a java applet !
    The problem im having (or may have) is that some people may have java disabled in there browser prefs.
    I was wandering is there some script i can enter in the HTML page to say "if java is disabled then display this alternative image instead" ?????
    If anyone can offer me any help id much appreciate it !
    Many thank
    darren

    you can insert html code into applet tag
    this code is used by browsers if the applet can't be launched

  • Unable to Create a Disk Image of Device

    Hello.
    The MacIntosh is a Mac Mini w/1.83Ghz Intel Core 2 Duo. The OS is Snow Leopard, 10.6.2. I am unable to create a disk image of the device "Macintosh HD".
    Here's my procedure:
    1) Reboot the Mac Mini from the Snow Leopard Install Disk
    2) Set Language and then load "Disk Utility"
    3) Select the Macintosh HD from Disk Utility
    4) Set "Create a New Image from Macintosh HD"
    5) Leave the settings as they are (type of disk image is "compressed" target repository is root home dir)
    6) Error message is "Unable to create Macintosh HD (error -61)"
    7) When I then try to create a blank disk image, once again, with root home as repository the error message is "Unable to create name.dmg (read-only) file system"
    Any suggestions how to fix?
    Thanks
    Mike

    you can smb from terminal but it will not help you. you'll need to create a folder which will serve as the mount point first and where will you put it? you can not do it on the dvd. and you can not put it in the main drive itself. but why do you need to do it that way at all. there is no need to boot from the DVD period. boot normally and clone your hard drive to a remote disk image on an smb share using one of many backup programs that can do this. Superduper can do it. so can CCCloner.

  • Using a Disk Image instead of a physical disk

    I would like to create an image of a series of instillation disks that I would be able to later use to install an application with out these disks. I found this article on using a disk image in leu of a disk.
    http://docs.info.apple.com/article.html?artnum=106161
    If I did this would I be able to launch the disk image so the instillation application uses this image instead of a disk when prompted?
    If not, is this even possible?

    Not sure about the series deal, but if the OS is already running, then yes, you can use a Disk Image just Like a Disk, once it is mounted.

  • Black thumbnail image instead of selected one when burned

    I have idvd 8, on every dvd I have done since upgrading the images you select as thumb nails show up as black frames on the final dvds. When I open the project they seem fine, when I preview it too, but it is on the burned dvds that I get all these black squares instead of the ones chosen in the inspector window. Any ideas? I'm ready to get rid of 8 and go back to 7!!
    Any help will be very appreciated!!

    Welcome to iDVD Discussions.
    Might be a media issue... What brand and format DVD are you using?
    I recommend a disk image burned to Verbatim DVD-R at 4X or slower using Toast or Disk Utility. You can set burn speed in iDVD '08 if not creating a disc image.
    David Pogue also recommends Verbatim on page 356 of his book:
    iMovie HD & iDVD 6: The Missing Manual
    Quoting David: "Cheaper brands don't use the same amount of organic dyes and are more likely to suffer premature deaths."

  • Copy Paste Image instead of Upload

    Hey Guyz,
    I wanted to give user a provision to copy & paste an image instead of uploading it in a provided space on the webpage.
    Do you guyz think it's possible if so can you guide me thorough..
    Thanks...
    Krish

    813258 wrote:
    Thanks for your suggestions ...
    One more thing is if i am developing the webpage using PHP then can i use JAVA APPLET and achieve this on the same page???Well, as you may know, PHP generates HTML output and applets are embedded in html pages.
    The only tricky part is when the applet wants to send the image data to the server (otherwise it would be lost once the page is closed). You need to negotiate a suitable way to do that.

Maybe you are looking for