mysterbx Posted February 16, 2008 Share Posted February 16, 2008 Hello, I just thought of something... Is it possible to show your html source in one line? For example: You have a php file which has like 1000 lines, can it be shown only in one if someone wants to check the html source? Quote Link to comment Share on other sites More sharing options...
Chris92 Posted February 16, 2008 Share Posted February 16, 2008 Yes, you could proboally try something like: <?php echo implode(" ", file('file.html')); ?> Quote Link to comment Share on other sites More sharing options...
mysterbx Posted February 16, 2008 Author Share Posted February 16, 2008 i dont think it would work, my index.php has 30 issets, evey new isset is a new page... like, my article page: index.php?index&id=15&subject=somethin index.php?index&id=16&subject=somethin index.php?index&id=17&subject=somethin and similar... Is it possible to use it in the same page? in the index.php Quote Link to comment Share on other sites More sharing options...
Chris92 Posted February 16, 2008 Share Posted February 16, 2008 The only way to do it would be to get the contents and strip the new lines to make it into one. Quote Link to comment Share on other sites More sharing options...
mysterbx Posted February 16, 2008 Author Share Posted February 16, 2008 i understand, but if i say that the file is: index.php?index&id=155&name=something it wont understand what is that... Quote Link to comment Share on other sites More sharing options...
Chris92 Posted February 16, 2008 Share Posted February 16, 2008 it would, you could simple include the file like include("{$_SERVER['PHP_SELF']}?{$_SERVER['QUERY_STRING']}"); Quote Link to comment Share on other sites More sharing options...
mysterbx Posted February 16, 2008 Author Share Posted February 16, 2008 Warning: include(/index.php?ddl&id=2209) [function.include]: failed to open stream: No such file or directory in /home/domains/warezgrounds.com/www_root/index.php on line 2 Warning: include() [function.include]: Failed opening '/index.php?ddl&id=2209' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/domains/warezgrounds.com/www_root/index.php on line 2 Quote Link to comment 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.