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.





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 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 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 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 !
Put A Job Application On Our Website For People To Apply Online Via This Application.
We are trying to put a job application on our website for people to apply online via this application.

Got all that communicating and recording to SQL as desired (i think and hope) but have now one small issue remaining.

We have more than one position open, so what we thought we would do is one one page list the jobs that are open at the time with their descriptions, salaries, etc..., with an "Apply Now" button that when clicked on would take them to the application page.

My question is, how could I make it automatically carry over the job they clicked on to automatically populate a "Position Applied For" field in the application?

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 A Program With Exec & Pstools/psexec.exe
I am trying to launch a program with PHP code. I am running Apache on Windows XP SP2. Code:

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 !
Fill Out Application - Pay - Submit Application
Well, I'm working with a client right now who has an application form, which upon completion, is submitted to her, and then the applicant is redirected to a page to make an initial payment for her services.

Her problem is that when people send the application, a lot of times they don't pay, which makes it lame for her to have to sift through all of them. What I am trying to do is make it so one form contains the application, takes them to the area to pay, and once they hit the button to pay with, the form is submitted. The way i have it now, there are two problems: Code:

View Replies !
Limit Db Query Limit Output
I'm using php 5  - recent mysql  -  This code was designed to display 2 colums of user input.  10 in each column.

Both cols display just fine-  my problem is after the colums display the rest of the db is displayed underneath of them.

Why is this happening and how can i fix it so that only the 20 items chosen are returned?

This db is expected to grow quite large so even querying the entire db will eventually be costly to server performance. Code:

View Replies !
Memory Limit Or Time Limit?
I have a script which takes user parameters and creates PDF catalogs that can't always finish. I think the bottleneck is a PHP or Apache configuration setting and ran some tests, but I don't know what to make of the results.

I started with the following settings and ran the same parameters each time:

Apache Timeout: 30
PHP max_execution_time: 30
PHP memory_limit: 8M

In each of 5 runs the script was cut short between 30 and 32s of execution time and used between .5MB and 6.5MB of memory. Code:

View Replies !
PHP And Network Programming...
I'm sort of like stucked here with some architecture that I need to come out with. Currently I'm planning to develop a system that will enable the manager to be notified and take action on a certain kind of transactions that I want to do.

First of all, I'm trying to connect the PHP socket to a server which is running at a manager's office. Well, let's consider that the IP for that office is a fixed ip.

My problem will be if the particular manager's computer is within a LAN itself, they would have their own ip by themself. I can't develop the program that will connect to the PC within the LAN because the program will not be able to find the server that is within the LAN itself.

anyone with any ideas on how to do this? it had been torturing me for the past few weeks, just hope that I can just walk out of this torture chamber in one piece.

View Replies !
Network Monitoring
if any one could give me advice on how to monitor our network and display a page, saying wether everything is o.k or not!

View Replies !
Search The Network
is it possible with php to search new content on internet sides with an daily php cronjob? Are there any php-tool (to search and save into xml or databases; and cronjob-tools) available?

View Replies !
Shared Network
I just discovered that if a person has logged in,another person who opens up index.php gets to view the first persons page. I dont know if this is because of the shared net connection or whether its a flaw in the script.

Also, if one person has logged in, another person having access to the u/n and p/w can log in to the account at the same time. Clearly, my login.php and index.php are flawed.

View Replies !
Friend Network
Does anyone have any idea on how to manage a network where people can search users in the database and add them as a friend.

I have an idea on how to search for other users but then to save them as friends in the db I have no clue how to even start. Can anyone give me a suggestion on how to start or show me anywhere that I might find some useful information at?

View Replies !
Php/mysql Over Network
I have about 20 sites to rework so that they run under php 4.3 - reworking globals, etc. and am trying to find a way to do this without too many headaches. I have 4.2 running smoothly on my machine, where I have copies of the on-line sites, and need to keep it that way. I'd like to install 4.3 on another machine, connected to mine via simple network. Will that 2nd machine be able to access the "sites" installed on my machine, as well as the mysql databases?

View Replies !
XCOPY Across Network
Is there any way that i can use php to copy a file from the webserver local drive to another network drive. (both windows)

I can do this fine using a batch file on the webserver but cant get it to work through php. Ive tried using exec and system but these wont work. I think it might work if the destination folder had an IUSR_ account but this isnt possible.

system('xcopy c: emp1 c: emp2'); - works fine
system('xcopy c: emp1 y: emp2'); - dosent work, doesnt work if enter full network path either.

View Replies !
Network UserID
Trying to build a dept website. Is there a way to get the network login id(the corporate network) of the users visiting my page? I plan to use this to control site access and hate to ask them to do a logon again. The OS is XP Pro.

