Click here to Skip to main content
15,891,513 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Help in phone page Pin
faizan ali28-Jun-16 21:14
faizan ali28-Jun-16 21:14 
Questionimg src redirect Pin
V.22-Jun-16 22:13
professionalV.22-Jun-16 22:13 
AnswerRe: img src redirect Pin
Richard Deeming23-Jun-16 2:15
mveRichard Deeming23-Jun-16 2:15 
GeneralRe: img src redirect Pin
V.23-Jun-16 19:32
professionalV.23-Jun-16 19:32 
GeneralRe: img src redirect Pin
Graham Breach23-Jun-16 23:09
Graham Breach23-Jun-16 23:09 
GeneralRe: img src redirect Pin
V.23-Jun-16 23:23
professionalV.23-Jun-16 23:23 
GeneralRe: img src redirect Pin
Richard Deeming27-Jun-16 3:09
mveRichard Deeming27-Jun-16 3:09 
GeneralRe: img src redirect [SOLVED] Pin
V.13-Jul-16 0:16
professionalV.13-Jul-16 0:16 
This is the final solution and it looks like it is working
PHP
<?php
    ob_start();
    function __autoload($class){
        include_once($class);
    }
    foreach (glob("./*.php") as $filename){
        if($filename != "index.php"){
            __autoload($filename);
        }
    }
    ob_get_clean();
    if(isset($_GET["parameter"])){
        $imgname= str_replace("\"", "", str_replace("\\", "", functioncall_to_other_page()));
        $fp=fopen($imgname, 'rb');
        header("Access-Control-Allow-Origin: *");
        header("Content-Type: image/png");
        header("Content-Length: " . filesize($imgname));

        fpassthru($fp);
    }                                                       //end if
    exit;
?>

took me a while and some help to get it Smile | :) .
It will be "fun" to get this working because the page should return different content depending on the parameters. This was just "step 1".
V.
(MQOTD rules and previous solutions)

SuggestionSiganalR in MVC Pin
Aarthi.3320-Jun-16 22:39
Aarthi.3320-Jun-16 22:39 
GeneralRe: SiganalR in MVC Pin
Richard MacCutchan20-Jun-16 23:52
mveRichard MacCutchan20-Jun-16 23:52 
QuestionHow to do Load Balancing for Different Tier Pin
chaurasiashankar20-Jun-16 2:36
chaurasiashankar20-Jun-16 2:36 
AnswerRe: How to do Load Balancing for Different Tier Pin
Kornfeld Eliyahu Peter20-Jun-16 8:34
professionalKornfeld Eliyahu Peter20-Jun-16 8:34 
QuestionSetting up a Login on a Web Site Pin
BobInNJ17-Jun-16 12:27
BobInNJ17-Jun-16 12:27 
SuggestionRe: Setting up a Login on a Web Site Pin
Richard Deeming17-Jun-16 12:59
mveRichard Deeming17-Jun-16 12:59 
GeneralRe: Setting up a Login on a Web Site Pin
BobInNJ17-Jun-16 13:22
BobInNJ17-Jun-16 13:22 
GeneralRe: Setting up a Login on a Web Site Pin
Richard Deeming17-Jun-16 13:30
mveRichard Deeming17-Jun-16 13:30 
AnswerRe: Setting up a Login on a Web Site Pin
Nathan Minier20-Jun-16 1:38
professionalNathan Minier20-Jun-16 1:38 
QuestionPHP scripts to compress HTML,CSS and JS Pin
CDPS11-Jun-16 4:51
CDPS11-Jun-16 4:51 
QuestionIs there a Javascript forum here? Pin
bulrush40010-Jun-16 3:13
bulrush40010-Jun-16 3:13 
PraiseRe: Is there a Javascript forum here? Pin
John C Rayan15-Jun-16 1:30
professionalJohn C Rayan15-Jun-16 1:30 
Questionwhen go to previous page it show confirm submission how to solve this problem in php? Pin
Member 125759089-Jun-16 18:54
Member 125759089-Jun-16 18:54 
QuestionHow to open new window on form submit Pin
Member 125749759-Jun-16 5:01
Member 125749759-Jun-16 5:01 
AnswerRe: How to open new window on form submit Pin
John C Rayan15-Jun-16 1:33
professionalJohn C Rayan15-Jun-16 1:33 
QuestionSignalR bad Request Error Pin
Kevin Marois4-Jun-16 12:35
professionalKevin Marois4-Jun-16 12:35 
AnswerRe: SignalR bad Request Error Pin
Richard Deeming6-Jun-16 5:06
mveRichard Deeming6-Jun-16 5:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.