Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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/

  • #2
    New Coder
    Join Date
    Sep 2011
    Posts
    80
    Thanks
    0
    Thanked 13 Times in 12 Posts
    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 

  • #3
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    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

  • #4
    New Coder darksecu's Avatar
    Join Date
    Dec 2011
    Location
    India
    Posts
    96
    Thanks
    11
    Thanked 1 Time in 1 Post
    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.

  • #5
    New Coder
    Join Date
    Sep 2011
    Location
    Blackpool
    Posts
    55
    Thanks
    7
    Thanked 1 Time in 1 Post
    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 
    Subscribe to a channel dedicated to helping people learn HTML, PHP & CSS.
    http://www.youtube.com/user/RanTutorials

  • #6
    Regular Coder jdswebservice's Avatar
    Join Date
    Aug 2010
    Location
    Moon Township, PA
    Posts
    107
    Thanks
    0
    Thanked 5 Times in 5 Posts
    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.

  • #7
    New Coder
    Join Date
    Nov 2012
    Location
    United Kingdom
    Posts
    39
    Thanks
    3
    Thanked 1 Time in 1 Post
    Sites down
    Would of liked to test this out.

  • #8
    Regular Coder
    Join Date
    May 2012
    Location
    USA
    Posts
    102
    Thanks
    0
    Thanked 7 Times in 7 Posts
    http://freephpgenerator.com/ This site is not working.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •