Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Does Anyone Know Of Any Program That Would Be To Windows What CRON Is To Unix.


Does anyone know of any program that would be to Windows what CRON is to Unix.

I Run Apache on XP with PHP 4--and am hoping that I can find something like described above.




View Complete Forum Thread with Replies

Related Forum Messages:
PHP Running Exec() Windows Program Very Slow In Comparison To UNIX Equivalent Program
Does anyone have an explanation or solution for the following.
I have a PHP script that uses exec() to call a program to do certain
calculations.

The UNIX version of this program I call runs in about 4 to 5 seconds.
When I run the same PHP script using exec() to call the Windows equivalent
of this same program on my Windows desktop, it takes about 32 seconds....

View Replies !
How To Set Cron Job Using Program Without Using Cpanel
I have a  problem. I want to execute a file  using php with out using cron job in cpanel. Now the cron is set like that every day cron executing the file .

Now the administrator of the site wants to set the cron execution time in the admin page. So he wants to edit the time of execution of file on the admin side. He not want cpanel . How can we execute a file repeatedly without setting a cron job..

View Replies !
Php Unix And Windows?
What should I do to make sure a script actually working well on unix/linux
would also work on windows ?

View Replies !
Find Out If Unix Or Windows
What is the easiest way to find out what system (unix or windows) the php script is running on? I've looked in the PHP manual, but I can't find any function that returns that.

View Replies !
Windows -> UNIX Font
i programmed a security image thing, but i programmed it on my computer, so it's taking it's fonts from C:WINDOWSfonts

the webserver i am trying to implement it on is UNIX..can anyone help on what to set the font path at to load a font? and what's a good font to use? i want to use a serif font since the terminal ones are easier to read via bots.

View Replies !
Linefeeds -> Unix And Windows
How would I configure Windows Notepad (Windows XP) to properly display unix linefeeds?

Every once in awhile I open a text document which throws everything at me in a mess, and I was wondering if there was a way to remedy this.

Most of the time it's a PHP file that does this, which is why I am proposing the question here.

View Replies !
Telling Unix And Windows Apart
I wonder is there a way in php for it to find out if the system is a windows
or unix based system. I read $_ENV[WINDIR] is set on windows but not unix
but it does not seem to work.

View Replies !
Pdflib Free With Windows But Not For Unix?
In the latest binary windows php distribution, pdflib comes precompiled, ready to go, no license needed.

However, with the latest unix php dist. I had to compile the damn thing from scratch and it's not free! I need to purchase a license to get it to create pdf docs without the "nagger" painted across the screen.

What is up with this? Is there another pdflib dist out there for unix that doesn't need to be licenced? (I am aware of fpdf, but need the pdflib functionality) I don't mind ultimately having to pay the license fee, as this is a great product, but doesn't it go against everything open source stands for that it's free for winblows and not free for unix?

View Replies !
Unix And Windows Php Script Compatibility
I'm a php novice and am developing a shopping cart application for a
client who is hosted on a unix server. The hosting service requires that
each php file have #!/usr/local/bin/php at the top. When I test these
pages on my developer Windows php installation I get errors because
Windows does not recognize the bang command so it is passed on as
content to the php server.

Any suggestions on hiding the first line from windows while still having
unix see this?

View Replies !
Something Like Cron On Windows?
I have Windows XP professional. Is there ANYTHING reliable on Windows
that is like cron on UNIX that will allow you run something at regular
intervals, for example, like every 10 minutes?

I would like to change a (static/.html) web page every 10 minutes using
PHP, is there a way to do this? I have an Apache/PHP/MySql also, so
maybe theres a way to do it through these programs. Has any one done
this before? How?

AT will not do what I want, and SCHTASKS has a lot of bugs, and will not
allow me to run a program in the background.

View Replies !
MSSQL - Unix Client / Windows Server
I need to access a MSSQL 7.0 database on a Windows NT Server from a Linux PHP Web-server.
I have looked at FreeTDS, unixODBC and iODBC. unixODBC seems the easiest but alas one need to buy licenses. iODBC is a bit slow, apart from the ODBC part containing many connection layers, it also has a request broker/client running on top of the ODBC.

FreeTDS seems like a decent solution. It even has the option of using TDS in conjunction with iODBC. This eliminates the use of the extra request broker/client. Furthermore I've read somewhere that one can use the Sybase functions of PHP to connect to a MSSQL server since both use the TDS (Tabular Data Stream) Protocol. What method would be the easiest and/or could be implemented using the ADOdb database abstraction layer class?

