473,654 Members | 3,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing content from another server

So here is the not so simple situation. In our work environment one
entity controls access to servers. In our own webspace they have setup
a user to access a mysql database. We brought in a programmer who
programmed a web app to access/store data in that database. So now we
have this program able to do everything we want to display our data.

The problem we are running into now is that now we want to go live the
"entity" will not allow us to access their own database to setup the
tables there, etc. Is there anyway that I can include the content from
my pages hosted in our controlled space in a page in their webspace?

So as an example, let's say the app is a blogging tool. I can access
the blogging tool all I want from my home server, but evil webhost does
not give me access to SQL databases at all. Is there anyway I can then
run the PHP app on evil webhosts server?

Aug 3 '06 #1
3 1376
cr*********@gma il.com wrote:
So here is the not so simple situation. In our work environment one
entity controls access to servers. In our own webspace they have setup
a user to access a mysql database. We brought in a programmer who
programmed a web app to access/store data in that database. So now we
have this program able to do everything we want to display our data.

The problem we are running into now is that now we want to go live the
"entity" will not allow us to access their own database to setup the
tables there, etc. Is there anyway that I can include the content from
my pages hosted in our controlled space in a page in their webspace?

So as an example, let's say the app is a blogging tool. I can access
the blogging tool all I want from my home server, but evil webhost does
not give me access to SQL databases at all. Is there anyway I can then
run the PHP app on evil webhosts server?
I really don't understand the nature of the limitation that you're
under, or the resources you have available.

You cannot have a database at evil webhost's location? But you can run
PHP there? Can't you just have your PHP code connect to a database
elsewhere? You don't have to put "localhost" as the first argument to
mysql_connect, you know.

Otherwise, if you have another web server, you could proxy the pages
that require database access. But then why not just host everything
there?

Do you need web users to be able to modify the database or do elaborate
queries against it? Maybe you can just use wget to mirror the site as
static HTML and copy that to evil webhost's server.

There are a zillion ways to deal with this general category of problems
but without more information it's hard to figure out which one might be
the best.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Aug 3 '06 #2

Miguel Cruz wrote:
<snip>
There are a zillion ways to deal with this general category of problems
but without more information it's hard to figure out which one might be
the best.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
To lay it out a bit better:

1. I can do anything I want in my webspace (access a database, place
..htaccess pages, create CGI scripts, etc).
2. Our company has a branding requirement for "live" pages so in order
to put a web page in production I have to place it through a CMS. The
CMS does allow me access to pretty much any PHP function I want. The
only problem is the server this lives on we are not allowed to anything
except place content through the CMS.
3. The content is a matching system to match prospective mentors to
mentee's(?). Now I can work with the "real" code, and I am comfortable
doing this, but I just cannot seem to find a way to get that code to
run outside of our own personal server space.

Hopefully that is more clear because I do not want to give too much
away as technically I am not allowed to post during work hours. :D

Aug 3 '06 #3
cr*********@gma il.com wrote:
1. I can do anything I want in my webspace (access a database, place
.htaccess pages, create CGI scripts, etc).
In this case, can you just locate a MySQL server elsewhere and have your
PHP talk to it? If it's close by on the network, performance shouldn't
be an issue.
Hopefully that is more clear because I do not want to give too much
away as technically I am not allowed to post during work hours. :D
I wouldn't expect a Canadian university to be so draconian.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Aug 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2800
by: Jason | last post by:
this is my code and what i get... i'm accessing this through this url http://192.168.0.2/php/test2/test.php?user=me@test.ca&subject=test it grabs the correct stuff from the database, but doesn't put it into flash. this is what i have in the flash file... onClipEvent (load) {
4
4975
by: Paul Brant | last post by:
Hi all, I have a page with an IFRAME in it. From a script in the main ( parent ) page I instruct the IFRAME to load a specific URL. The URL contains parameters that are processed by the server. The server then writes a result cookie into the content destined for the IFRAME. I am having issues accessing the cookie. If I use a debuger I can see the cookie via a quickwatch looking at window.frames.document.cookie however when I run the...
5
3051
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet explorer would do in this case. The headers I am getting are: Headers {Content-Disposition: attachment; filename="dynamic_file.mdb" Connection: close Cache-Control: private Content-Type: application/octet-stream
0
12071
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the likelihood of CRM success from less than 20 percent to 60 percent. WHITEPAPER :
5
2753
by: Siva | last post by:
Hello I have a dropdownlist inside the gridview as a template column defined as follows: <asp:TemplateField HeaderText="Choose Location"> <ItemTemplate> <asp:DropDownList ID="ddlChooseLoc" runat="server"> </asp:DropDownList> </ItemTemplate> </asp:TemplateField> I have the gridview inside of a master page- content hierarchy.
0
2799
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of chkAll. I simply want to have chkAll be checked if every item in the repeater has its checkbox checked. In the code behind page, I can access the checked property of chkReconciled by doing the following: Dim CurrentCheckBox As CheckBox...
0
2272
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of chkAll. I simply want to have chkAll be checked if every item in the repeater has its checkbox checked. In the code behind page, I can access the checked property of chkReconciled by doing the following: Dim CurrentCheckBox As CheckBox...
5
1861
by: Alex Maghen | last post by:
Hi. If I create a WebControl (User Control, actually), I know how, easily, to access the design-time Properties that have been set as Propertiy nodes in the tag used on the ASPX page. But I've never tried having CONTENT inside my Control's Tag, e.g.: <Ax:MyCtl id="Something" runat="server"> Some stuff inside the tag </Ax:MyCtl> How do I access the body from the code of my Control (i.e. above, "Some
3
2136
by: niks | last post by:
I'm a javascript novice trying to write a client-side program that needs to examine the text of some included code. Suppose you have the following snippet in an html document: <script id="included" src="inc.js" type="text/javascript"></script> I want to be able to write a function along the following lines: function inspect() {
0
8376
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.