473,326 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Putting some SQL in a PHP document

26
I have a few SQL tasks that I run regularly, and right now I do it the long way (using phpMyAdmin).

I want to put the SQL into a php page that I can tuck in a protected directory and run throughout the day.

Once I know the BEST way to go about it, I can get it from there, but what is truly the BEST way to go about this?

Tony
Mar 11 '08 #1
1 959
dlite922
1,584 Expert 1GB
I have a few SQL tasks that I run regularly, and right now I do it the long way (using phpMyAdmin).

I want to put the SQL into a php page that I can tuck in a protected directory and run throughout the day.

Once I know the BEST way to go about it, I can get it from there, but what is truly the BEST way to go about this?

Tony
if your running Linux/Unix, check out cron jobs.

if windows, create a scheduled task!

both very easy to do for a beginner.

create a PHP file that executes your queries, run it manually and test it.

then run it like an executable file in both OS's you type:

php -q -f your/path/to/php/file.php

have fun! let us know if any questions.
Mar 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

25
by: delerious | last post by:
I see some code examples like this: <DIV onmouseover="this.style.background='blue'"> and other code examples like this: <DIV onmouseover="javascript:this.style.background='blue'"> Which...
5
by: Zhang Weiwu | last post by:
Hello. I just read a article "rdf in html: approaches" at "http://infomesh.net/2002/rdfinhtml" (guided by google). Looking into the "Embed XML RDF Part II: Embrace Validation" part, there are an...
4
by: ScooterMX | last post by:
I have a page that is simply a password field. Doesn't scroll, do anything other than accept a password, and has a submit button. How can I automatically place the cursor in this password field...
1
by: Madame Blablavatsky | last post by:
hello, i am trying to build a kind of very, very simple ritch text editor for people to use with a very simple cms. at the moment i am working on the basic structure. the text is put in an...
5
by: Rhino | last post by:
For DB2 V8 on Windows/Linux/Unix, the idea of having the Information Center online and accessible from IBM via the Internet is probably the best approach for most users. It keeps the information...
1
by: Guilherme Martins | last post by:
Hi, I need to generate an excel document with an image but I don’t know how do it. I have found a lot of articles showing how to generate a document only with text, but I didn’t found...
10
by: Jon Noring | last post by:
Out of curiosity, may a CDATA section appear within an attribute value with datatype CDATA? And if so, how about other attribute value datatypes which accept the XML markup characters? To me,...
2
by: insideview | last post by:
How do I do something, where var x="-20%"; document.all("something").style.top=x normally, this would work -- document.all("something").style.top='-20%';
1
by: Cainnech | last post by:
Hi, In one of my scripts I'm having difficulties adding fromvalues to an array. For testing purposes I made an array like this: var mijnlotto1 = ; This way my script works.
68
by: zwsdotcom | last post by:
I've been looking for references for some weeks now, but haven't found an answer to the following question. I'd love some help on this: *Without* using JavaScript or other active client-side...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.