Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Docker errors #325

Open
Benjamin-Loison opened this issue Oct 28, 2024 · 4 comments
Open

Get Docker errors #325

Benjamin-Loison opened this issue Oct 28, 2024 · 4 comments
Labels
enhancement New feature or request medium priority A high-priority issue noticeable by the user but he can still work around it. quick A task that should take less than two hours to complete. waiting details Further information is requested

Comments

@Benjamin-Loison
Copy link
Owner

Would help https://matrix.to/#/!xUzcWVLNMgGmLGBdRL:matrix.org/$UzmAQOtYWNzuKpWbe19VCbbZwW7j9Olrp-UX8S4LP04.

test.php:
test.php 
<?php

	echo 'test'
php test.php
PHP Parse error:  syntax error, unexpected end of file, expecting "," or ";" in /var/www/html/YouTube-operational-API/test.php on line 4
@Benjamin-Loison Benjamin-Loison added enhancement New feature or request medium priority A high-priority issue noticeable by the user but he can still work around it. quick A task that should take less than two hours to complete. labels Oct 28, 2024
@Benjamin-Loison
Copy link
Owner Author

curl 'http://localhost:8080/test.php'
Output:
<br />
<b>Parse error</b>:  syntax error, unexpected end of file, expecting &quot;,&quot; or &quot;;&quot; in <b>/var/www/html/test.php</b> on line <b>4</b><br />
api_1  | 172.18.0.1 - - [28/Oct/2024:15:40:02 +0000] "GET /test.php HTTP/1.1" 200 361 "-" "curl/7.88.1"

@Benjamin-Loison Benjamin-Loison added the waiting details Further information is requested label Oct 28, 2024
@Benjamin-Loison
Copy link
Owner Author

include_once 'common.php';

does not change anything. Maybe it is because a parsing error and not a runtime error.

@Benjamin-Loison
Copy link
Owner Author

Adding after include_once 'common.php';:

include_once 'not_existing.php';
curl 'http://localhost:8080/test.php'
test

If remove include_once 'common.php';, then have:

curl 'http://localhost:8080/test.php'
Output:
<br />
<b>Warning</b>:  include_once(not_existing.php): Failed to open stream: No such file or directory in <b>/var/www/html/test.php</b> on line <b>5</b><br />
<br />
<b>Warning</b>:  include_once(): Failed opening 'not_existing.php' for inclusion (include_path='.:/usr/local/lib/php') in <b>/var/www/html/test.php</b> on line <b>5</b><br />
test

@Benjamin-Loison
Copy link
Owner Author

In last both cases have:

curl -I 'http://localhost:8080/test.php'
Output:
HTTP/1.1 200 OK
Date: Mon, 28 Oct 2024 20:58:42 GMT
Server: Apache/2.4.62 (Debian)
X-Powered-By: PHP/8.3.13
Content-Type: text/html; charset=UTF-8
api_1  | 172.18.0.1 - - [28/Oct/2024:20:58:42 +0000] "HEAD /test.php HTTP/1.1" 200 154 "-" "curl/7.88.1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority A high-priority issue noticeable by the user but he can still work around it. quick A task that should take less than two hours to complete. waiting details Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant