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.





Submit Standalone Programs With Php


I'm building an application which submits scheduled php jobs. The way I would like it to work is to have one php program to submit the other php programs on a scheduled basis. This control program shouldn't have to wait until one job finishes before it can start the next one; instead, it should be able to submit all the jobs in one go, but it also needs to be able to be informed of the return codes of the submitted programs so dependent programs can be submitted too.

I've looked at the exec() and system() commands, but they either don't seem to allow return codes to be returned from a submitted program to the submitter program or they unconditionally print anything the submitted programs produce.




View Complete Forum Thread with Replies

Related Forum Messages:
Standalone Problem
I've set up PHP 4 with Apache on an intel/Redhat 6.2 linux box with no network interface. Using URL PHP code with the .php extension works fine, but php code in html documents does nothing. In fact, view source shows the php code on the browser.

View Replies !
Multithreading For Standalone Php
I'm trying to write a mutlithreading server with standalone PHP.
Concurrent requests is possible. Normally it is done by handling each
socket spawn by serversocket in separate threads. But it seems that
there is no thread support in PHP at all.

Would anyone give me some suggestions?

BTW, is the community considering add thread support to PHP in the
future? What is the major difficulty to import an existing thread
library (such as pthread library) into PHP

View Replies !
Standalone Program
I'm going to be doing a program for an elderly couple who owns a horse ranch, and wants some software to keep track of all their horses, owners, doctors, etc. I'm going to be writing the program in PHP using a MySQL database.

I set up one like this for my work and it runs off of Apache on our server. I need this program to be a stand-alone install, without installing MySQL, PHP, and Apache seperately. How could I go about integrating it all into one package?

View Replies !
Standalone PHP Installation
I have never installed PHP before. It's always been set up for me. I have
a client whose site is hosted as a virtual server. I'm trying to set up
ecom for him, but the mhash library is not installed. So I use fopen to
open a script on my website that hashes the variables. Obviously, this is
not ideal because if my site goes down his ecom will too. I asked the tech
people at his hosting company to set that up, but they said they don't do
custom compilations.

"As per compiling PHP with --with-mhash=[DIR] this is how that works: any
custom compilations, custom applications, etc. are up to the user to compile
and install. Use gcc/etc. to compile PHP with the options that you like.
The php.ini in /etc is available for your customization as well. If you
compile your own binary of PHP, you can place it where you like (or leave it
at the default) and get the paths updated to use it, or you can obviously
use it directly if necessary."

