Reseller Domain Murah dan termurah di Indonesia? ya di ResellerCamp.
         
 

Forum PHP Indonesia

 
Advanced Search
   
 
Home Register FAQ Memberlist Usergroups  
 
 

Forum PHP Indonesia Forum Index PHP Ajax PHP, AJAX dan Linux
Display posts from previous:   
      All times are GMT + 7 Hours  

PHP, AJAX dan Linux

Post new topic  Reply to topic

Sat Jul 10, 2010 00:42
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: PHP, AJAX dan Linux Reply with quote

Apakah ada perbedaan eksekusi script PHP dan javascript di server linux ? Soalnya gini, saya test script PHP dan Javascript di dua server yg berbeda sistem operasinya, hasilnya, yg aneh cman di server linux doang. Contoh kode javascript document.location ga jalan di server linux, tp jalan di server window -.-' Cry tolong dong para master
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 00:43
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

apakah pengaruh Apachenya ya ???
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 00:46
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

Sundul lagi up up up
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 00:46
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

Ayolah, masak ga ada yg bisa jawab Cry
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 00:46
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

Dikejar deadline kk, tolong bantu dung Cry
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 00:52
Author Message
andriant
Jagoan PHP
Jagoan PHP


Joined: 31 Mar 2010
Posts: 911
Location: Jakarta

Post subject: Reply with quote

perasaan mozilla di linux support javascript jg.

apache windows ama linux kayanya ga ada bedanya. coba aja scriptnya di debug... contohnya pake mozilla firefox yang udah di install plugin firebug.
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Sat Jul 10, 2010 00:56
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

udah gan, ane coba di mac bisa. cman di linux doang fungsi document.locationnya ga jalan
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 00:57
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

nih gan contoh scriptnya

$('#login-form').submit(function() {
if (username.val() == "" || password.val() == "")
UpdateMessageTips(ERROR, 'Field are Empty, Please Fill it');
else
{
$('#loginmsg').ajaxStart(function(){
$(this).addClass('loading').text('Logging...');
});

$('#loginmsg').ajaxSuccess(function(){
$(this).removeClass('loading').text('Login');
});

$.ajax({
type: $(this).attr('method'),
url: $(this).attr('action'),
data: $(this).serialize(),
dataType: 'json',
success: function(data){
if (data.type == 'success')
document.location = 'home.php';
else
UpdateMessageTips(ERROR, data.errormessage);
}
});
}

return false;
});
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 01:01
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

wa bikin script buat login pake JQuery. Pas teken tombol login, sessionnya udah di catet dan harusnya langsung di direct ke halaman home, tp pas servernya linux, ga mo ke direct ke halaman tersebut
 
View user's profile Send private message
      Back To Top  

Sat Jul 10, 2010 01:08
Author Message
necrotos
PHPnewbie
PHPnewbie


Joined: 26 Feb 2008
Posts: 10

Post subject: Reply with quote

maksudnya gini gan. kan filenya ane taruh di server linux (10.100.10.3), trus ane coba akes via jaringan internal. pas nyoba 10.100.10.3/index.php document.locationnya ga jalan tp pas ane coba di server window (10.100.10.4) document.locationnya jalan gan gitu
 
View user's profile Send private message
      Back To Top  

Sun Jul 18, 2010 16:18
Author Message
andriant
Jagoan PHP
Jagoan PHP


Joined: 31 Mar 2010
Posts: 911
Location: Jakarta

Post subject: Reply with quote

kalo ditambahin kurung kurawal gimana?
Code:
<?php $.ajax({
type: $(this).attr('method'),
url: $(this).attr('action'),
data: $(this).serialize(),
dataType'json',
success: function(data){
if (
data.type == 'success')
{
document.location 'home.php';
}
else
{
UpdateMessageTips(ERRORdata.errormessage);
}
}
}); 
?>

pasti ada yang error di javascriptnya..
apa gara gara ada perbedaan line break di windows dan linux ya?
_________________
Lagi Boker, Makan, Mau Tidur, Coding jangan lupa baca:
PHP Manual -> http://php.net/download-docs.php
MySQL Manual -> http://dev.mysql.com/doc/
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Mon Jul 19, 2010 21:57
Author Message
atkinson
PHP Master
PHP Master


Joined: 28 Feb 2010
Posts: 255
Location: /home/night

Post subject: Reply with quote

ikutan sharing dikit walupun gak membantu,,,

klu di linux url itu case sensitive... siapa tau nama file yg dituju atau di include atau di href ada yg pke hruf gede...
_________________
samarinda web developer http://onewebstudio.com
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
      Back To Top  

Mon Jul 19, 2010 22:26
Author Message
andriant
Jagoan PHP
Jagoan PHP


Joined: 31 Mar 2010
Posts: 911
Location: Jakarta

Post subject: Reply with quote

atkinson wrote:
ikutan sharing dikit walupun gak membantu,,,

klu di linux url itu case sensitive... siapa tau nama file yg dituju atau di include atau di href ada yg pke hruf gede...

bener banget tuh, mungkin juga redirnya ke home.php taunya filenya di disk Home.php, diwindows khan case insensitive
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  
Post new topic  Reply to topic

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
Powered by phpBB © 2001, 2002 phpBB Group
Toko Kaos Couple | Avalanche style by What Is Real © 2004 | Toko Baju Butik Online | Cara Pedia | Busana Baju Muslim