View Replies !
Authentication On Network
I'd like to implement a user authentication function which allows one username/pwd to be used from one computer only.

For example, when a client registers with our application, I'd like to get their MAC or their computer unique information, so that next time they log in, I want to make sure that they log in from the computer that they register, not others. I want to make sure that they don't share their username/pwd to anyone else to use.

View Replies !
Network And RFID
I have the network and RFID reader switched to every computer. need to get the information from RFID reader, The question is if it is possible to get the information from the serial ports of remote computers using PHP? Because PHP is the interpret language and actually it executes on the Server, or I misunderstood smth.

View Replies !
PHP Odbc_connect() Across Network Woes!
I'm having trouble connecting to a folder of DBF files using a system DSN ODBC connection as follows: PHP Code:

View Replies !
Get A List Of Network Interfaces In PHP?
I've got a utility I'm working on, and I want to be able to list for
the user all the current network interfaces on the machine. Is there a
way to do this in PHP? PHP 5.0.3, Mandriva Linux 2005 (2.6 kernel).
I'm not actually in front of the machine in question, and I don't
recall the minor kernel version, or the minor version of Mandriva...

Any thoughts? I'd prefer not to have to run the script as root,
incidentally. I realize I could run as root and then just parse the
output of ifconfig, but I assume there's a more intelligent way to go
about what I'm trying to do.

The purpose of this utility is to allow me to issue a ping, from a
specified interface (including virtual interfaces, e.g., eth0:1), and
test for connectivity from the webserver to the the address i am
pinging, through the specified network interface (rather than always
pinging from the default/primary interface of the machine).

Any thoughts? How would I go about this? I haven't been able to come
up with a way to do this, short of running as root and parsing
ifconfig, as I mentioned above.

View Replies !
Execute A Network Command
I'm trying to execute an Network command with PHP exec() function but
i can't.
The PHP script looks like the following:

<?php
...
exec('PTtypeMyapp');
...
?>

When i execute this command in the windows shell i've no problem, but
when i use PHP exec() function it simply don't run. It seems that the
instruction is jumped.
I guess it isn't a PHP problem because when i make:

<?php
...
exec('C:WINDOWSNOTEPAD:EXE');
...
?>

NOTEPAD is correctly opened.

Probably the problem has to do with the way the 'Path' is typed.

View Replies !
Set The Include_path In Php.ini Any Network Drive
We are working on a program to read the tnsnames.ora file. When we try and set the include_path in php.ini any network drive it can not find the file. We can see that the file is there and if we set the include_path to a local drive it works without a problem. We Have tried all the following

include_path="G:orawin
etworkadmin"
include_path="EASTvol1orawin
etworkadmin"
include_path="111.11.11.111vol1orawin
etworkadmin"

None work. Any Ideas?

View Replies !
LAMP On A Local Network
I'm new to all this and I am trying to set up a web sever over a local
network. I currently have two boxes attached via a switch. Box 1 is
configured with windowsXP and the other with Fedora3.

The linux box has Apache installed and appears to be running ok. When I use
IE to access the site I get the response : "Page cannot be displayed" or
"The web page you requested is not available offline" depending what is
entered in the address control.

On the Linux box, if I use the command netstat -atn, this shows a host
192.168.123.10 listening on port 80

In the terminal window on the XP box, (192.168.123.12) when I ping
192.168.13.10 I get a successful response. If I telnet 192.168.123.10 80 I
get "could not open connection to the host on port 80:connect failed"

Does anybody have any suggestions /commands that will help me resolve this.

Also does anyone have a link to a good article recommending a development
set-up that includes the physical configuration as well as development tools
for a first timer.

View Replies !
PHP4 Network Functions
I'm pretty sure that this problem has nothing to do with PHP and a whole lot
to do with my server config, but I've got no idea where to start.

On my server I can't get any of the network functions to work, eg getmxrr()
returns an empty array whereas on another server it will return a populated
array.

Sendmail functions perfectly and I can ping the remote machines, so it's not
a problem with iptables stopping outgoing traffic, or with named.

Is anyone able to send me in the right direction ?

View Replies !
Copy()-problem Over A Network
I have a problem with accessing files on other computers in my network.
The network is a Windows 2000 workgroup network and I have administrator
rights....

This works (from the directory copytest I copy something to copytest2):

