novasera

calendar

1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
  • total
  • today
  • yesterday
2013. 3. 10. 17:50 Programming(Web)/PHP


http://zzaps.tistory.com/29

'Programming(Web) > PHP' 카테고리의 다른 글

[PHP] Heredoc syntax  (0) 2010.04.01
[한글] urlencode urldecode  (0) 2010.03.31
[PHP] Excel 관련...  (0) 2010.03.30
[PHP] 특수기호 처리 함수들의 상관관계  (0) 2010.03.30
[PHP] 전역변수  (0) 2010.03.18
posted by novasera
2010. 4. 1. 16:03 Programming(Web)/PHP
PHPSCHOOL ( 1  ,  2 )

'Programming(Web) > PHP' 카테고리의 다른 글

mysqli 쿼리 결과 다루기  (0) 2013.03.10
[한글] urlencode urldecode  (0) 2010.03.31
[PHP] Excel 관련...  (0) 2010.03.30
[PHP] 특수기호 처리 함수들의 상관관계  (0) 2010.03.30
[PHP] 전역변수  (0) 2010.03.18
posted by novasera
2010. 3. 31. 18:25 Programming(Web)/PHP
PHPSCHOOL

http://php.hanbiro.com/manual/kr/function.urldecode.php 


Warning

자동 전역 $_GET과 $_REQUEST는 이미 디코드되어 있습니다.

 $_GET과 $_REQUEST에 들어있는 원소에 urldecode()를 사용하면

 기대하지 않았던 위험한 결과가 나올 수 있습니다.



'Programming(Web) > PHP' 카테고리의 다른 글

mysqli 쿼리 결과 다루기  (0) 2013.03.10
[PHP] Heredoc syntax  (0) 2010.04.01
[PHP] Excel 관련...  (0) 2010.03.30
[PHP] 특수기호 처리 함수들의 상관관계  (0) 2010.03.30
[PHP] 전역변수  (0) 2010.03.18
posted by novasera
2010. 3. 30. 17:42 Programming(Web)/PHP

'Programming(Web) > PHP' 카테고리의 다른 글

[PHP] Heredoc syntax  (0) 2010.04.01
[한글] urlencode urldecode  (0) 2010.03.31
[PHP] 특수기호 처리 함수들의 상관관계  (0) 2010.03.30
[PHP] 전역변수  (0) 2010.03.18
[PHP] 따옴표, 쌍따옴표  (0) 2010.03.10
posted by novasera
2010. 3. 30. 09:09 Programming(Web)/PHP
1.addslashes <-> stripslashes

2.

'Programming(Web) > PHP' 카테고리의 다른 글

[한글] urlencode urldecode  (0) 2010.03.31
[PHP] Excel 관련...  (0) 2010.03.30
[PHP] 전역변수  (0) 2010.03.18
[PHP] 따옴표, 쌍따옴표  (0) 2010.03.10
[PHP] 업로드 이미지 사이즈 알아내기  (0) 2010.03.02
posted by novasera
2010. 3. 18. 15:23 Programming(Web)/PHP
1. global 키워드사용

"PHP에서 전역변수가 함수내에서 계속적으로 사용이 된다면 함수안에서 global로 선언해야 합니다."

<?php
$a 
1;
$b 2;

function 
Sum()
{
    global 
$a$b;

    
$b $a $b;


Sum();
echo 
$b;  // 
?>

2. $GLOBALS 사용

"$GLOBALS 배열은 전역변수명이 key가 되는 연관배열이고 배열의 원소 값이 그 변수의 내용이 된다."

<?php
function test_global()
{
    
// 대부분의 예약 변수는 "자동 전역"이 아니기에,
    // 함수 내부 영역에서 사용하려면 'global'이 필요합니다.
    
global $HTTP_POST_VARS;

    echo 
$HTTP_POST_VARS['name'];
    
    
// 자동 전역은 어떠한 영역에서도 사용할 수 있고,
    // 'global'이 필요하지 않습니다. 자동 전역은
    // PHP 4.1.0부터 사용할 수 있고, HTTP_POST_VARS는
    // 배제되었습니다.
    
echo $_POST['name'];
}
?>

PHP.NET

posted by novasera
2010. 3. 10. 10:29 Programming(Web)/PHP
posted by novasera
2010. 3. 2. 16:19 Programming(Web)/PHP
use getimagesize() function



posted by novasera
2010. 2. 11. 10:35 Programming(Web)/PHP
posted by novasera
2010. 1. 28. 14:13 Programming(Web)/PHP
if (eregi('MSIE', $_SERVER['HTTP_USER_AGENT']))
{
}

posted by novasera