Re: [PHP] Need code like pastebin.org

2010-12-27 Thread Daniel P. Brown
On Sat, Dec 25, 2010 at 12:32, Michelle Konzack
linux4miche...@tamay-dogan.net wrote:
 Hello,

 before I reinvent the weehl, I ask here:

 In my webinterface My Space I wan t include a section where users  can
 upload files and have them proposed like  on  pastebin.org.  Also  for
 source codes it would be nice, if users could choose syntax highliting.

 Does someone has a source codes to share or know, where I get one?

Sure, you can just download the actual PasteBin script from the
original author.  It's GPL'd, and you can grab it here:

http://links.parasane.net/42ez


 Thanks, Greetings and nice Day/Evening
    Michelle Konzack

 --
 # Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

 itsyst...@tdnet France EURL       itsyst...@tdnet UG (limited liability)
 Owner Michelle Konzack            Owner Michelle Konzack

 Apt. 917 (homeoffice)
 50, rue de Soultz                 Kinzigstraße 17
 67100 Strasbourg/France           77694 Kehl/Germany
 Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
 Tel: +33-9-52705884 fix

 http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
 http://www.debian.tamay-dogan.net/         http://www.can4linux.org/

 Jabber linux4miche...@jabber.ccc.de

 Linux-User #280138 with the Linux Counter, http://counter.li.org/




-- 
/Daniel P. Brown
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Need code like pastebin.org

2010-12-27 Thread Michelle Konzack
Hello Daniel P. Brown,

Am 2010-12-27 12:11:46, hacktest Du folgendes herunter:
 Sure, you can just download the actual PasteBin script from the
 original author.  It's GPL'd, and you can grab it here:
 
 http://links.parasane.net/42ez

Realy cool!  Thankyou!

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: Fwd: Fwd: Re: [PHP] goto - My comments

2010-12-27 Thread Jim Lucas
On 12/27/2010 10:42 AM, Ethan Rosenberg wrote:
 Jim -
 
 Thank you ever so much.
 
 At 01:58 PM 12/24/2010, you wrote:
 
 Here you are using two different arrays.  Yes, I know, they are basically the
 same, but they are truly not the same.  In your case, use $_POST

  This is what I used.  As per your suggestion, I changed the == to ===.
 if(isset($_Request['Sex']) trim($_POST['Sex']) != '' )
 {
 if ($_REQUEST['Sex'] == 0)
 {
 $sex = 'Male';
 }
 else
 {
 $sex = 'Female';
 }
 }

  This defaults to Male.  I do not always search the Sex field.
 if ( empty($_POST['Sex']) )
 {
 $_POST['Sex'] = 'Male';
 } else {
 $_POST['Sex'] = 'Female';
 }

 +++
 
 
 Now, here is the real puzzler
 
 The purpose of this routine is to be able to have two(2) forms on one 
 page,but 
 not simultaneously.Additionally, l do not wish to call a separate program 
 every
 time a new form is used.  The assumption is that the second form depends on 
 the
 entries in the first form.  I realize this is not the case here.
 
 The age request and the kitten form both appear on the page together.  How do 
 I
 accomplish having them appear separately?  If it requires Java Script or 
 jQuery,
 what is the code to be used?
 
 Here is the code
 ==
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
DTD/xhtml1-transitional.dtd
 html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en lang=en
   head
 titleProject 4-5: Age Calculator/title
   /head
   body
 h2Project 4-5: Age Calculator/h2
 ?php
 // if form not yet submitted
 // display form
 
 
 if (!isset($_POST['dob']))
 {
 
 echo   form method=\post\ action=\agecalc3.php\;
 echo   Enter your date of birth, in mm/dd/ format: br /;
 echo   input type=\text\ name=\dob\ /;
 echo   p;
 echo   input type=\submit\ name=\submit\ value=\Submit\ /;
 echo   /form;
 
 }
 else
 {
 // if form submitted
 // process form input
 
 
   // split date value into components
   $dateArr = explode('/', $_POST['dob']);
 
   // calculate timestamp corresponding to date value
   $dateTs = strtotime($_POST['dob']);
 
   // calculate timestamp corresponding to 'today'
   $now = strtotime('today');
 
   // check that the value entered is in the correct format
   if (sizeof($dateArr) != 3) {
 die('ERROR: Please enter a valid date of birth');
   }
 
   // check that the value entered is a valid date
   if (!checkdate($dateArr[0], $dateArr[1], $dateArr[2])) {
 die('ERROR: Please enter a valid date of birth');
   }
 
   // check that the date entered is earlier than 'today'
   if ($dateTs = $now) {
 die('ERROR: Please enter a date of birth earlier than today');
   }
 
   // calculate difference between date of birth and today in days
   // convert to years
   // convert remaining days to months
   // print output
   $ageDays = floor(($now - $dateTs) / 86400);
   $ageYears = floor($ageDays / 365);
   $ageMonths = floor(($ageDays - ($ageYears * 365)) / 30);
   echo You are approximately $ageYears years and $ageMonths months old.;
  }
 
 // SECOND FORM
 
  if (!isset($_POST['cat']))
  {
 
 echo   form method=\post\ action=\agecalc3.php\;
 echo   br /br /Enter your kitten's name: br /;
 echo   input type=\text\ name=\cat\ /;
 echo   p;
 echo   input type=\submit\ name=\submit\ value=\Submit
 Kitten\ /;
 echo /form;
 }
 else
 {
 $name_cat = $_POST['cat'];
 
 echo Your Kitten is $name_cat;
 }
 ?
 
   /body
 /html
 ===
 Thanks again.
 
 Ethan
 
 
 