<?php
copy(&#3905;_17340.jpg', 'D:copytest2 est.jpg');
?>

The next bit does not do the job (from the same directory to a networked
one):

<?php
copy(&#3905;_17340.jpg', 'V:copytest2 est.jpg');
?>
It gives me the following message:
Warning: copy(V:copytest2 est.jpg): failed to open stream: Permission
denied in D:localwebcopytestcopytest.php on line 2
(computernamesharename gives the same message).

View Replies !
List All Computer In Network
is there anyway to list all the computer name or ip or both in my local network?

View Replies !
Trace Route Over Network
What's the best way to do this, I always get rooted by raw socks!

View Replies !
Access Network Files?
I'm making a script to read a certian file in 10 different machines. The problem is: If a machine is down, or inaccessible, then PHP will continue to "try to access" that file until a timeout occurs.

Is there a way to "ping" a machine to see if it exists, without having to wait for a timout? Currently, I'm using the following code:

View Replies !
Using PHP To Copy A File Over The Network
im using IIS and php 4, im trying to write a bit of code that will cope a file from 1 network location to another

i have tried 2 methods using the copy command, the first is mapping the network location onto the webserver

then going copy('x:example',... etc

the other method is using UNC paths, both work fine if i call the php script from the command line like c:phpphp.exe c:myscript.php
this works fine but from a browser i just get file cannot be found,

i have tried setting setting various permissions on the destination server, tried changing the IUSR_ account to a domain account etc,

View Replies !
Php Include On Network Drive
I've recently setup apache with an alias to my network drive, so when I type

localhost/work/

it will fetch the network address

//marge/share/www/

when I type

localhost/work/index.php

I get the following error:

Warning: Failed opening '//marge/share/www/index.php' for inclusion (include_path='.;c:php4pear') in Unknown on line 0

Is there a setting in PHP which I need to change for it to have access to my drive? or am I missing something??

View Replies !
Ms Access On A Network Unit
I have to access a MS Access database, but the problem is that the database is in a shared network unit. I'm having trouble accesing the network unit. I can't even open a txt file on the network unit. It outputs: Quote:

Warning: fopen(f: est.txt): failed to open stream: Invalid argument in c:web
eporte_test_new.php on line 5

but if I change the file to c: est.txt it does open the file. I'm thinking that since php executes commands as the user SYSTEM, maybe this user doesn't have acces to the network unit.

View Replies !
Affiliate Network Script
does anyone know of anywhere that sells these kind of scripts? that allow you to setup your own multi merchant affiliate network? not just a one merchant solution.

I found Affiliate Network Pro, but it doesnt look very good. does anyone know of any others? maybe i could hack Post Affiliate Pro 3 and turn it into a network, anyone know how hard that might be?

View Replies !
Network Inventory Script
does anyone have a script that can "scan a network" for live IP's? would really be helpful if someone could post either the script or a download.

View Replies !
Connect To Network Share
Is it possible to retrieve a file from a remote server via a PHP script? For example, lets say there's a log file on a remote server that you want to retrieve each day, sort the log files contents, then dump the info into a MySQL database. I guess the required steps would be:

1.) Connect to the remote server. Possibly a Windows share.
2.) Suppy the login credentials.
3.) Download the file from the remote server.
4.) Chop-up the file however you wish.
5.) Write info to database.

View Replies !
Network Status Script
I'm trying to find a very basic script/app that will allow me to create a web page with the current status of a few systems. I'd like to be able to edit it easily, through a web backend, change the status from red to green, add some notes about ETAs, etc. I've searched all over, and can't even seem to come up with something that remotely fits the bill that I might be able to customize.

View Replies !
Network Connect Query
i want to connect to a server, give it some data then check it's response

i think I can work out how to do it with fsockopen and fput and fgets but the query i have is does anyone know of a prgram i can run which will simulate a server on a given tcp port and display what it is the client sends when i attempt to connect to the server...

View Replies !
ODBC Connection Over A Network
I'm struggleing with how to get my DSN for an odbc connection that is over a network (i.e. on another drive). The database I'm trying to connect to is an Access database and does not have a username or password required to connect to it. However, I'm not sure what DSN I should be using to connect to it. If anyone can help me with this I would GREATLY appreciate it. I'll post my code below:

//Access connection
$access = odbc_connect('','','');

//MySQL connection
$msql = mysql_connect('localhost','root','');

//Open connection to Access Database
if ($linkID == false){
print "The connection to the Access database failed.";
}else{
print "The connection with the Access database was made successfully.";

//Open connection to MySQL Database
if($linkID == false){
print "The connection to the MySQL database failed.";
}else{
print "The connection with the MySQL database was made successfully.";
}
}
odbc_close($access);
mysql_close($msql);

View Replies !
Login Being Shared Across Network
I have a login script which I use on a large popular website. Just recently a MAJOR security flaw has been detected.

Over a large internal network if a user logs in on one machine, other machines are automatically logged in to that account. So if an admin logs in, every machine on the network can access that account!

Any ideas why?

