質問編集履歴

3

ソース短縮

2018/06/25 01:28

投稿

kawannbo
kawannbo

スコア9

test CHANGED
File without changes
test CHANGED
@@ -40,62 +40,6 @@
40
40
 
41
41
  <?php echo $_COOKIE["test"]; ?>
42
42
 
43
- <?php $get_agentcd = $_COOKIE["test"] ? $_COOKIE["test"] : $_GET["test"]; ?>
43
+ <?php $get_test = $_COOKIE["test"] ? $_COOKIE["test"] : $_GET["test"]; ?>
44
-
45
-
46
-
47
- <!DOCTYPE html>
48
-
49
- <html <?php language_attributes(); ?>>
50
-
51
- <head>
52
-
53
- <!-- Global site tag (gtag.js) - Google Analytics -->
54
-
55
-  省略です
56
-
57
- <!-- Global site tag (gtag.js) - Google Analytics -->
58
-
59
-
60
-
61
- <meta charset="<?php bloginfo( 'charset' ); ?>" />
62
-
63
-
64
-
65
-
66
-
67
- <?php
68
-
69
- /**
70
-
71
- * qode_header_meta hook
72
-
73
- *
74
-
75
- * @see qode_header_meta() - hooked with 10
76
-
77
- * @see qode_user_scalable_meta() - hooked with 10
78
-
79
- */
80
-
81
- do_action('qode_header_meta');
82
-
83
- ?>
84
-
85
-
86
-
87
- <title><?php wp_title(''); ?></title>
88
-
89
-
90
-
91
- <?php wp_head(); ?>
92
-
93
-
94
-
95
- </head>
96
-
97
-
98
-
99
- <body <?php body_class(); ?>>
100
44
 
101
45
  ```

2

ソース追記

2018/06/25 01:28

投稿

kawannbo
kawannbo

スコア9

test CHANGED
File without changes
test CHANGED
@@ -27,3 +27,75 @@
27
27
  Server: nginx
28
28
 
29
29
  PHP/5.3.29
30
+
31
+
32
+
33
+ ソースが以下です。まだ作りかけですが、一番上の3行のところができていないです
34
+
35
+
36
+
37
+ ```PHP
38
+
39
+ <?php setcookie( 'test', $_GET["test"], time()+60*60*24*7 ); ?>
40
+
41
+ <?php echo $_COOKIE["test"]; ?>
42
+
43
+ <?php $get_agentcd = $_COOKIE["test"] ? $_COOKIE["test"] : $_GET["test"]; ?>
44
+
45
+
46
+
47
+ <!DOCTYPE html>
48
+
49
+ <html <?php language_attributes(); ?>>
50
+
51
+ <head>
52
+
53
+ <!-- Global site tag (gtag.js) - Google Analytics -->
54
+
55
+  省略です
56
+
57
+ <!-- Global site tag (gtag.js) - Google Analytics -->
58
+
59
+
60
+
61
+ <meta charset="<?php bloginfo( 'charset' ); ?>" />
62
+
63
+
64
+
65
+
66
+
67
+ <?php
68
+
69
+ /**
70
+
71
+ * qode_header_meta hook
72
+
73
+ *
74
+
75
+ * @see qode_header_meta() - hooked with 10
76
+
77
+ * @see qode_user_scalable_meta() - hooked with 10
78
+
79
+ */
80
+
81
+ do_action('qode_header_meta');
82
+
83
+ ?>
84
+
85
+
86
+
87
+ <title><?php wp_title(''); ?></title>
88
+
89
+
90
+
91
+ <?php wp_head(); ?>
92
+
93
+
94
+
95
+ </head>
96
+
97
+
98
+
99
+ <body <?php body_class(); ?>>
100
+
101
+ ```

1

誤字修正

2018/06/22 08:31

投稿

kawannbo
kawannbo

スコア9

test CHANGED
@@ -1 +1 @@
1
- PHP CookieがAサーバーでは保存されるのに、blueサーバーでは保存されない
1
+ PHP CookieがAサーバーでは保存されるのに、Bサーバーでは保存されない
test CHANGED
File without changes