[PHP] http request problem

2007-01-02 Thread Kencana

hi all,

I got problem in getting file content. the file is located at another server
(tomcat) and it is a jsp file.
i don't know why i keep getting the same error message file accessing that
file but
while i am trying to access to another file, from another server it run
perfect.
this is the error message i get:
PHP Warning:
file_get_contents(http://123.123.1.2:8008/V3JRoute?slot=1&startX=103.880764&startY=1.335458&endX=103.886297&endY=1.334953&routeType=1&format=2)
[function.file-get-contents]: failed to open stream: HTTP request failed!
$5$13:53:22,13:53:22,13:53:22,13:53:22,13:53:22$0.0,0.0,0.0,0.0,0.0$Depart
on,Turn sharp left onto,Continue on,Turn right onto in C:\Program
Files\MapGuideOpenSource\WebServerExtensions\www\phpviewersample\xmlaccesstrial.php
on line 5 

take note that the text in bold is part of the page contents.
i don't understand why i cant get the whole content and keep getting this
error.
I hope somebody can help me out.

Thank you

Regards,
Kencana
-- 
View this message in context: 
http://www.nabble.com/http-request-problem-tf2911952.html#a8136255
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] http request problem

2007-01-02 Thread Kencana

hi all,

by the way, the page that i am trying to get, i can open the page without
any problem
in IE 7 browser.

Thanks

Regards,
Kencana

-- 
View this message in context: 
http://www.nabble.com/http-request-problem-tf2911952.html#a8136297
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: http request problem

2007-01-03 Thread Kencana

Hi all,

first of all, sorry for all the trouble i have caused.
i didnt give a clear explanation
and for your information that I am not the author of the requested jsp file.
however i did try to access other jsp file from the same server,
it didn't give me any error.
so i guess i have to ask the author about this issue.
and once again
I am really sorry for the trouble

Regards,
Kencana


Roman Neuhauser wrote:
> 
> # [EMAIL PROTECTED] / 2007-01-03 11:19:21 +0500:
>> ===ORINGIAL===
>> hi all,
>> 
>> I got problem in getting file content. the file is located at another
>> server
>> (tomcat) and it is a jsp file.
>> i don't know why i keep getting the same error message file accessing
>> that
>> file but
>> while i am trying to access to another file, from another server it run
>> perfect.
>> this is the error message i get:
>> PHP Warning:
>> file_get_contents(
>> http://123.123.1.2:8008/V3JRoute?slot=1&startX=103.880764&startY=1.335458&endX=103.886297&endY=1.334953&routeType=1&format=2
>> )
>> [function.file-get-contents]: failed to open stream: HTTP request failed!
>> $5$13:53:22,13:53:22,13:53:22,13:53:22,13:53:22$0.0,0.0,0.0,0.0,0.0$Depart
>> on,Turn sharp left onto,Continue on,Turn right onto in C:\Program
>> Files\MapGuideOpenSource\WebServerExtensions\www\phpviewersample\xmlaccesstrial.php
>> on line 5
>> 
>> take note that the text in bold is part of the page contents.
> 
> The text/plain version of your multipart/mixed email omits terminal
> escape sequences ("tags") so there's no bold. But that error message
> is somehow garbled anyway.
> 
> Now, what happens if you try to display that same url in a normal
> browser on the same network where it fails in the PHP script? If it
> works, what's the difference between the two requests? Use a packet
> capture and analysis tool like Wireshark (formerly Ethereal) to tell.
> If it doesn't work, fix that first. If it works from a normal browser,
> you can't see anything wrong with the request made by PHP, *and* you
> know your requests actually hit the server, ask its admin to cooperate.
> 
> -- 
> How many Vietnam vets does it take to screw in a light bulb?
> You don't know, man.  You don't KNOW.
> Cause you weren't THERE. http://bash.org/?255991
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/http-request-problem-tf2911952.html#a8137855
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] question about str_replace function

2007-01-08 Thread Kencana

Hi all,

I got a doubt about the str_replace function.



the php code above will return me "avenuenue 1, avenue 1". i expect the
result will be "avenue 1, avenue 1". any idea of how can i get such result?

Thank you

Regards,
Kencana

-- 
View this message in context: 
http://www.nabble.com/question-about-str_replace-function-tf2938171.html#a8214599
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] web analytics