The key is to look at the value of the submit button.  This needs to be unique.

Change around your logic a little and you will have it.

?php

// if form not yet submitted
// display form
if ( isset($_POST['submit'])  $_POST['submit'] === 'Submit' ) {
  // process form input
  // split date value into components
  $dateArr = explode('/', $_POST['dob']);

  // calculate timestamp corresponding to date value
  $dateTs = strtotime($_POST['dob']);

  // calculate timestamp corresponding to 'today'
  $now = strtotime('today');

  // check that the value entered is in the correct format
  if ( sizeof($dateArr) != 3 ) {
die('ERROR: Please enter a valid date of birth');
  }

  // check that the value entered is a valid date
  if ( !checkdate($dateArr[0], $dateArr[1], $dateArr[2]) ) {
die('ERROR: Please enter a valid date of birth');
  }

  // check that the date entered is earlier than 'today'
  if ( $dateTs = $now ) {
die('ERROR: Please enter a date of birth earlier than today');
  }

  // calculate difference between date of birth and today in days
  // convert to years
  // convert remaining days to months
  // print output
  $ageDays = floor(($now 

[PHP] Re: Need code like pastebin.org

2010-12-27 Thread Michelle Konzack
Hello Daniel P. Brown,

Am 2010-12-27 12:11:46, hacktest Du folgendes herunter:
 Sure, you can just download the actual PasteBin script from the
 original author.  It's GPL'd, and you can grab it here:
 
 http://links.parasane.net/42ez

OK, installed and it works  ;-)  but it seems, there are many  thing  to
do to get it running like on pastebin.com, like  public/private  and
pgsql support or  e-mail  input  and  links_emailer.php.  Also  my
version must work over two physical servers.

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


[PHP] Need code like megaupload.com

2010-12-27 Thread Michelle Konzack
Hi *,

after I got my pastebin runing, I need a second tool for binary uploads.

Any hints?

(Must work easy like the pastebin script)

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


[PHP] how would I do this?

2010-12-27 Thread David McGlone
Hi all,

I am trying to make the link in this code not show the underscore and I can't 
figure out how I could do it. I've tried various different things I thought 
would work. I've tried things like lawn_maintenance= lawn maintenance, I 
tried concatinating lawn . maintenance and various other things. The 
examples above both produce just the word lawn

 here's the code I have so far:

$services = array(lawn_maintenance, core_areation, over_seeding, 
hedge_trimming, mulch_installation, natural_debris_removal, 
leaf_cleanup_removal, snow_plowing);


foreach ($services as $service){

echo ulliraquo; a href=index.php?page=$service$service/a/li/ul;
}

Could anyone give me a hand? Obviously I don't understand arrays very well :-/

-- 
Blessings
David M.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how would I do this?

2010-12-27 Thread Nathan Nobbe
On Mon, Dec 27, 2010 at 2:13 PM, David McGlone da...@dmcentral.net wrote:

 Hi all,

 I am trying to make the link in this code not show the underscore and I
 can't
 figure out how I could do it. I've tried various different things I thought
 would work. I've tried things like lawn_maintenance= lawn maintenance,
 I
 tried concatinating lawn . maintenance and various other things. The
 examples above both produce just the word lawn

  here's the code I have so far:

 $services = array(lawn_maintenance, core_areation, over_seeding,
 hedge_trimming, mulch_installation, natural_debris_removal,
 leaf_cleanup_removal, snow_plowing);


 foreach ($services as $service){

 echo ulliraquo; a
 href=index.php?page=$service$service/a/li/ul;
 }


just clean up the array definition:

$services = array('lawn_maintenance', 'core_areation', 'over_seeding',
'hedge_trimming', 'mulch_installation', 'natural_debris_removal',
'leaf_cleanup_removal', 'snow_plowing');


 Could anyone give me a hand? Obviously I don't understand arrays very well
 :-/


looks more like it's the strings you're struggling with ;)

-nathan


Re: [PHP] Need code like megaupload.com

2010-12-27 Thread Michael Shadle
Try google. This is getting a bit insane now. Sorry.

On Dec 27, 2010, at 1:19 PM, Michelle Konzack linux4miche...@tamay-dogan.net 
wrote:

 Hi *,
 
 after I got my pastebin runing, I need a second tool for binary uploads.
 
 Any hints?
 
 (Must work easy like the pastebin script)
 
 Thanks, Greetings and nice Day/Evening
Michelle Konzack
 
 -- 
 # Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux
 
 itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
 Owner Michelle KonzackOwner Michelle Konzack
 
 Apt. 917 (homeoffice)
 50, rue de Soultz Kinzigstraße 17
 67100 Strasbourg/France   77694 Kehl/Germany
 Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
 Tel: +33-9-52705884 fix
 
 http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
 http://www.debian.tamay-dogan.net/ http://www.can4linux.org/
 
 Jabber linux4miche...@jabber.ccc.de
 ICQ#328449886
 
 Linux-User #280138 with the Linux Counter, http://counter.li.org/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: how would I do this?

2010-12-27 Thread Michelle Konzack
Hello David McGlone,

Am 2010-12-27 16:13:50, hacktest Du folgendes herunter:
 foreach ($services as $service){
 
 echo ulliraquo; a href=index.php?page=$service$service/a/li/ul;
 }
 
 Could anyone give me a hand? Obviously I don't understand arrays very well :-/

Maybe:

echo ulliraquo; a href=index.php?page=$service?php str_replace(_,  
, $service); =?/a/li/ul;

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] how would I do this?

2010-12-27 Thread David McGlone
On Monday, December 27, 2010 04:28:12 pm Nathan Nobbe wrote:
 On Mon, Dec 27, 2010 at 2:13 PM, David McGlone da...@dmcentral.net wrote:
  Hi all,
  
  I am trying to make the link in this code not show the underscore and I
  can't
  figure out how I could do it. I've tried various different things I
  thought would work. I've tried things like lawn_maintenance= lawn
  maintenance, I
  tried concatinating lawn . maintenance and various other things. The
  examples above both produce just the word lawn
  
   here's the code I have so far:
  $services = array(lawn_maintenance, core_areation, over_seeding,
  hedge_trimming, mulch_installation, natural_debris_removal,
  leaf_cleanup_removal, snow_plowing);
  
  
  foreach ($services as $service){
  
  echo ulliraquo; a
  href=index.php?page=$service$service/a/li/ul;
  }
 
 just clean up the array definition:
 
 $services = array('lawn_maintenance', 'core_areation', 'over_seeding',
 'hedge_trimming', 'mulch_installation', 'natural_debris_removal',
 'leaf_cleanup_removal', 'snow_plowing');
 
  Could anyone give me a hand? Obviously I don't understand arrays very
  well
  
  :-/
 
 looks more like it's the strings you're struggling with ;)

probably is. :)

Ok I put quotes around each array, but I was still getting the underscore in 
the echo of the URL.

What I was trying to do was to remove the underscore in the echo Only, but 
keep it in the URL, well that seemed like too much to bite off at the moment, 
so what I did was removed the underscore in the array names and just named 
each page the first word of the array.

here's what I had:
$services = array('lawn_maintenance', 'core_areation', 'over_seeding',
 'hedge_trimming', 'mulch_installation', 'natural_debris_removal',
 'leaf_cleanup_removal', 'snow_plowing');

page names match array names (ie: lawn_maintenance, core_areation etc..)

here is what I now have:

$services = array('lawn maintenance', 'core areation', 'over seeding',
 'hedge trimming', 'mulch installation', 'natural debris removal',
 'leaf cleanup removal', 'snow plowing');

page names are only the first name of the array (ie: lawn, core, over, hedge, 
mulch, etc...)

Does that make any sense? LOL probably doesn't and it wasn't what I was 
shooting for, but hey it works.. :)

-- 
Blessings
David M.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: how would I do this?

2010-12-27 Thread David McGlone
On Monday, December 27, 2010 04:47:34 pm Michelle Konzack wrote:
 Hello David McGlone,
 
 Am 2010-12-27 16:13:50, hacktest Du folgendes herunter:
  foreach ($services as $service){
  
  echo ulliraquo; a
  href=index.php?page=$service$service/a/li/ul; }
  
  Could anyone give me a hand? Obviously I don't understand arrays very
  well :-/
 
 Maybe:
 
 echo ulliraquo; a href=index.php?page=$service?php
 str_replace(_,  , $service); =?/a/li/ul;

Hehehehe :) I'm gonna try this too. Earlier I was thinking of str_replace, but 
couldn't figure out how I would incorporate it.

I love PHP!

-- 
Blessings
David M.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: how would I do this?

2010-12-27 Thread David McGlone
On Monday, December 27, 2010 04:53:08 pm David McGlone wrote:
 On Monday, December 27, 2010 04:47:34 pm Michelle Konzack wrote:
  Hello David McGlone,
  
  Am 2010-12-27 16:13:50, hacktest Du folgendes herunter:
   foreach ($services as $service){
   
   echo ulliraquo; a
   href=index.php?page=$service$service/a/li/ul; }
   
   Could anyone give me a hand? Obviously I don't understand arrays very
   well :-/
  
  Maybe:
  
  echo ulliraquo; a href=index.php?page=$service?php
  str_replace(_,  , $service); =?/a/li/ul;
 
 Hehehehe :) I'm gonna try this too. Earlier I was thinking of str_replace,
 but couldn't figure out how I would incorporate it.
 
 I love PHP!

Ok here's another variation with the str_replace suggestion

function links() {

$services = array(lawn_maintenance, core_areation, over_seeding, 
hedge_trimming, mulch_installation, natural_debris_removal, 
leaf_removal, snow_plowing);


foreach ($services as $service){
$replace = str_replace(_,  , $service); 
echo ulliraquo; a href=index.php?page=$service$replace/a/li/ul;
}

}

Thanks everyone. I'm stoked! :) I know this probably wasn't much for the 
veteran coders here, but for me it was awesome. I was proud of myself when I 
thought of using the array for the links and now this was an added bonus.

my next step will be using a database instead of a hard coded array, but at 
this point I don't want to make things any harder on myself.

