Hello,
There is some week than I trying to solve a critical error on my VirtualCron
script.
*First of all what is VirtualCron?:*
Virtual cron is script that`s call(http request) himself and doing the
jobs by the time(like a cron-jobs on linux, but this script build on php
and its make it
Maybe your problem are in the way you're calling your program by socket.
If you show me this part of the code, maybe i can help you.
Regards,
Igor Escobar
systems analyst interface designer
www . igorescobar . com
On Wed, Mar 25, 2009 at 4:01 PM, אלמוג בקו almog.b...@gmail.com wrote:
This is a part of the class:
private function _request() {
//URL information
$url= http://.$_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
$url_info= parse_url($url);
//Fixing port
if(!isset($url_info['port'])) $url_info['port']=80;
//Send Cron-data
$data
Try the ignore_user_abort(true);
Regards,
Igor Escobar
systems analyst interface designer
www . igorescobar . com
On Wed, Mar 25, 2009 at 4:21 PM, אלמוג בקו almog.b...@gmail.com wrote:
This is a part of the class:
private function _request() {
//URL information
$url=
I already wrote that..
ignore_user_abort(true);
set_time_limit(0);
sleep(1);
*
צור איתי קשר:* http://www.facebook.com/profile.php?id=682327963
On Wed, Mar 25, 2009 at 9:38 PM, Igor Escobar titiolin...@gmail.com wrote:
Try the ignore_user_abort(true);
Regards,
Oh, Sorry, I had not seen.
Well, I don't see anything wrong in your code, but maybe...if you find in
your apache config file, you can found for something similar to your problem
...
Sorry can't help you.
Regards,
Igor Escobar
systems analyst interface designer
www . igorescobar . com
On
אלמוג בקו wrote:
This is a part of the class:
private function _request() {
//URL information
$url= http://.$_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
$url_info= parse_url($url);
//Fixing port
if(!isset($url_info['port'])) $url_info['port']=80;
my script(cron.php) check the job and call by http-request
himself(cron.php).
I already solve the timezone problem, I set the timezone to Israel`s
timezone[works fine]:
//Set TimeZone
date_default_timezone_set(timezone_name_from_abbr(, 2*60*60, null));
*
צור איתי
אלמוג בקו wrote:
my script(cron.php) check the job and call by http-request
himself(cron.php).
I already solve the timezone problem, I set the timezone to Israel`s
timezone[works fine]:
//Set TimeZone
date_default_timezone_set(timezone_name_from_abbr(, 2*60*60, null));
I was talking
amm.. i don`t really know what is fast-cgi. well I think I don't use it.
however, thanks.
*
צור איתי קשר:* http://www.facebook.com/profile.php?id=682327963
On Wed, Mar 25, 2009 at 10:33 PM, Shawn McKenzie nos...@mckenzies.netwrote:
אלמוג בקו wrote:
my
hello,
This question was sent before but there is no good answer so :
When i see my phpinfo, Virtual Directory Support is disabled
How do I change this from disabled to enabled ?
I use php 5 and apache 2 on a linux FC5 server.
I also use a wampserver on a winxp workstation and here, it's
this
is never parsed to php.
Hope i´m making any sense here, bad english
Angelo
- Original Message -
From: Neil Hoggarth [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Monday, November 14, 2005 11:01 AM
Subject: [PHP] Virtual includes of PHP into SSI pages.
Hi Folks,
I'm
Real simple question
How do I change this from disabled to enabled.
Thanks
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Real simple question
How do I change this from disabled to enabled.
[/snip]
Flip the switch?
/subtle :)
This an IIS question. Please see
http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2
000/en/server/iis/htm/core/iicodirv.htm
--
PHP General Mailing List
I think I may be headed down the wring direction.
I'm using Apache.
What I'd like to be able to do is to
pass arguments to a script as though it were a directory.
Something like so
http://server.com/script.php/some-virtual/dirs/
On 11/15/05, Jay Blanchard [EMAIL PROTECTED] wrote:
[snip]
Real
[snip]
I think I may be headed down the wring direction.
I'm using Apache.
What I'd like to be able to do is to
pass arguments to a script as though it were a directory.
Something like so
http://server.com/script.php/some-virtual/dirs/
[/snip]
http://us2.php.net/dir
Jay Blanchard wrote:
[snip]
I think I may be headed down the wring direction.
I'm using Apache.
What I'd like to be able to do is to
pass arguments to a script as though it were a directory.
Something like so
http://server.com/script.php/some-virtual/dirs/
[/snip]
http://us2.php.net/dir
On Tue, Nov 15, 2005 at 02:50:53PM -0500, Brad Glonka wrote:
I think I may be headed down the wring direction.
Yeah, the Virtual Directory Support isn't really what its name
seems to be, it basically is enabled when php is compiled with
Zend Thread Saftey which only effects how certain things
Brad Glonka wrote:
The script does not give me any output.
I think this is what I need to enable.
No, as has already been said on the list. That virtual directory
setting has nothing to do with this AFAIK.
Are you running PHP as an Apache module or as CGI?
Jasper
--
PHP General Mailing
The script does not give me any output.
I think this is what I need to enable.
On 11/15/05, Jasper Bryant-Greene [EMAIL PROTECTED] wrote:
Jay Blanchard wrote:
[snip]
I think I may be headed down the wring direction.
I'm using Apache.
What I'd like to be able to do is to
pass
Hi Folks,
I'm attempting to diagnose an apparent problem with my Apache/PHP
server setup. The platform is SPARC Solaris 9. I'm running Apache httpd
2.0.55 and PHP 4.4.1, built from NetBSD pkgsrc.
I have a user who has .shtml (server side include) pages which include
PHP fragments using
Hi all i've try to configure Apache with Virtual Host in the main
configuration file of Apache i have modify like this:
#NameVirtualHost *:80
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for
your problem, as correctly outputted, is permission based, and as far as
i can tell, has nothing to do with PHP..
Jason
a.k.a kioto [EMAIL PROTECTED] wrote:
Hi all i've try to configure Apache with Virtual Host in the main
configuration file of Apache i have modify like this:
Message-
From: Jason Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 11:42 AM
To: a.k.a kioto; [EMAIL PROTECTED]
Subject: Re: [PHP] Virtual Host problem
your problem, as correctly outputted, is permission based, and as far as
i can tell, has nothing to do with PHP..
Jason
a.k.a kioto wrote:
snip
I have insert a file index.php in all main folder of virtaul host:
/usr/local/apache/users/default/index.php
/usr/local/apache/users/mysite/index.php
/usr/local/apache/users/brothersite/index.php
I have modified the file hosts in etc/hosts.
39.244.88.126 mordoch
Someone correct me if I am wrong, but haven't you just confused the
hell out of Apache? You have just declared three virtual hosts, all
listening on port 80, but apache has no way to identify them based on
the incoming packets. You need to add a ServerName directive to
each virtual host
please send it to Apache mailling list.
--- a.k.a kioto [EMAIL PROTECTED]
wrote:
Hi all i've try to configure Apache with Virtual
Host in the main
configuration file of Apache i have modify like
this:
#NameVirtualHost *:80
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache
Trying to use own php.ini file (rather than the one that the webserver
sees by default) for a web site (on a box that has many websites that
utilize the other) and used the following instructions, but it doesn't
seem to notice my own php.ini file.
When the PHP interpreter starts up, it
Robby Russell [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Trying to use own php.ini file (rather than the one that the webserver
sees by default) for a web site (on a box that has many websites that
utilize the other) and used the following instructions, but it doesn't
seem to
Hello pan,
Thursday, April 22, 2004, 8:19:39 PM, you wrote:
p rtfm on ini_set()
What on earth has ini_set() got to do with the web server not picking
up the alternative php.ini file located in the web root?
Sure it will allow you to change *some* of the ini variables, but that
wasn't even the
pan wrote:
Robby Russell [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Trying to use own php.ini file (rather than the one that the webserver
sees by default) for a web site (on a box that has many websites that
utilize the other) and used the following instructions, but it doesn't
Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello pan,
Thursday, April 22, 2004, 8:19:39 PM, you wrote:
p rtfm on ini_set()
What on earth has ini_set() got to do with the web server not picking
up the alternative php.ini file located in the web root?
Sure it
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
pan wrote:
Robby Russell [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Trying to use own php.ini file (rather than the one that the webserver
sees by default) for a web site (on a box that has many websites
Hello pan,
Thursday, April 22, 2004, 8:36:51 PM, you wrote:
p on most servers ini_set will be the best you can hope for
p security settings won't allow alternative php.ini file reads
p that's why
Perhaps it would have been more useful to state this in the original
post.
--
Best regards,
on most servers ini_set will be the best you can hope for
security settings won't allow alternative php.ini file reads
If we're talking about Apache, you can place php config commands in an
.htaccess or httpd.conf file. Those files can easily be associated with a
particular VirtualHost.
Rick Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
on most servers ini_set will be the best you can hope for
security settings won't allow alternative php.ini file reads
If we're talking about Apache, you can place php config commands in an
.htaccess or httpd.conf
Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello pan,
Thursday, April 22, 2004, 8:36:51 PM, you wrote:
p on most servers ini_set will be the best you can hope for
p security settings won't allow alternative php.ini file reads
p that's why
Perhaps it would
I've been trying to use virtual to include a .shtml file that is outside
of my current directory (one level up). I've tried the following:
a) virtual(../header.shtml);
b) virtual($_SERVER['DOCUMENT_ROOT'] . /header.shtml);
c)
On Wednesday 03 December 2003 12:51, Ralph Guzman wrote:
I have a new installation of PHP 4.1.2 and it appears I cannot run php
scripts outside of apache root directory.
How did you come to this conclusion? Was there an error message? If so, what
did it say? If there was no error message, then
pages appear to be loading faster. I guess compiling from source provides
better performance than installing using rpm.
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 1:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Virtual Directory
I have a new installation of PHP 4.1.2 and it appears I cannot run php
scripts outside of apache root directory. I look at phpinfo() and I saw
Virtual Directory Support is set to disabled. I'm suspecting this could me
the problem, but I have not been able to find anything on google or the
lists
At 03:09 28.02.2003, John W. Holmes said:
[snip]
Can anyone with Apache verify that you can pass arguments inside of a
virtual() call? Something like:
Virtual(script.pl?id=1)
And have $id available within script.pl.
I don't have access to an Apache server
At 03:09 28.02.2003, John W. Holmes said:
[snip]
Can anyone with Apache verify that you can pass arguments inside of a
virtual() call? Something like:
Virtual(script.pl?id=1)
And have $id available within script.pl.
I don't have access to an
TR Friday, February 28, 2003, 12:09:30 PM, you wrote:
JWH Can anyone with Apache verify that you can pass arguments inside
of
a
JWH virtual() call? Something like:
JWH Virtual(script.pl?id=1)
JWH And have $id available within script.pl.
JWH I don't have access to an Apache server
Hi,
Friday, February 28, 2003, 10:41:24 PM, you wrote:
TR Friday, February 28, 2003, 12:09:30 PM, you wrote:
JWH Can anyone with Apache verify that you can pass arguments inside
JWH of
a
JWH virtual() call? Something like:
JWH Virtual(script.pl?id=1)
JWH And have $id available within
Can anyone with Apache verify that you can pass arguments inside of a
virtual() call? Something like:
Virtual(script.pl?id=1)
And have $id available within script.pl.
I don't have access to an Apache server right now to test, so thank you
very much.
---John W. Holmes...
PHP Architect - A
Hi,
Friday, February 28, 2003, 12:09:30 PM, you wrote:
JWH Can anyone with Apache verify that you can pass arguments inside of a
JWH virtual() call? Something like:
JWH Virtual(script.pl?id=1)
JWH And have $id available within script.pl.
JWH I don't have access to an Apache server right now to
Hi,
Friday, February 28, 2003, 1:16:56 PM, you wrote:
TR Hi,
TR Friday, February 28, 2003, 12:09:30 PM, you wrote:
JWH Can anyone with Apache verify that you can pass arguments inside of a
JWH virtual() call? Something like:
JWH Virtual(script.pl?id=1)
JWH And have $id available within
On my phpinfo() it shows Virtual Directory Support to be DISABLED .. does anyone know
what the switch setting is called in the php.ini file to ENABLE this setting?
Thanks!
Hi all,
I'm trying include .php files which reside in alternative directories or
sub-directories. Such as a file which reside in www/chat/page.php, and for
this page I would like to include a file which resides in www/forum/include/
I've tried the following which just results in a error:
include
Gregory --
[You know, you shouldn't just reply to any old message and start a new
topic; send a fresh message to the list instead so that it will be the
start of a new thread.]
...and then Gregory Barker said...
%
% Hi all,
Hello!
%
% I'm trying include .php files which reside in
PROTECTED]
Subject: [PHP] Virtual includes
Hi all,
I'm trying include .php files which reside in alternative directories or
sub-directories. Such as a file which reside in www/chat/page.php, and for
this page I would like to include a file which resides in
www/forum/include/
I've tried
At 11:12 AM 8/26/2002 +0200, you wrote:
I'm trying include .php files which reside in alternative directories or
sub-directories. Such as a file which reside in www/chat/page.php, and for
this page I would like to include a file which resides in www/forum/include/
Using $DOCUMENT_ROOT has
Hi everybody,
I would like to know how to make the directive user/group in
virtualhost working with php. I prefer to use php as modules but not
cgi, as it is more handy and easy for upgrade. How to do that ?
Thx !
Regards,
Ryan
--
PHP General Mailing List (http://www.php.net/)
To
I was surfing the internet today and found a site that offered a coin toss game in
PHP.The site claimed that it used the latest and most random computer algorithms
to do the Coin Toss.
In the next line it said that you (the player) would win 45% of the time.
I would like opinions how
; our planet is
the mental institution of the universe. - Unknown
From: Randy Johnson [EMAIL PROTECTED]
Date: Fri, 12 Apr 2002 01:07:53 -0400
To: [EMAIL PROTECTED]
Subject: [PHP] virtual coin toss 55%
I was surfing the internet today and found a site that offered a coin toss
game in PHP
On Friday 12 April 2002 13:07, Randy Johnson wrote:
I was surfing the internet today and found a site that offered a coin toss
game in PHP.The site claimed that it used the latest and most random
computer algorithms to do the Coin Toss.
In the next line it said that you (the player)
Re question 2:
You can set this using the php_value command in apache. I think you need to
have the SAPI version configured for this to work though. You might want to
check that out. I have only done this on XP, haven't tried it on linux yet.
VirtualHost *
ServerAdmin [EMAIL PROTECTED]
in phpinfo() displays
Virtual Directory Support disabled
what exactly is this, and where can i find documentation on it?
-Mit
___
Mit Rowe
(Will Mitayai Keeso Rowe)
Internet Services
DreamLabs/Branch Media Inc. ph:
you could try using require(/cgi-bin/folder/program.pl); instead
-
volim popit, volim zagalamit
- Original Message -
From: Gary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 30. listopad 2001 04:41
Subject: [PHP] virtual
What would cause a fatal error using virtual(/cgi
: Gary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 30. listopad 2001 04:41
Subject: [PHP] virtual
What would cause a fatal error using virtual(/cgi-bin/folder/program.pl);
?
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
-
From: Gary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 30. listopad 2001 04:41
Subject: [PHP] virtual
What would cause a fatal error using
virtual(/cgi-bin/folder/program.pl);
?
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
What would cause a fatal error using virtual(/cgi-bin/folder/program.pl); ?
TIA
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi. I use allways the include built in function to conditionally select
the php script that build the web page.
I need to add a header at he beginning of an already working script, but
the directive include don't work:
!-- #include virtual=../../../../headlvl4.shtml --
So I'm using
I use the PHP virtual() function to call a CGI script, and that works
fine. But I need to prevent the CGI from being executed directly, in
case someone tries to access its URL.
Since HTTP_REFERER is unreliable, I was wondering how others have
solved this problem ...
Egan
--
PHP General
On Tue, 28 Aug 2001 16:38:14 +1000, Jason Brooke [EMAIL PROTECTED] wrote:
I use the PHP virtual() function to call a CGI script, and that works
fine. But I need to prevent the CGI from being executed directly, in
case someone tries to access its URL.
Since HTTP_REFERER is unreliable, I
if you're using apache, something along the lines of the following untested
directives should prevent anyone but the localhost (which is where your
virtual() calls should be coming from) from accessing the cgi's via http
Directory /path/to/usr/cgi
order deny, allow
deny from all
allow from
On Tue, 28 Aug 2001 23:38:30 +1000, Jason Brooke [EMAIL PROTECTED] wrote:
if you're using apache, something along the lines of the following untested
directives should prevent anyone but the localhost (which is where your
virtual() calls should be coming from) from accessing the cgi's via http
We don't define any virtual hosts in httpd.conf; instead, we use a
custom handler hooked into post-read-request. So I won't be able to
define /path/to/usr/cgi in httpd.conf.
But if that concept will work in user .htaccess files, it would be an
improvement over my current techniques. I'll
On Wed, 29 Aug 2001 00:16:10 +1000, Jason Brooke [EMAIL PROTECTED] wrote:
It will work in .htaccess if you enable it, or you might even be able to use
something like:
DirectoryMatch ^/path/to/.*/cgi
(untested again)
After testing this I see that:
Apache uses the IP address of the remote host
After testing this I see that:
Apache uses the IP address of the remote host to determine whether to
allow or deny access.
Even though PHP is running on localhost, and making a request via the
virtual() function, Apache still knows the IP address of the remote
host, and uses that.
I
,Deny
Allow from env=CGI_REFERER
The environment variable CGI_REFERER does not exist unless Apache is
processing a request for the_cgi_caller.php in document root, and
thus requesting any file in the /cgi subdirectory via its URL results
in a HTTP Error 403 - Forbidden.
And since PHP virtual
I'm trying to include a .cgi using the virtual() function and then do a
string replace on a string w/in the included page. The virtual seems to
ignore the str_replace it just prints the virtual include w/out replacing
the word window w/ the word DOG in my example. What am I doing wrong?
?
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps
If those lines aren't you should get your code in your browser.
403 might be a rights issue. Say you created the file you're trying to open
as root you should chown it to the user under which
Hello-
I'm using the virutal hosting in Apache 1.3.19 and I was wondering how to I
load php as a module in apache for each virutal web site? anyone have a
good link telling you how to do this.. ie a tutorial on the topic? i've
read the docs on apache.org and it doesn't really say much at all
Wouldn't it be just to add, say,
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps
or approximation within the Directory/Directory
tags?
I think (fingers crossed here) that should do it...
--- Jay Paulson [EMAIL PROTECTED] wrote:
Hello-
I'm
Hi.
I am using Sambar Server on Win98SE, PHP 4.0.5. All is well.
The server supports virtual hosts. I am not sure of the terminology
outside of Sambar, but effectively, I can go to my browser and enter ...
local.site1.com
local.site2.com
etc.
And get different sites.
I have a set of PHP
Hi.
I am using Sambar Server on Win98SE, PHP 4.0.5. All is well.
The server supports virtual hosts. I am not sure of the terminology
outside of Sambar, but effectively, I can go to my browser and enter ...
local.site1.com
local.site2.com
etc.
And get different sites.
I have a set of PHP
Richard Quadling wrote:
I assume there is a variable somewhere?
Ideas/suggestions please.
I think its the predefined apache variable $DOCUMENT_ROOT (look under
predefined variables in manual), or try $SCRIPT_FILENAME, you may then
parse the part you need.
I use Linux so I am only
Does anyone know the way to make php4 running as NSAPI, work with named
virtuals? It seems to work only if it is a real virtual (with its own IP)
and not a named virtual. Any help is greatly appreciated
Tom Freeman
Web Analyst
StellarRAD Systems
an Everest Global Technologies Company
p |
80 matches
Mail list logo