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.





Script In Windows Tasks


I would like to know how do i work with php in windows tasks. i developed a php web application and i would like to recieve to my email every day a certain report which will be produced by a php script.




View Complete Forum Thread with Replies

Related Forum Messages:
PHP Tasks
some times i get this error on my script: Internal Server Error

i researched very much on why this error happens and i get to: i forgot to close some php tasks in my script.

now i know only mysql_close() for closing one of php tasks. what are others php tasks that need to closing?

View Replies !
How Can I Automate PHP Tasks?
I am currently running the same task multiple times a day and I'm sure there is a way to automate it. It is a simple one, but with limited PHP knowledge I'm not sure of the best way to do this. Here's what I need to do

1) log-in to a 3rd party site

2) Download the CSV

3) Upload to my db

View Replies !
Cron Tasks
I'm building an auction site which needs scripts automatically launched to scan the closing auctions. I'll use Linux's crontab.

I'd prefer to avoid installing Php as a cgi and prefer to keep my apache module config.
I'd also prefer to avoid the use of a browser as lynx to do this job because I fear the time-out How I can launch my scripts?

View Replies !
Background Tasks
I'm using some weather rss feeds in a web site. The feeds are updated once every hour and cached in a local file. My problem is that every time the weather report is updating I get a long wait (not that long.. 2 or 3 secs) before the page is displayed.

This happens becauses the teplate engine that parses the page is waiting for the weather section to be parsed and cached. Is there a ay I can start the weather parsing as a background thread and return immediatly to the template engine to continue to parse the page? And if so How?

View Replies !
Automated Tasks
I have an auction site running. Now I want the auction to be able to automatically send a mail msg to the seller after it expires. How do I do it? Obviously there is some sort of way that I can employ so that this task does not require an operator (such as me) to run manually. This task will involve accessing the database and sending an email. Can somebody enlighten me on this?

View Replies !
Directory Tasks
Im looking to do some work with directories. Basically, there are some directories which I want my website users to access fully, and see all the files in there.

My server allows index of directories automatically, where users can see all the files in the directory (unless there is an index page). Code:

View Replies !
Using PHP For Nightly Backend Tasks?
I have to develop a script to be run nightly to go through a database
and send emails based on conditions. It's a large database, and there
are several thousands of emails to be sent during the week everyday.
The script will be run with a cron job at midnight or so.

I was wondering if PHP is suitable for this, or may it be problematic,
for instance would its execution abort after a certain amount of time?
Or is it perfectly fine for this task?

View Replies !
How To Execute A Tasks If The Time Is 22:30:45
crontab work every minute

How to execute a tasks if the time is 22:30:45 or 22:31:01

id | time | script
-------------------
4 | 22:31:01 | script0.php
3 | 22:31:00 | script1.php
2 | 22:30:45 | script3.php
1 | 22:30:00 | script2.php

View Replies !
How To Schedule Tasks On Website.
I am trying to figure out how to schedule tasks on my website. For example, PAGE1 should perform a different task in the morning than in the afternoon.

And at the end of the day, I have to extract some data from the database and put them into a file. This should be done automatically.

View Replies !
Cron/scheduled Tasks
Im running my site on a web server, and want to add something so that every hour the variable $gold = $gold*($workers*3.1) +($banks*30); and the way to do this is cron jobs from what ive gathered from searching google. BUT not only haven't i found a good tutorial, but I haven't found a single example taht isn't with CGI or a download.

View Replies !
PHP/mySQL Running Tasks Automatically?
I have a MySQL DB with all my client details (name, email address etc).

I want to use PHP to retrieve records from the DB and email each of these clients (easy enough) BUT I want the system to automatically do this at pre-defined times.

I have thought about using the UNIX/Linux CRON utility to perhaps call a PHP script that would retrieve specific records (based on a timestamp perhaps?) and then have it email based upon those records.

Does this sound feasible? Are there better ways to do this?

View Replies !
Cron Jobs / Tabs / Tasks And More
I'm building a site with a mySQL db behind it.
There are going to be a lot of records in it with products.

Now i have recently discovered cron jobs, and i thought it
would be a good idea to use those to backup the database.

i have a few questions:

