Is there any sites where users share custom PHP code? - php

Do you know of any websites that allow users to share there custom PHP functions and code snippets other then? It would be nice to compile a list of a few good resources
http://www.phpclasses.org

Might be obvious to some, but don't forget to include http://pear.php.net/ in your list. ;-)

There is Snipplr.com - A public source code repository for sharing code snippets.

Back in the day when I built some PHP3 sites,
PHP Builder was the place to go. They are still live, but URL shows a number instead of domain name :)
http://63.236.73.209/snippet/

Hot Scripts is one of the biggest sites to my knowledge. There is commercial and free code (easily sortable).
And you should probably make this Community Wiki.

Related

PHP code explorer - showing classes and functions separately

I wonder if it's possible to view a PHP code source in a way that https://j11y.io/jquery/ shows a JQ code. Of course I mean reading code from a given file, not from websites code.
I'm not looking for programs like the PHPdocumentor.
Thank you in advance for any reasonable reply.
P.S. For perfectionists - I'm searching for a nice website or software (and I would prefer that option, so that I can be quite sure about the security), which will give me such a useful ability. I'm disturbed after using CTRL-F all the time ;)

How to copy a complete php/mysql website with php?

I have a typo3 website with no user genrated or dynamic content.
So it is unnecessary to use php and the database.
Is it possible (with php) to clone the hole website and store every page as an html page?
I have only a normal webspace, so i cant install tools like "eAccelerator".
My idea:
- grab every link from the sitemap
- file_get_contents -> store as html
But i think this is not a clean solution? Or?
Thanks in advance!
james
you can use a simple software called HTTRACK., here is the link:
httrack.com
Why you need to use php to copy it? Did you consider using a command line tool like wget? wget allows you to create an "offline" copy of a website which you can of course host somewhere else. Sounds to me exactly like the thing you want to do.
In case you are really stucked to php, you will need an HttpRequest, call the site, parse all links and resources, download the resources, follow the links and do the same again. This is the most simple solution, without any checking for conflicting resources or other stuff which could go wrong.
Sitesucker http://sitesucker.us is an excellent tool you can run from any mac. It works very well, I use it all the time.
But don't forget that by creating a static copy of your site, you will lose your templating functionality. So if you really want to make your website static, I strongly recommend to - at least - put the identical parts of each page into php-includes. Mostly head, page header, footer, navigation. So you're ready for future changes.
If it's just because your TYPO3 is too slow, look at the nc_staticfilecache extension which can speed it up very well.
Using TYPO3 where you need just a simple HTML is a huge overflow, invest in DreamWeaver and code all things 'manually'.

How to make a blog type page with prev & next page functionality?

I was wondering if I needed to learn javascript and or php to make a site that can move content from page to page as new content is added (like a blog). I was thinking of using wordpress and wipe the design and write my own css, but seems you need to do a $30 update to have access to css.
Is there a free site (like wordpress) that could help me out with the php part or whatever is needed to have this kind of functionality? How many hours would it take to learn php to get the 'blog' running correctly if I only know html/css right now, with a bit of javascript and can manage jquery plugins.
Thanks alot for any answers.
If I recall correctly, WordPress is entirely free and fully customization per your liking - no charge.
PHP would be your answer to do this, and Javascript would only help compliment the transitioning. If you've never tinkered with PHP or any other software programming language, you will spend months perfecting this. It's a whole other ball game.
But like I said, WordPress is entirely free and modifying the CSS is as well. I've never heard of a $30 charge to change WordPress CSS file.
You're talking about upgrading a WordPress.com site where they host it for you and strictly control what you can do.
You want to go to WordPress.org - it's free and you can do whatever you like - but you do need to sort out your own hosting.

What to use in place of EtherPad? Using php and mySql

I came across EtherPad but found out shortly afterwards that it has been shelved by Google.
Is there something else that I could use that allows people to collaborate on an online document? It must have version control.
Should I redevelop something instead?
Andre
Try Etherpad Lite, its much leighter than the original Etherpad
TypeWithMe is a slightly modified version of Etherpad. It's pretty darn good. Oh but, you need to view the document every once in a while or itll get wiped.
I'd recommend Google Docs. You can create new, upload existing, and collaborate online on files like documents, spreadsheets, presentations and drawings. Take a look at their Youtube page for a demonstration.
It seems like MobWrite http://code.google.com/p/google-mobwrite/ is a good solution. Just wish it had the versioning information etc that EtherPad had. Does anyone agree or have something better to embed in a PHP and mySQL website?
EtherPad is still available for buidling and deploying and it even have some seldom commits. If you want to use as an user, there are a few deployments of Etherpad (or perhaps modified versions of it) such as:
PiratePad
MoPad
Besides that, there is a quite comprehensive list of possibilities in this wikipedia entry for collaborative text editing software

PHP form editor?

I was told by my boss to make some plguin for the site, where people can define their own forms. And he was like
There are some free ones, just find one suitible and rework it for the site.
So yeah, ain't found what I was looking for. Are there any? I'd need an open form editor in PHP which allows me to make some changes anywhere. Hope you can help me.
The author here discusses about three open source form generators, may be this could be a starting lead for you:
PHP Form Generator for webmasters – which one is the best? (by Drizad; 8 Mar 2007)
If you know PHP, you might consider the form library Zebra_Form It seems to be one of the leanest, straight forward form frameworks out there. Requirements are basically just PHP & MySQL. There are frameworks like Symfony and Zend that have form libraries, but they are a lot more complicated.

Categories