Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read
Q&A

Posts tagged php

1 child tag

Use for questions about the PHP language, a server-side web development scripting language.

This tag doesn't have a detailed wiki yet.

40%
+0 −1
Q&A How To Verify Old Password in PHP? [closed]

I have a page to change the user password in my website, this page can only be used if the user have a logged in! The change password page have 3 inputs: Old Password, New Password and Con...

0 answers  ·  posted 8mo ago by rrenildopereiraa‭  ·  closed 8mo ago by Alexei‭

71%
+3 −0
Q&A Load site based on cookie value in PHP

I need to load a site based on a cookie. I wrote code to validate that, like this. if(!isset($_COOKIE['cookie'])){ $domain = $_SERVER['SERVER_NAME']; setcookie('cookie', $cookie, time() ...

0 answers  ·  posted 9mo ago by hajakutbudeen‭  ·  last activity 8mo ago by Mikesumiines‭

50%
+0 −0
Q&A How to to make a store tree view cart

I am building an MVC cart system. I have the MERCHANTS table and the PRODUCTS table. A merchant (store) can have one or more products, everything works fine but what I want is to display products b...

0 answers  ·  posted 1y ago by Fyoni‭  ·  edited 1y ago by Alexei‭

Question php mysql pdo treeview
50%
+1 −1
Q&A What solutions available for a CMS-agnostic contact form?

By principle, I normally work with two different companies for establishing websites for myself: One for domain registration and domain-sole email address One for web application hosting My ...

2 answers  ·  posted 1y ago by deleted user  ·  last activity 1y ago by Alexei‭

50%
+0 −0
Q&A Executing a PHP HTML-CSS container on top of various content management systems

I have created two PHP modules, one is a contact form module and one is a a sticky "call now" module. I can access the contact form by example.com/contact_form.php but in contrast, example.com/cal...

0 answers  ·  posted 1y ago by deleted user  ·  edited 1y ago by Alexei‭

60%
+1 −0
Q&A What input functions can I use in TIO's PHP?

Try It Online! is an online interpreter for many supported languages, including PHP. I'm trying to solve coding challenges using the language, specifically "Hello, {name}!". In PHP, you can litera...

1 answer  ·  posted 1y ago by General Sebast1an‭  ·  last activity 1y ago by hkotsubo‭

Question php function input
50%
+2 −2
Q&A Splitting a large HTML file into two or more HTML files without JavaScript

I am developing a modular HTML-PHP-CSS no-JavaScript (JavaScriptless) contact form and the HTML is becoming increasingly large, around 80 lines (and could easily grow to be significantly larger as ...

1 answer  ·  posted 1y ago by deleted user  ·  edited 1y ago by deleted user

62%
+3 −1
Q&A Is the concept of a PHP lint feasible?

When I review JavaScript files in various text editors (Visual Studio Code, Greasemonkey/Tampermonkey) I sometimes get notified about syntax errors. I never encountered this behavior with PHP file...

2 answers  ·  posted 1y ago by deleted user  ·  last activity 1y ago by nelson777‭

Question php
50%
+1 −1
Q&A yyyy/mm/dd instead expected dd/mm/yyyy format in PHP-created-HTML output

I have an HTML-PHP-CSS contact form with a date field: &lt;input type="date" name="date" id="cf_input_date"&gt;&lt;/input&gt; The default value in this field is the W3C built-in default: dd/m...

1 answer  ·  posted 1y ago by deleted user  ·  last activity 1y ago by Peter Taylor‭

Question php html css
60%
+1 −0
Q&A Backendly redirecting a user from a contact form webpage to a success webpage

On a CentOS Apache-MySQL-PHP environment I have a website with a simple HTML-PHP-CSS contact form; the contact form itself is working. This is how I backendly redirect a user from the contact form...

0 answers  ·  posted 1y ago by deleted user

Question php validation
50%
+0 −0
Q&A PHP for simple HTML-PHP-CSS contact form --- aimed solely for RTL websites

As a non PHP programmer I have tried to program some basic PHP mail() function code to send Right To Left (RTL) contact form messages to my local email client (i.e. an email client which is affilia...

0 answers  ·  posted 1y ago by deleted user

62%
+3 −1
Q&A PHP emails are sent when $message is a string, but not when its an array

I host my website on a CentOS-Bash, PHP and MySQL environment; my local email client is engined by Roundcube. I don't know almost anything about PHP nuances. While my web domain registration is do...

2 answers  ·  posted 1y ago by deleted user  ·  last activity 1y ago by manassehkatz‭

Question php
57%
+2 −1
Q&A Not obligating http:// or https:// in a url field of a contact form

I have a simple HTML-PHP-CSS contact form (no JavaScript) with an input type="url" field. Currently in 30/03/2021, the default behavior of input type="url" (by W3C design I guess) is to obligate t...

1 answer  ·  posted 1y ago by deleted user  ·  last activity 1y ago by Alexei‭

Question php javascript html
71%
+3 −0
Q&A PHP variables aren't expanded when inside HTML which is by itself inside PHP

I transfer emails from my Right To Left (RTL) contact form → to my local email box (powered by Roundcube). Emails reach my email box (inbox) just fine but I have a problem were PHP variables aren'...

1 answer  ·  posted 1y ago by deleted user  ·  last activity 1y ago by luap42‭

Question php email
57%
+2 −1
Q&A Are JavaScriptless forms accessible?

I consider to make my website's contact form totally javascriptless (only HTML-PHP-CSS --- no JavaScript at all). No modals or alerts No prevent default No AJAX/AJAX/XHR/JHR No form disappear...

1 answer  ·  posted 1y ago by deleted user  ·  last activity 1y ago by Alexei‭

50%
+0 −0
Q&A Creating a Right-To-Left, primarily-backend, HTML-PHP contact form

I host my website on a PaaS-modeled, shared hosting environment by SiteGround which is quite a well known hosting company with (as I believe) well-venerated email servers. I am trying to create ...

0 answers  ·  posted 1y ago by deleted user  ·  edited 1y ago by deleted user

Question php html contact-form
50%
+2 −2
Q&A Mocking tempnam() with vfsstream

How do I mock tempnam() with vfsStream for code that uses it to create temporary files (for example, in a PHPUnit test)?

1 answer  ·  posted 2y ago by tyteen4a03‭  ·  last activity 2y ago by summea‭

72%
+6 −1
Q&A What are the pros and cons of using objects vs associative arrays for JSON results of a CURL request in PHP?

I have a PHP script that uses CURL to return a JSON result that looks //Curl set up code $result = curl_exec($ch); //Error checking code $json = json_decode($result, true); //Code to process r...

1 answer  ·  posted 2y ago by Charlie Brumbaugh‭  ·  last activity 2y ago by Yaskur‭

Question php json
71%
+3 −0
Q&A In PHP what is the use case for include instead of require when including PHP scripts?

In PHP one can either use include or require to include files, the difference is that if the file doesn't exist it will emit a fatal error and halt with a require and only emit a warning with inclu...

1 answer  ·  posted 2y ago by Charlie Brumbaugh‭  ·  last activity 2y ago by Marijn‭

Question php
71%
+3 −0
Q&A Iterating through a MySQL table with a LIMIT clause and PHP gets progressively slower

I have a very large table that I need to iterate through with a PHP script and I can't do all of the results at once so I do it in sections with a LIMIT like for ($x = 0; $x &lt; 10000000; $x += 1...

1 answer  ·  posted 2y ago by Charlie Brumbaugh‭  ·  last activity 2y ago by ArtOfCode‭

Question php mysql
80%
+6 −0
Q&A PHP script to create a KML square centred on a point.

The objective here is to create a set of square kml coordinates centered on a point. I use this to create a square map centered on a mountain peak and then turn that into a STL that I can 3D print....

2 answers  ·  posted 2y ago by Charlie Brumbaugh‭  ·  edited 2y ago by Moshi‭

Question php stl-format
80%
+6 −0
Q&A How to store credentials for PHP scripts on a Windows machine?

I have a number of command line PHP scripts that are either run by a user or by Windows Task Scheduler. These scripts use DB and API credentials and I am wondering if there is a better way of stori...

1 answer  ·  posted 2y ago by Charlie Brumbaugh‭  ·  edited 2y ago by Charlie Brumbaugh‭

Question php windows

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!

Like what we're doing? Support us! Donate