I’m super new to web development, but not new to programming as a whole. I’m extremely confused by this application which I was pulled into fixing because the person who normally does it can’t anymore. This may be a silly question, but I can’t find the code or any HTML that contains th…
How to rewrite default php code to a valid echo line output?
I am new to PHP and for the development of a WordPress theme I need to re-write the following line of php/html code so that I can use it in my functions.php. I found out that I would need to rewrite it as an “echo” call, but I am always getting an error because my syntax is wrong. This is
Redirecting non Safari mobile browser?
I am looking for assistance with coding to detect and redirect a iOS user on any browser other than Safari. I was able to accomplish this via .htaccess, but for iPhone & iPad redirect only, via this: But, I only intend it for non-Safari iOS browsers on iPhone and iPad. Open to other methods than htaccess.…
Xdebug works on CLI but Apache wont load it
For the love of my life, I cannot figure this one out: I’ve compiled xdebug from source code and while the CLI will show me that it is active the webserver will not. This is the process I went through….
If HTTP Authentification exists, why custom form to authenticate?
If HTTP authentification exists, like this: if ($_SERVER[‘PHP_AUTH_USER’] === ‘…’ && $_SERVER[‘PHP_AUTH_PW’] === ‘…’) { // Process user login. } else { header(‘WWW-Authenticate: …
Can I use a PHP “index” page with AWS Amplify?
I am experimenting with using AWS. To be specific, I am following the tutorial at this link: https://aws.amazon.com/getting-started/hands-on/build-web-app-s3-lambda-api-gateway-dynamodb/module-three/?…
.htaccess redirect but exclude some folder
Hello there I am using cpanel. In the cpanel, I created a redirect, which created an .htaccess like this. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{…
how to get specific key and its value from object
How do I get specific key and its value from object? Example I have output of my query: “attribute_summary”:”Color: Red”, “meta_data”:[ { “id”:…
“a symbol name was expected” error trying to create a table in phpMyAdmin
I am trying to create a table in a database in phpMyAdmin and I keep getting the “a symbol name was expected” error and I cannot figure out what is going on. Is my syntax wrong? I am new to this and I’m at a loss. Answer Column names, table names should be surrounded by backticks(“) Or…
Pull values from string to assign into an array
I’ve got a project where I’m pulling data from SOQL using salesforce’s RestAPI. I’ve cleaned up the response and this is what I’m currently working with: I’m working in PHP and I’d like to build an array based off this data. For example: Anyone have suggestions for th…