Jump to content

Search the Community

Showing results for tags 'Address'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 2 results

  1. I made a piece of code to check wheter a url page exists. This is a part of the get_headers routine I'm using: <?php // check with checkdnsrr // validate with FILTER_VALIDATE_URL /////////////////////////////////////////////////// // get_headers part $array = get_headers($url); var_dump($array); $string = $array[0]; if( strpos($string,"200") || strpos($string,"301") || strpos($string,"302") || strpos($string,"403") ) { var_dump($url); } else { echo '<br><br> this site is insecure<br>'; echo '<br> use http instead of https <br><br>'; } } ?> The problem is that some websites configure their server either http or https but this does not mean that there is page content. What can be used to determine if there is an index.php or an index.html or any alternative indexpage used? The things I'm considering are: file_exists, file_get_contents or glob() on the other hand var_dump($array) gives in several cases the parameter: Content Type. The value is txt/html . Can this be used to see if there is a page? What would you recommend and can you give an example how this is used?
  2. I recently posted this: http://w3schools.invisionzone.com/index.php?showtopic=44208 in CSS styles. I'm having trouble with my site displaying correctly in IE8 & Above. I have discovered that the reason my site wont load correctly in IE8+ is to do with the web forwarding and masking (set up by lcn.com) forcing my site to display in IE7 mode - and thus my CSS won't load. It used to be that if you visit my site at: www.davemooreboxedart.co.uk you get masked & forwarded to: www.personalised-cupcakes.co.uk/davemoore/index2.html (I have since changed this to a simple re-direction and my site displays correctly! Hurrah!) I would now like to set up my own address bar masking, but have no idea how to do it.Have searched the net but not found any simple way to do it. Any help ? Or can anyone point me in the right direction ? Thanks.R.
×
×
  • Create New...