Go Back   CodingForums.com > :: Server side development > PHP > Post a PHP snippet

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-21-2012, 12:30 PM   PM User | #1
marismols
New to the CF scene

 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
marismols has a little shameless behaviour in the past
Online PHP Generator

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/
marismols is offline   Reply With Quote
Old 03-09-2012, 11:41 AM   PM User | #2
MarkR
New Coder

 
Join Date: Sep 2011
Posts: 80
Thanks: 0
Thanked 13 Times in 12 Posts
MarkR is an unknown quantity at this point
Give it a shot but it's throwing this:

PHP Code:
WarningInvalid 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:207in /home/detad/public_html/freephpgenerator.com/index.php on line 21 
__________________
Web Design Newcastle
MarkR is offline   Reply With Quote
Old 03-09-2012, 01:06 PM   PM User | #3
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
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:
Code:
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.
__________________
The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
See Mediocrity in its Infancy
It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
Seek and you shall find... basically:
validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting
Rowsdower! is offline   Reply With Quote
Old 07-03-2012, 11:56 AM   PM User | #4
darksecu
New Coder

 
darksecu's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 93
Thanks: 11
Thanked 1 Time in 1 Post
darksecu is an unknown quantity at this point
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.
darksecu is offline   Reply With Quote
Old 07-18-2012, 08:11 AM   PM User | #5
connormcwood
New Coder

 
Join Date: Sep 2011
Location: Blackpool
Posts: 31
Thanks: 6
Thanked 1 Time in 1 Post
connormcwood has a little shameless behaviour in the past
Receiving Errors.
PHP Code:
WarningInvalid 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:417in /home/detad/public_html/freephpgenerator.com/index.php on line 21 
__________________
Google was late to search. Facebook was late to social networking. Apple was late to the MP3 player. It's never too late. Just do it better
My website: http://www.connormcwood.com/forum/
connormcwood is offline   Reply With Quote
Old 07-19-2012, 12:03 AM   PM User | #6
jdswebservice
Regular Coder

 
jdswebservice's Avatar
 
Join Date: Aug 2010
Location: Moon Township, PA
Posts: 107
Thanks: 0
Thanked 5 Times in 5 Posts
jdswebservice can only hope to improve
More errors.

PHP Code:
WarningInvalid 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 streamIs 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:207in /home/detad/public_html/freephpgenerator.com/index.php on line 28 
__________________
Jonathan R.
Email: jonathan@logicaldevelopment.net
Skype, Aim, & Jabber: logicaldevelopment
Website: http://logicaldevelopment.net/

NOTE: When contacting me please have the following things ready:

Thread ID (This can be found in the URL of your thread)
Budget of Project
Methods of contacting you/your organization
Preferred method if many methods are provided

Any website information that you PM, Email, IM, or otherwise is strictly confidential and will not be disseminated, distributed, or copied in any way, shape or form.
jdswebservice is offline   Reply With Quote
Old 11-29-2012, 05:45 PM   PM User | #7
Clawed
New Coder

 
Join Date: Nov 2012
Location: United Kingdom
Posts: 29
Thanks: 3
Thanked 0 Times in 0 Posts
Clawed is an unknown quantity at this point
Sites down
Would of liked to test this out.
Clawed is offline   Reply With Quote
Old 05-02-2013, 01:14 PM   PM User | #8
annaharris
New Coder

 
Join Date: May 2012
Location: USA
Posts: 89
Thanks: 0
Thanked 6 Times in 6 Posts
annaharris is an unknown quantity at this point
http://freephpgenerator.com/ This site is not working.
annaharris is offline   Reply With Quote
Reply

Bookmarks

Tags
generator, mysql, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:06 AM.


Advertisement
Log in to turn off these ads.