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

Does wamp requires to be configured to avoid .php? #267

Closed
Benjamin-Loison opened this issue Apr 11, 2024 · 5 comments
Closed

Does wamp requires to be configured to avoid .php? #267

Benjamin-Loison opened this issue Apr 11, 2024 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation low priority Nice to have feature. quick A task that should take less than two hours to complete.

Comments

@Benjamin-Loison
Copy link
Owner

If so edit README.md if it requires to.

I had this feeling due to someone installing its own YouTube operational API on Windows.

@Benjamin-Loison Benjamin-Loison added documentation Improvements or additions to documentation low priority Nice to have feature. quick A task that should take less than two hours to complete. labels Apr 11, 2024
@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Apr 12, 2024

Note that my Linux Mint Framework Windows (trust) VirtualBox virtual machine already has WampServer installed and does not require .php.

On my Linux Mint Framework Windows (not trust) VirtualBox virtual machine:

choco uninstall wamp-server
Chocolatey v2.2.2
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - System Cache directory is not locked down to administrators.
   Remove the directory 'C:\ProgramData\ChocolateyHttpCache' to have
   Chocolatey CLI create it with the proper permissions.

Uninstalling the following packages:
wamp-server
wamp-server is not installed. Cannot uninstall a non-existent package.

Chocolatey uninstalled 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - wamp-server - wamp-server is not installed. Cannot uninstall a non-existent package.

If a package uninstall is failing and/or you've already uninstalled the
 software outside of Chocolatey, you can attempt to run the command
 with `-n` to skip running a chocolateyUninstall script, additionally
 adding `--skip-autouninstaller` to skip an attempt to automatically
 remove system-installed software. Only the packaging files are removed
 and not things like software installed to Programs and Features.

If a package is failing because it is a dependency of another package
 or packages, then you may first need to consider if it needs to be
 removed as packages have dependencies for a reason. If
 you decide that you still want to remove it, head into
 `$env:ChocolateyInstall\lib` and find the package folder you want to
 be removed. Then delete the folder for the package. You should use
 this option only as a last resort.

but already installed Wamp Server not requiring .php for http://localhost/YouTube-operational-API/channels?handle=@WHO.

Faced Benjamin-Loison/chocolatey-packages/issues/5.

@Benjamin-Loison
Copy link
Owner Author

Benjamin-Loison commented Apr 12, 2024

In a fresh setting, .php is not necessary but warnings are returned.

Related to #23.

@Benjamin-Loison
Copy link
Owner Author

Related to #24.

@Benjamin-Loison
Copy link
Owner Author

curl http://localhost/YouTube-operational-API/channels?handle=@WHO
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: file_get_contents(tests/part=shorts&amp;amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json): Failed to open stream: No such file or directory in C:\wamp64\www\YouTube-operational-API\channels.php on line <i>12</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0028</td><td bgcolor='#eeeeec' align='right'>496688</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0029</td><td bgcolor='#eeeeec' align='right'>497432</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.file-get-contents' target='_new'>file_get_contents</a>( <span>$filename = </span><span>&#39;tests/part=shorts&amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json&#39;</span> )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>12</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: file_get_contents(tests/part=community&amp;amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json): Failed to open stream: No such file or directory in C:\wamp64\www\YouTube-operational-API\channels.php on line <i>13</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0028</td><td bgcolor='#eeeeec' align='right'>496688</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0069</td><td bgcolor='#eeeeec' align='right'>498688</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.file-get-contents' target='_new'>file_get_contents</a>( <span>$filename = </span><span>&#39;tests/part=community&amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json&#39;</span> )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>13</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: file_get_contents(tests/part=about&amp;amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json): Failed to open stream: No such file or directory in C:\wamp64\www\YouTube-operational-API\channels.php on line <i>14</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0028</td><td bgcolor='#eeeeec' align='right'>496688</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0095</td><td bgcolor='#eeeeec' align='right'>498904</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.file-get-contents' target='_new'>file_get_contents</a>( <span>$filename = </span><span>&#39;tests/part=about&amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json&#39;</span> )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>14</td></tr>
</table></font>
<br />
<font size='1'><table class='xdebug-error xe-warning' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: file_get_contents(tests/part=snippet&amp;amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json): Failed to open stream: No such file or directory in C:\wamp64\www\YouTube-operational-API\channels.php on line <i>16</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0028</td><td bgcolor='#eeeeec' align='right'>496688</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0117</td><td bgcolor='#eeeeec' align='right'>499088</td><td bgcolor='#eeeeec'><a href='http://www.php.net/function.file-get-contents' target='_new'>file_get_contents</a>( <span>$filename = </span><span>&#39;tests/part=snippet&amp;id=UCv_LqFI-0vMVYgNR3TeB3zQ.json&#39;</span> )</td><td title='C:\wamp64\www\YouTube-operational-API\channels.php' bgcolor='#eeeeec'>...\channels.php<b>:</b>16</td></tr>
</table></font>
{
    "kind": "youtube#channelListResponse",
    "etag": "NotImplemented",
    "items": [
        {
            "kind": "youtube#channel",
            "etag": "NotImplemented",
            "id": "UC07-dOwgza1IguKA86jqxNA"
        }
    ]
}

@Benjamin-Loison
Copy link
Owner Author

Related to 91dee07.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation low priority Nice to have feature. quick A task that should take less than two hours to complete.
Projects
None yet
Development

No branches or pull requests

1 participant