2007-01-11 Thread Kencana

Hi all,

I am planning to do web analytics of user access while they are accessing my
web site.
any recommendation on how it can be done?
i am using php 5.0.5 and windows server 2003.
I have heard about "phpmyvisites" anybody try it before?

Thank you

Regards,
Kencana
-- 
View this message in context: 
http://www.nabble.com/web-analytics-tf2957837.html#a8274456
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: web analytics

2007-01-11 Thread Kencana

hi Edward,

thanks for the recommendation. will google analytics affect my web
performance?
did you try it before?

thank you

Regards,
Kencana


Edward Kay wrote:
> 
> Have a look at Google Analytics.
> 
> Edward
> 
>> -Original Message-
>> From: Kencana [mailto:[EMAIL PROTECTED]
>> Sent: 11 January 2007 09:50
>> To: php-general@lists.php.net
>> Subject: [PHP] web analytics
>> 
>> 
>> 
>> Hi all,
>> 
>> I am planning to do web analytics of user access while they are 
>> accessing my
>> web site.
>> any recommendation on how it can be done?
>> i am using php 5.0.5 and windows server 2003.
>> I have heard about "phpmyvisites" anybody try it before?
>> 
>> Thank you
>> 
>> Regards,
>> Kencana
>> -- 
>> View this message in context: 
>> http://www.nabble.com/web-analytics-tf2957837.html#a8274456
>> Sent from the PHP - General mailing list archive at Nabble.com.
>> 
>> -- 
>> 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/web-analytics-tf2957837.html#a8274831
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] CHMOD a file in windows server 2003

2007-01-11 Thread Kencana

Hi all,

anybody knows how to CHMOD a file to 777 or 666 or etc. in windows server
2003?

thank you

Regards,
Kencana
-- 
View this message in context: 
http://www.nabble.com/CHMOD-a-file-in-windows-server-2003-tf2962953.html#a8290007
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: RE: web analytics

2007-01-12 Thread Kencana

Hi,

can google analytics keep track on the search keywords of the website?
I got one search features (connected to my database) in my web page. so
i need to keep track on the user search history.

Thank you

Regards,
Kencana


Edward Kay wrote:
> 
> It depends what you mean by web performance. Do you mean your visitors or
> your web server?
> 
> Google analytics (like all hosted analytics services) works by inserting
> some code that gets the visitor's browser to connect to their servers.
> These
> requests therefore has no impact on your web server.
> 
> If you implement something on your own server, e.g. by tracking their path
> in a session variable and/or storing stuff in a DB then yes, this will
> consume resources.
> 
> We use Google analytics and are very happy with the results.
> 
> Edward
> 
>> hi Edward,
>>
>> thanks for the recommendation. will google analytics affect my web
>> performance?
>> did you try it before?
>>
>> thank you
>>
>> Regards,
>> Kencana
>>
>>
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/web-analytics-tf2957837.html#a8295237
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] SOAP and MSSQL

2006-11-08 Thread Kencana

hi all, 

I am a new user of php & SOAP..I got one question about using SOAP. 
I have try to run SOAP and it runs successfully without any problem 

the following is the code of the SOAP server: 
class QuoteService { 
 private $quotes = array('V3' => 'password', 
  'kencana' =>'kencana', 
 'wisna' =>'wisna'); 

private $status = array('V3' => 'Admin', 
  'kencana' =>'user', 
 'wisna' =>'user'); 


function getQuote($symbol) { 
  if (isset($this->quotes[$symbol])) 
  { 
  return $this->quotes[$symbol]; 
  } 
  else 
  { 
  throw new SoapFault("Server","Unknown User Name '$symbol'."); 
  } 
  } 

function getStatus($symbol) { 
  if (isset($this->status[$symbol])) 
  { 
  return $this->status[$symbol]; 
  } 
  else 
  { 
  throw new SoapFault("Server","Unknown User Name '$symbol'."); 
  } 
  } 

as you can see, the code retrieved the data from the listed array, my
question is, is that possible to retrieve 
the data from mssql server?if yes, can i know how? 

I hope somebody can help me out, and pardon me as i am a new user of
this.therefore please bear with me. 

Regards, 
Kencana
-- 
View this message in context: 
http://www.nabble.com/SOAP-and-MSSQL-tf2600244.html#a7253893
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php