1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

<?php echo "CODING QUESTION"; ?>

Discussion in 'Black Hat SEO' started by s1rge1, Dec 31, 2013.

  1. s1rge1

    s1rge1 Newbie

    Joined:
    Dec 13, 2013
    Messages:
    10
    Likes Received:
    1
    i am developing a cms for my website and am wondering if i use my database to store my header information then will google pick up my pages title and description from my database or will it not even attempt to read my website??
     
  2. mrankin

    mrankin Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 17, 2008
    Messages:
    1,215
    Likes Received:
    571
    Location:
    Australia
    Home Page:
    Google will read your site as it is rendered, it doesn't matter where the code is coming from - no difference if some or all of it is coming from a database - Google can't see the database connection, only what is presented to it.
     
    • Thanks Thanks x 1
  3. extremeboy

    extremeboy Jr. VIP Jr. VIP

    Joined:
    Jul 8, 2010
    Messages:
    2,993
    Likes Received:
    648
    Occupation:
    World Best RANK Tracker SERPCloud.com
    Home Page:
    use META tags is the best way to let search engines know your titles,description etc ;)
     
  4. sudorank

    sudorank Power Member

    Joined:
    Jun 24, 2013
    Messages:
    640
    Likes Received:
    473
    Occupation:
    Web Developer
    Location:
    Swansea, UK
    Home Page:
    .php is a server side language. That's to say it's not the .php element that's even read by your browser or indeed the Google robot.

    All .php does is pull data from the database/feed/user input and display it within .html tags. The browser / robot views the .html markup, not the .php coding. If you think about it this is great, the last thing you want is leaving your database details and site architecture out for the hackers to play with.

    Hope that helps and good luck with your CMS! Don't forget to escape all your quotation marks and use modern PDO / mysqli versions of older mysql commands. .php is in a state of flux atm so keeping up with new developments and moving on from depreciated methods is always the programmers best buddy. :cool:
     
    Last edited: Dec 31, 2013
  5. gsy159

    gsy159 Power Member

    Joined:
    Apr 29, 2011
    Messages:
    657
    Likes Received:
    158
    go to your site, press CTRL+u, the code you see is what the google crawler sees
     
  6. Lakitu

    Lakitu Junior Member

    Joined:
    Dec 29, 2013
    Messages:
    157
    Likes Received:
    51
    Yes, crawlers will see it. If they didn't, then all WordPress based IM websites would fail and the majority of people here wouldn't be internet marketers because Wordpress uses PHP includes to insert headers, content, footers, etc. Bottom line: you're safe.
     
  7. Ste Fishkin

    Ste Fishkin "I'm watching you.." - Apricot Jr. VIP Premium Member UnGagged Attendee

    Joined:
    May 14, 2011
    Messages:
    1,833
    Likes Received:
    8,693
    Occupation:
    Rands Sex Slave
    Location:
    England
    Php will output HTML.

    Google will read the HTML.

    PHP is server side and google cannot view it. Storing META data in a database is no problem and its fairly common.
     
  8. tdivan

    tdivan Newbie

    Joined:
    Aug 12, 2013
    Messages:
    46
    Likes Received:
    16
    as soon as you do a include in PHP the file and all its contents are made available to the browser for rendering. PHP basically serves up the HTML for google to read. If you want to see it in action tear wordpress apart and look at how they do the header, footer, and content in a child theme. As long as you have one main file (index.php) be the driver it can call as many pages to be fully included as you want. Honestly its exactly like c with library files and many other high level programming languages except on the internet the browser does a psuedo compile and runs the scripting on the fly.