...

Online PHP Generator

marismols
02-21-2012, 12:30 PM
I thought I'd make a php-mysql generator that people can use on-line. Just for quick small jobs. I'm planning to extend it, so if you have any ideas let me know.

So far you can generate simple pages to add, edit, delete records and menu strip at the top to switch between pages.

It also generates SQL file to create database structure. And the cool feature is that you can preview the result instantly. Just press one button and you can test what you have done.

I hope someone finds this useful.

http://freephpgenerator.com/

MarkR
03-09-2012, 11:41 AM
Give it a shot but it's throwing this:


Warning: Invalid argument supplied for foreach() in /home/detad/public_html/freephpgenerator.com/generator.php on line 207

Warning: Invalid argument supplied for foreach() in /home/detad/public_html/freephpgenerator.com/generator.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/detad/public_html/freephpgenerator.com/generator.php:207) in /home/detad/public_html/freephpgenerator.com/index.php on line 21

Rowsdower!
03-09-2012, 01:06 PM
You also have javascript errors (undefined variables when fields are filled in and/or check boxes are altered). So there are some kinks to be worked out with the user interface in your page.

I was able to generate (I presume, though I didn't actually download the file offered) so that may work just fine, but your preview funcitonality is definitely borked as MarkR mentioned. I received a different error though: Warning: file_put_contents(e6fdd60c9e6ff2b4a239114faae22454/) [function.file-put-contents]: failed to open stream: Is a directory in /home/detad/public_html/freephpgenerator.com/generator.php on line 79

Anyway, it's a neat idea but it needs some cleanup. Also, have you made absolutely certain that you have taken precautions to prevent people traversing your file tree and/or revealing your own underlying code and database information? Not to mention the possibility of running a website from your domain, spam mailing, etc., etc., etc.

Running user-entered PHP on your site is extraordinarily dangerous so I hope you have been VERY careful with filtering what code actually gets executed on your server.

darksecu
07-03-2012, 11:56 AM
As far as we look at generating codes is a good idea but as Rowsdower! said, i would suggest not to keep preview php.

generally, public going to misuse it by injecting dangerious php codes, hijacking script, editing,removing your server files.

connormcwood
07-18-2012, 08:11 AM
Receiving Errors.
Warning: Invalid argument supplied for foreach() in /home/detad/public_html/freephpgenerator.com/generator.php on line 417

Warning: Invalid argument supplied for foreach() in /home/detad/public_html/freephpgenerator.com/generator.php on line 164

Warning: Invalid argument supplied for foreach() in /home/detad/public_html/freephpgenerator.com/generator.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/detad/public_html/freephpgenerator.com/generator.php:417) in /home/detad/public_html/freephpgenerator.com/index.php on line 21

jdswebservice
07-19-2012, 12:03 AM
More errors.


Warning: Invalid argument supplied for foreach() in /home/detad/public_html/freephpgenerator.com/generator.php on line 207

Warning: Invalid argument supplied for foreach() in /home/detad/public_html/freephpgenerator.com/generator.php on line 234

Warning: file_put_contents(7026259e3ddbc6c3d1eb0d0eab8e9ff9/) [function.file-put-contents]: failed to open stream: Is a directory in /home/detad/public_html/freephpgenerator.com/generator.php on line 79

Warning: Cannot modify header information - headers already sent by (output started at /home/detad/public_html/freephpgenerator.com/generator.php:207) in /home/detad/public_html/freephpgenerator.com/index.php on line 28

Clawed
11-29-2012, 05:45 PM
Sites down :(
Would of liked to test this out.

annaharris
05-02-2013, 01:14 PM
http://freephpgenerator.com/ This site is not working.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum