how can i display php source code snippets ?


Posted on 16th Feb 2014 07:03 pm by admin

I am outputting some pho code .. and I want to display the source code so people can copy and paste it .... not really wanting to use a TEXTAREA box .... any ideas ?
No comments posted yet

Your Answer:

Login to answer
245 Like 27 Dislike
Previous forums Next forums
Other forums

Pagination
Hi All,

I think I'm finally getting somewhere with pagination!

I can now submit a quer

Script not running properly
Hello Everyone
This is a basic script for posting to a database. I'm not sure why it doesn't work

Rand() help needed
Hi all,

Can someone explain and give me a quick example of how I would go about this?

Keeping track of php uploads
Hello all.

I was looking at the way PHP handles file uploads.
It seems that PHP uses a tem

selectbox+database connection retrive problem
Code: [Select]
<tr>
<th align="left" scope="c

Disable html within defined tags
I have a mysql database that allows users to enter content with html, but I also want to have a tag

upload photo limits
ive got a upload photo script and im just trying to make more secure currently it limits size and as

division gives infinity anser
int main()
{
int z=0;
int i=1/z;
cout<
}

It doesn't throw a

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

Getting a variable to work in function params
I have this fuction which is inside a class:

Code: public static function generateEmbedCode($

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash