-
Webthumbnail.org - Website Thumbnail Generator, plz review the new website
Hello, http://webthumbnail.org Please review a new website design and usability Thanks in advance for any feedback
-
php encryption program
you can try ioncube or zend guard
-
webthumbnail.org - A new website screenshots generator review
Hello, I would like to ask for a review of my new project released a few days ago. http://webthumbnail.org This is a new website screenshot generator with very simple to use API, so you can easily integrate website screenshots on your webpages. An example: What can it do so far: - makes screenshots from 70x70 up to 2048x4096 pixels - uses real web browsers (firefox, opera, chrome) - saves to three image formats (png, jpg, gif) - supports flash and html5 - offers simple api.webthumbnail.org based on url parameters - can serve even 500 ready thumbnails per second - the infrastructure is fully scallable so if you need dozens of thumbnails per minute its possible How does it work: You simply type an url address of a webpage, and server is adding this address to the queue. On the other side there is a cloud of robots, each robot is taking addresses from the queue and makes screenshots, which are being uploaded later on. The number of robots can be increased simply by adding new nodes. Technology: - Java (api, robots) - PHP (frontend, backend) - PostgreSQL (database) - Bash, Python, Image Magick, etc... - FreeBSD (main server) - Linux, OpenVZ (robots) Feel free to test and use it, but please note that this is still a beta version Thanks in advance for any feedback, hope you will like it
-
Hotlinking protection for html email images
uhm, but the mail dir contains mails, doesnt it? so i dont think .htaccess there will work, imho, you can make a simple workaround like: setting up a subdomain for email attachments/images/static files and just turn off hotlinking protection for this domain
-
most reliable way to upload large file to server
try webdav
-
database + webpage
if you want to do it yourself, then imho you need at least two database tables: - categories - items categories can be a simple tree, with one primary key, and parent id, the record that has no parent id is a root, better solution is using so called nestedset but it is also harder to implement. items is a simple table which contains an item name, descriptions, parameters, etc and the category id where the item belongs to.
-
PHP Functions
I dont get your question, the preffered way of doing things is writing a maintainable code which usually means object oriented programming since the procedural way has its own namespace limitations. "Speed" in php is a joke, in most cases the bottleneck is the database connections and queries processing not the script performance itself.
- PHP dedvelopment software
-
-
PHP devs stop doing things bad!
yup, im invisible, wear black, and use shuriken instead of keyboard
-
PHP devs stop doing things bad!
well, Im working in php including zend, phpunit and so on, full time for much more than 4 years, can I be called php developer ;d? OOP takes more time than procedural? BULL****! yes, you can write a SCRIPT much faster without oop BUT you will need to do that EVERY TIME, so in fact it is a monkey job, not to much effective because you will spent most of the time doing the same stuff again and again. Reusability? YES IT WORKS! We write code ONCE, and use it WITHOUT modifications everywhere! Why ppl invented design patterns? Exactly to do that! Well, usually I'm not working on simple projects. More than 500 thousands lines of code is a standard, in such a project there is no time to write custom things, if you need to do a custom thing write it in a way that it can be used later - use abstractions. Of course it take time to write a good code, because we write tests (unit tests, load tests, integration tests, etc...) but from the other hand we dont spend time on bug fixing because the amount of bugs is MINIMAL, it also means that we can give a guarantee to a customer especially if the customer is a big or well known company. I dont think PHP is the best technology. I rather think it sucks, but from the business point of view PHP is awesome because it gives you a sellable value in a short amount of time and effort. You can create something that works much faster than in Java. But it also depends on the project... Performance? BWAHAHAHAH! PHP and performance... ppff.... C'mon guys, this language wasn't designed to be the fastest on this planet. For example it is ~300 times slower than C in single character operations, like text processing. Did you work on a project that is being executed on a cluster? I did, and trust me, php is executed very rarely because it is too slow. This is also why OOP work here - the code doesnt have to be super fast. It is ok if a response generation will take around 1 second, in most cases it will be cached and served many hundreds or even thousands times per this one second. Well, PHP is just a tool, its not a way of life. It suits some project, other should be written in Java, and even C/C++, the point to be a good programmer is not to be a single language fan, but to know which tool is the best for solving a problem.
-
-
how to test scripts!?
1) unit testing -> phpunit 2) acceptance testing -> selenium rc 3) load testing -> apache benchmark, jmeter
-
MyISAM to InnoDB
imho you can try to dump each tables separately using mysqldump and then create a new database, import a new structure where the innodb is an engine nad import dumped sql data, i dont know if there is a simple solution for changin engines
-
Programming for a website like dailydeals.com
Well, actually the language does matter, simply because if such a project is not a "throw away", then you have maintenance costs. Object oriented php5 syntax is very simmilar to java but the java costs are much higher, because the "entry point" to this technology is higher. There are a lot of people who claims to be able to code in php but in fact only a few percent can be called php programmers, thats why development in php is usually cheaper because it is being used to simpler projects, in java the entry point is higher and in most cases people who code in java simply know more about "good practices" than php newbies, from the other hand they are more expensive and development in java takes more time than in php (in most cases) it is connected to the project scale and complexicity, the simplest example: you can get a working php website in a few seconds, in java you need to set up the whole environment first, then create a project, build an archive, deploy it etc... imho a clone of dailydeals.com can be done in php and probably this will be the cheapest solution both in development cost and deployment cost, especially if you dont know the technology and you're planning to outsource the job regarding asp, you will need a webserver from microsoft which also costs
- What PHP Framework?
-
-
Large image uploads PHP
i think there is no simple solution to that, and JS won't help you too much, first of all if you use php for download it has its own limitations. If i were you i would try webdav/ftp and/or java applet.