473,378 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

PHP show page on a protected directory

Hi all,

I've a site on a hosting that has a protected directory for statistics. The
only way to give access to those stats is either give access to everybody or
give the customer the admin login.

None can be done as stats are private and I won't the customer to know the
admin pass.

So it's there a way to show html pages from an other location ? I've done
with fgets where I replace all references but png images are show as code.
Thanks for helping.
Aug 5 '08 #1
4 1288

Bob Bedford schreef:
Hi all,

I've a site on a hosting that has a protected directory for statistics. The
only way to give access to those stats is either give access to everybody or
give the customer the admin login.

None can be done as stats are private and I won't the customer to know the
admin pass.

So it's there a way to show html pages from an other location ? I've done
with fgets where I replace all references but png images are show as code.
Thanks for helping.

Hi Bob,

Yes, that could work: just let PHP fetch the pages.
Of course you must also fetch the images!
And set the right headers: remember that a HTTP request for a webpage
follows roughly this route:
1) Client asks for an URL
2) Server answers with the HTML
3) CLient examines the HTML and send SEPERATE requests for all the extra
content (like all images).
4) Servers answers each request by giving the image back (and the right
headers).

So as far as I can see from here: If you make sure the script that
returns the images sets the right headers in the response you should be
fine.

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 5 '08 #2
Bob Bedford wrote:
Hi all,

I've a site on a hosting that has a protected directory for statistics. The
only way to give access to those stats is either give access to everybody or
give the customer the admin login.

None can be done as stats are private and I won't the customer to know the
admin pass.

So it's there a way to show html pages from an other location ? I've done
with fgets where I replace all references but png images are show as code.
Thanks for helping.

It depends on the statistics package you're using and the way the
directory is protected. But in general, it *should* be able to be done.

But why shouldn't the customer have the admin password. It's their
site, after all.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 5 '08 #3
But why shouldn't the customer have the admin password. It's their site,
after all.
Their site, my code...

Unfortunately the stats directory is protected...I'll try to "rebuild" the
page with images as actually it's the problem.

Thanks to both for the help.

Cheers
Aug 5 '08 #4
Bob Bedford wrote:
>But why shouldn't the customer have the admin password. It's their site,
after all.

Their site, my code...

Unfortunately the stats directory is protected...I'll try to "rebuild" the
page with images as actually it's the problem.

Thanks to both for the help.

Cheers

They paid you for developing the site, didn't they?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 5 '08 #5

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

Similar topics

1
by: Larry | last post by:
After installing Visual C# .net 2003 (VStudio Standard) I navigate to c:\windows\assembly and it shows one directory named "download." No files, just that directory, then when I click it it...
2
by: Stephen Miller | last post by:
I have an ASPX report and I want to capture the rendered HTML and write to a file on the webserver. Several posts suggest using WebRequest to make a second call to the page, and screen-scrape the...
6
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
7
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms...
0
by: Luqman | last post by:
I have copied the following code from Internet, and copied it to a file named : test.aspx, and copied that file to c:\Inetpub\wwwroot Directory. When I type on my Internet explorer:...
0
by: damiensawyer | last post by:
Hello all, I'm very new to all of this. I have a theme and a skin (the standard ones). I have a standard master page which is holding a custom ascx which has a treeview in it. Can someone...
3
by: g3000 | last post by:
I have a problem with a Visual Studio 2005 web project. I have two pages. SelectProject.aspx and ShowProject.aspx The first page ( SelectProject.aspx) has two drop down lists. After the user...
3
by: Charlotte | last post by:
Hello, info: I'me a rookie with IIS I have on a WinXP Pro the IIS installed, so I can test some pages before uploading to the hostserver online on the hostserver is a possibility (with the...
8
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I the page knows there was a cross post back. but i can not find the control. (asp.net 3.5) calling page has a master calling control: <asp:Button ID="btnSendAlert" runat="server" Text="Go"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.