I just came up with a simple idear, trash it if you like.
Say I am posting rather long code, which relies on other files I include to that file.
Now what I would like to do is post my code, and create a link under:
include(dirname(__FILE__)."/db_conn.php");
So when that is clicked in this forum, a new pop-up opens up with just the code of: db_conn.php
This would make the post shorter, easier readable.
(edit: or some extra fields in post-form, which will return in the message as links. Something like: "included files:")
php in seperate windows
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
We have no control over the content of external scripts.
Personally I don't believe people should be able to hijack members browsers to run scripts they did not request or would reasonably expect. At the very least, that's bad form.
In any case, if you can't outline the problem succinctly - showing just a few lines of relevant code - you're much less likely to get help.
Personally I don't believe people should be able to hijack members browsers to run scripts they did not request or would reasonably expect. At the very least, that's bad form.
In any case, if you can't outline the problem succinctly - showing just a few lines of relevant code - you're much less likely to get help.
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
I think you misunderstood.. or I did. From my understanding the code would be just like it is now (when you wrap it in
Code: Select all
tags), except in a pop up instead of crowding up the topic..- redhair
- Forum Contributor
- Posts: 300
- Joined: Fri May 30, 2003 4:36 pm
- Location: 53.23N-6.57E
- Contact:
LiLpunkSkateR wrote:I think you misunderstood.. or I did. From my understanding the code would be just like it is now (when you wrap it inCode: Select all
tags), except in a pop up instead of crowding up the topic..[/quote] Exactly! I'm sorry if I don't make myself clear enough, probably because I lack some English, since I'm just Dutch....and I like that.) Anyway... A seperate posting field for extra included files, is what I'm after. This would be echood in the post as a separate block containing links to them (...which, when clicked opens a separate window, with just the code of the included code of the actual code.). ..if you catch my drift.