I was planning on compiling a new, minimalist version of PHP (with just
mhash) in a different directory, but I'm hesitant to do it in case I get
unexpected results (I don't want to take the rest of his site down). Can
anyone tell me if this sounds feasible? What kind of pitfalls can I expect?
And can anyone recommend a tutorial? Most of the tutorials I've found
assume you have root access and/or are compiling PHP/Apache together.

I was also wondering if it would be possible to just compile the mhash
library and add it to php.ini? That seems to be the simplest thing, though
I don't know if it would work...

View Replies !
Php Install Standalone
I need to install php like standalone. can somebody say me that way to install it like standalone on linux, with support for mysql, apache and oci8?

View Replies !
Standalone Sig Generator
I currently have my sig generator running,  the problme Im facing is that it outputs like this http://mysite.com/image.php?sigimage.png

I need to have it out put like this -> http://mysite.com/image.png?sigimage.png or something like it because a lot of sites do not allow image.php. Code:

View Replies !
Standalone Apps And Php
I have a project in mind for a library management system which I would like to try building with php/mysql.

Are there any Delphi-like IDE apps out there that would do the job? Can the code be compiled into an executable?

View Replies !
Standalone Solution
I was asked to write a database solution for a friend.. it was supposed to do the normal add/retrieve/modify/search functions of a databse. i started with vb6 then decided to use php/sql.

I might sound really dumb and ignorant but the question is... if i want to "package" this to him... how can i do this without having to personally go and install a webserver and php and sql and the rest so he can use it just through his web browser?

can i use an installer that will allow it to be packaged so after the install he would just have to open the databsae through his browser?

View Replies !
PHP Standalone: Charset Setting
I'm simply using PHP as a programming language, and I just want to
print some text information to stdout,
but instruction
print "é" (é)
does not print my "e" with an accent in the shell window: wrong
charset.

How to set the correct charset?

View Replies !
Standalone WIN32 Application In PHP
Is it possible to write a standalone Win32 application using PHP? Like
creating a window from the PHP script, putting buttons and textboxes on
it, handling clicks on the buttons etc...,

View Replies !
Standalone DB (like Access) For PHP/Apache
I am in the process of translating an WIndows/ASP/MsSQL Content
Managment System (CMS) to Linux/PHP/???.

Is there a popular database I can use that will allow standalone files
like Access did (which used .MDB files)?

In order for the CMS to work, there needs to be a standalone database
file that is self-contained, just like Access .mdb files are under
Windows. I guess I am asking for an Access equivalent for
Linux/Apache.

View Replies !
Standalone Executable File
I downloaded the tarball and while was able to compile within PHP with no problems, I am having memory timeout issues involving image manipulation with extremely large images (800K - 2mb). Requirements are to create thumbnails for even these banner-sized images, but PHP + GD + [huge image] = too much memory.

I'm trying to prove that it is undoable, though the suggestion was to do a command-line GD call to the image instead of using the PHP functions to do so to save some memory; if it still times out, then it's undoable altogether. However, I cannot find the standalone executable file that will ensure I can run GD from the command line.

View Replies !
Setup MySQL On A Standalone Machine
Has anyone setup MySQL on a standalone machine?

View Replies !
Where Can I Find The GD Library Standalone Executable File?
I downloaded the tarball and while was able to compile within PHP with
no problems, I am having memory timeout issues involving image
manipulation with extremely large images (800K - 2mb). Requirements
are to create thumbnails for even these banner-sized images, but PHP +
GD + [huge image] = too much memory.

I'm trying to prove that it is undoable, though the suggestion was to
do a command-line GD call to the image instead of using the PHP
functions to do so to save some memory; if it still times out, then
it's undoable altogether.

However, I cannot find the standalone executable file that will ensure
I can run GD from the command line.

View Replies !
Configure To Run With The Cold Fusion Standalone Server?
Can I configure PHP to run with the Cold Fusion standalone server? I don't have IIS installed. I'm on windows 2000 pro. I want to run the cold fusion server and be able to execute PHP scripts.

View Replies !
PHP Programs ?
Im after a php program which is of the likes of textpad but designed for PHP so it checks curly braces and other simple errors in PHP code to us PHP novices out ??

Is there anything on the internet like this, download links (the best few)?

View Replies !
Executing MDL Programs Using PHP
Help to execute MDL Applications by making a call "mdl load <application name>" through PHP.

View Replies !
PHP Calling Programs On AS/400
I have a website (running on a linux machine) that currently makes use
of JSP to access data on an AS/400.

I've found information telling me that after setting up ODBC drivers on
the linux server I'll be able to access the databases on the AS/400
however I've not found any information about executing programs on the
AS/400.

I've looked at the docs for exec, passthru, etc. and it appears those
will only work on the local operating system.

Is it possible for a PHP page to execute a program on a remote machine?

If so, how does PHP handle the ASCII <--> EBCDIC conversion for
parameters passed and returned?

View Replies !
Test The Same Programs
I'm building my php scripts in one computer and i don't have any problem, but when I test the same programs in other (win xp ie) don't work at all, specially whe you do submit. I tried testing with this simple script:

<?php
if($_POST["test"]){
print "test ok";
print $testa;
}
?>
<HTML>
<HEAD>
</HEAD>
<BODY>
<form action="<?$_SERVER['PHP_SELF']?>" method="post" name="forma" enctype="multipart/form-data">
<input type="submit" name="test" value="submit">
<input type="text" name="texta" size="20">
</form>
</BODY>
</HTML>

When you submit the form, print "test ok", but no the value of $testa variable. I use this way to send data and always works. (wamp5). I checked the services wampapache and wampmysqld and both are working then i tried printing phpinfo() and it works too.

View Replies !
Compiled Php Programs
Is it possible to compile php source to create a binary? I am thinking along the lines of building an application for folks, but do not want them to have access to the source code. I like php and perl, but am not sure if there is a way to "secure" my programs if I
use them.

View Replies !
External Programs
I have just installed my first Linux distribution (SUSE 10.0). Everything is compiled as far as Apache, Mysql & PHP is concerned. But, I have this problem: I call system commands through PHP using system, shell_exec etc The thing is that PHP responds OK when it comes to 'ls' or 'grep' or 'wget', but, in another program, not UNIX-native, there is no response. I am sure that the program is set up in the PATH, because, if I open a terminal, I can call it from everywhere and it works fine.

View Replies !
Auditing Programs?
I'm trying to perform an audit on a PHP script and am curious what kind of software there already exists to do such things.

I think the ideal solution would be something that, for each variable, provided a list of the functions that variable was passed through. Code:

View Replies !
Running Programs
I've just installed apache and php. Both installations passed the test (I get that chart of info that PHP displays if your installation is OK). Here's the problem: whatever I save with a .php simply does not work I'm talking about the World" programs that I simply paste and save, not something I wrote. I've been saving in c:/program files/apache software fundation/apache2.2/htdocs.

View Replies !
Executing Programs On A Server
i've written a c++ program that converts one file type to another via
two arguments (the input and output filenames).

i want to execute this on my server, using something like

exec("myprogram.exe $arg1 $arg2");

but then I realized my server is linux, and my program was compiled for
windows.

so I uploaded the .cpp instead, and now i'm trying to compile it doing
something like

exec("gccp hello.cpp");

which returns an exit code 127... not really sure what that means.

I'm guessing I probably don't have permission to be creating files on
my server...is there anyway I can change this permissions or anything?

View Replies !
Executing External Programs
I know all the different functions that allow me to execute an external progam, however I have come across and interesting problem that I need to fix if it is at all possible.

Is there a way that I can use the php functions and execute an external program by some other user other then who ever owns the apache process?

View Replies !
POST Variables From Programs
we are trying to make a program in C++ that will comminicate with a PHP script. But we dont know how to get the variables from the program. We got it figured out with perl/CGI, but PHP seems to be a better way to connect to SQL server. On PHP the GET works, its easy, but it's not secure enough. I need informtion on what headers does the PHP require to get the POSTed data from a program.

View Replies !
Different PHP Programs - 1 Registered User Possible For All?
I am new to php and I have three php softwares that I want to install on one website. I'm wondering if a person registers for one, is it possible that he can access the other softwares also? Otherwise that person will have to register three different times for the same website to access all the resources.

If it is possible, will I have to change anything?

View Replies !
Running Console Programs
Does console programs free memory during the execution ? Until now i thought that a script never releases memory until the end is reached. But now i found the term GC a few times while reading about Zend Engine 2.

Also the PHP-GTK page mentions that there is no memory deallocation. But how can one write a GUI program without memory control?

View Replies !
How To Make Programs Run Fast
I made a PHP Program that generates report. my only problem is it generates report for more than 30 mins when I try to access 150 employees and calculate its DTR.

Can anyone of you recommend me how too make my program run fast? Is there any code / program that I must use?

View Replies !
Multiple External Programs
I have a php script which when executed calls an external program. The external program goes off and figures some things out and the output of the program is returned as as an array to the calling PHP program. Next a second external program is called and the process is repeated. This goes on for 4 external program calls. The arrays are then analyzed and the results are outputted. Since the 4 external programs are independent of each other but each takes 3 5 minutes to run, I would like to run them all at the same time and then, when they are all done, proceed with the rest of the analysis.

View Replies !
Blocking 3rd Party Programs
a script in php or another language which lets you block any illegal 3rd party scripts/programs? Such as rsclient.exe is a auto-clicker which clicks a button automaticly for how ever long you want it to do it in seconds. Of course it usually comes with a virus anyways but people use it. I need a script that stops any program or script to access the website scripts.

View Replies !
Exec - Executing External Programs
I have problem with executing external programs...
The code:
system("/home/pkunzip /arch.zip /3");
Does not work properly (nothing doeing)...

The code:
system("dir /w");
Working very-very good

View Replies !
Running Php Programs On Apache Server
I am using Apache web server and i am trying to run php programs over it My problem is that the php programs aren't running at all. Instead i am receiving messages "BAD REQUEST ERROR 400".

View Replies !
ImageMagick And Executing External Programs
I have installed ImageMagick and GhostScript (Windows/IIS) and IM is working from the command line (specifically the convert command) so now I need to get it working in php. To that end I have the following code:

<?php
system("c:Program FilesImageMagick-6.3.4-Q16convert.exe c:InetpubwwwrootexpgraphicsimgMagick est_file.ai c:InetpubwwwrootexpgraphicsimgMagickAIC.png",$retvar);
echo $retvar; // Now you can check the $retvar for errors
?>

c:Program FilesImageMagick-6.3.4-Q16convert.exe - the root folder for IM, location of convert.exe

c:InetpubwwwrootexpgraphicsimgMagick est_file.ai - the location of the target image to use for conversion

c:InetpubwwwrootexpgraphicsimgMagickAIC.png - the location, name, and format for the converted image

Using the above code, it does not create a new png image. Before I set the permissions for the Internet Guest Account user to "read & execute" for the cmd.exe file located at C:WINDOWSsystem32, $retvar was echoing a value of -1. Once I set the permissions on C:WINDOWSsystem32cmd.exe, $retvar is echoing a value of 1. In either case, the new graphic is NOT generated. Is there something wrong with my syntax?

View Replies !
Php Function To Implement C Language Programs
I want to know of a function in PHP that will allow me to run C language code. I am using a C library, for that I need to write C code. So how can I incorporate C code in a PHP program.

View Replies !
Programs Taking Too Long To Exit
I have PHP 5.2.1 running on Windows XP home. The problem I have is
that programs run in the command line are taking more than 10 minutes
to exit. Does anyone know a solution to this?

View Replies !
Sparse - New Framework For MySQL Programs
I believe I posted this once before, but enough has changed that I'm doing it again. 8-) I have been working on a project called Sparse, a framework specifically for creating PHP/MySQL programs. It is designed with usability in mind - it is meant to be as easy to use as possible.

Essentially, the majority of the backend is already done for you, and you can design and configure your website using a few extra HTML tags. It's also very flexible - you can easily integrate it with regular PHP code right in the file.

The new version also prints out every form in degradable Ajax, meaning that those users without Javascript ability will use the regular functionality.

The end result is far less code, meaning less development and maintenance time, fewer errors, and more ease in changing things around.

View Replies !
Executing Large Sclae Programs In Fortran Using PHP
I have some large scale programs in fortran in server and i would like
to execute them by giving input through HTML/PHP forms.Iam trying with
shell_execute... Is there any other approach to execute the programs
(fortran,matlab,'C' etc) in server using PHP.

View Replies !
Coding A Page To Allow Running/restarting Of Programs?
WOuld it be possible to code a php page to allow running/restarting of programs? Im trying to find a way toallow users with access tot he page the ability to START or RESTART crashed programs. These program present NULL security risk So this is why im asking. With this I wouldlike th epage to First ask for authentication before proceeding to the start/restart page. WHich I'd like to be *NIX based instead of usual php password stuff.

View Replies !
Scalability Of Perl Cgi Programs That Load Text Files
Suppose you have a perl program that is called by a web page to
generate another web page. The program is written to load data from a
text file on the server and make certain substitutions in the loaded
text prior to the output of html.

If one user is on the site, it should not be a problem. If many users
try to access it nearly simultaneously, will it be a problem?

example:

View Replies !
What's A Good PHP Editor To Edit Programs On FTP Server Online?
I will be writing a lot of PHP programs. I was wondering if you can recommend a good FTP program with PHP editor.

View Replies !
Click SUBMIT In Order To Submit The Form Instead Of Hitting ENTER.
created a form but when i fill out the form and hit enter it just refreshes the php (php). i have to actually click SUBMIT in order to submit the form instead of hitting ENTER.

View Replies !
Executing External Programs From PHP4 On Windows98 With Apache 1.3.14 For Win32
I did a search, and did not find anything specific on this topic, so here goes:

Trying to create a webpage button or link that when pressed executes Win98's "dialer.exe" with a phonenumber as a passed parameter. From my understanding, the exec function in PHP seems to work best with Linux (correct me if I am wrong please!). Are there alternatives?

The other bit of knowledge I have not been able to find (and really is outside this forum), is that dialer.exe is supposed to accept control from external programs, but I have yet to find docs or examples of such.

View Replies !
FORM SUBMIT PROBLEM - Get The Email To Submit On The Same Page
I would like my form to submit via email on the same page, once the form is submited it will then load the next page yourquote.php

I cant however get the email to submit on the same page, it switches almost striaght away to (yourquote.php) and sends the email from that page, i have a loader gif which is meant to load on the form page when submit is clicked which should disapear when the email is submitted only then should it change page.


View Replies !
Submit Form Does Not Submit And There Is No Change To The Database
I have this code and when i put the amount of tickets you buy and hit Return it does not submit and there is no change to the database, yet when you hit the submit button it works. Code:

View Replies !
Submit Form Without Clicking Submit Button
I was wondering if it is possible to use something like Javascript to make it so you don't have to click the submit button on a form to make it submit, while using php and mysql. e.g. Code:

View Replies !
Submit A Form Without The Submit Button
Is there a way to submit a form without the submit button?  Do I have to use the javascript - document.formname.submit();

View Replies !
My Submit Script Fails To Submit All
I have been working on putting together a website for a virtual airline and one of the features I tried to get in my website is a register page in which users enter info into fields and then hit submit to e-mail the info to my e-mail address. Code:

View Replies !
How To Submit A Form Without A Submit Button
how i can submit a form without using a submit button, i have to use this in one of my ongoing project.

View Replies !
Submit A Form But Without A Submit Button
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted.
For Example

<form name="search_form" method="post" action="search.php">
.....
....
Code: <input type="text" name="code" onKeyPress="if (event.keyCode ==
13) {document.search_form.submit()};">

....
....

How can I do it without a submit button?

View Replies !
Difference Between A Person Clicking The Submit Button In A Form Or Hitting The Enter Key To Submit The Form?
Is there a difference between a person clicking the submit button in a form or hitting the enter key to submit the form?

I have a form that gives a blank page when someone doesn't fill out the form and presses the enter key, but gives you an error code and redisplays the form if you click the submit button with your mouse.

View Replies !
Bypassing "submit" Or Auto Submit With Forms Data
In a regular HTML screen where you have inputs within a FORM, you usually have a SUBMIT input tag to submit the form data to the action'ed item in the form tag.

In alot of sites, I see that you can enter a field, then to its immediate right, is a GO button to submit the choice. Has anyone had experience with this, and if so, how would you code that in PHP? I have also seen where you can choose something from a dialog box, and as soon as its chosen, the form data is submitted. Is that possible in PHP also?

View Replies !

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