/ Published in: PHP
                    
                                        this function processes a URL that 'should' be a full url (i.e. http://something.com/dfsdfs/)
and makes sure it contains http:// for easy inclusion as a link into a href attribute
                and makes sure it contains http:// for easy inclusion as a link into a href attribute
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 // this function processes a URL that 'should' be a full url (http://something.com/dfsdfs/) // and makes sure it contains the correct format to be included into a href attribute function processURLString($urlString) { if($urlString) { $urlString = 'http://'.$urlString; } return $urlString; }
Comments
                    Subscribe to comments
                
                