View Replies !
Windows To Unix Text Doc Parsing Problem
i have been having trouble with a login script that works on my
windows machine, however when i upload it to the Unix server through
VPN, the same script won't work! It won't parse member.txt properly i
think. The password and usernames i am using are at the bottom of this
post.
Each time i go to login on the unix server, it clears the username and
password field. I have been attempting to solve the problem, but have
been baffled to see why there is such an issue. I have taken out the
HTML, and just given you the PHP script that i am running. The
original programming was done on Unix!.

My question to people on here is why does my script run on Windows and
not on Unix? How can i fix the problem?

Here is the source code i have been looking at:

<?
session_start();
if ($userid && $password)
{
//listf stores a reference to the file itself
$listf=fopen("username/member.txt","r");
#read the file
list($duserid,$dpassword)=fgetcsv($listf,1024,"|");
$duserid=trim($duserid);
$dpassword=trim($dpassword);
//keep reading until the end of the file is reached
while(!feof($listf)){
if(($userid==$duserid)&&($password==$dpassword))
{
$_SESSION['valid_user']=$userid;
break;
}
list($duserid,$dpassword)=fgetcsv($listf,1024,"|");
$duserid=trim($duserid);
$dpassword=trim($dpassword);
}
fclose($listf);
}
?>
------HTML-------
<?
$tempstr=$_SESSION['valid_user'];
if (isset($_SESSION['valid_user'])){
echo "You are logged in as: $tempstr<br>";
echo "<a href="admin_home.php">Admin Home</a><br>";
}
else{
if (isset($userid)) {
// if they've tried and failed to log in
echo "Could not log you in";
}
else{
// they have not tried to log in yet or have logged out
echo "<table border=0 width="600" cellspacing=0 cellpadding=0
border=0 valign="top" align="center">";
echo "<tr><td>You are not logged in.<br></td>";
echo "</table>";......

View Replies !
UNIX/Windows Text File Compatibility
I guess it's a bit off topic but my script is written in PHP so I
guess somebody out there could help me.

I'm facing the well known issue between windows and UNIX related OS.

The file format is crucial. The file is made on a linux box and as to
be parsed on a windows box by a commercial software (so I cannot play
with the code on that side).

I'm having a problem to mark the end of lines.
"
" as you all know doesn't pass well on Windows.

How could I replace this one:
fwrite($fichier, "this is a new line
");

to make it works with windows?

View Replies !
Windows/ Unix Regular Expression Question
I have a function which uses a regular expression to validate text
input. Here's a short code sample testing the regex:

<?php

$dirty = "hello";
$clean = getCleanText($dirty, 0,50);
print "<br>dirty: $dirty<br>clean: $clean";

function getCleanText($textIn, $minLengthIn, $maxLengthIn) {

$acceptableTextRegExp = "/^[a-zA-Z0-9_- ]{$minLengthIn,
$maxLengthIn}/";
print "<br>$acceptableTextRegExp<br>";

if ( preg_match($acceptableTextRegExp, $textIn, $matchedArray) ) {
return $matchedArray[0];
} else {
return "";
}

}// END getCleanText($textIn, $minLengthIn, $maxLengthIn)

?>

The output on my local windows machine is:

/^[a-zA-Z0-9_- ]{0,50}/
dirty: hello
clean: hello

The output from my web site on a shared unix server is:

/^[a-zA-Z0-9_- ]{0,50}/
dirty: hello
clean:

View Replies !
Script Fails On Windows But Works On Unix
The script works flawlessly on Unix machines, but when I try to run it on a Windows machine, the script fails. When I run the script on Windows, the feedback tells me the script ran, but when I look at the files, nothing happened. Can anyone tell me why?

My script is below and attached. Note that I hard coded the variable to be Found and Replaced for testing/simplicity. The variables can be found on lines 74 and 75. Note that the script is exactly the same on both server OS's except for line 83 which is the path. Code:

View Replies !
Something Similar To Cron On A Windows Box?
Is there something similar to cron where i can run a script at a certain time on certain days but on a windows box. If not something on windows, could i write a PHP script that will run at these times. The purpose of this is to create backups for a MySQL DB.

View Replies !
Cron Functionality Under Windows XP
if there's a solution to this for a Windows environment? If this was running under Linux, it would be a problem, but I have a php script that when run, examines a file, and then updates a local database. I would like to run this script (in the background - not in a browser window) via the command line every e.g. 100 seconds.

View Replies !
Execute A Windows Program From An Anchor Tag
I believe I am close but I have spent several hours investigating this and
can't understand why it won't work. I have tried exec, system, and settled
on popen from reading various notes on the subject. I am wanting to launch
a file editor when I click on a link. This is strictly an internal
application so I don't need to worry about escaping shell/args. This is
what seems as if it should work, however it doesn't. This is on XP, latest
Apache 1.3.29 and PHP. The logic makes it into the "if" test and the file
exists. Thanks.

if (chdir("C:Program FilesTextPad 4")) {
$cmd = "start "textpad.exe" x:webprogram.php";
pclose(popen($cmd, "r"));
}

View Replies !
Windows Program Command Exists
I can do this so easily in Unix: PHP Code:

$msg = exec('whatis convert 2>&1');
echo $msg;

However, in Windows using MS-DOS, I'm utterly lost. I am having to find out if ImageMagick is installed on a system for a function to operate (ImageMagick is required), and since this is a portable web application, you simply can't install ImageMagick everywhere you go.

Therefore I need to know if the system home has ImageMagick or not, and in Unix, I simply do a "whatis convert" and I can tell, but since MS-DOS has no equivalent to "whatis" I can't figure it out, and just running the "convert" command within a recursive function onto thousands of images is just not a good idea.

View Replies !
Php Session Problems When Working With A Windows Client Program
I am currently involved in a project that involves a windows client
program written in delphi and a web application written in php. I
have made several php pages for the delphi program to do requests via
the http component from INDY. the problems I am having are:

1) the first request from delphi app to php web app is the
authenication. In which user sends username + password to the php app.
If authenication is valid, a session is started and the sid is
returned to the client. All subsequent requests from delphi app to
php web app will have this sid as one of the arguments in the POST
form request (this is one of the function in the INDY component for
delphi). Even the sid is passed to the subsequent pages, the session
global array is still undefined. However if I open up a web browser
and create my own string request to the login page then the next page,
the global array would be defined (using var_dump + echo to see the
array) what is the problem?

2) does the above problem has anything to do with the http referer
field?

