473,543 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
1
2,879
thread by: bakertaylor28 | last post Feb 27 '21 by: Niheel
Is it possible to store a file (such as an image, pdf file, mp4 video file, etc.) in a SQL database, and then call that file back out of the database to use in web content? If so, how do you do this?
3
4,067
thread by: bakertaylor28 | last post Feb 28 '21 by: Niheel
I've tried the following code, which executes without error, but yet I see nothing in phpMyAdmin to reflect the inserted data: <?php // Require files for server-side includes for fpdf library, functions script, and database connection info. require $_SERVER."/scripts/fpdf/fpdf.php"; require $_SERVER."/scripts/functions.php"; require...
2
2,542
thread by: bakertaylor28 | last post Mar 3 '21 by: bakertaylor28
I have a situation where i've used a session variable to store a user's custom session privilege to be used to determine which version of a table to show based on the user's predefined privilege. (a one character VARCHAR string which is set to 0, 1, or 2 in the SQL table where 0 means banned, 1 means regular user, and 2 means app administrator)....
0
2,164
thread by: saibot | last post Mar 7 '21 by: saibot
I want a expression that replaces more than 2 newlines and more than 4 spaces with 2 newlines / 1 space. Now I have a working regex expression: "{5,}|^\n{2,}": But now I have a problem: In PHP I have to say what I want it to replace with and as I have multiple replaces I have to have multiple preg_replaces. Could anyone please make a...
6
21,111
thread by: luna Baker | last post Mar 9 '23 by: vipulguptaseo
I am New Developer in PHP. still, laravel is worthy? Why Laravel is so famous?
2
9,382
thread by: hadimansouri | last post Feb 21 '23 by: Vanisha
Which book or books do you suggest to learn PHP at different levels (from beginner to professional)?
1
11,401
thread by: yakovcohen94 | last post Jul 3 '21 by: dev7060
Hello everybody! I am building an online store and I need help. I have a user database system on my site. I want to create a support system with tickets. I copied this script and upload to local server ( I use XAMPP ). Everything is working, but... I cannot connect this script to my site... I will be cool if somebody can help. Here's...
5
11,064
xarzu
thread by: xarzu | last post Feb 15 '23 by: Vanisha
What are the pros and cons of plain PHP or Classic ASP? PHP and Classic ASP are server-side scripting languages. What is wrong with having a website written in this instead of the trendy JavaScript Frameworks like React, Angular etc.? If memory serves me correctly, there is an issue with security where you can post in a text box some script and...
2
15,171
thread by: Nithin George | last post Feb 26 '23 by: bakertaylor28
<?php include 'connection.php'; if(isset($_POST)) { $name1=$_POST; $email1=$_POST; $re_email1=$_POST; $npass1=$_POST; $npass2=$_POST; $phone1=$_POST;
4
13,501
thread by: mopufo | last post Nov 4 '21 by: mopufo
My website has a back-end admin area used by volunteers to add content to the Db which contains over 60 table. When each volunteer logs into the Admin area I store their Username and access lever in the $_SESSION associative array. This information is used in a log record when a record is updated. At the beginning of each Admin module I test...
6
16,676
thread by: warner | last post Jul 14 '22 by: Willjoe
Hi, I want to remove one element from array so i'm using unset function but it also remove that index number. I want to re-index after removing array. is there any solution?
4
19,202
ADezii
thread by: ADezii | last post Jul 27 '22 by: ADezii
Does anyone know how to programmatically Upload a File to a SharePoint Folder, under ...Shared%20Documents, using PHP? I have been unable to find any valid references. All Users of this Site are authenticated. Thanks in advance.
0
4,402
ADezii
thread by: ADezii | last post Jul 13 '22 by: ADezii
Can someone tell me how I can dynamically Upload a File to a SharePoint Site to a Sub-Folder under Shared%20Documents?
6
44,550
thread by: exploretech | last post May 30 '23 by: miabaker
Which programming language does PHP resemble? Please tell me
1
17,007
thread by: Ajithguru741 | last post Feb 25 '23 by: bakertaylor28
i am trying to built urer registration and user login page the registration page works perfectly fine.(the enterted data is stored the the database with $hash password) <?php $showError="false"; if($_SERVER == "POST"){ include '_dbconnect.php';
1
7,095
thread by: tayyab772 | last post Oct 18 '22 by: dev7060
Hi Actually i have a problem in my php sql ecommerce project that i am not able to change currency symbol $ to pkr and i tried to change it from php files and phpmyadmin but never find any solution .If someone can guide me ill be thankfull
0
9,561
thread by: ravi6070 | last post Dec 12 '22 by: ravi6070
i get error msg like this.... Parse error: syntax error, unexpected end of file in C:\xamppp\htdocs\crud\display.php on line 54 my code is <?php include 'connect.php'; ?> <!DOCTYPE html>
0
8,838
thread by: bakertaylor28 | last post Feb 25 '23 by: bakertaylor28
How do we use something like the following? I can't seem to find anything practical on how to use the true/false return or on how to supply parameters to a function. <?php function validate_email($email){ $exp = "^+(+)*@(+(+))+$"; if(eregi($exp,$email)){
0
1,068
thread by: nander | last post Mar 13 '23 by: nander
Hi has anyone seen an error like this before I believe it has to do with logging into a page using domain credentials but our logins have been converted to exchange online (PHP Fatal error: Uncaught TypeError: ldap_get_dn(): Argument #2 ($entry) must be of type LDAP\ResultEntry, bool given in /var/www/html/folder/external/ldap.php:26\nStack...
1
17,039
thread by: Matthew3360 | last post Jun 5 '23 by: Niheel
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the redirect. I keep finding it is not redirecting and is just ignoring the request. Kind regards Matthew
1
16,463
thread by: Matthew3360 | last post Jun 5 '23 by: Niheel
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a 404 error when i try and connect. How could i fix this. $concurl = curl_init(); curl_setopt($concurl, CURLOPT_URL,...
0
495
PHP Secure
thread by: PHP Secure | last post Nov 17 '23 by: PHP Secure
Heyo, my name is Theo! My team and I have just finished working on the PHP code security scanner and I'm the one in charge of asking people in the coding community for feedback. As you can tell, our team is really small since a Senior Backend Dev was tasked with this ahaha. But actually, I've been chosen for this since I'm really passionate...
1
963
muto222
thread by: muto222 | last post 1 Week Ago by: dev7060
How can i add a mobile payment intergratation into php mysql website.
2
123
thread by: Percepticon77 | last post 1 Week Ago by: developercat
I want to cache part of my application to make it faster. The database I use is MySQL. How do I know what to cache in redis? Should I be caching MySQL results? Or the output we send to the client? What else can I use redis for to improve application performance?
2
102
thread by: Wilford24 | last post 8 Hours Ago by: marianklux
Greetings, I run a tech blog site and its a PHP-based website. But there is a XSS attack occurs on my website. So for that reason, the traffic of my site is gradually decreasing. Here is my website. Can anyone please suggest what to do? How can I save my website?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.