View Replies !
Accessing LPT1 Across A Network
I'm 99% sure that this can't be done, but I'd figure I might ask; we have an Eltron printer that we send print codes to. I would like to access the lpt1 port on say 192.168.122.124 from 192.168.122.123 so that I can send it the print commands itself.

as far as i can tell it has to be at least shared before we could try something like net use ltp1 and copy files to it. I tried using dio_open but to no avail.

are there any pointers anyone could give me to go in the right direction?

View Replies !
Accessinging Phpmyadmin Through Network
I recently download wamp to my desktop. I would like to be able to access phpmyadmin via my laptop which is on the same network as the desktop. I was able to gain access to the webroot folder by configuring the httpd.config file but I can't gain access to to phpmyadmin. I tried adding a user with the host name being my laptops IP but that hasn't worked.

Is there anything that you guys could suggest that might help me out? Do I have to rename to host from localhost to the desktops ip?

PS I am currently trying to access phpmyadmin from my laptop by adding the url:

192.168.1.100/phpmyadmin

to the browser.

View Replies !
Intranet / Network Password
In our network each person has an individual username/password to log on. This password is changed regularly.

I am creating an Intranet website containing various sections and want to know if it is possible to provide a log in page for each section.

The log in should be the users own username/password that they use to initially log onto the network.

Is it possible to incorporate their username/password into the intranet site?

View Replies !
MySQL Limit Without Limit
This may sound confusing and unnecessary to some, but it is pretty much required for me to be able to make limit more flexible.

SELECT * FROM myTable LIMIT 0, 10 (gets first 10 records)

What I need is:
SELECT * FROM myTable LIMIT 0, ROWCOUNT (gets all records)

The problem is I'm trying to find what to put for ROWCOUNT without needing a second query to determine ROWCOUNT. I know I can just do SELECT * FROM myTable, but this will cause me to duplicate alot of data. Therefore, I really just want to know how to get ROWCOUNT.

View Replies !
Blank Pages When Connecting From NT Network
When browsing to my online PHP pages all PHP content
is gone when connecting to the net from within an
Windows NT network.

View Replies !
Jet ODBC Connection Over Internal Network
We have an Access database that has been our bug reporting and tracking database for 6 years now. It is a .mdb file on one of the company servers with shared access. I am trying to establish a connection with this file for display purposes only from my web server which is just an NT station with Apache and PHP (strictly intranet usage)

I have read/write priveleges on this NT station to the location of the .mdb file. I have tried mapping a drive to that location, and connecting using UNC notation. No matter how I connect (I've created a system DSN with odbc_connect and using $conn = new COM("ADODB.Connection") I always get this error...

Warning: (null)(): Invoke() failed: Exception occurred. Source: Microsoft JET Database Engine Description: The Microsoft Jet database engine cannot open the file 'G:ug databasesmgs_tblsugtables.mdb'. It is already opened exclusively by another user, or you need permission to view its data. in C:Program FilesApache GroupApache2htdocsacquisitionviewbug.php on line 11

It's definitely set up for shared access, with locked records. The system has full priveleges to the location it's stored. What setting am I missing here? Here are the lines of code used to try to establish the connection. PHP Code:

View Replies !
Accessing Network Files Via A Script
I'm running IIS 5 and php5. I have tried the following

if (opendir('\serverfolderTEST')){
echo "dir";
} else {
echo "no dir";
}

it always echo's "no dir" I've tried various different ways to do the unc path such as:

//server/folder/TEST
serverfolderTEST
i've even tried mapping the drive on the server
I:TEST

and others. I know it's not a permissions issue, I have the folders set to everyone having full control.

View Replies !
Accessing Files/dir On A Windows Network
I need to access files on a Windows network. So basically the location would be serverdir1dir2 or something like that. I'm running this PHP script on a different server (call it serv2) that runs IIS. My code is something like this:

$dir = "serverdir1dir2";
if (is_dir($dir)) {
echo "IS DIR!
";
    if ($dh = opendir($dir)) {
       /*More stuff*/

It doesn't even recognize it as a directory.

Now I figure the problem is authentication. Basically all users in a domain (call it 'allusers') can access server and these files. But the scripts in serv2 (the one where PHP runs) is authentication anonymously using the account ISUR_SERV2, which is an account local to the serv2 server and not in the domain 'allusers'.

So I tried authenticating just this script using an account in the allusers domain (my own). However it still doesn't work. And I know for a fact that serv2 is connected to the network.

View Replies !
Localhost Ok On 1 Comp But Not Laptop On Network?
This is really more of a networking question, but I hope somehere here has done this before.

I've got PHP, Apache and MySQL installed and running good on my desktop (win xp pro), a wireless router with a WEP key and a laptop with a wireless card. The laptop can access the net no problem. Code:

View Replies !

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