-- 
Blessings
David M.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Need code like pastebin.org

2010-12-27 Thread Michelle Konzack
Hello Daniel P. Brown,

Am 2010-12-27 12:11:46, hacktest Du folgendes herunter:
 Sure, you can just download the actual PasteBin script from the
 original author.  It's GPL'd, and you can grab it here:
 
 http://links.parasane.net/42ez

OK, I was a little bit working on it, but a  GPLed  code  which  include
AdWords and GoogleAnalytics is already suspect.

Then the whole code is spagetti...

And I do not know what Paul was smoking, when he has written layout.php.

It I want to adapt the code for my webste I can   recode  anything  from
scratch.

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] Re: Need code like pastebin.org

2010-12-27 Thread Daniel P. Brown
On Mon, Dec 27, 2010 at 19:51, Michelle Konzack
linux4miche...@tamay-dogan.net wrote:

 OK, I was a little bit working on it, but a  GPLed  code  which  include
 AdWords and GoogleAnalytics is already suspect.

 Then the whole code is spagetti...

 And I do not know what Paul was smoking, when he has written layout.php.

 It I want to adapt the code for my webste I can   recode  anything  from
 scratch.

I didn't evaluate the code, I merely did a single two-second
Google search, as I presumed you'd already done yourself.

-- 
/Daniel P. Brown
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Re: Need code like pastebin.org

2010-12-27 Thread Michelle Konzack
Hello Daniel P. Brown,

Am 2010-12-27 19:57:40, hacktest Du folgendes herunter:
 I didn't evaluate the code, I merely did a single two-second
 Google search, as I presumed you'd already done yourself.

I would say, the code was writen to prevent to be rewritten.

I have gotten some ideas and now I start coding my own stuff,  which  is
more flexibel in design and such.

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL   itsyst...@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] Re: Re: Need code like pastebin.org

2010-12-27 Thread Micky Hulse
On Mon, Dec 27, 2010 at 5:29 PM, Michelle Konzack
linux4miche...@tamay-dogan.net wrote:
 I have gotten some ideas and now I start coding my own stuff,  which  is
 more flexibel in design and such.

Hrmm, just found this info:

http://blog.dixo.net/2009/09/15/pastebin-org-considered-harmful/

So, I assume you are looking for something similar to this site:

http://pastebin.com/

This is a good project to start from if you are into using Python/Django:

https://github.com/bartTC/django-paste

There are other Python/django pastebin sites out there, for example:

The Django book Practical Django Projects has a section dedicated to
a code/paste  app. Here is the unofficial code from the book:

https://bitbucket.org/philgyford/practical-django-projects/src

Both of the above use Pygments, which is a pretty sweet syntax highlighter.

Cheers,
M

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Re: Need code like pastebin.org

2010-12-27 Thread Paul M Foster
On Mon, Dec 27, 2010 at 08:37:36PM -0800, Micky Hulse wrote:

 On Mon, Dec 27, 2010 at 5:29 PM, Michelle Konzack
 linux4miche...@tamay-dogan.net wrote:
  I have gotten some ideas and now I start coding my own stuff,  which  is
  more flexibel in design and such.
 
 Hrmm, just found this info:
 
 http://blog.dixo.net/2009/09/15/pastebin-org-considered-harmful/
 
 So, I assume you are looking for something similar to this site:
 
 http://pastebin.com/
 
 This is a good project to start from if you are into using Python/Django:
 
 https://github.com/bartTC/django-paste
 
 There are other Python/django pastebin sites out there, for example:
 
 The Django book Practical Django Projects has a section dedicated to
 a code/paste  app. Here is the unofficial code from the book:
 
 https://bitbucket.org/philgyford/practical-django-projects/src
 
 Both of the above use Pygments, which is a pretty sweet syntax highlighter.

This might actually have been more appropriate as a private reply to the
OP, since this is a PHP, not a Python, list.

Paul

-- 
Paul M. Foster
http://noferblatz.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php