hingsmaf003 Posted October 12, 2008 Share Posted October 12, 2008 Hi, I have a php script for fantasy football what it does is it grabs a teams fantasy info (from yahoo) and then the stats from NFL.com and calculates fantasy points. In order to do that i have a php script that is run by going to a page clicking a grab fantasy button and then a start tracking button. once the start tracking button is clicked every 3 seconds or so it regrabs the stats and calculates but in order to do this a browser window needs to be up to continue to load the php script. I was wondering if I could set a time that the php script would run (automatically) with out having a browser window open. so pretty much run the script during (sleep time) if you so call it so that i dont have to go threw the hassel of running the script and making sure the window stays up. thanks Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/ Share on other sites More sharing options...
DarkWater Posted October 12, 2008 Share Posted October 12, 2008 You could use cron for this. Look it up. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663098 Share on other sites More sharing options...
hingsmaf003 Posted October 12, 2008 Author Share Posted October 12, 2008 i have but i use windows and its too confusing and im pretty sure cron opens a browser window Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663099 Share on other sites More sharing options...
DarkWater Posted October 12, 2008 Share Posted October 12, 2008 1) Don't use Windows for serious web development. 2) It's not confusing. 3) It does not open a browser window, thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663101 Share on other sites More sharing options...
corbin Posted October 12, 2008 Share Posted October 12, 2008 1) Serious web development? MySpace is hosted on Windows. //end You could use a scheduled task instead of cron if you're on Windows. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663182 Share on other sites More sharing options...
DarkWater Posted October 12, 2008 Share Posted October 12, 2008 1) Serious web development? MySpace is hosted on Windows. //end You could use a scheduled task instead of cron if you're on Windows. Are you serious? Wow, what losers. o_O I don't know how they manage to host that site on Windows. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663360 Share on other sites More sharing options...
Daniel0 Posted October 12, 2008 Share Posted October 12, 2008 1) Serious web development? MySpace is hosted on Windows. //end You could use a scheduled task instead of cron if you're on Windows. Are you serious? Wow, what losers. o_O I don't know how they manage to host that site on Windows. In my book such comments make you stand out as a fanboy looser. Just sayin' Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663372 Share on other sites More sharing options...
DarkWater Posted October 12, 2008 Share Posted October 12, 2008 1) Serious web development? MySpace is hosted on Windows. //end You could use a scheduled task instead of cron if you're on Windows. Are you serious? Wow, what losers. o_O I don't know how they manage to host that site on Windows. In my book such comments make you stand out as a fanboy looser. Just sayin' I've tried hosting sites on Windows, and I've given it a fair shot, but it just really wasn't fit for hosting sites and stuff. It's great for people who just need to use a computer to check e-mails and create the occasional Word document, but that's about it these days. Not kidding. My dad's company actually has their internal company server on Windows and it's down all the time, be it for restarts or general errors. >_< Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663376 Share on other sites More sharing options...
DarkWater Posted October 12, 2008 Share Posted October 12, 2008 Oh, btw, I just found an article about how MySpace uses IIS and Windows Server '03. I really didn't know that. o_O Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663378 Share on other sites More sharing options...
corbin Posted October 12, 2008 Share Posted October 12, 2008 telnet myspace.com 80 HEAD / HTTP/1.1 Host: myspace.com \n Server: Microsoft-IIS/6.0 IIS is always on Windows, so it would either be lying or on Windows. Also, with a site like MySpace, it would obviously be one of the server flavors, and Server 03 would be most likely with IIS 6 since 08 carries 7 or 8 ;p. My response to the Windows comments: Perhaps it wasn't the OS lacking in ability? (I mean that as a joke just for the record. Not trying to insult you seriously ;p) I would agree that in most situation, I would prefer linux based hosting for web stuff, but don't knock something entirely like that, especially without initially providing reasons. Also, the reason you did provide was not conclusive. One bad experience proves nothing. I've seen horribly configured *nix servers too ;p. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663412 Share on other sites More sharing options...
waynew Posted October 12, 2008 Share Posted October 12, 2008 Ebay, MSN, MySpace and Hotmail. All Windows servers. Wow. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663526 Share on other sites More sharing options...
DarkWater Posted October 12, 2008 Share Posted October 12, 2008 Ebay, MSN, MySpace and Hotmail. All Windows servers. Wow. MSN and Hotmail are run by Microsoft, so I'd assume that they'd use Windows. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663529 Share on other sites More sharing options...
corbin Posted October 13, 2008 Share Posted October 13, 2008 Hotmail actually used to be run on Unix back in the day. (Or so it's rumored.) But yeah I'm sure any MS owned site is gonna be Windows hehe. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663666 Share on other sites More sharing options...
KevinM1 Posted October 13, 2008 Share Posted October 13, 2008 .NET requires Windows to work, correct? If so, then look at Ektron. They're a local company that sells a CMS written in ASP. Their clients include NASA, PlayStation, and others (http://www.ektron.com/customers.aspx). I'm not a fan of Windows or .NET (although I am enjoying my C# experience so far), but to claim that serious development is only done on a *nix platform is just false. In my area of the world, .NET skills are in far greater demand than PHP. So, I'm learning it in order to move away from freelancing. I figure my resume will look better with proficiency in both Microsoft and open-source technology on it, too. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-663695 Share on other sites More sharing options...
.josh Posted October 13, 2008 Share Posted October 13, 2008 If Microsoft products really were conclusively as horrible as people make them out to be, they'd be out of business. But they aren't, so they must be doing something right. And claiming it's because most people are ignorant is not a valid argument. If anything, I give Microsoft major credit for not only being able to stay afloat, but consistently dominating their markets, despite consistent trash talking from people who TBH I think just spout off whatever heard from their friend who heard from their friend who heard from some dude, having not actually done any real research for themselves on the matter. I echo Dan's sentiments. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664076 Share on other sites More sharing options...
Daniel0 Posted October 13, 2008 Share Posted October 13, 2008 I don't really care what software people use as long as they keep it updated. Personally I don't care if they use Internet Exploder as long as they keep it updated. In that way we'll only have to support one version. There are also differences between Gecko's, Presto's, and Webkit's rendering so I don't think it's a big deal that Trident's rendering differs as well. In fact, if you try too hard to make me change my choice of software then I'll like that piece of software even less. I'll use whatever I want and I'm quite sure most other people have that opinion as well. If people can present valid reasons why something is better than what I use and I don't see any major drawbacks then I might change, but I don't change just because someone says "omg u r using <insert software> lol..!!11one! u is noob wtflol!!". Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664093 Share on other sites More sharing options...
Maq Posted October 13, 2008 Share Posted October 13, 2008 "omg u r using lol..!!11one! u is noob wtflol!!". That's awesome. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664095 Share on other sites More sharing options...
waynew Posted October 13, 2008 Share Posted October 13, 2008 And if I hear somebody moan about Internet Explorer one more ******* time I'm going to write them an email without using "Dear" or "Yours sincerely." Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664410 Share on other sites More sharing options...
DarkWater Posted October 13, 2008 Share Posted October 13, 2008 And if I hear somebody moan about Internet Explorer one more ******* time I'm going to write them an email without using "Dear" or "Yours sincerely." I'm so mad I could rip a napkin. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664462 Share on other sites More sharing options...
KevinM1 Posted October 13, 2008 Share Posted October 13, 2008 And if I hear somebody moan about Internet Explorer one more ******* time I'm going to write them an email without using "Dear" or "Yours sincerely." I'm so mad I could rip a napkin. *snicker* Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664470 Share on other sites More sharing options...
.josh Posted October 13, 2008 Share Posted October 13, 2008 And if I hear somebody moan about Internet Explorer one more ******* time I'm going to write them an email without using "Dear" or "Yours sincerely." I'm so mad I could rip a napkin. Whoa careful there buddy, that's serious business. Make sure you do your stretches first. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664546 Share on other sites More sharing options...
DarkWater Posted October 14, 2008 Share Posted October 14, 2008 And if I hear somebody moan about Internet Explorer one more ******* time I'm going to write them an email without using "Dear" or "Yours sincerely." I'm so mad I could rip a napkin. Whoa careful there buddy, that's serious business. Make sure you do your stretches first. Great advice. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664551 Share on other sites More sharing options...
corbin Posted October 14, 2008 Share Posted October 14, 2008 If Microsoft products really were conclusively as horrible as people make them out to be, they'd be out of business. But they aren't, so they must be doing something right. And claiming it's because most people are ignorant is not a valid argument. If anything, I give Microsoft major credit for not only being able to stay afloat, but consistently dominating their markets, despite consistent trash talking from people who TBH I think just spout off whatever heard from their friend who heard from their friend who heard from some dude, having not actually done any real research for themselves on the matter. I echo Dan's sentiments. Werd! (Yeah, werd.) Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-664679 Share on other sites More sharing options...
Lamez Posted October 16, 2008 Share Posted October 16, 2008 9/10 (<-- made up) on this thread are using windows, including me! Linux, lets face it, is really only good for hacking, and hosting. Apple's O\S is based on Unix. Windows, is wildly know and has tons of software support. They all have theirs ups and downs. I have also seen a window's website run on a Linux server. I do not remember which one. Quote Link to comment https://forums.phpfreaks.com/topic/128056-running-php-code-script/#findComment-666680 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.