Jump to content

Recommended Posts

Can someone help me out with making a bat file. I cant find a good set of directions on google.

 

I have window scheduler all working in running but it runs my script in note pad and not IE like I need it too.

 

I also read something about php cgi file for doing this same thing but cant make heads of tails out of it from reading about it in the manual.

 

Trying to run this http://localhost/gate/users/update.php

 

 

Do you actually need it to load in a browser? If you just want to run the script you can use the PHP command line tools...

C:\PHP5\php.exe -f "Path/to/script/here"

 

Make sure you set the interpreter location to where ever your PHP is installed to.

Hey scootstah

 

Yah i dont really need it to run in the browser

 

ok I opened php.exe

 

and typed in C:\software\XAMPP\xampp\php -f "C:\Software\XAMPP\xampp\htdocs\stargate\users\update.php"

 

then I hit enter and it just took me to the next line

ahh alright i typed this into command prompt and got c:\software\xampp\xampp\php is not a recognized as an internal or external command. operable program or batch file.

 

C:\software\XAMPP\xampp\php -f "C:\Software\XAMPP\xampp\htdocs\stargate\users\update.php"

 

Thats my exact dir where my php folder is located though

 

Im using xampp with PHP 5.3.8

 

 

when command prompt first loads I get

 

D:\documents and settings\shadowings>

 

so I hit c: enter brings me down to

c:\> then I type software\XAMPP\xampp\php.exe -f "C:\Software\XAMPP\xampp\htdocs\stargate\users\update.php"

 

and gives the same error

 

 

making a web broswer game. every one minute was just to test it.

making it so every hour it updates all accounts adding resources for players

 

 

really appreciate you helping me out these last few weeks scootstah. im learning alot. i just have a hard time understanding the manuals on things

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.