Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Help me decieve my teacher!

Help me decieve my teacher!
Thread Tools
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Sep 9, 2003, 09:43 PM
 
Ok, to make a verrryy long and morally painful story short:

Teacher tells me to make school newspaper website.
Me says OK.
Teacher says website MUST be on school servers.
Me puts site on me server allowing me access to PHP, allowing me to create a fully dynamic, searchable, and professional news site.
Teacher gives long lecture on why site needs to be on school servers.

Me wants to make good site, but can't on their servers cause they don't have PHP cause they're running M$.

Is there anyways for the site to *seem* like it's running on their servers, and to even show the URL as running on their servers?

It should be relatively untracable cause if me gets caught, me is fscked dirty style.
     
Registered User
Join Date: Nov 2002
Location: Far from the internet.
Status: Offline
Reply With Quote
Sep 9, 2003, 09:55 PM
 
No. Not unless you have control of the DNS. Because your teacher will do something like http://yourschool.edu/foo/awesomesite.html right?

On second thought, let me think about this a second.
     
Junior Member
Join Date: Apr 2000
Location: Canada
Status: Offline
Reply With Quote
Sep 9, 2003, 11:30 PM
 
What about installing PHP on the school server? I would suggest www.php4win.de , but the project is currently "hibernating". I'm not sure where else would be a good place to get the PHP Windows binaries, but I'm sure some googling would help.

In case you're wondering, this does work pretty well (you set it up as a CGI with IIS). I did this on my own school's IIS5 webserver, and it worked fine.

Best of luck,
Steve
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Sep 9, 2003, 11:42 PM
 
you can run php on windows

let your teacher know what you want to accomplish with the site and even make a demo of some of the stuff to show her how it will all work.

if they still don't go for it, either learn asp or create the site her way. it is going to be their site, gotta give 'em what they want even if you know a better way. there could also be good reasons why she wants a simple site, like what happens when you graduate and someone new who may not know php needs to admin the site?
(Last edited by mzllr; Sep 9, 2003 at 11:58 PM. )
     
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Sep 10, 2003, 05:53 AM
 
Originally posted by mzllr:
you can run php on windows

let your teacher know what you want to accomplish with the site and even make a demo of some of the stuff to show her how it will all work.

if they still don't go for it, either learn asp or create the site her way. it is going to be their site, gotta give 'em what they want even if you know a better way. there could also be good reasons why she wants a simple site, like what happens when you graduate and someone new who may not know php needs to admin the site?
Good suggestions. I've explained to her what it'll be able to do, but haven't actually demoed it. I think I'll do that today.

If I graduate they'd still be able to administrate it because the system i'm using, props can be administered through a web interface (one of the reasons I want it, so that the editors of the paper themselves can instantly upload their stories).

I could learn asp, but I don't write these apps myself because they're simply to big and I don't have the time (plus there are great ones readily available). If their servers support asp, i'll look into finding a similar asp system.

Off to school now. Ciao.
     
Mac Elite
Join Date: Sep 2000
Location: Baltimore
Status: Offline
Reply With Quote
Sep 10, 2003, 10:48 AM
 
Of course, the cheesiest way is just create a frameset and put that on your school's server, but have it draw all it's content from your server. Frames suck, but it would work.
     
Registered User
Join Date: Nov 2002
Location: Far from the internet.
Status: Offline
Reply With Quote
Sep 10, 2003, 12:14 PM
 
Originally posted by KeyLimePi:
Of course, the cheesiest way is just create a frameset and put that on your school's server, but have it draw all it's content from your server. Frames suck, but it would work.
I was thinking that, but wouldn't the instructor view the source? It would be pretty easy at that point to realize where the page is coming from.
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Sep 10, 2003, 04:06 PM
 
Originally posted by itistoday:
Good suggestions. I've explained to her what it'll be able to do, but haven't actually demoed it. I think I'll do that today.

If I graduate they'd still be able to administrate it because the system i'm using, props can be administered through a web interface (one of the reasons I want it, so that the editors of the paper themselves can instantly upload their stories).

...
ahhh, gotcha. hope they let you the site you wanna do. is there a way they could host the html and you can host the php scripts?
     
Professional Poster
Join Date: Oct 2001
Status: Offline
Reply With Quote
Sep 10, 2003, 07:10 PM
 
Originally posted by mzllr:
ahhh, gotcha. hope they let you the site you wanna do. is there a way they could host the html and you can host the php scripts?
That's what I'd like to know...
ASP doesn't work on the servers btw...

OK, I just talked to her, even demoed it for her but she still says no. Short explanation of her reasoning:
She's the "Media/News" teacher here. A while ago she protested and fought the local county school-system because of rumors that it would allow principals to sensor the school-paper. She even appeared on national TV shows for this and some of the students were sent to Washington D.C. and got 1000 bucks each. Later she wanted to have a news-website, yet there were other problems, needless to say she fought them and won too. So now, out of principal, I *must* create this site on their servers, no matter how bad it will be.

So you see, I'm a little scared to lie to her and say "well, turns out everything works fine afterall. Their servers support it!". 1) she might get suspicious. 2) My conscience will try and kill me. 3) If it doesn't kill me, she will if she finds out.

Soo... I'll probably just end up making it the hard way...

One final thing: Does anyone know how I can use "include" statements to include parts of HTML code from other files without using a language such as ASP or PHP?
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Sep 10, 2003, 07:39 PM
 
that would be server side includes

[!--#include file="relative file name" --]
or
[!--#include virtual="file name from site base" --]

--will
     
Registered User
Join Date: Jul 2003
Location: San Jose
Status: Offline
Reply With Quote
Sep 10, 2003, 07:59 PM
 
you can use javascript too...

[php]
<script language="JavaScript" src="scripts/some_page.js" type="text/javascript"></script>
[/php]

and then use document.write(); to write out the html you want to use...

[php]
// JavaScript Document - some_page.js

document.write("<a href='a.html'>link</a>");
[/php]
(Last edited by mzllr; Sep 10, 2003 at 11:51 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:08 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2