일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 웹하드추천
- Ajax
- Arrays
- Regex
- 경영
- Session
- date
- variables
- Linux
- file-upload
- JavaScript
- post
- 무료다운로드쿠폰
- OOP
- jquery
- 웹하드순위
- UTF-8
- php
- 전략
- composer-php
- MySQL
- string
- Apache
- Forms
- curl
- HTML
- function
- Laravel
- JSON
- Today
- Total
목록개발 스크랩 메모 (413)
개발! 딱 깔끔하고 센스있게!
주어진 문자열의 모든 태그 태그 loadHTML($content); foreach ($dom->getElementsByTagName('img') as $img) { // put your replacement code here } $content = $d..
나는 여기서 이 JSON 에게 출력을 받고 싶다.불행히도 jsonu encode () 함수는 이 형식으로 구성되지 않는다는 것이다.조금도 돌아오지 않는다.이것은 나의 비밀번호다 $output = array( 'responseData' => array(), 'responseDetails' => null, 'responseStatus' => 200 ); $x = 0; while ($row = mysqli_fetch_assoc($result)) { foreach ($row as $k => $v) { $output['responseData']['result'][$x][$k] = $v; } $x++; } print_r($output); header('Content-Type: application/json'); e..
안녕하세요, 영상 올리는 비행 높이와 너비가 필요합니다. 이것은 내가 사용하고 있는 php 함수지만, 그것은 어떤 너비와 높이를 되돌리지 않는다. 저를 좀 도와주시겠습니까? list($width, $height, $type, $attr) = getimagesize($_FILES["Artwork"]); $min_width = "1000"; $min_height = "1000"; if ((($_FILES["Artwork"]["type"] == "image/gif") || ($_FILES["Artwork"]["type"] == "image/jpeg") || ($_FILES["Artwork"]["type"] == "image/jpg") || ($_FILES["Artwork"]["type"] == "image/p..
나는 간단한 PHP 스크립트를 통해 HTTP POST 요청을 보내며 json 문자열을 호응 (기존 라이브를 좋아하는 라이브러리, 예를 들어 pecl HTTTP / HTTTP requesst를 보내는 것을 기대한다.시종 실패, 415 오류, 지원하지 않는 미디어 유형.나는 CURL을 정확히 설정하지 않았다고 생각했지만 여러 번 검색을 거쳐 내가 잘못한 것을 찾을 수 없었다.다음은 일부 코드: class URLRequest { public $url; public $headers; public $params; public $body; public $expectedFormat; public $method; public function URLRequest($aUrl, array $aHeaders, array $a..
This question already has an answer here: How to fix “Headers already sent” error in PHP 11 answers include('header.php'); $name = $_POST['name']; $score = $_POST['score']; $dept = $_POST['dept']; $MyDB->prep("INSERT INTO demo (`id`,`name`,`score`,`dept`, `date`) VALUES ('','$name','$score','$dept','$date')"); // Bind a value to our :id hook // Produces: SELECT * FROM demo_table WHERE id = '23' ..