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

Cannot Grab #15

Open
Rei444 opened this issue Jun 8, 2023 · 1 comment
Open

Cannot Grab #15

Rei444 opened this issue Jun 8, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Rei444
Copy link

Rei444 commented Jun 8, 2023

Domain:
https://www.ionos.de

Put the Domain in TestArray ...

$testURLs = array(
   'https://aws.amazon.com',
   'https://www.ionos.de',
   'https://www.commerzbank.de',
   'https://www.apple.com',
 );

Start with:

php get-fav.php --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 "
Console-Output:

PHP Warning: Undefined global variable $curl_timeout in /var/www/vhosts/---/httpdocs/get-fav.php on line 572
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/---/httpdocs/get-fav.php on line 512
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/---/httpdocs/get-fav.php on line 512
PHP Warning: Undefined global variable $curl_timeout in /var/www/vhosts/---/httpdocs/get-fav.php on line 572
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/---/httpdocs/get-fav.php on line 512
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/---/httpdocs/get-fav.php on line 512
PHP Warning: Undefined variable $filePath in /var/www/vhosts/---/httpdocs/get-fav.php on line 484
PHP Warning: Undefined global variable $curl_timeout in /var/www/vhosts/---/httpdocs/get-fav.php on line 572
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/d---/httpdocs/get-fav.php on line 512
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/---/httpdocs/get-fav.php on line 512
PHP Warning: Undefined global variable $curl_timeout in /var/www/vhosts/---/httpdocs/get-fav.php on line 572
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/---/httpdocs/get-fav.php on line 512
PHP Warning: Undefined array key "SERVER_NAME" in /var/www/vhosts/---/httpdocs/get-fav.php on line 512
Icon: ./aws.amazon.com.ico
Icon: ./commerzbank.de.ico
Icon: ./apple.com.ico

Runtime: 2.71 Sec.

@gaffling gaffling assigned gaffling and unassigned gaffling Jun 12, 2023
@gaffling gaffling added the help wanted Extra attention is needed label Jun 12, 2023
@LeeThompson
Copy link
Contributor

LeeThompson commented Jun 23, 2023

What version of PHP?
Looks like that's running on a web server too, Apache? (Just asking so I can try to repro it).
Are you running it from a command line or via the web server?
You have a space at the end of the user agent string, I'm not sure that will cause an issue but it might.

(This makes me think we should add a --support option to dump some support info.)
(Just a note, my current build (202306161401) is able to get the icon without any problems. My user agent was set to Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants