hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : need help
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

need help

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-26-2002, 05:51 PM
roby2k roby2k is offline
Junior Guru
 
Join Date: Apr 2002
Location: Wirral/Cheshire/Meresyside
Posts: 203

need help


i got a script i want to give to some 1 but i want the script to have my link and mini banner in it, so i want some help on making a bit to look for it and if it carnt find it it will display a message

__________________
http://www.gocre8.co.uk - Liverpool Web Design
http://www.outallnite.co.uk - Liverpool Clubbing

Reply With Quote


Sponsored Links
  #2  
Old 08-26-2002, 07:40 PM
Ahmad Ahmad is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Kuwait
Posts: 679
You mean won't run if the banner is not displayed? Or you want to have a script on YOUR server that checks to see if the banner is there or not?

__________________
Ahmad Alhashemi
PHP, Apache, C, Python, Perl, SQL
18 related BrainBench certificates

Reply With Quote
  #3  
Old 08-27-2002, 06:01 AM
roby2k roby2k is offline
Junior Guru
 
Join Date: Apr 2002
Location: Wirral/Cheshire/Meresyside
Posts: 203
it wont run if the banner isnt displayed

__________________
http://www.gocre8.co.uk - Liverpool Web Design
http://www.outallnite.co.uk - Liverpool Clubbing

Reply With Quote
Sponsored Links
  #4  
Old 08-27-2002, 09:40 AM
Ahmad Ahmad is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Kuwait
Posts: 679
There is now way to do that. If they can remove the banner, they can remove the code that checks for the existance of the banner.

__________________
Ahmad Alhashemi
PHP, Apache, C, Python, Perl, SQL
18 related BrainBench certificates

Reply With Quote
  #5  
Old 08-27-2002, 01:42 PM
michaeln michaeln is offline
Web Hosting Master
 
Join Date: Nov 2001
Posts: 857
You would have to encode the script so they couldn't take the code out... But if you are going to encode the script then you really don't need to check and see if it is showing the banner. Rather just program the script to show it. Then when it is encoded they can't not show the banner...

Regards,
Michael

__________________
<?
header("Location: http://www.hostevolve.com/");
?>

Reply With Quote
  #6  
Old 08-27-2002, 03:57 PM
roby2k roby2k is offline
Junior Guru
 
Join Date: Apr 2002
Location: Wirral/Cheshire/Meresyside
Posts: 203
i want to put the bit that stops them in a remote file if thats possible if not ill hide it in with some code and when they look over it they wotn know what it is they dont know php you see

__________________
http://www.gocre8.co.uk - Liverpool Web Design
http://www.outallnite.co.uk - Liverpool Clubbing

Reply With Quote
  #7  
Old 08-27-2002, 04:23 PM
michaeln michaeln is offline
Web Hosting Master
 
Join Date: Nov 2001
Posts: 857
well if they don't know php you can hide it. Or put the file containing that function on your site and do this:

require("http://yoursite.com/filename.txt");

remember to make it a .txt so that your server returns the code and not the codes output...

Also note that if your site is ever down for some reason it will cause their site to fail...

Since you are coding their site just put your banner where you want it... If you are afraid they will find it then put the code to display the banner in a function also stored on your site and call that function. Also make the function set a global variable to a specified number to check for later so that you can check to see if they deleted the function call. If so the site fails...

Again if they decide to up and learn PHP one day they can change all of that.

Regards,
Michael

__________________
<?
header("Location: http://www.hostevolve.com/");
?>

Reply With Quote
  #8  
Old 08-29-2002, 11:50 AM
roby2k roby2k is offline
Junior Guru
 
Join Date: Apr 2002
Location: Wirral/Cheshire/Meresyside
Posts: 203
i should of thought of that b4

__________________
http://www.gocre8.co.uk - Liverpool Web Design
http://www.outallnite.co.uk - Liverpool Clubbing

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting 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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?