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

Change snippet to use CURDATE
I am using time() in the snippet below, I would like to use CURDATE() and have the database setup fo

file downloaded can't be read !!
<?php
$fileName = 'mypic.jpg';
$mimeType = 'image/jpeg';
header('content-dispositio

Table trouble
i have been reading the forum for a few weeks and decided to join. i like the format and the advice

get multiple rows
Hi I want to get multiple rows from a db

I am using this for the db query
Code: public

Redirecting Admin
In my members table, I have a field called "perm" and it's set to zero for all members. Ho

PRotect my POST DATA... FROM HTML ATTACKS
I need to like let's say

If a user submit's his Prayer and he put's <meta refresh stuf

Pls help with PHP
Pls can anyone direct me on how to create a user account for a customer. For example i want know if

Sessions Value Not Saved
Hi,

Im making a login form and im using this code:
Code: if($login=="true"){

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

How to make a mail Form secure?
I want to create an email Form on my web site. How can I make the Form secure so the submitted info

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