I have a chat application based on PHP and Flash, I know that is
necessary execute the socket server script from the console (#!/usr/
local/bin/php -q), but my problem is that I don't have SSH access to
the server where I have to deploy the application (a godaddy server).
Locally I could run the script even in my browser and the chat works
fine, but if I run the script in the server from the browser I
couldn't connect to it. Is there a way to run my socket script without
having SSH access to the server? 3 1860 st**********@gmail.com wrote:
I have a chat application based on PHP and Flash, I know that is
necessary execute the socket server script from the console (#!/usr/
local/bin/php -q), but my problem is that I don't have SSH access to
the server [...]
Meet your new friend, php.net/exec .
And, if you're out of luck (i.e. the server runs with safe_mode on), you can
always rely on the (very) dirty trick of using a "Connection: close" HTTP
request, along with some PHP magic so the script doesn't die when the HTTP
connection is actually closed. I suggest you to do some research about
that.
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org- http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
MSN:i_*************************@hotmail.com
Jabber:iv*********@jabber.org ; iv*********@kdetalk.net
On 3 jul, 21:14, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
steven.ro...@gmail.com wrote:
I have a chat application based on PHP and Flash, I know that is
necessary execute the socket server script from the console (#!/usr/
local/bin/php -q), but my problem is that I don't have SSH access to
the server [...]
Meet your new friend, php.net/exec .
And, if you're out of luck (i.e. the server runs with safe_mode on), you can
always rely on the (very) dirty trick of using a "Connection: close" HTTP
request, along with some PHP magic so the script doesn't die when the HTTP
connection is actually closed. I suggest you to do some research about
that.
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
http://acm.asoc.fi.upm.es/~mr/;http:....upm.es/~ivan/
MSN:i_eat_s_p_a_m_for_breakf...@hotmail.com
Jabber:ivansanc...@jabber.org ; ivansanc...@kdetalk.net
I have luck!! my server is not compiled with safe_mode off... could
you give me a few details about how to use exec command? This command
only execute something and finish it execution or wait until the
command finish? I try with the following doesn't work:
<?php
$command = $APP_PATH . "/controllers/chat.php";
exec($command);
echo("done...");
?>
when I execute the script, the browser never finished the script I
couldn't see "done..." st**********@gmail.com wrote:
On 3 jul, 21:14, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.orgwrote:
> steven.ro...@gmail.com wrote:
>>I have a chat application based on PHP and Flash, I know that is necessary execute the socket server script from the console (#!/usr/ local/bin/php -q), but my problem is that I don't have SSH access to the server [...]
Meet your new friend, php.net/exec .
And, if you're out of luck (i.e. the server runs with safe_mode on), you can always rely on the (very) dirty trick of using a "Connection: close" HTTP request, along with some PHP magic so the script doesn't die when the HTTP connection is actually closed. I suggest you to do some research about that.
-- ---------------------------------- Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
http://acm.asoc.fi.upm.es/~mr/;http:....upm.es/~ivan/ MSN:i_eat_s_p_a_m_for_breakf...@hotmail.com Jabber:ivansanc...@jabber.org ; ivansanc...@kdetalk.net
I have luck!! my server is not compiled with safe_mode off... could
you give me a few details about how to use exec command? This command
only execute something and finish it execution or wait until the
command finish? I try with the following doesn't work:
<?php
$command = $APP_PATH . "/controllers/chat.php";
exec($command);
echo("done...");
?>
when I execute the script, the browser never finished the script I
couldn't see "done..."
That means your chat.php script didn't complete before you PHP timeout
value.
Is this script supposed to be running all the time?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
================== This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Martin |
last post by:
I am a PHP newbie (just got my "Hello World" page working this
morning). I'm doing some R&D work to see if PHP is viable for a
situation I have. To accomplish what I want to do, I have to have the...
|
by: xunil |
last post by:
hi, could any one please help show me how to run a python script in
linux ?
when i try "python script.py" it just does nothing
this is the script iam trying to run
#!/usr/bin/env python...
|
by: Lisa Pearlson |
last post by:
Hi,
My php application (on Apache/Linux) needs to do the following:
The PHP script receives a request from a client (binary), asking for certain
records of data.
My PHP script loops through...
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
...
|
by: ANaiveProgrammer |
last post by:
Hi all
I have been trying to send a struct over socket. I tried to assign the
values of struct
to unsigned char array. I have attached both .c files at the bottom.
'Client.c' takes a
struct,...
|
by: MuZZy |
last post by:
Hi,
Sorry for a repeated post but i didn't receive an answer and will try to re-phrase my question:
How do i close an additional thread from the main thread,
if this additional thread is stuck...
|
by: Cornald Kruyt |
last post by:
Hi,
I've an database import script written in PHP which used ADO via COM.
It makes thousands of queries to a MS-SQL server. The problem is that
the process runs out of sockets.
The MSSQL...
|
by: silverburgh.meryl |
last post by:
Hi,
I read the following code which open a server socket for client
request.
However, i would like to know how can I change it so that i just
listen for client requestfor 10 seconds, after...
|
by: Nicolas Le Gland |
last post by:
Hello everyone here.
This is my first post in this newsgroup, I hope I won't be to much
off-topic. Feel free to redirect me to any better group.
I am getting strange timing issues when...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |