robert_gsfame Posted July 24, 2009 Share Posted July 24, 2009 Is it correct if i put this way <?php session_start();?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <meta name="description"> <meta name = "keywords"> <style type = "text/css"> </style> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <?php require_once['config.php'];?> </head> i created this using dreamweaver, and when i put this way, highlighted <?> mark appeared on my properties is there something wrong with the code, can explain it to me about the meaning of that error? Quote Link to comment https://forums.phpfreaks.com/topic/167277-is-it-correct/ Share on other sites More sharing options...
Maq Posted July 24, 2009 Share Posted July 24, 2009 What? It doesn't surprise me that Dreamweaver generated erroneous code. Quote Link to comment https://forums.phpfreaks.com/topic/167277-is-it-correct/#findComment-881985 Share on other sites More sharing options...
robert_gsfame Posted July 24, 2009 Author Share Posted July 24, 2009 What do u mean? is it correct or wrong...when i run it, it still works but i still worried about the highlighted mark <?> Ignore it or you have something to do with it Quote Link to comment https://forums.phpfreaks.com/topic/167277-is-it-correct/#findComment-881993 Share on other sites More sharing options...
Maq Posted July 24, 2009 Share Posted July 24, 2009 There is no > in your code. What do you want me to say? What color is the highlight? What error does it output? Quote Link to comment https://forums.phpfreaks.com/topic/167277-is-it-correct/#findComment-881997 Share on other sites More sharing options...
robert_gsfame Posted July 24, 2009 Author Share Posted July 24, 2009 :confused: It's yellow highlight, i've put everything exactly the same like what was written above... Do you think i miss something maq?? Quote Link to comment https://forums.phpfreaks.com/topic/167277-is-it-correct/#findComment-882003 Share on other sites More sharing options...
Maq Posted July 24, 2009 Share Posted July 24, 2009 It's yellow highlight, i've put everything exactly the same like what was written above... I've never used dreamweaver so it could be something specific to that editor. Do you think i miss something maq?? Maybe, I'm not sure what you're referring to. I don't think you do either. Quote Link to comment https://forums.phpfreaks.com/topic/167277-is-it-correct/#findComment-882007 Share on other sites More sharing options...
RichardRotterdam Posted July 24, 2009 Share Posted July 24, 2009 i created this using dreamweaver, and when i put this way, highlighted <?> mark appeared on my properties is there something wrong with the code, can explain it to me about the meaning of that error? With this you probably mean that in the Dreamweaver design mode it shows the php icons. Is this correct? If so that just means there is php there. the following code is just crap and I guess i finaly get to use a new icon oh smashing!! <?php require_once['config.php'];?> require_once is a function not an array. arrays use square brackets functions use Parentheses ( ) Quote Link to comment https://forums.phpfreaks.com/topic/167277-is-it-correct/#findComment-882010 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.