arbitter Posted March 28, 2010 Share Posted March 28, 2010 Hello there, Is there a url that sends the source-code of a site to any browser? e.g.: view-source:http://www.yoururl.com/ works in firefox and chrome, but it doesn't in safari, and if you want to view the source you just get a pop-up but no url... Quote Link to comment https://forums.phpfreaks.com/topic/196783-source-code-url-for-all-browsers/ Share on other sites More sharing options...
oni-kun Posted March 29, 2010 Share Posted March 29, 2010 Why do you want this done? There's no cross browser method for 'any' browser. You could detect the browser and send them to the proper url, or if automated viewsource.php?http://... Quote Link to comment https://forums.phpfreaks.com/topic/196783-source-code-url-for-all-browsers/#findComment-1033273 Share on other sites More sharing options...
arbitter Posted March 29, 2010 Author Share Posted March 29, 2010 well it was only ment so I could send somone a hyperlink and they'd get straight to the source code. But I think that person uses safari, and I don't see how you can doe that with safari! Quote Link to comment https://forums.phpfreaks.com/topic/196783-source-code-url-for-all-browsers/#findComment-1033406 Share on other sites More sharing options...
Adam Posted March 29, 2010 Share Posted March 29, 2010 And you're friend (who I assume must have some knowledge of browsers to want to view the source) is incapable of just viewing the source themselves? Quote Link to comment https://forums.phpfreaks.com/topic/196783-source-code-url-for-all-browsers/#findComment-1033482 Share on other sites More sharing options...
arbitter Posted March 29, 2010 Author Share Posted March 29, 2010 And you're friend (who I assume must have some knowledge of browsers to want to view the source) is incapable of just viewing the source themselves? No she's capable of it, but I wanted to show her I followed her advice by posting her a url that went straight to the source code... It'd just be something nice t know, if it was possible Quote Link to comment https://forums.phpfreaks.com/topic/196783-source-code-url-for-all-browsers/#findComment-1033490 Share on other sites More sharing options...
Daniel0 Posted March 29, 2010 Share Posted March 29, 2010 The source code will always be returned from the webserver. Isn't it your friend's fault that she chose the wrong client to check it out with? Quote Link to comment https://forums.phpfreaks.com/topic/196783-source-code-url-for-all-browsers/#findComment-1033644 Share on other sites More sharing options...
arbitter Posted March 29, 2010 Author Share Posted March 29, 2010 For some reason I always get misunderstood on this forum Thanks anyway! Quote Link to comment https://forums.phpfreaks.com/topic/196783-source-code-url-for-all-browsers/#findComment-1033657 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.