473,473 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to execute PHP file with parameters automatically?

97 New Member
Hi there,

I need to (re)create every couple of days a few dozen SVG files, which are created through the same PHP file, passing four parameters. I have programmed the generic PHP file so that it overwrites already created files after, say, 7 days.

But at the beginning (after having changed any coding in the PHP file) I have to launch those three dozen files always by hand. Instead I would like to use a script which would launch one file (with a 30 second break in-between, as the generation of each file takes quite some time) after another, including those parameters.

Is that possible, and how would I do that?

Thanks for any hints!
Jan 13 '12 #1
2 1964
dlite922
1,584 Recognized Expert Top Contributor
change your PHP code so that it doesn't need "already created files", and just creates them if they're not there.

Give us an example of this script is used. I'm not clear on your problem.

Dan
Jan 13 '12 #2
luftikus143
97 New Member
Thanks for the reply. The code does indeed create the files if they are not there. But it does it only when a user clicks on one of the many "links" (better, the four different options), which then calls the SVG file. If the SVG is not there, it will be created. But I would like to create them at the first instance, because I don't want the user to have to wait for 30 seconds or even a minute, which is the time to create the file. Once created, the next user then gets the cached file will, which only takes a second.

So, instead to be forced to manually launch these files one by one so that they are created, I would like to use a code in the style:

CREATE svg file with parameters x,y,z
WAIT 30 seconds
CREATE svg file with parameters x1,y,z
WAIT 30 seconds
CREATE svg file with parameters x,y1,z
WAIT 30 seconds
....

Cheers.
Jan 16 '12 #3

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

Similar topics

4
by: TJ | last post by:
PHP Gurus, I'd like to be able to capture the IP address of a visitor to my webpage. I'm using the following code snippet within my HTML. I do not want the user to have to push a button or click...
8
by: wj | last post by:
Hi all, I wonder if it is possible to execute PHP-code automatically. Is it for example possible to sent an e-mail every day at lets say 9.00 pm automatically to adresses from a database? ...
3
by: Jorge Luiz Godoy Filho | last post by:
Hi, I have the following situation where I only open the file on the Search class (where it should be used more often) and I want to reutilize search methods to find the exact location of...
2
by: Ryan Taylor | last post by:
Hello. I have an ASP.NET web application in which one page needs to execute another page and retrieve it's results. The page to be called needs a couple parameters passed in the URL. However,...
3
by: Christian Blackburn | last post by:
Hi Gang, I would like to have my program use the built in Move and Copy Dialogs that are used by Windows Explorer/My Computer. Thanks in Advance, Christian Blackburn
1
by: stjulian | last post by:
If inside a stored procedure, there a SELECT statement to return a recordset and another SELECT to set the value of an output parameter (as in SELECT @OutValue = Name FROM table WHERE pkid=5),...
4
by: ad | last post by:
I used vs2005 to develop a winform project. How can I make my project as a single executable file?
2
by: P1u70 | last post by:
I would like to decompile a *nux execute file to source file , any tools for it ? thx!
7
by: tanyali | last post by:
Hi guys, I wanna to execute a php page automatically in the background, or execute it in shell script, and set this script to execute as a cron job. so who knows either of the two questions...
0
by: DNB | last post by:
One of our web application suddenly stopped working. After doing some investigation I did find that following section has been added to web.config file. After removing this section it was...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.