Jump to content

Blunketts dog

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Blunketts dog's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i got it working by doing this: <?php $link = ' "http://www.yahoo.co.uk" '; $message = ' <html> <body> <p>Click <a href ='.$link.'>here </a>for yahoo</p> </body> </html>';
  2. That just gives an email of 'click here for yahoo' with no hyperlink I had a look at it this but it didn't really help me. Its all a bit too complex for me to get my head round what I am doing and where i am going wrong
  3. try this: mkdir('../sites/.$username', 0777);
  4. that returns: Parse error: syntax error, unexpected T_VARIABLE
  5. OK, I got that working but what i really want to do is use an address I have in a variable as so: <?php $link = "http://www.yahoo.co.uk" $message = ' <html> <body> <p>Click <a href = $link>here </a>for yahoo</p> </body> </html>'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Me <Me@home.com>'; mail ('user@home.com', 'Test mail', $message, $headers); ?> but this gives me an email that says 'click for yahoo' with no clickable bit and no sign of either the address or the variable it has come from. Is there a way round this or have i overlooked something more obvious? Thanks again
  6. I treid this: and it worked fine. Many thanks I will bear this and this in mind if I run into any problems. Thanks for all your help - this is my first go at a php project and i thought i had fallen at the final hurdle!
  7. Oh. Is there a way round this then. I have looked through my emails, and i have recieved some that contain links that work fine. How do they manage it?
  8. Hi there, when i run this code: <?php $message = ' <html> <body> <p>Click <a href = "www.yahoo.com">here </a>for yahoo</p> </body> </html>'; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: Me <Me@home.com>'; mail ('user@home.com', 'Test mail', $message, $headers); ?> I am hoping to get an email that contains a link that I can click on to get to yahoo. What actually happens is i just get an email that says 'Click here to go to yahoo' but no clickable link. Can anyone tell me what i am doing wrong? Many thanks
  9. Hi there, I am having difficulty using one php file to write to another php file that contains the variable from the first file. As an example, say I have the following code (original.php) to create a new file: <?php $name = Joe touch ("$name.php"); >? Is there a way of writing to the new file (Joe.php) so that Joe.php would be this: <?php echo "hello Joe" ?> but without referencing original.php file. What I am trying to do is loop through a list of names that creates a new php file for each name that is specific to that person. However the original.php may have been deleted before joe.php is run. I hope that makes sense????? Thanks in advance
×
×
  • 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.