0

I need to write a script to be used an automated test to constantly insert rows into a mysql db. Which scripting language is best suited for this?

I'm using php to read the db and create html. Does it makes sense to use PHP for this too? Or would I be better off using ruby, or some other mechanism?

2
  • 4
    Stick with what you know, use PHP. Commented Aug 15, 2012 at 2:31
  • how should i execute the php. right now, i only use php to generate html. is there a more generic command line use of it. (sorry just started php on sunday). Thanks! Commented Aug 15, 2012 at 2:43

3 Answers 3

1

Learn how to use MySql Stored Procedures. And AFAIK, PHP was built to generate HTML from start. Any noticeable performance problems should probably arise from your knowledge of html.

Sign up to request clarification or add additional context in comments.

1 Comment

this is helpful in general but it doesn't answer the question. Thanks though.
0

You can use phpadmin, toad, or any other MySql IDE to run the script:

BEGIN
  LOOP
    INSERT INTO ...
  END LOOP;
END;

Comments

0

looks like i should just use php from cmd line, which is apparently possible.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.