php-general Digest 5 Apr 2009 12:28:13 -0000 Issue 6050
Topics (messages 291076 through 291087):
Possible Server Infection?
291076 by: sono-io.fannullone.us
291083 by: TG
Re: AJAX with POST
291077 by: Phpster
291080 by: Brad Broerman
291081 by: Skip Evans
291082 by: Skip Evans
291084 by: Phpster
291085 by: Phpster
291086 by: Bruno Fajardo
Re: ms-word reading from PHP on linux O.S
291078 by: Phpster
Re: Submitting URLs in IE
291079 by: Phpster
Re: I'm new
291087 by: Raymond Irving
Administrivia:
To subscribe to the digest, e-mail:
[email protected]
To unsubscribe from the digest, e-mail:
[email protected]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi all,
I was wondering if someone might know about a problem I'm having on
my server. It appears that I've been infected by a rogue PHP
script(?). Something has gone through my server and placed .htaccess
files in every directory that didn't have one with contents that look
like this:
Options -MultiViews
ErrorDocument 404 //graphics/cc/111152.php
The path is different for each file and corresponds to the directory
that it's in. The php document name is a different number for each
file I've found.
Does this sound familiar to anyone? What would be the purpose of
placing files like these in the directories? As far as I know, there
isn't a file called "111152.php" anywhere on my site, so this doesn't
make any sense to me.
I realize that this is a very general question, but I'm hoping that
someone has seen or heard of this type of thing before and can help me
eliminate the problem.
I'm using A2 Hosting and they don't know why this happened.
Thanks,
Frank
--- End Message ---
--- Begin Message ---
Had to deal with a rogue PHP based backdoor situation recently. Two remote
management scripts were installed somehow that would allow you to do
something like what you describe.
You probably want to download a fresh copy of the entire site (assuming you
don't have remote shell access and/or the desire to use remote *nix
commands to do any of this) and see if whatever your favorite editor is
has a "find in files" function.
Using this, I searched for all the files that may contain the PHP "eval"
function, or "fopen" or other commands that could potentially allow
editing/creating files or executing *nix commands or arbitrary PHP
functions.
Also, check the permissions on the files and directories on your site.
Another thing I did was to use a version control software to see if any
files changed after I redownloaded the site and if any new files were
added. I'm sure there's a way to do this with SVN or CVS or GIT or
something, but I used a Windows based system called Code Co-op.
If/when you find the script that may have allowed this, you can look at
your raw web logs and see who was accessing that file. You should be
able to at least get their IP address and with that, you can get some
information about them. Or just hand it over to the authorities or
whatever you want to do.
If you're really curious... if you find the backdoor script file, you can
modify it to either not function, or appear to function but not really do
anything bad, etc. More importantly, you could modify it to collect
information (what little you can at least) about the person accessing it.
This could include some javascript to get additional information about
their browser, OS, etc. Google "Browserhawk" for an example of what
information you can get from someone's browser.
Anyway, just some thoughts. Good luck!
-TG
----- Original Message -----
From: [email protected]
To: [email protected]
Date: Sat, 4 Apr 2009 16:12:06 -0700
Subject: [PHP] Possible Server Infection?
> Hi all,
>
> I was wondering if someone might know about a problem I'm having on
> my server. It appears that I've been infected by a rogue PHP
> script(?). Something has gone through my server and placed .htaccess
> files in every directory that didn't have one with contents that look
> like this:
>
> Options -MultiViews
> ErrorDocument 404 //graphics/cc/111152.php
>
> The path is different for each file and corresponds to the directory
> that it's in. The php document name is a different number for each
> file I've found.
>
> Does this sound familiar to anyone? What would be the purpose of
> placing files like these in the directories? As far as I know, there
> isn't a file called "111152.php" anywhere on my site, so this doesn't
> make any sense to me.
>
> I realize that this is a very general question, but I'm hoping that
> someone has seen or heard of this type of thing before and can help me
> eliminate the problem.
>
> I'm using A2 Hosting and they don't know why this happened.
>
> Thanks,
> Frank
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Apr 4, 2009, at 17:30, Skip Evans <[email protected]> wrote:
Hey all,
At the risk of being told this is a PHP and not a JS list, but also
knowing the discussions on this list, to the benefit of all I
believe, very wildly, I'm posting this JS code snippet for some
advice.
As I posted earlier, my AJAX app that uses a GET to post to the
server (and get a response), fails on IE with larger data, so I
thought I'd take a shot at writing a POST function, but so far I can
get it to get the data back, but the problem is by the time the data
has come back the function has already returned null back to the
calling function. What I need this function to do is wait for the
data to come back and then send it back to caller. Here's the
function. Any advice would be greatly appreciated. (The code to get
the appropriate object per browser has been omitted.)
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-
urlencoded");
http.setRequestHeader("Content-length", url.length);
http.setRequestHeader("Connection", "close");
http.send(url);
http.onreadystatechange = function() {//Call a function when the
state changes.
if(http.readyState == 4 && http.status == 200) {
alert('['+http.responseText+']');
return (http.responseText);
}
}
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Skip,
You didn't show the code to build the url variable but I would assume
that since you started with a get method you are tacking data onto the
end of the URL that is the called Ajax page.
I had the same issue at work correcting the VP's mistake of mixing up
post and get in his ajax call. The trick is to build the data
separately from the URL and pass it.
I do an ajax.open(URL) then an Ajax. Send(data) to send just the data.
I can post my entire function set if you want.
Bastien
--- End Message ---
--- Begin Message ---
Well, as the "A" in Ajax is asynchronous, there's no real way to make it
wait. What you would normally do is use a callback:
function createXHRObject( )
{
if (typeof XMLHttpRequest != "undefined")
{
return new XMLHttpRequest();
}
else if (typeof ActiveXObject != "undefined")
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
throw new Error("XMLHttpRequest not supported");
}
}
function sendAjaxRequest( websvcurl , params, callbackFn )
{
var xhrObject = createXHRObject();
xhrObject.open("POST", websvcurl, true);
xhrObject.onreadystatechange = function()
{
if (xhrObject.readyState == 4)
{
if( xhrObject.responseXML != null )
{
callbackFn (xhrObject.responseXML);
}
}
}
xhrObject.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
xhrObject.setRequestHeader("Content-length", params.length);
xhrObject.setRequestHeader("Connection", "close");
xhrObject.send(params);
}
-----Original Message-----
From: Skip Evans [mailto:[email protected]]
Sent: Saturday, April 04, 2009 5:30 PM
To: [email protected]
Subject: AJAX with POST
Hey all,
At the risk of being told this is a PHP and not a JS list, but
also knowing the discussions on this list, to the benefit of
all I believe, very wildly, I'm posting this JS code snippet
for some advice.
As I posted earlier, my AJAX app that uses a GET to post to
the server (and get a response), fails on IE with larger data,
so I thought I'd take a shot at writing a POST function, but
so far I can get it to get the data back, but the problem is
by the time the data has come back the function has already
returned null back to the calling function. What I need this
function to do is wait for the data to come back and then send
it back to caller. Here's the function. Any advice would be
greatly appreciated. (The code to get the appropriate object
per browser has been omitted.)
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", url.length);
http.setRequestHeader("Connection", "close");
http.send(url);
http.onreadystatechange = function() {//Call a function when
the state changes.
if(http.readyState == 4 && http.status == 200) {
alert('['+http.responseText+']');
return (http.responseText);
}
}
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--- End Message ---
--- Begin Message ---
Hey Bastien & all,
...D'oh! Thanks for the catch, yes, I am sending args on the
URL. But more to my problem, if I switch to POST will IE be
able to submit more data? If so, I can parse the URL down in
the function and build a proper post transaction, but my real
problem is IE can't submit, apparently, more than 2K through a
GET.
Do you know if POST can handle more?
Thanks tons for your reply!
Skip
PS. I'd very interested in seeing your set of functions.
Phpster wrote:
On Apr 4, 2009, at 17:30, Skip Evans <[email protected]> wrote:
Hey all,
At the risk of being told this is a PHP and not a JS list, but also
knowing the discussions on this list, to the benefit of all I believe,
very wildly, I'm posting this JS code snippet for some advice.
As I posted earlier, my AJAX app that uses a GET to post to the server
(and get a response), fails on IE with larger data, so I thought I'd
take a shot at writing a POST function, but so far I can get it to get
the data back, but the problem is by the time the data has come back
the function has already returned null back to the calling function.
What I need this function to do is wait for the data to come back and
then send it back to caller. Here's the function. Any advice would be
greatly appreciated. (The code to get the appropriate object per
browser has been omitted.)
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", url.length);
http.setRequestHeader("Connection", "close");
http.send(url);
http.onreadystatechange = function() {//Call a function when the state
changes.
if(http.readyState == 4 && http.status == 200) {
alert('['+http.responseText+']');
return (http.responseText);
}
}
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Skip,
You didn't show the code to build the url variable but I would assume
that since you started with a get method you are tacking data onto the
end of the URL that is the called Ajax page.
I had the same issue at work correcting the VP's mistake of mixing up
post and get in his ajax call. The trick is to build the data separately
from the URL and pass it.
I do an ajax.open(URL) then an Ajax. Send(data) to send just the data.
I can post my entire function set if you want.
Bastien
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--- End Message ---
--- Begin Message ---
But my function using GET does seem to wait.
Granted I cobbled it together from various samples and didn't
author it from my own deep understanding of the exact process,
but here's the snippet that does the real work.
req.open('GET', url, false);
req.send(null);
if(req.responseText) {
if(req.responseText.substring(0,7) == 'debug!!') {
alert(req.responseText.substring(7));
}
}
return(req.responseText);
It seems to wait until it has data to return, because it works
perfectly. I can send it a URL from another function and get
the data back from server to the function as expected.
The only part of it I'm unsure of is this:
req.send(null);
What does that do? As I said, I cobbled this function from
examples, got it working, and presto, was off and running.
Skip
Brad Broerman wrote:
Well, as the "A" in Ajax is asynchronous, there's no real way to make it
wait. What you would normally do is use a callback:
function createXHRObject( )
{
if (typeof XMLHttpRequest != "undefined")
{
return new XMLHttpRequest();
}
else if (typeof ActiveXObject != "undefined")
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
throw new Error("XMLHttpRequest not supported");
}
}
function sendAjaxRequest( websvcurl , params, callbackFn )
{
var xhrObject = createXHRObject();
xhrObject.open("POST", websvcurl, true);
xhrObject.onreadystatechange = function()
{
if (xhrObject.readyState == 4)
{
if( xhrObject.responseXML != null )
{
callbackFn (xhrObject.responseXML);
}
}
}
xhrObject.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
xhrObject.setRequestHeader("Content-length", params.length);
xhrObject.setRequestHeader("Connection", "close");
xhrObject.send(params);
}
-----Original Message-----
From: Skip Evans [mailto:[email protected]]
Sent: Saturday, April 04, 2009 5:30 PM
To: [email protected]
Subject: AJAX with POST
Hey all,
At the risk of being told this is a PHP and not a JS list, but
also knowing the discussions on this list, to the benefit of
all I believe, very wildly, I'm posting this JS code snippet
for some advice.
As I posted earlier, my AJAX app that uses a GET to post to
the server (and get a response), fails on IE with larger data,
so I thought I'd take a shot at writing a POST function, but
so far I can get it to get the data back, but the problem is
by the time the data has come back the function has already
returned null back to the calling function. What I need this
function to do is wait for the data to come back and then send
it back to caller. Here's the function. Any advice would be
greatly appreciated. (The code to get the appropriate object
per browser has been omitted.)
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", url.length);
http.setRequestHeader("Connection", "close");
http.send(url);
http.onreadystatechange = function() {//Call a function when
the state changes.
if(http.readyState == 4 && http.status == 200) {
alert('['+http.responseText+']');
return (http.responseText);
}
}
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--- End Message ---
--- Begin Message ---
Yep, much more
Bastien
Sent from my iPod
On Apr 4, 2009, at 21:24, Skip Evans <[email protected]> wrote:
Hey Bastien & all,
...D'oh! Thanks for the catch, yes, I am sending args on the URL.
But more to my problem, if I switch to POST will IE be able to
submit more data? If so, I can parse the URL down in the function
and build a proper post transaction, but my real problem is IE can't
submit, apparently, more than 2K through a GET.
Do you know if POST can handle more?
Thanks tons for your reply!
Skip
PS. I'd very interested in seeing your set of functions.
Phpster wrote:
On Apr 4, 2009, at 17:30, Skip Evans <[email protected]> wrote:
Hey all,
At the risk of being told this is a PHP and not a JS list, but
also knowing the discussions on this list, to the benefit of all I
believe, very wildly, I'm posting this JS code snippet for some
advice.
As I posted earlier, my AJAX app that uses a GET to post to the
server (and get a response), fails on IE with larger data, so I
thought I'd take a shot at writing a POST function, but so far I
can get it to get the data back, but the problem is by the time
the data has come back the function has already returned null back
to the calling function. What I need this function to do is wait
for the data to come back and then send it back to caller. Here's
the function. Any advice would be greatly appreciated. (The code
to get the appropriate object per browser has been omitted.)
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-
urlencoded");
http.setRequestHeader("Content-length", url.length);
http.setRequestHeader("Connection", "close");
http.send(url);
http.onreadystatechange = function() {//Call a function when the
state changes.
if(http.readyState == 4 && http.status == 200) {
alert('['+http.responseText+']');
return (http.responseText);
}
}
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Skip,
You didn't show the code to build the url variable but I would
assume that since you started with a get method you are tacking
data onto the end of the URL that is the called Ajax page.
I had the same issue at work correcting the VP's mistake of mixing
up post and get in his ajax call. The trick is to build the data
separately from the URL and pass it.
I do an ajax.open(URL) then an Ajax. Send(data) to send just the
data.
I can post my entire function set if you want.
Bastien
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Ajax can be both async and sync. Itsbthe fourth param in the open call
and I believe by default it's a sync call not async
Bastien
Sent from my iPod
On Apr 4, 2009, at 21:33, Skip Evans <[email protected]> wrote:
But my function using GET does seem to wait.
Granted I cobbled it together from various samples and didn't author
it from my own deep understanding of the exact process, but here's
the snippet that does the real work.
req.open('GET', url, false);
req.send(null);
if(req.responseText) {
if(req.responseText.substring(0,7) == 'debug!!') {
alert(req.responseText.substring(7));
}
}
return(req.responseText);
It seems to wait until it has data to return, because it works
perfectly. I can send it a URL from another function and get the
data back from server to the function as expected.
The only part of it I'm unsure of is this:
req.send(null);
What does that do? As I said, I cobbled this function from examples,
got it working, and presto, was off and running.
Skip
Brad Broerman wrote:
Well, as the "A" in Ajax is asynchronous, there's no real way to
make it
wait. What you would normally do is use a callback:
function createXHRObject( )
{
if (typeof XMLHttpRequest != "undefined")
{
return new XMLHttpRequest();
}
else if (typeof ActiveXObject != "undefined")
{
return new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
throw new Error("XMLHttpRequest not supported");
}
}
function sendAjaxRequest( websvcurl , params, callbackFn )
{
var xhrObject = createXHRObject();
xhrObject.open("POST", websvcurl, true);
xhrObject.onreadystatechange = function()
{
if (xhrObject.readyState == 4)
{
if( xhrObject.responseXML != null )
{
callbackFn (xhrObject.responseXML);
}
}
}
xhrObject.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
xhrObject.setRequestHeader("Content-length", params.length);
xhrObject.setRequestHeader("Connection", "close");
xhrObject.send(params);
}
-----Original Message-----
From: Skip Evans [mailto:[email protected]]
Sent: Saturday, April 04, 2009 5:30 PM
To: [email protected]
Subject: AJAX with POST
Hey all,
At the risk of being told this is a PHP and not a JS list, but
also knowing the discussions on this list, to the benefit of
all I believe, very wildly, I'm posting this JS code snippet
for some advice.
As I posted earlier, my AJAX app that uses a GET to post to
the server (and get a response), fails on IE with larger data,
so I thought I'd take a shot at writing a POST function, but
so far I can get it to get the data back, but the problem is
by the time the data has come back the function has already
returned null back to the calling function. What I need this
function to do is wait for the data to come back and then send
it back to caller. Here's the function. Any advice would be
greatly appreciated. (The code to get the appropriate object
per browser has been omitted.)
http.open("POST", url, true);
//Send the proper header information along with the request
http.setRequestHeader("Content-type",
"application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", url.length);
http.setRequestHeader("Connection", "close");
http.send(url);
http.onreadystatechange = function() {//Call a function when
the state changes.
if(http.readyState == 4 && http.status == 200) {
alert('['+http.responseText+']');
return (http.responseText);
}
}
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Ajax is asynchronous. The option of asynchronous or synchronous can be set
in the XMLHTTPRequest object (used by Ajax), but a synchronous call is not
Ajax.
Cheers,
Bruno.
2009/4/5 Phpster <[email protected]>
> Ajax can be both async and sync. Itsbthe fourth param in the open call and
> I believe by default it's a sync call not async
>
> Bastien
>
> Sent from my iPod
>
> On Apr 4, 2009, at 21:33, Skip Evans <[email protected]> wrote:
>
> But my function using GET does seem to wait.
>>
>> Granted I cobbled it together from various samples and didn't author it
>> from my own deep understanding of the exact process, but here's the snippet
>> that does the real work.
>>
>> req.open('GET', url, false);
>> req.send(null);
>>
>> if(req.responseText) {
>> if(req.responseText.substring(0,7) == 'debug!!') {
>> alert(req.responseText.substring(7));
>> }
>> }
>>
>> return(req.responseText);
>>
>> It seems to wait until it has data to return, because it works perfectly.
>> I can send it a URL from another function and get the data back from server
>> to the function as expected.
>>
>> The only part of it I'm unsure of is this:
>>
>> req.send(null);
>>
>> What does that do? As I said, I cobbled this function from examples, got
>> it working, and presto, was off and running.
>>
>> Skip
>>
>>
>> Brad Broerman wrote:
>>
>>> Well, as the "A" in Ajax is asynchronous, there's no real way to make it
>>> wait. What you would normally do is use a callback:
>>> function createXHRObject( )
>>> {
>>> if (typeof XMLHttpRequest != "undefined")
>>> {
>>> return new XMLHttpRequest();
>>> }
>>> else if (typeof ActiveXObject != "undefined")
>>> {
>>> return new ActiveXObject("Microsoft.XMLHTTP");
>>> }
>>> else
>>> {
>>> throw new Error("XMLHttpRequest not supported");
>>> }
>>> }
>>> function sendAjaxRequest( websvcurl , params, callbackFn )
>>> {
>>> var xhrObject = createXHRObject();
>>> xhrObject.open("POST", websvcurl, true);
>>> xhrObject.onreadystatechange = function()
>>> {
>>> if (xhrObject.readyState == 4)
>>> {
>>> if( xhrObject.responseXML != null )
>>> {
>>> callbackFn (xhrObject.responseXML);
>>> }
>>> }
>>> }
>>> xhrObject.setRequestHeader("Content-type",
>>> "application/x-www-form-urlencoded");
>>> xhrObject.setRequestHeader("Content-length", params.length);
>>> xhrObject.setRequestHeader("Connection", "close");
>>> xhrObject.send(params);
>>>
>>> }
>>> -----Original Message-----
>>> From: Skip Evans [mailto:[email protected]]
>>> Sent: Saturday, April 04, 2009 5:30 PM
>>> To: [email protected]
>>> Subject: AJAX with POST
>>> Hey all,
>>> At the risk of being told this is a PHP and not a JS list, but
>>> also knowing the discussions on this list, to the benefit of
>>> all I believe, very wildly, I'm posting this JS code snippet
>>> for some advice.
>>> As I posted earlier, my AJAX app that uses a GET to post to
>>> the server (and get a response), fails on IE with larger data,
>>> so I thought I'd take a shot at writing a POST function, but
>>> so far I can get it to get the data back, but the problem is
>>> by the time the data has come back the function has already
>>> returned null back to the calling function. What I need this
>>> function to do is wait for the data to come back and then send
>>> it back to caller. Here's the function. Any advice would be
>>> greatly appreciated. (The code to get the appropriate object
>>> per browser has been omitted.)
>>> http.open("POST", url, true);
>>> //Send the proper header information along with the request
>>> http.setRequestHeader("Content-type",
>>> "application/x-www-form-urlencoded");
>>> http.setRequestHeader("Content-length", url.length);
>>> http.setRequestHeader("Connection", "close");
>>> http.send(url);
>>> http.onreadystatechange = function() {//Call a function when
>>> the state changes.
>>> if(http.readyState == 4 && http.status == 200) {
>>> alert('['+http.responseText+']');
>>> return (http.responseText);
>>> }
>>> }
>>> --
>>> ====================================
>>> Skip Evans
>>> Big Sky Penguin, LLC
>>> 503 S Baldwin St, #1
>>> Madison WI 53703
>>> 608.250.2720
>>> http://bigskypenguin.com
>>> ------------------------------------
>>> Those of you who believe in
>>> telekinesis, raise my hand.
>>> -- Kurt Vonnegut
>>>
>>
>> --
>> ====================================
>> Skip Evans
>> Big Sky Penguin, LLC
>> 503 S Baldwin St, #1
>> Madison WI 53703
>> 608.250.2720
>> http://bigskypenguin.com
>> ------------------------------------
>> Those of you who believe in
>> telekinesis, raise my hand.
>> -- Kurt Vonnegut
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
On Apr 4, 2009, at 15:19, 9el <[email protected]> wrote:
On Tue, Feb 24, 2009 at 1:38 PM, Per Jessen <[email protected]> wrote:
Srinivasa Rao D wrote:
Hi all,
* How better, i can read ms-word doc files from PHP on LINUX
OS*.
[snip]
*Is there are any other softwares that can fetch text from MS-WORD
file?.*
Word documents reading using COM in PHP have a look
http://drewd.com/2007/01/25/reading-from-a-word-document-with-com-in-php
Lenin
www.twitter.com/nine_L
COM doesn't work on linux. Try using open office if available. What do
you need to do with the doc file?
Bastien
--- End Message ---
--- Begin Message ---
On Apr 4, 2009, at 14:07, Skip Evans <[email protected]> wrote:
Hey all,
I have an application that uses AJAX to submit a page created in the
FCKeditor. It builds a URL and then submits that to the server with
a JavaScript call like this:
req.open('GET', url, false);
In Firefox it works great for just about any size page you could
want, but IE just stops on even medium size pages.
Is this some kind of limitation in IE that can be increased with a
registry setting or something?
Any suggestions would be helpful, as I am a bit perplexed.
Would using POST rather than get to submit the URL to the server
handle more data?
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
-- Kurt Vonnegut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Skip,
Get limits you to about 2Kb of data. Post is the better way to handle it
Bastien
--- End Message ---
--- Begin Message ---
Hello,
You can try using WAMP or XAMPP:
http://www.apachefriends.org/en/xampp.html
http://www.wampserver.com/
WAMP is very easy to install but only works on windows
__
Raymond Irving
Create Rich Ajax/PHP Web Apps Today!
Raxan PDI - http://raxanpdi.com/
--- On Sat, 4/4/09, ®0L¥ <[email protected]> wrote:
> From: ®0L¥ <[email protected]>
> Subject: [PHP] I'm new
> To: [email protected]
> Date: Saturday, April 4, 2009, 11:13 AM
> Hello people, Is my first time that I
> try to do a web page with PHP and I
> don't have Idea how I can do, but I read something
> tutorial and I can see
> that is not difficult, I hope that I can do, what I need to
> work ??? with
> PHP and MYSQL ??? Where I can to get this software because
> I go to
> www.mysql.com and I download mysql for win 32 MSI and I
> install in my pc but
> I can't see nothing !!! only MYSQL 5.1 --> (mysql
> command line client)
> (mysql manual) and (mysql server instance config wizard)
> and How I can work
> with mysql ?? and I download the php for www.php.net and
> only install me in
> my all programs PHP 5 and inside I just only see License
> and PHP.ini
>
> O download and installer APACHE 2.11
>
> 1st- download APACHE and install it
> 2nd- download mysql and install it
> 3rd- donwload PHP and install it
>
> It is correct this way ?? I read a tutorial with this ways,
> but when I
> create a name.php page and put inside of apache server
> program
> files-->apache-->htdocs if I try to open with
> firefox, it shows me the
> source inside the page, and wioth internet explorer don't
> open me, it only
> show me a blank page,
>
> Anybody can help me please ?? I want to do web page and I
> have no idea.
>
> Sorry for my english, I started to study this languaje too.
> lol.
>
> --
> salu2 ®0L¥
>
--- End Message ---