https://baransel.dev/post/how-to-install-php8-on-centos/
I've followed tutorials like this w/o avail. Everything works but when at last I do php -v, I see different version of php not 8.x.
I'm hosting a database containing usernames and password hashes, and have written a little PHP API which accepts HTTP post requests (sent from an iOS application via Alamofire for Swift) containing two parameters, username & password, checks against the database & returns some JSON data...
Hello! (Wave)
I wanted to ask you if you are familiar with html, css, javascript and php... What is it about? 🤔
Here is for example an exercise:
Implement in HTML and CSS the site that is shown below (the specifications are marked with red). The site will be without functionality. How would...
for reference you can see JS in formulajs.info/functions.
lognormdist use by call : formulajs.LOGNORMDIST(value, mean, stdev, true)
logpearsondist use by call : formulajs.NORMSDIST(z, true)
anybody can help?
is it PHP-MySQL?
In websites accounts of users tend to be stored in servers, and on these servers they store the data in some syntax and use PHP, RUBY or something else to add/change the information.
Is it the same in bank accounts? In what format is banking information stored?
Hello ! I have a php code that I'd like to use as a vbs one. But I don't know exacly how to do so. Could you help me please ?
Actually, my vbs script will read a file line by line, take the first word, put it in 'LastName' and after the space, take the "FirstName". But if you reverse the Last...
For example instead of uploading an index.html to a server, would I just use index.php instead?
Basically I want to be able to use PHP code to make my page more interactive.
Hi,
I am having problems integrating HTML, Javascript and PHP. I am using the instructions at this website to transfer data from PHP to Javascript:
http://www.dyn-web.com/tutorials/php-js/scalar.php
and have set up the following simple code to simply transfer a PHP array to Javascript but I...
The code
is supposed to generate
0
1
2
My question is this: If we declare $x = 0 in the function then why doesn't it reset to 0 every time we run the function?
-Dan
Hello everyone!
I have designed a page set all it's input to the php Post variable.The form's method is set to POST and action to
process.php which is the script i created.Both the script and the page are in htsocs directory.when i submit the form,the contents of the script simply appear in the...
Hello everyone..
I am learning php and I'm new to php.I don't know much about it.
i watched a tutuorial on it that told me i were to put my scripts into the HTDOCS folder.
My question is that is it necessary to my html and css files into HTDOCS folder?Will it work?
I am running xampp..
thanks.
I'm really stuck at knowing about PHP..
What will happen without using PHP on your website?
I know it's server side but why we need it?to process forms?how PF uses PHP?
Hi, I want to write an ebook on CSS, HTML and php, and I'm using a RTF copy/paste plugin to my code editor so i can copy and paste code directly into MS Word from my code editor.
I'm just wondering: Can i write the whole book in MS Word and then directly upload it to amazon, for ebook readers...
Dear Friends,
I am new here and I would like to ask you for an advise. I have the opportunity to start a scholarship with a good school with Cambridge International Certificate.
At this school I have opportunity to choose one of two modules: PHP Web Development or Java Development.
I worked...
My cousin gave me this file
The commands eval(gzinflate(base64_decode())); decodes the entered code and run it as a php code .
The problem is that its not the only decoding command there are several of this command in the code .
I used this command for the code and put the result in a...
Dear PF Forum,
I want to learn web programming, but there are specifics information that I need to know.
What is the most famous database in web programming? My SQL?
Is it true that PF Forum database is MySQL?
If this is true, then the conclusion is MySQL can handle millions of post, hundreds...
It has been a few weeks since i started practicing programming seriously . I am kind of new to object-oriented programming
I have been working with C# till now . I have started working with php now and playing with web languages (css , html , javascript)
How many languages have you worked with...
I recently finished a course of html and css at codeacademy.com and I think I learned a lot from that but I do not feel prepared to make websites that can, for example, load another page when a button is clicked.
Overall I want to know what type of languages are used to program sites like...
using namespace std;
class A
{
int i;
public:
A();
void Set(int& i){this->i=i;}
void Print(){cout<<i<<endl;}
};
int main()
{
int *i=new int;
A ra;
i=10;
ra.Set(*i);
delete i;
ra.Print();
}
I think after delete i, the value in Set will also be deleted. Isn't...
A friend of a friend in E. Europe (Macedonia) wants to learn programming (PHP/MySQL) at a business college and hopes eventually to come here in work.
It has been my (possibly highly ignorant) understanding that, as far as Western corporations are concerned, diplomas from European are...
The following Lagrange interpolation function is extremely useful. It can be used in just about any branch of science. I use it extensively in astronomical computations for such things as finding the dates and times of the seasons over thousands of years and phases of the moon at any given...
The general integer factorial can be expressed by the equation:
$$N! = \prod_{x~=~1}^N {x} = {1 \cdot 2 \cdot 3 \cdot ~~...~~ \cdot N}$$
This simply means that N-factorial is the sequential product of all integers from 1 to N.
Below is a simple PHP function to compute the arbitrary-precision...
PHP has some powerful arbitrary-precision (BC or binary calculator) arithmetic functions which seem to be greatly underused and only consist of the basic arithmetic operations, a square root function, a mod function and an integer power function.
However, those basic operations can be used to...
Here's the setup:
I'm trying to write a PHP script to spam my buddy's website. He has given me full permission to try and do so. I have a very rudimentary understanding of HTTP protocols and am probably doing something wrong, because my attempt hasn't been working.
Here's my PHP script...
I have a site made in PHP eons ago by someone I no longer have contact with. Lately site was attacked with a SQL injection attempt. Input is sanitized, so there is no immediate danger for the database, but this attack exposed vulnerability - if value of one the parameters is not from the...
Hey folks! Wow...been a while since I posted here.
So this ought to be a simple script I'm running in Command Prompt, but it completely skips the part where it asks the user to enter a number (after asking how much would you like to withdraw (or deposit) )
What gives?
<?php...
Heeeeeeellllllllllllllooooooooooooo,
I have a question about HTML and PHP:
Firstly, I am using Apache2 and PHP5 (I think) and running it as a localhost.
I created a simple HTML form that sends the variables via post to a PHP file; there are two variables with the names "nickname" and...
i am making a comment system using dreamweaver and mysql ,
and the data i wrote it in the text area didnt not save in the mysql _db ,
below the index page contain the general fourm to let the user write comment
and post_comment.php to send the data
can you help me why the data didnt send...
I'm seeing all the awesome languages - Java, C, C++, Python, etc., but I'm not seeing any of the web-languages. I've yet to see a recent thread on ASP.NET or PHP, or much of anything like that.
So, does anyone here know PHP?
Postby Robbie8 » Mon Sep 03, 2012 7:44 pm
Hi,
I am using a php view to show a table of all the entrants in my projects with their number, name, rounds and points.
I have two projects Project One and Two which have their results displayed in tables. The width of the columns for the values in...
I'm going through a php tutorial right now and this math example below is driving me nuts. The exmaple was "((1 + 2 + $var1) * $var2) / 2 - 5", and all the rest of the code below is just me trying to figure it out.
The answer ends up being "7", but to me it looks like PHP is sayding "24 / -3...
Hello!
So this is minimally image processing, but I didn't know what else to name this thread.
I'm working on a project and basically, I have this image (see attached file) that's provided to me. That's all I have to work with. The first column of colored pads represents my test pad...
WEBSITE HIJACKED - Php code infected! - HELP!?
Hey All,
I've got a major *$%#@ problem. I'm freaking out here.
Check this out.
On my website, I have a way to allow visitors... to become distributors and sell my product as well. When they become a distributor, it creates a subdomain for...
Hello All,
First and foremost, thanks for the help in the past. I've got a new issue and I think it's going to be fairly easy! (fingeres crossed)
OK, I'm implementing SecurImage (Phpcaptcha.org) onto my website.
I've got everything installed and working correctly except for error...
Good Evening All!
Well... that registration was fun. I'm red/green colorblind (I guessed green and got it right!).
Anyways... I've got a problem (other than my color blindness).
My website, www.FireBellyLawnCare.com, is up and running. The designer... sadly... is out of contact. I would...
I have this PHP code to edit all HTML text to be displayed so that it won't appear as HTML but as standard text.
<?php
function htmlformat($sinput){
$newphrase = str_replace("<", "<", $sinput);
$newphrase = str_replace(">", ">", $newphrase);
$newphrase =...
I want to remove my clients browsing history every time they access new pages from my website. is there any code, i keep searching the net and i can't find one.
I was wondering if was possible to create a constant array in php so it doesn't have to be reinitialized each time you enter a function. I guess one solution is to make it global but from a code maintenance perspective it makes since to put the array in with the function that uses it.
I would like to start blogging using WordPress. I've heard that my ISP needs to support PHP and MySQL in order for this to work? I have no idea what either is but I have seen a few examples of small test-files (info.php) I can upload to my site and attemp to view them in order to find out if my...
Hi,
I already have a static website, and now I am trying to design a dynamic website.
I used Apache, PHP, and MySQL and setup on my computer (hostname = localhost) and tested my member directory database. It worked fine that I can add, edit and delete, and update the data from table.
I...
I'm a little confused about how PHP's session_start() function works.
There's a tutorial I am reading here: http://www.tizag.com/phpT/phpsessions.php
Here's an example they give of a counter script:
<?php
session_start();
if(isset($_SESSION['views']))
$_SESSION['views'] =...
My second PHP question this week...:smile:
I'm writing a PHP app which includes things such as form validation and database interaction. So far, almost everything has been written procedurally. However, I started playing around with PHP's OO stuff, and it's cool. Problem is, this app is being...
I would like to learn some PHP and I would like some advice on where to start, what I would like to do is the following:
Customers to visit the store and only be able to view Regular Prices of the Products.
I would like to hide the Special/Sale Prices for certain Products (and be able to...
PHP - "Wrong datatype for second argument"
So I build this class in my library file (assume that I have all the PHP tags and stuff)...
class errorchecker {
var $error;
function errorsearch($error) {
if (in_array($error, $pb)){
echo '<div class="error">'.$error.'</div>';
}
}...
Hi,
I was thinking of learning c++ as it would help me in my first year at university. However, someone told me that i should learn php first as it is easier and then learn php.
Is that true?
If not then are there any good tutorials on the internet for C++?
Thanks.
Hi all,
I have this xml xsd pattern defintion;
[A-Z,0-9]{5}[0-9][0,1,5,6][0-9]([0][1-9]|[1-2][0-9]|[3][0,1])[0-9][A-Z,0-9]{3}[A-Z]{2}
and I need to convert it into an ereg regular expression to valid some input from a form. I've been at this for hours but can't seem to get anywhere...
Ok here is the code below, I need to know what I need to change in this code for it to be able to be a clickable link... I have many layouts and want to add more but with so many pages, its a bit hard to go through 49 pages just to add one page. I already submitted this problem to web design...