Php Definition and 74 Threads
-
How to install PHP 8.x on centos 7?
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.- Brief-Wishbone
- Thread
- install Php Tutorial
- Replies: 1
- Forum: Computing and Technology
-
Implementing secure login with Swift and a PHP API
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...- ergospherical
- Thread
- Php
- Replies: 13
- Forum: Programming and Computer Science
-
HTML/CSS How can I implement a website using HTML and CSS without functionality?
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...- evinda
- Thread
- Css Html Javascript Php
- Replies: 187
- Forum: Programming and Computer Science
-
LOGPEARSONDIST and LOGNORMALDIST Function in PHP
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?- gind_id
- Thread
- Function Php Statistic
- Replies: 2
- Forum: Programming and Computer Science
-
J
PHP What programming language is used to store Bank Acct's/money?
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?- Jarfi
- Thread
- Accounting Language Php Programming Server
- Replies: 8
- Forum: Programming and Computer Science
-
D
PHP Correlate VBS and PHP for Server Use
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...- dunnome
- Thread
- Php
- Replies: 13
- Forum: Programming and Computer Science
-
HTML/CSS How does PHP work with HTML files?
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.- kolleamm
- Thread
- files Html Php
- Replies: 23
- Forum: Programming and Computer Science
-
A
Java How to communicate between javascript and php?
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...- aheight
- Thread
- Javascript Php
- Replies: 21
- Forum: Programming and Computer Science
-
MHB PHP Static Variables: Why Doesn't It Reset?
The code [FONT=Consolas] 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- topsquark
- Thread
- Php Static Variable
- Replies: 5
- Forum: Programming and Computer Science
-
PHP PHP Script Problem: Troubleshoot the Error
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...- Dave Ritche
- Thread
- Php
- Replies: 12
- Forum: Programming and Computer Science
-
HTML/CSS Are HTML and CSS files necessary in the HTDOCS folder for PHP to work in XAMPP?
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.- Dave Ritche
- Thread
- Php
- Replies: 3
- Forum: Programming and Computer Science
-
PHP Understanding PHP: What is It & Why Do We Need It?
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?- Dave Ritche
- Thread
- Php
- Replies: 4
- Forum: Programming and Computer Science
-
C
HTML/CSS HTML, php and css code in ebook, proper formatting?
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...- christian0710
- Thread
- Code Css Html Php
- Replies: 4
- Forum: Programming and Computer Science
-
V
Java Which Programming Language is Better for Web Development: PHP or Java?
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...- vprohnitchi
- Thread
- Advise Java Php School
- Replies: 9
- Forum: Programming and Computer Science
-
PHP How can I decode multiple layers of encoded php code?
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...- AliGh
- Thread
- File Php
- Replies: 9
- Forum: Programming and Computer Science
-
PHP Learning Web Programming: MySQL & PHP for Complex Websites
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...- Stephanus
- Thread
- Complex Mysql Php Programming Web Websites
- Replies: 16
- Forum: Programming and Computer Science
-
C# Can C# and PHP be used together for web development?
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...- AliGh
- Thread
- Php
- Replies: 4
- Forum: Programming and Computer Science
-
JavaScript What scripts do websites like unitednuclear.com use?
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...- lonely_nucleus
- Thread
- Css Html Javascript Php Websites
- Replies: 3
- Forum: Programming and Computer Science
-
PHP Why Does the Value Persist After Deletion in This PHP Code?
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...- Silicon Waffle
- Thread
- deleted Php
- Replies: 4
- Forum: Programming and Computer Science
-
International PHP software diploma - worth?
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...- DaveC426913
- Thread
- International Php Software
- Replies: 10
- Forum: STEM Academic Advising
-
MHB Computing The Arbitrary-Precision Nth Root Of Positive (X) In PHP
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...- Jay1
- Thread
- Computing Php Positive Root
- Replies: 1
- Forum: General Math
-
W
PHP Mastering PHP and MySQL: A Beginner's Guide
I want to learn about and PHP and MysQuL. Someone tell me How to learn it?- webdevelopment
- Thread
- Php
- Replies: 15
- Forum: Programming and Computer Science
-
J
PHP Using PHP and cURL to submit POST requests to a website
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...- Jamin2112
- Thread
- Curl Php
- Replies: 7
- Forum: Programming and Computer Science
-
PHP Limiting Output from Unmaintainable PHP Code
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...- Borek
- Thread
- Output Php
- Replies: 7
- Forum: Programming and Computer Science
-
PHP My php code skips a user request please look inside
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...- Femme_physics
- Thread
- Code Php Request
- Replies: 22
- Forum: Programming and Computer Science
-
N
HTML/CSS HTML and PHP issue: display HTML form variables using PHP echo
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...- nobahar
- Thread
- Echo Form Html Php Variables
- Replies: 6
- Forum: Programming and Computer Science
-
S
Why Isn't My PHP Comment System Saving Data to MySQL Database?
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...- Sumaya
- Thread
- Language Php System
- Replies: 1
- Forum: Computing and Technology
-
PHP Is PHP Still Relevant for Modern Web Development?
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?- Chemicist
- Thread
- Php
- Replies: 22
- Forum: Programming and Computer Science
-
R
PHP Advice on how to set column widths in 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...- Robbie8
- Thread
- Column Php Set
- Replies: 7
- Forum: Programming and Computer Science
-
S
Mastering PHP Math: Solving a Tricky Example in a Tutorial
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...- simy202
- Thread
- Php
- Replies: 1
- Forum: General Math
-
E
PHP PHP programming, image processing
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...- eprparadox
- Thread
- Image Image processing Php Processing Programming
- Replies: 4
- Forum: Programming and Computer Science
-
B
PHP WEBSITE HIJACKED - Php code infected - HELP?
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...- bigdawg723
- Thread
- Code Php
- Replies: 5
- Forum: Programming and Computer Science
-
B
PHP Preventing SQL Injection in PHP Forms
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...- bigdawg723
- Thread
- Php
- Replies: 4
- Forum: Programming and Computer Science
-
B
PHP Solving PHP Issue with FireBellyLawnCare.com CMS
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...- bigdawg723
- Thread
- Cms Php
- Replies: 15
- Forum: Programming and Computer Science
-
C
PHP str_replace function problem
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 =...- chrisalviola
- Thread
- Function Php
- Replies: 4
- Forum: Programming and Computer Science
-
C
Java Is there a javascript or php code to remove browsing history?
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.- chrisalviola
- Thread
- Code History Javascript Php
- Replies: 2
- Forum: Programming and Computer Science
-
J
PHP PHP Constant Arrays: Is It Possible?
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.- John Creighto
- Thread
- Arrays Constant Php
- Replies: 1
- Forum: Programming and Computer Science
-
T
Can I Use WordPress with My ISP? Understanding PHP and MySQL Support
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...- TSN79
- Thread
- Isp Php Support
- Replies: 4
- Forum: Computing and Technology
-
M
PHP How Can I Replace My Static Website with a Dynamic Website Using PHP & MySQL?
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...- Mike Phan
- Thread
- Dynamic Mysql Php
- Replies: 4
- Forum: Programming and Computer Science
-
PHP How does PHP's session_start() function work?
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'] =...- Math Is Hard
- Thread
- Php
- Replies: 2
- Forum: Programming and Computer Science
-
J
PHP PHP -OO or Functional for speed/ knowledge demonstration?
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...- jgg
- Thread
- Demonstration Functional Knowledge Php Speed
- Replies: 2
- Forum: Programming and Computer Science
-
J
PHP PHP - Wrong datatype for second argument
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>'; } }...- jgg
- Thread
- Argument Php
- Replies: 2
- Forum: Programming and Computer Science
-
M
PHP Flash, PHP: Font sizes don't match
Has anyone noticed that the font size for Flash and the font size for GD images in PHP don't give the same text size?- mtanti
- Thread
- Flash Font Match Php
- Replies: 8
- Forum: Programming and Computer Science
-
H
C/C++ Should I Learn PHP Before C++ for University?
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.- hasnain721
- Thread
- C++ Php University
- Replies: 40
- Forum: Programming and Computer Science
-
S
PHP PHP Syntax Error: Unexpected '>' Character
<?php require("header.php"); $sql = "select entries. * , categories.cat FROM entries, categories WHERE entries.cat_id = categories.id ORDER BY dateposted DESC LIMIT 1;"; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); echo "<h2><a href='viewentry.php?id=" ...- sean1234
- Thread
- Code Php
- Replies: 8
- Forum: Programming and Computer Science
-
PHP Using PHP eregi Function - Solve XML XSD Pattern Definition
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...- Hootenanny
- Thread
- Function Php
- Replies: 2
- Forum: Programming and Computer Science
-
P
PHP Help with php and this part of the code ?
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...- pattersonz
- Thread
- Code Php
- Replies: 1
- Forum: Programming and Computer Science
-
S
Get PHP Coding Help for Beginners | Troubleshooting Tips
I am just starting out with this and am having trouble getting the code to translate to a webpage. It is not really clear as to how this is to be done. I have created a basic program in notepad, saved it as .php and have attempted to open in IE but get a message that says something about not...- sean1234
- Thread
- Coding Php
- Replies: 4
- Forum: Computing and Technology
-
Imagecreatefrompng() function in php
I was experimenting with the imagecreatefrompng() function in php. There was an example here: http://us2.php.net/imagecreatefrompng I tried to modify it to use an image called full.png in my img folder. aaaimage.php #!/usr/local/bin/php <?php function LoadPNG($imgname) {...- Math Is Hard
- Thread
- Function Php
- Replies: 2
- Forum: Computing and Technology
-
PHP Form data passed to php if statement
Howdy, tonight I was playing around with trying to pass a value from a form field and use it for an "if" statement in php. the html: <HTML> <HEAD> <TITLE>Form Test</TITLE> </HEAD> <BODY> <H1>Form Test</H1> <form name="input" action="myscript.php" method="get"> Enter a 1 or a 2...- Math Is Hard
- Thread
- Data Form If statement Php
- Replies: 2
- Forum: Programming and Computer Science