3) this problem that I am having has been asked before on google
group, but somehow the person who asked it didnt' put down the
solution for it. (this only involves the web only) when I login on a
page and return with a session id, then I log out.. the user is
redirected to the login page again. However if the user login again
(with a different login account), he would be presented with the same
session ID as before. a different sesson id is presented only if the
user restart the browser. why is that happening?

View Replies !
How To Call *.exe Program From Php Program
I have a php program, and from that program I wanna call C program that counts number of visitors on my page.

This is a piece of my program:

View Replies !
Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
From a PHP webpage, is it possible to authenticate users running Apache on MacOS X (with PHP 4) and an active directory on Windows 2000 or Windows XP?

View Replies !
Two Sessions: Session A By A Program Destroys Session B By A Program
I have two separate programs that I want to use together on a website
Program A starts first and calls session_start(). Program B is started by the user clicking on a link and it also calls session_start(). The session started by program B blows away the session started by program...

View Replies !
Sessions? External Program / External Program
I am trying ac ouple of days now to learn some things on SESSIONS,but I think I am not getting it very clearly. I have a PHP page tha contains a form.

Users enter data in the form, which are then written in a file (the file is created at the time a user enters some data) The file is then given as an input to an external program The external program runs and gives some results which are then stored in another file (that is created when the external program finishes) What I want to do is to somehow create these files and, when the user exits from the browser, then both files that refer to this user, will be deleted. Code:

View Replies !
Unix To Jd, Help
I set up a basic calendar, sort of. Probably not coded the right way, but it was working. I was quite proud of myself for figuring this out and now I feel like a big loser because I didn't realize this whole unix to jd thing. Well, some months the calendar looks right, but other months it'll have two of the same dates on the calendar. Is there anyway to fix this without doing the whole thing over again?

View Replies !
Unix / Php 4.4.0 / Php.ini ?
i cant find php.ini in upgraded php from 4.3.7 ?!?!?
where the hell is it ?
the prefix is new but there is no lib directory /usr/local/php-4.4.0/