- If i back up the database, does it put the backup
in an actual different db, or just in the same db but
other tables? (Silly question maybe, but i'm new to this)

- Can the DB still be queried bij site-visitors though it's
being backed up?

- Is it possible to just backup new/updated records instead of the
entire db?

- Imagine i backup once a month. can the cron job notice
if the DB is dameged/ has errors, so it'll stop backing up
so it doesn't overwrite the previous backup... or doesn't backup
delete the previous backup?

View Replies !
Executing PHP Tasks While Letting A User Continue To Browse?
I was wondering if someone could help me out with the following two
situations.

In a lot of my web apps, it seems that if i launch a PHP script that takes
a long time to complete, the user is unable to browse/use the rest of the
website until the tasks completes. Is there a way to avoid this?

Specifically, app #1 let's a user choose which files to include in a zip
file, then PHP makes the .zip file on the server and streams it to the user
via fopen/fread. So, as the user is downloading a file on the side (it
presents them with the open/save dialog) they are unable to browse the rest
of the PHP-based site until the download completes; clicking on any links
to pages does nothing, the browser just sits there until the file has been
downloaded, THEN the screen advances.

I am experiencing a similar thing with a PHP mail delivery system. I tried
to create a work-around: a pop-up window that sends an 'exec' command to
the a php-script that sends the email to a few hundred recipients. Again,
even though this action is being done in a pop-up window (and via the
command line, no less), the user is paralyzed in the main window until the
action completes.

View Replies !
Sending Mails Without Using Scheduled Tasks (crone Jobs)
Can we set up a mail program that the mail can sent frequently..ie may be daily or weekly or monthly... with out using scheduled tasks or crone jobs.

for eg .. can we create a page that works like the scheduled tasks page( there we can set up the time at which time the program  will execute )..that means we have options in our webpage to set up the time  at which the mail will sent. for eg..every monday.. can we set up this in the program without using scheduled tasks or crone jobs. can we run our page  frequently without using crone jobs .

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 !
CLI And Windows
The portion of the PHP manual entitled "Using PHP from the command
line"
states that "The CGI SAPI supports the CLI SAPI behaviour by means of
the -C switch when run from the command line.":

http://us2.php.net/features.commandline

However, "php -h" says of the -C switch, "Do not chdir to the script's
directory".

Further, running php -Cr "echo 'test'" results in an error saying
that
the -r switch doesn't exist, even though it should if it were acting
like the CLI version.

This, coupled with the fact that the Windows installer doesn't seem to
install a seperate CLI exe means that, unless I'm missing something,
CLI isn't something that can be used on Windows, contrary to what the
docs say.

View Replies !
Php On Windows
I try to install PHP on Win 95 platform using Windows PHP installer,
but it does't work. When running php.exe, I got error message "php.exe
file is linked to missing export kernel32.dll: cancello." Where is
wrong? Is it due to php not support win 95?

View Replies !
Pop-up Windows
I have a form coded as: <form action="test.php" method="post"> the form has two buttons: Preview and Submit

if ($Preview) {// perform action 1}
else {// perform action2}

My question: If Preview is clicked, I would like to open a new pop-up window without closing the original one. I would like the results of action 1 to be displayed on this new pop-up window.

Is there a way to do that without using javascript?
If no, then how would you do that with javascript?

i cannot use target=_blank in the form tag because i would like to have the pop-up window only if Preview is selected. But maybe there is a better way to code everything!

View Replies !
PHP On Windows XP Using IIS
I am trying to request form elements from a form from a page that
looks like this:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<form action="result.php" method="post">
Name: <input type="text" name="username" value="brenda"><br />
Email: <input type="text" name="email" value="hipples"><br />
<input type="submit" name="submit" value="Submit me!">
</form>
</body>
</html>

Here is the results page, using multiple methods of variable retreival
and it will not work locally but up on the web server it works
fine....

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<body>
<?php

// Available since PHP 4.1.0

echo $_POST['username'];
echo $_REQUEST['username'];

import_request_variables('p', 'p_');
echo $p_username;

// Available since PHP 3. As of PHP 5.0.0, these long predefined
// variables can be disabled with the register_long_arrays directive.

echo $HTTP_POST_VARS['username'];

// Available if the PHP directive register_globals = on. As of
// PHP 4.2.0 the default value of register_globals = off.
// Using/relying on this method is not preferred.

echo $username;
?>
</body>
</html>

When I view the source of the result.php page, the opening <HTML> is
never there, leading me to beleive that there is a header issue of
some sort.

View Replies !
PHP And Windows CMD.exe ?
I'd like to somehow manage to get php sending things to windows cmd.exe.  Is thier any possible way for example.

I have to run a program to register a user, and I need to knwo if php is even capable of speaking with it.

C:Documents and SettingsUSERDesktopSOMEFOLDER
eleasesystem>addlicense.exe -a42790
8484 -psomepassword -ysomeuser -zsomepassword -l4 -b0

this is an example of what Im sending.

View Replies !
PHP Under Windows
I read somewhere that you need to install a virtual server (or something like that) if you want to run PHP scripts on a PC. The background is that I'd like to make the pages of my site dynamic, but would like to be able to view the site offline on my computer.

Is there such a piece of software, possibly easy to install? I'm not too familiar with servers.

View Replies !
Windows API
Is it possible to open a named pipe from a php script on Windows? More specifically, I have a Windows service that receives commands through a named pipe, and I'd like to open the client end of the pipe directly from php rather than creating an intermediate process.

View Replies !
Windows CE
I try to interact with my php/MySQL data-input website via my PocketPC. Usually, no problem (other than having to do a lot of scrolling on pages never meant to fit in a 240 X 290 window).

I recently built a fairly complex input form page that works just fine with a regular computer/browser. but when I submit (POST) form data using the PocketPC (using Pocket Internet Explorer) the data does not seem to post. nothing is saved and the script that receives it looks like it never saw any data arrive.

View Replies !
On Windows
Are there any disadvantages to running PHP on a Windows server as a CGI executable as opposed to running it on a Linux server?

View Replies !
PHP 5 And Windows XP
I have downloaded the binary zip file onto my desktop and am attempting to install it. I have created a folder in my Program Files called PHP into which I want to extract the files. From this point on I appear to be stuck as the files do not appear to want to extract to c:Program FilesPHP. Can anyone help me?

View Replies !
PHP, IIS On Windows
I installed IIS 5.1 and PHP 4.3.9 (windows installer version), apparently configures itself for use with IIS if the option is selected. Now when I drop a PHP file in C:Inetpubwwwroot and open in browser nothing happens just a blank page, it seems the PHP is not being intepreted. Does anyone have a quick list of settings for PHP and IIS on Windpows XP or any known issues so I can check through and hopefully sort it out cos it's driving me crazy!

View Replies !
PHP On Windows And Mysql
Is it possible to run php scripts on windows XP Professional with IIS? How? If yes, is it possible to access mysql database on windows by PHP? Is there any different between on windows and on linux?

View Replies !
Sockets On Windows
Hey all. I was going through the sockets tutorial and I am painstakingly trying to make windows xp allow me to play around with them but it wont let me.

On my Linux box everything works fine, but windows is denying my socket connections except at the usual telnet port (23).

Does anyone know how to configure port permissions, etc on windows xp?

View Replies !
Windows Sockets (yes I Know Its Old)
sorry to dig back into all this stuff but im having problems with sockets in a win98 env. my PHP is the installer version and i just added the .dll from the .zip after. what is happening is that im following the tutorial and have taken the server.php script at the end of part two and run it i then fire up telnet then connect to 127.0.0.1 (which i specified in the server.php file). then as soon as i type in a key i get a message "connection to host lost" and then in the DOS window where i am running PHP, it quits bqck to the DOS command prompt. any ideas guys?

View Replies !
Printing Under Windows
I'm wondering whether anyone knows of a good tutorial on how to use the PHP Printer Functions under Windows.

I've been dabbling in it a little, but the PHP Manual is kinda flakey on the subject.

I want to be able to print a report, generated in PHP, on the printer connected to the web-server (it's for an Intranet app).

View Replies !
Can't Get Variables Under Windows!!
I used PHP alot under linux but that's my first time to programme PHP under windows. However, I'm experiencing the weird case here. My php scripts can't get any variables from HTML form. not even by http://blahblah.com/phpscript.php?var1=hello.

View Replies !
PHP On Windows Server
I have been working with PHP in Linux for a while now and I have just been asked about PHP in the windows environment. Where should I go for the best info on what versions work the best with what windows server platforms?
Does mysql work on windows and can I use the same php files written for Linux on Windows?

View Replies !
ClibPDF + Php 4.3.3 +windows XP
Anyone knows where I could find a binary distribution of the ClibPDF
extension for PHP 4.3.3 and windows XP?

View Replies !
Windows Service
I need to stop (sometimes start) a Windows seevice (in XP / Vista). Does
anyone know how to do such a thing in php?

View Replies !
Request_uri For Windows IIS 5
the request_uri is not working for windows IIS How can i get it work? is there any other code? i just want the url right after the domain name;
http://www.domain.com/blahblah/blah.htm

View Replies !
Ssh2 Using Windows
i'm using Windows to access an ssh server. everything works perfect
until i try executing files (ssh2_exec) and sending/receiving files
(ssh2_scp_send/ssh2_scp_recv)... in the function manual at php.net it
has the following example to execute a command:

ssh2_exec($connection, '/usr/local/bin/php -i');

i'm assuming this is for linux/unix machines, so on a Windows machine,
should it be possible to do the following?

ssh2_exec($connection, 'c:/php/php.exe c:/a.php');
.......

View Replies !
PHP And Windows NT Authentication
Can PHP check a user to see if they are logged into an NT domain, and get their username?
If so, where should I start?

View Replies !
Authentication On Windows
Hi, I have for some time Apache running on windows. I am interested in authentication, but... If I call the following 'authenticate' example from the manual, I get the 500 internal server error. PHP Code:

View Replies !
PHP Upload In Windows
I have php and apache running in Windows XP. I am trying to use various file upload scripts but none of them work. When I try to use ones that use a copy function I get the following error:

Warning: copy(C:serverxitamiwebpageshivangPhotoGallery empimg3e710f87bf1ed.jpg) [function.copy]: failed to create stream: No such file or directory in C:serverxitamiwebpagesshivangPhotoGallery est.php on line 46
File could not be stored.

Anther script I tried does the following:
// Open the uploaded file
$file = fopen($img1, "r");
// Read in the uploaded file
$fileContents = fread($file, filesize($img1));
// Escape special characters in the file
$fileContents = AddSlashes($fileContents);

The above script fileContents only has half the image. I have the upload_tmp_dir set to c:serverupload and file_uploads to yes.

View Replies !
CHMOD In Windows?
I need to change the attributes of a file from 700 to 777. But Windows no likee CHMOD (UNIX command).

View Replies !
Windows Size
Can someone tell me if it is possible to control the size of the window using php because i want to have a script run in a window the following size: Height = 250 Width = 250

View Replies !
Editor For Windows?
I couldn't find a good program. I like Kate Editor but this program only working in the linux..

View Replies !
Exec() On Windows
this is my problem: I need to "exec" the following command:

C:ProgrammiSoftsoft.exe -v -d C:dati$nomefile
C:datipdf$filename

and i tried to execute it in php with (one of) the following lines....

exec("C:ProgrammiSoftsoft.exe -v -d C:dati.$nomefile
C:datipdf.$filename");
exec("C:ProgrammiSoftsoft.exe" -v -d "C:dati".$nomefile
"C:datipdf".$filename);
exec("C:ProgrammiSoftsoft.exe -v -d C:dati.$nomefile
C:datipdf.$filename");
exec("C:/Programmi/Soft/soft.exe -v -d C:/dati/.$nomefile
C:/dati/pdf/.$filename");
exec("C:/Programmi/Soft/soft.exe" -v -d "C:/dati/".$nomefile
"C:/dati/pdf/".$filename);

but there is something wrong and that i.. do not understand...
Is there anyone so kind to show me the correct line and a couple of
comments on how to built it? I tried to search for it (manual,
newsgroups...) but i haven't found it (and my mistakes are the result
:-P)

View Replies !
PHP And LDAP On Windows
Anyone have recommendations as to the easiest LDAP libraries to install
on Windows for PHP? Building them from source on Windows is not an
option and we can't locate anything pre-built from UMich or OpenLDAP -
someone suggested the Novell and Mozilla SDKs but I have no idea where
to put the DLLs ..

PHP 5.0.4 under Windows XP

View Replies !
How To Set Up Apache And Php On Windows XP.
Just wonder if there are any sites with a guide on how to set up apache and
php on windows XP. Would like to test my php-pages locally.


View Replies !
GDBM With PHP Windows
I'm trying to work with a gdbm file with PHP Windows, and it's not showing up as a supported handle in the phpinfo. I know it can be built into the module for linux users but I'm using the windows binary file. Is there a way to make it supported?

View Replies !
Windows Configuration
I have experienced problems getting the PHP 4.0.4pl1 [735Kb] CGI only version to work properly with PWS running on Windows 98. I downloaded the PHP 4.0.4pl1 [3.737Kb] CGI binary plus server API version and got that to operate fine, so far. However, I read that this version is not as stable as the CGI only version.

View Replies !
Windows Uptime
I am running Apache 2.0.44 with PHP 4.3.0, and i am wanting to know is there a script that can see the uptime on a windows machine. is it possible??

View Replies !
Configuring In Windows
i can't figure out how to allow the socket functions for php in windows. it says at php.net:

"The socket functions described here are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure. "

View Replies !
Utf-8 > Windows-1251
Haw can I convert a utf-8 encoded string to windows-1251?

View Replies !
Windows Install - Ot
installed php/mysql/apache2 successfully on win xp home edition

just curious as to what is a decent freeware mail server that I can install
so that the email portion of my scripts will work from my test server @ home
?

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 !

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