Launching A URL
When I am executing a PHP routine, I would like to start a page on
a server. Could be also interesting to receive back the answer so
I can use it contents in my program.
In other words as a sample when I am at some point of execution of
a my PHP routine I would like to send to the network:
http://www.someserver.com/somefunction.php?&user=$auser
Eventually I would like to receive in some way the answer page from
the server.
It's possible to do this?
View Complete Forum Thread with Replies
Related Forum Messages:
Launching Application
I developed an internal website (hosted in a company server), which contains a few php scripts (forms users fill out and e-mail to others upon send). I have an e-mail instruction in the scripts, with a list of e-mail addresses. I would like to change this so users can launch Lotus Notes from the script upon sending, and choose to who send the form (instead of having fixed e-mails in the script). The company has given me the path where the .exe program resides on the server.
View Replies !
Launching Second Script When First One Finishes
I have numerous PHP scripts that connect to our Oracle database and export csv files. The amount of time it takes for each script to finish varies. Sometimes it takes 10 minutes, sometimes 30 seconds. I would like to figure out a way to have the first script run and when it finishes, launch the second script and so on and so on.
View Replies !
Launching Files Locally
I have PHP and Apache installed on a windows box that is attached to my home theater. I wrote some code that indexes the contents of a directory that has some video clips etc in it, and the outputted HMTL is nothing more than a series of hyperlinks to these files, with some CSS to liven it up a bit. The problem is this: when I click on one of the links, rather than launch the file, it attempts to "download" it (even though the file resides right there on the machine anyway). In my hyperlinks, I specified to use the "file:" protocol instead of HTTP. I really just want it to launch the file.
View Replies !
Launching PHP From HTML Form
i build an app using PHP/MySQL/web. the APP and PHP programm are both located on the CD. step 1: i want it to a first interface (installation phase) to be an HTML page. step 2: I want it to get some informations for the installation step 3: i want the form to launch a PHP page (on the CD) and using the PHP.exe (on the CD) step 4: the PHP page send my modules using FTP step 5: once the FTP transfert is finished, the PHP page open a new page (that has been just uploaded) on the web server. my problem is in step 3, how is it possible to launch a PHP script from an HTML page which is not on a web server?? I can do it easily with a SHELL script but i prefer the graphic interface of an HTML form. I know it is either possible using GTK but i don't want to use it because i'm not surre the client has a JVM.
View Replies !
Launching Community Site
I'm creating a community website, and I want the following features: - members are able to write reviews - members are able to post classified ads (I'd like to be able to charge money for this) - ability in the future to create groups within the community. Can anyone suggest a content management system (CMS) or other off-the-shelf solution? Drupal springs to mind, but then I don't have a lot of experience with these kinds of builds, so I may be missing something that is out there.
View Replies !
Launching A Background Script From Php In Windows/IIS
I'm trying to build a PHP page which launches another php script to be run in the background. The web page should return immediately, while the background script may run for 10 minutes or something. Unfortunately I'm getting all kinds of weird behaviour.. In my main script I'm using exec() (also tried the other options) to start a ..bat file. This actually works, the batch file is launched and is able to write something to disk.. Now if I put the following line in the batch file: c:phpphp.exe -q backgroundscript.php then instantly I'm seeing about 30 php.exe processes being created, but nothing seems to be happening really. The processes seem to be dying immediately and replaced by new ones. So apparently php is trying something but fails and tries again. Both the script and the batch file work fine from the command line. Group 'Everyone' has read/execute rights for the batch file, the php script and php.exe. I have tried prefixing the command with START /b or cmd.exe /c but neither seem to make any difference. Also I tried redirecting stderr, stdout and stdin to NUL Server is Win2k, IIS5, php4.3.0. Searched the php docs, tried suggestions but it doesn't work, maybe because they use Apache. My guess is that the anonymous user IUSR_* doesn't have the rights to do something, but I can't figure out what.
View Replies !
Launching An Application: Does PHP Limit Network Connections?
I am having a problem using PHP to launch an application on the server. All the basics work, but I cannot launch more than 4 instances of the application. This application functions as a server itself, and I specify the port number when I launch it, so my theory is that I am reaching some limit on network connections. This is my basic launch sequence: <?php $command = 'c:Program Files (x86)myprogmyprogram.exe' $arguments = ' /Port:' . $port; exec('C:PsToolspsexec.exe -accepteula -d -s "' . $command . '" ' . $arguments . ' 2>&1', $output); ?> Note that I am using psexec because I need to keep track of the process ID number and kill the application when a user logs out. I can provide more details if needed, but if there is indeed some upper limit on port connections, that would certainly explain what I'm seeing. Incidentally, if I try this same procedure launching "Internet Explorer", my limit is 9 (instead of 4). If I launch a non-network application, it seems that I can launch as many as I want without limit. Note: I am using Windows XP Professional x64 Edition SP1
View Replies !
Launching Several CURL Posts Without Waiting To Download Pages..
Hy there, ok, i`ll get to the problem: My php script has a function named curl(some curl options and instructions), it doesn`t matter that, what it matters: $var1 = curl("http://www.somedomain.com/somepage1.php"); $var2 = curl("http://www.somedomain.com/somepage2.php"); $var3 = curl("http://www.somedomain.com/somepage3.php"); $var4 = curl("http://www.somedomain.com/somepage4.php"); Ok, so it downloades the content of somepage_.php to the $vars, however somepage_s_.php contains several scripts which takes a verry long time for the page to download, so my script waits for each page to download, one by one, as line by line, what i would like do rezolve is to start the curl without waiting to download the first page, then the second and so on, it should start the download of all the pages at almoust the same time. That would be all, please help, i`ve lost 4 nights trying to get this fixed but no luck.
View Replies !
|