PHP Code not running - All services started (GREEN)
Posted by: dslider0401 (---.lightspeed.chtnsc.sbcglobal.net)
Date: January 22, 2020 03:04AM

I am new to WAMP. I installed the latest version after I installed all the prerequisites. I do not have SKYPE installed.

I have PHP code, where I upload a file with a products SKU#, its reads the CSV, and then searches a site for a product title and price.Once its done it exports a CSV with the product title and price and SKU#. I have seen this code work, but cant get it to function on my instance of WAMP.

I ran through the troubleshooting guide to no avail.

Curl is turned on.


I am on Windows 10. Have McAfee Internet Security Installed (i tired to turn it off and run WAMP, still no luck).


simple PHP instructions work fine.. I think its the CURL.... how can I trouble shoot?


Any suggestions?



Edited 2 time(s). Last edit at 01/22/2020 03:41AM by dslider0401.

Options: ReplyQuote
Re: PHP Code not running - All services started (GREEN)
Posted by: RiggsFolly (Moderator)
Date: January 22, 2020 10:07AM

Hi,

This does not sound like a WAMPServer issue, it sounds like a coding issue.

As you provide no error messages, no code and frankly no clues I do not see how we could possibly help you

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: PHP Code not running - All services started (GREEN)
Posted by: dslider0401 (---.lightspeed.chtnsc.sbcglobal.net)
Date: January 22, 2020 11:10PM

After some more troubleshooting, CURL works but doesnt seem to work on the site I need it too.... below is some example code


<?php

$ch = curl_init("[www.homedepot.com]winking smiley;
$fp = fopen("homeDepot_homepage.txt", "w"winking smiley;

curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);

curl_exec($ch);
if(curl_error($ch)) {
fwrite($fp, curl_error($ch));
}
curl_close($ch);
fclose($fp);
?>




I get -- "SSL certificate problem: unable to get local issuer certificate"

Options: ReplyQuote
Re: PHP Code not running - All services started (GREEN)
Posted by: RiggsFolly (Moderator)
Date: January 22, 2020 11:22PM

[cheapsslsecurity.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.