Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

DISPLAY PHP


ghost's Avatar
0 0

The title says it all. Any good techniques to display php? I googled it but I got nothing but syntax errors… :angry: Help would be appreciated.


What_A_Legend's Avatar
...Legend?
0 0

What exactly does that post mean . . Kinda hard to decide what your on bout from there. If your on bout testing your scripts upload to a PHP host or install Apache on to you machine I recomend Xampp.


Flaming_figures's Avatar
Member
0 0

Uhh… do you mean how do you display the PHP source on another persons site or how do you show people who go to your site the PHP script for something like a login you are getting help with building or something. If that's the case, just slap it in a text file…. but I agree.. what?


Flaming_figures's Avatar
Member
0 0

Uhh… do you mean how do you display the PHP source on another persons site or how do you show people who go to your site the PHP script for something like a login you are getting help with building or something. If that's the case, just slap it in a text file…. but I agree.. what?


ghost's Avatar
0 0

Post the source of the code you are having troubles with here, Syntax errors are an easy fix. Please remember to take out information such as database logins and passwords


ghost's Avatar
0 0

I think this guy's trying to view PHP source code on someone else's site… Try a null byte injection, or maybe include a PHP shell and download/view it from there.


ghost's Avatar
0 0

Is highlight_source() what you're looking for? If you mean view it directly from a page, you cant, it's only returned as html. You can view other peoples if you find vulnerable pages though.


ghost's Avatar
0 0

Sorry guys, I was talking to someone else on msn about it while i was typing it so i had a brain fart and figured you would know what I was talking about. I am just starting to learn php actually and am not searching for an exploit… But I have a site where I am logging my php trials and errors. So instead of just showing the result of the php I was hoping to show the source code as well.

sharpskater80 wrote: Is highlight_source() what you're looking for? If you mean view it directly from a page, you cant, it's only returned as html. You can view other peoples if you find vulnerable pages though.

I googled "dispaly php" and found a script for that and yet it didn't work…

Could someone give me a snippet what is the proper way to use the highlite_source() function? with comments please. Like i said I'm new to php so it helps to explain a few things.


korg's Avatar
Admin from hell
0 0

Well why not use the "show_source() " functionQ

Something like: <?php show_source("Yoursite.php" ); ?>

Then view the source. Good for testing but don't leave sensitive data under this function.


ghost's Avatar
0 0

Why didn't I think of that!? :P aha, thanks… I suppose that will do for now. I don't really got any data that matters at the moment but I'll make sure not to expose any of it when I do start writing some more advnaced scripts. Thanks Korg.

I'm going to ask one more question so I don't have to start a new topic…. How can make images dynamic… for example let's say I have a bordered image with text in it… How do I get the image to stretch as more and more text is inserted so I don't have to keep making the image bigger?


ghost's Avatar
0 0

save your file as: yourfile.phps :happy: