TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Are operating system commands system unique? (http://www.talkphp.com/absolute-beginners/1805-operating-system-commands-system-unique.html)

Aaron 12-27-2007 09:01 PM

Are operating system commands system unique?
 
So... My computer has its own server-like thing that I use to develop my scripts, but my web server is Linux.

If I start getting into operating system commands will I need to like... make the same command for both OS's? What is the deal here?

sjaq 12-27-2007 09:51 PM

And your own computer is Windows?

How do you mean "system commands", command line scripts? or system commands in php?

Aaron 12-28-2007 05:56 AM

Uhh... I am pretty sure it is command line scripts...

And yes, I have a windows computer with WAMP.

No, it is using Operating system commands. Like dir for windows and ls for linux/unix

And while we are at it... I need to learn more about timestamps and how to convert them to normal times or dates...

xenon 12-28-2007 10:13 AM

You mean shell commands. And the answer is mostly yes. Avoid using shell commands very much, though (it's ok to use mysqldump or mysqlimport for example - they are the same on both *nix and windows). Why do you need them so badly? Write a library in PHP that does the same thing, if it's not a common FS operation or such.

Andrew 12-28-2007 07:19 PM

Quote:

Originally Posted by Aaron (Post 7231)
And while we are at it... I need to learn more about timestamps and how to convert them to normal times or dates...

date(): PHP: date - Manual


All times are GMT. The time now is 09:14 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0