Jump to content

johnmccc

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by johnmccc

  1. Only the 5th one is working. So if I'm understanding that right my file.php should return something and not echo things?
  2. Hi I have a simple file.php like this: <?php echo 'Hello'; ?> And I have main PHP script where i want to get the previous file. So i thought must do this: <?php $String = file_get_contents('file.php'); echo $String; ?> But this will print "echo 'Hello';" I want my main PHP file to print "Hello" So the PHP code is not beging processed How can I solve this? I cannot use include or require .. because I want to put the output from file.php into a string!
  3. I was just giving an example of how it should look like, but the syntax will be definitely wrong
  4. Hi, I want to change the url with PHP, if this is possible (Let's suppose we don't have to watch if we are in a folder or not) For example my current url is: http://www.domain.com/php And I want to change it with PHP into: http://www.domain.com/php/ On a very simple way the PHP would look like this (but oufcourse it will not work): $_SERVER = $_SERVER + "/";
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.