473,511 Members | 15,131 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 1369
cr*********@gmail.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*********@gmail.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
2786
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...
4
4956
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....
5
3035
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...
0
12054
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...
5
2744
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"...
0
2783
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...
0
2253
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...
5
1857
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...
3
2125
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...
0
7237
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,...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
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...
1
5063
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...
0
4734
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...
0
3219
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...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.