Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
I Need Help ASAP If you can!!!
Old 10-29-2005, 11:37 PM Help With Remote Files And PHP; PLEASE HELP!!!
Junior Talker

Posts: 3
Trades: 0
Hello, I am wanting to use JUST PHP, no MySQL. I want my file to use a file on a different server to check for validation. Like this:

Code:
<?
        include("http://www.american-hoster.com/sourceBEgone/");
if ($active == no)
print($message);

else
[The rest of my code...]

?>
And in http://www.american-hoster.com/sourceBEgone/index.html I have:

Code:
<?
$active = no;
$message = "This site has been banned from using Source Be Gone!";
?>
I get this error:
Code:
Parse error: parse error in http://www.american-hoster.com/sourceBEgone/ on line 4

Can anyone tell me if this is not possable; if it is possable, please let me know what I am doing wrong... Please remember that the files will be on different servers. Thanks ~ Michael Hart

Also: www.source-be-gone.com I made that... The best as-loading source encrypter you can find because it is 100% undecryptable...

Last edited by American; 10-29-2005 at 11:48 PM..
American is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-30-2005, 12:09 AM
AxE
AxE's Avatar
Skilled Talker

Posts: 62
Trades: 0
Problem 1 - Your trying to include a directory. You need to specify file names.

PHP Code:
include("http://www.american-hoster.com/sourceBEgone/index.html"); 
Problem 2 - Your syntax is wrong.

PHP Code:
<?
        
include("http://www.american-hoster.com/sourceBEgone/");
if (
$active == no)
print(
$message);

else
[
The rest of my code...]

?>
Should be
PHP Code:
<?
include("http://www.american-hoster.com/sourceBEgone/index.html");
if (
$active == "no"){
   print(
$message);
}else{
[
The rest of my code...]
}
PHP Code:
<?
$active 
no;
$message "This site has been banned from using Source Be Gone!";
?>
Should be
PHP Code:
<?
$active 
"no";
$message "This site has been banned from using Source Be Gone!";
?>
Problem 3 - Try changing index.html to index.php, some times that randomly spews out parse errors for me.

As far as I can tell that is all the problems.

PS: Try your site in FireFox, theres a huge gap in it for some reason.
AxE is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 12:43 AM Index.php
Junior Talker

Posts: 3
Trades: 0
If I make it .PHP the other site(s) wouldent be able to see the variables; since it's on a different server... Also; that still didnt work... Any other suggestions; also, thankyou for your help.
American is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 12:46 AM Well
Junior Talker

Posts: 3
Trades: 0
I tried what you did then changed my coding in else if. And it WORKED! Thanks! I will now be able to give this paying person a reliable of Source Be Gone... Thanks for your help.... ~ Michael Hart


www.Source-Be-Gone.com
American is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I Need Help ASAP If you can!!!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43653 seconds with 12 queries