Headless Chrome Beginner - Windows XAMPP PHP

726 views
Skip to first unread message

Kev

unread,
Mar 28, 2018, 6:17:05 PM3/28/18
to headless-dev
Hi, I'm a complete beginner to headless browsing and looking for advice on how to start. Most of my developing is on windows using xampp and php with a bit of javascript thrown in. Can I use headless chrome on this setup or do I need something different. If so what? Could someone give me advice on what a beginner needs as a startup package and if what I have already is adequate. Thank you in advance.

Eric Seckler

unread,
Mar 29, 2018, 2:41:16 AM3/29/18
to Kev, headless-dev
Hi Kev,

You can point Headless Chrome at any web site, be a local one or one in the WWW. Loading a site from you local xampp should work just as it does in desktop chrome.

Cheers,
Eric

On Wed, 28 Mar 2018, 23:17 Kev, <nze...@gmail.com> wrote:
Hi, I'm a complete beginner to headless browsing and looking for advice on how to start. Most of my developing is on windows using xampp and php with a bit of javascript thrown in. Can I use headless chrome on this setup or do I need something different. If so what? Could someone give me advice on what a beginner needs as a startup package and if what I have already is adequate. Thank you in advance.

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev...@chromium.org.
To post to this group, send email to headle...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/headless-dev/25de4028-bb7a-480e-b82d-880cb49db48f%40chromium.org.

Kev

unread,
Mar 31, 2018, 8:52:56 PM3/31/18
to headless-dev
Thanks Eric for your reply. I've been asked why I want to do this.

I have been using cURL to login to our suppliers websites and check product updates. I have struck a few that have been heavily javascript generated and I cannot use cURL to login. I'm looking for a solution. I was going to try phantomjs but see that it has been deprecated and headless chrome is now recommended. Headless browsers are completely new  to me. I don't know if I can do this with chrome or whether I'm the right forum to be asking for help. Any help or guidance is appreciated as most that have read involves puppeteer, selenium and nodejs which I have no experience in. 
I have managed to open a chrome browser using php exec() but cannot seem to get it open in headless mode using "C:/Program Files/Google/Chrome/Application/chrome.exe --enable-logging --headless --disable-gpu --dump-dom" run scripts or save files.
I think I have missed something fundamental but don't know what.

Kev


PhistucK

unread,
Apr 1, 2018, 2:23:48 AM4/1/18
to Kev, headless-dev
Did you check the log file?
It should be located in your user data directory with the name, "chrome_debug.log".


PhistucK

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev+unsubscribe@chromium.org.

To post to this group, send email to headle...@chromium.org.

Kev

unread,
Apr 3, 2018, 3:20:05 AM4/3/18
to headless-dev
I can't find this log file "chrome_debug.log" anywhere on my computer.

PhistucK

unread,
Apr 3, 2018, 3:36:22 AM4/3/18
to Kev, headless-dev
When PHP supposedly executes Chrome, do you see chrome.exe in the Windows Task Manager (or Sysinternals Process Explorer), even for a split second?
If not, then I guess PHP cannot even execute it and it sounds like a PHP issue, which is off topic.


PhistucK

On Tue, Apr 3, 2018 at 10:20 AM, Kev <nze...@gmail.com> wrote:
I can't find this log file "chrome_debug.log" anywhere on my computer.

--
You received this message because you are subscribed to the Google Groups "headless-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to headless-dev+unsubscribe@chromium.org.
To post to this group, send email to headle...@chromium.org.
Reply all
Reply to author
Forward
0 new messages