View Full Version : how to put // in php script
sandyd
August 14th, 2009, 03:42 AM
Ive learned this ...previously... but how do i put // in a php script without making it a comment? (im trying to enter a url into a variable)
wojox
August 14th, 2009, 03:47 AM
header("Location: http://ubuntuforums.org/");
jeffathehutt
August 14th, 2009, 03:55 AM
$site = 'http://www.site.com/';
Make sure you are including quotes around the url, and it should work.:)
wojox
August 14th, 2009, 03:59 AM
opps didn't see the variable part.
credobyte
August 14th, 2009, 04:13 AM
Where's the problem ? :roll:
$variable = "http://www.google.com";
wojox
August 14th, 2009, 04:19 AM
No problem I just set the parameters for a function instead of assigning it to a variable. Time for bed. :confused:
sandyd
August 14th, 2009, 04:24 AM
oops. turned out i was just being silly.
apparently,
$url = "http://sitehere.com" is different than
$url = 'http://sitehere.com'
](*,)](*,) ](*,) ](*,) ](*,)
credobyte
August 14th, 2009, 04:27 AM
No problem I just set the parameters for a function instead of assigning it to a variable. Time for bed. :confused:
Indeed, I don't understand, why he made this thread without trying it first ( w3schools second lesson ) ](*,)
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.