View Replies !
Unix Vs IIS
I have a client that asked me to publish a website on IIS that someone else developed for them. It is all PHP and accesses a MySQL database. I got the website to display but it will not access the database. Come to find out the development was on a UNIX box. I have been able to modify the mysql_connect statement a little and it authenticated to the DB server but it will not access the data.

View Replies !
The > In UNIX
I am confused as to how an old-good UNIX command, like

cat text.txt > new_tex.txt

can be used in PHP.
I tried
system (" cat text.txt > new_text.txt");

but it didn't work, the file new_text.txt was left blank. Am I doing something wrong with the >? Must I use something else instead of 'system'?

View Replies !
Unix / NT Differences
I recently noticed a difference in the way a php script was acting on an NT server. the script was checking the validity of an html form. on a linux box it worked fine, but on an NT box it returned an error. something like "undefined variable i".

/* checking to see if the user left the name field blank */

if(!$name) {
print <font color="#999999">You did not enter your name.</font><br><br>";
$i = 1;
}

/* adding instructions */

if($i) {
print "Please use the back button on you browser and fill out any required fields that may have been left blank and then try again.<br><br>";
}

/* thanking user for form submission */

if (!$i) {
print "Thankyou for submitting your feedback. If you submitted a question, a member of our team will get back to you as soon as possible.<br><br>";
}

does anyone know why this didn't work on NT? also is there a site online that outlines the differences in how php acts on either platform?

View Replies !
PHP4.0 On Unix
Can anybody see why the following code wouldn't work on a Unix /Apache platform when it works fine in IIS5.0 on windows? Is there a problem with reading the querystring and passing it to the HTTP variable?

<?
session_start();
$strPage = $HTTP_GET_VARS["page"];
if (isset($logged) == true && $logged == 1){
header("Location : ".$strPage.".php");}
else{
header("Location : passwordcheck.php?page=".$strPage);}?>

View Replies !
Unix PHP Editor
I've been using EditPlus with windows to write my PHP stuff, but now I've set up a Unix machine which also hosts my sites locally.

Is there a good editor available for Unix, hopefull similar to EditPlus in functionality.
I've never used Unix before (it's scary!!) and I don't have X windows, so I realise I'm not gonna find anything that great.

View Replies !
PHP Install With SCO Unix 5.0.5
I can't succeed to install php3 on SCO Unix 5.0.5. it always bug (pb qith c compiler,..etc). Do someone have already php+sco unix on the same machine ? Does it work fine ?

View Replies !
PHPEditor For UNIX?
Where can i to find PHPEditor for UNIX? I know that it to exist for Windows.

View Replies !
PHP4 For Unix ?
I need to run PHP4 on an Unix Server (with IBM AIX). Do I need a special version or special binaries ? Or can I use the files from URL ? ARE there actually any other versions (for other OSs) available (especially for IBM AIX) ? Or has anybody ever installed PHP4 on IBM AIX ?

View Replies !
Unix Permissions
I have a folder which I store php generated images in. The app only seems to
function when I have the rights set to 0777, but I don't understand why I
need "execute" to read/write a PNG file. What am I missing?

View Replies !
Unix And Commands
I'm currently working on the intranet site for our company and i've been asked to create a site where the status of our unix server is been displayed. at the moment all admins have their own logon using AIX (v4) and using the command topas to display the idle and other info.

