hoover Posted November 17, 2006 Share Posted November 17, 2006 Hello,I have a couple of sites that use copies of the same admin script.I would like to have one single admin script to controll all sites (upload images and text). The admin script is basicly som HTML-forms and a php image handler.My problem:When i include the adminscript from a site on another host (<?php include("http://www.domain.com/adin.php");?>) and upload files , i cant get the uploaded images to stay on the local machine. I can only upload to the server that runs the adminscript, add thats not what i want to do. I would like that the included php-script is parsed on the local machine.Is there a solution? I have tried many forums with no success, the one who solves it is my hero. Link to comment https://forums.phpfreaks.com/topic/27619-external-forms/ Share on other sites More sharing options...
printf Posted November 17, 2006 Share Posted November 17, 2006 There is not much you can do, that how it works, you could add a internal function that sends the images to another server after maybe zipping them up. But you for what you want to do, can't be directly, because the browser uploads to the calling script. Link to comment https://forums.phpfreaks.com/topic/27619-external-forms/#findComment-126321 Share on other sites More sharing options...
hoover Posted November 17, 2006 Author Share Posted November 17, 2006 I was thinking that i could include the admin script as text, and then parse it on the local machine..? Link to comment https://forums.phpfreaks.com/topic/27619-external-forms/#findComment-126323 Share on other sites More sharing options...
hoover Posted November 17, 2006 Author Share Posted November 17, 2006 If i use a non absolute path in my include(); it works fine.[code]include("../admin.php"); // Worksinclude("http://www.domain.cim/admin.php"); // Doesnt work[/code]...but the problem is that the adminscript is on another host. Link to comment https://forums.phpfreaks.com/topic/27619-external-forms/#findComment-126412 Share on other sites More sharing options...
trq Posted November 17, 2006 Share Posted November 17, 2006 Do you need someone else to say it can't be done the way you want? Link to comment https://forums.phpfreaks.com/topic/27619-external-forms/#findComment-126413 Share on other sites More sharing options...
hoover Posted November 17, 2006 Author Share Posted November 17, 2006 [quote author=thorpe link=topic=115375.msg469839#msg469839 date=1163806061]Do you need someone else to say it can't be done the way you want?[/quote]I need someone that explains why i cant include is as text and run the script locally :). Link to comment https://forums.phpfreaks.com/topic/27619-external-forms/#findComment-126414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.