what i want to do is create we php script that connects to the server using a logon and executing the topas command. i then want to display the idle process (but tahts not that importaint. i'll get to that when i'm able to connect to the server.

View Replies !
Output From Unix
I have a problem with displaying unix commands output in php. I use SunOS5, php4. I try to put on the web content of the command

usr/local/aretai/grep -irU /opt/users/aretai/test/projects/*
This works - I get a list of the files some of them are binary so it's like: Code:

View Replies !
SSH And Linux/Unix
I'm been using dev environments like Dreamweaver with ASP for years and recently got a php job that requires SSH to access the server. Command line is really new to me and I need to learn this.

Also I can't seem to find a way to access the server with Dreamweaver MX 2004. The guys there say it's not possible but no one there really knows Dreamweaver that well. Is there a way they/I don't know of?

View Replies !
Unix Timestamps
Im doing a quick sum with unix timestamps within a loop to work out if the array is within my specified time frame, and if y or n then do something else. Here is my code so far.

$timenow = time();

while($row = mysql_fetch_array( $result )) {

echo "Timenow = $timenow<br/><br/>";

echo $row['ip']. " -- ";
echo $row['url']. " -- ";
echo $row['date']. " -- ";

$ip[] = $row['ip'];
$url[] = $row['url'];
$date[] = $row['date'];

$timediff = $timenow - $date;..........

View Replies !
Times With Unix/PHP
I must first admit that I have little experience in dealing with times, and I'm not sure where to begin.

I have recorded a timestamp of the current time, but when I echo this time, it reads five hours ahead of the current timezone I'm in (which is -6 hours GMT and the server is -8 GMT).

I first assumed that this time was GMT -1, but then I began thinking about daylight savings time and what not, and that just got me even more confused. point me to a good article about dealing with time, or maybe give me a quick rundown of what I need to do to make the time display correctly for my current timezone (whether it's DST or not)?

View Replies !
Execution In Unix
How do I execute a php script in unix from the command line?

View Replies !
Extending PHP On UNIX
Is there a way to extend PHP features, like adding new database connectivity module, java interoperability etc. without recompiling PHP? I need a UNIX/Linux solution, something like dropping .so file in certain directory. I am not a hobbist, and I do not have root priviledge at my customers site. My customers are not always capable to recompile PHP themselves, and it causes me problems. I am considering moving to Java/JSP/Velocity combination because of theese problems.

View Replies !
Unix Epoch
I was hoping someone could help me convert a date to seconds. I thought this was going to be easy, but the script so far has gotten the best of me. I have a date in the format of "YYYY-MM-DD HH:MM:SS", lets say its "2007-03-07 07:25:56". I am trying to output this stamp into "March 7th". So I'm using the following code:

date("F jS","2007-03-07 07:25:56");

This code isn't working, which made me realize I needed to convert my date into seconds from 1970. Something like the following pseudo code:

date("F jS",secondsfrom1970("2007-03-07 07:25:56"));

View Replies !
UNIX Timestamp
Array:

(
      [0] => 17:28
      [1] => 17:40
      [2] => 17:52
      [3] => 18:04
      [4] => 19:16
)

I know that 0 in the array is a value corresponding to the first Friday in this month, 1 to the second Friday etc. I want to change the key to the of the day its referring to.

View Replies !
UNIX Term Through PHP
I am using PHP to telnet into and run commands on a UNIX system to look for files and parse logs. However, the latest roadblock is the need to pass a complete "for n in" loop including a UNIX designated variable like "$n". Since PHP variables are also denoted by the "$" the script merely passes blank information, killing the loop.  All PHP variables are passing correct information, I just need the "$n" to appear on the UNIX system and not Well, I don't consider myself an expert in any sense of the word, but I can't seem to find an answer to this anywhere. 

View Replies !
Change Password Unix With Php
is there any way to interact with shell using php, what iwanna do is to change my password in unix box using system() by issuing;

system("chpass");

but then i got confuse about handle response from shell.

usually it prompt twice to ask new password . any suggestion or tutorial around it ?

View Replies !
UNIX Timestamp To Date
I looked in the forums little and in the php manual but I didn't find what I wanted. I want to know how I could change a unix timestamp into a normal date such as MMDDYYYY.

View Replies !
Check Unix Permissions
How can I check to see if a particular file is accessible? I'd like my
links to be displayed in red if they are available and to be displayed
in green if they are unavailable. At the command line, I'll chmod the
files when I want to make them available.

View Replies !
Unix Crypt Port
I'm trying to port the unix crypt into PHP because I'm on WinNT (not my fault). I found in Java at http://208.223.9.21/jfd/crypt.html and this is what I currently have as the PHP source, but it always gives me the salt + 0 (e.g. Ts0). Code:

View Replies !
Verifying Unix Passwords Using PAM
I want to be able to verify if a user + password that have been entered on a form on a website, using a php script is the correct and same user + password on the unix system.
I alsow want to use PAM in the authentication, but am unfamiliar with PAM.

View Replies !
Date To Unix Timestamp
I am getting a date and time from a user. The send in a date with the format dd-mm-yyyy and a time with format hh:mm and then send in whether it is am or pm. now i split the date and time, then try to figure out the hour using: Code:

View Replies !
Unix Standard Output
Can anyone tell me how I get a php script to pick up data from the unix standard output?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved