PHP Scripting Forum - Main Page

Have a question or want to show off your project? Post it! No Registration Necessary.  Now with pictures!

PHP Scripting Forum - PHP programming language discussions
Web, RSS and Social Media interface to comp.lang.php
There are 143119 individual articles here that are part of 25155 discussions
Please see below the list of the most recent and the best rated articles in PHP Scripting Forum

The most recent discussions

URL redirection

October 13, 2016, 6:57 pm

I have a site, which has users, and I would like to go say, a profile page for each user. However, say each user can post posts, I'd like to go to a p... Read more »

Seamless SSO

  [ 2 ]
October 2, 2016, 9:37 am

Hi! How to develop a S-SSO for a PHP-page? We are using Apache with PHP 5.5 and the Internet Explorer in a MS AD network. We tried to use www-authenticate with NTLM but we can't check against LD... Read more »

google map api key how?

September 26, 2016, 10:34 am

this code not work anymore is need to use api key how can to change the above code? Read more »

Set web page lang via .htaccess

September 24, 2016, 2:22 pm

Hi all, I'm trying to prepare right .htaccee mod rewrite rules for my online shop. On my store, lang is set by lang_id variable on the url:[pl, en, de] I ne... Read more »

Multiple PHP sections in a page - scope...?

September 24, 2016, 7:04 am

If there are 2 or more sections in one HTML page, can the ones below access variables or functions in the ones above? What if they're NOT below, ie, is there hoisting? Thanks. Read more »

How to know the last arg in a series

September 19, 2016, 6:51 am

If I have a page where there are args like arg1=2&arg2=93&arg3=112, and so on, but there is No Limit to how many args there can be, how do I find out which one the last arg is (arg3 in the above case... Read more »

HTTPS data in a form

  [ 2 ]
September 16, 2016, 4:45 am

If I have a form where there's a username and a password, and I'd like only the *password* to be encrypted before being sent to the server, NOT the us ername, how do I code the form HTML? I'm not... Read more »

Need help with two-way script

September 8, 2016, 1:48 am

I am coming here because I don't really even know what to google for, and I'm sure that many of you can do this with your eyes closed. That's why I'm coming to the experts. Here is the scenario... Read more »

Editor with syntax highlighting for HTML, CSS, Javascript AND PHP

September 6, 2016, 2:41 pm

If I'm writing a website which has ALL these languages on it, is there any editor for Linux which will correctly detect ALL of them, and provide the colours, with DIFFERENT COLOUR SCHENES FOR EACH LA... Read more »

What's a good web access log software?

September 6, 2016, 2:37 pm the very least I'd like to know which countries are hitting my site, and how many per country... I'd also like *each* accessing IP to be logged, in case I wanna do a WHOIS on it, to see *wh... Read more »

Preventing bombing

September 6, 2016, 6:28 am

If I have a site where people will log in and make posts, what's to stop someone logging in manually, ie. with the password they've signed up to the site with, and THEN running the bombing script to ... Read more »

file with a security word

September 1, 2016, 9:28 am

in a file I have a function when one access at the file, to have initially a text box where is necessary to insert a word Safety (similar at password but must to be in clear) to continue the cod... Read more »

Rant: http_build_query() and arg_separator.output

August 26, 2016, 7:05 am

I just spend nearly an hour to debug a very strange problem with a WordPress plugin in a shared hosting environment which caused endless redirect loops and didn't work at all. In the end I found o... Read more »

Class 'Model' not found

  [ 2 ]
August 21, 2016, 2:35 pm

Hello,please say how to fix error? 12 line - $class = new Model(); Read more »

PHP Warning: extract() expects parameter 1 to be array

August 20, 2016, 4:15 pm

Hello! I have written a small file that extracts information from a txt file passed in as a command line argument, and inserts all information, line by line, into sql table. When I run the program,... Read more »

Issue with extracting values from the string (initially from a file) to ins...

August 20, 2016, 12:06 pm

Hello! I will be grateful for your help on the issue of extracting values from a string, which I have obtained from a file. I have stored a file US.txt in my home directory from http://download.... Read more »

zniekształcony HTTP_REFERER

August 18, 2016, 1:20 pm

Zapisuję (w CodeIgniterze) do tabeli z kolumną varchar(200) wartość pobraną z $_SERVER['HTTP_REFERER'] i mam w bazie napis: http //localhost/~robert/announcement?XDEBUG_SESSI tzn. bez dwukro... Read more »


August 18, 2016, 3:02 am

- No Bottlers Please _ // V _ ,'.`-. | `. `. ( `. `-. _,.-: `. `-._ __..--' ,-';/ `. `-. `-..___..---'... Read more »

Show Loading image while data gets loaded

August 17, 2016, 3:41 am

Hello I am using a web service to fetch some data from another server I am running and based on the result I get I run foreach loop and show results. Now I am using file_get_contents to fetch data N... Read more »

headers and client library mismatch

August 12, 2016, 11:24 am

Recently the following warning popped up on a script I am developing: Warning: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50546 Library:50631 in /home/michigan/... Read more »

Click here for other recent discussions »

The best rated discussions


PHP mysql stock control program

HI i have a sever i setup myself it's a windows webserver for office only i'm beginer to php and mysql i learn some php/mysql programing but i not that good so i made up a project for a stock softw... Read more »


get class name of static method

Please see the question in the code below: Read more »


PHP and WebSockets

Here is a quick hack to implement websockets in php. Read more »


PDO and delimiters.

Hi, I am executing some statements on a MySQL db via PDO::exec($statement). Other statements work fine on the database, e.g. creating tables. However, anything with the line DELIMITER ;; fails with a... Read more »


Looking for image ranking script

I've seen a few out there, ranging from free to $150. I was looking for a recommendation for an image ranking script, like the one at You have 10 radio buttons for quick voti... Read more »


How can I backup my iPhone sms conversations to Computer

How can I backup my iPhone sms conversations to Computer and even print out our iPhone SMS? Here is an easy way on how to transfer and backup your iPhone SMS messages from iPhone to your PC and manag... Read more »


Paper sizes in FPDF

Hello I have used FPDF for our documentation, and now they found that we need bigger sizes - some new drawings are in - I guess - A2. And FPDF can only handle max A3. In the file fpdf.php line 119, I... Read more »


Could not save the file /var/www/html/rite.php.

hi i installed php in fedora 13 and the problem is i saved the files in /var/www/html if i log in as a root i use vi editor and save the files no problem but i logged in as a normal user using the g... Read more »


session variables

I have come across this problem before but never really resolved it. It is probably something so obvious that I should be embarrassed to even ask in this forum. The problem is one of losing the va... Read more »


Record pagination with count of total rows

  [ 2 ]

Hi all, I'm struggling with a concept here, and I'd like to pick some brains. I've got a series of report pages with complicated queries that return row counts in the 10s of thousands. These are pag... Read more »


Open Source alternative to istockphoto

Hello, I'm just wondering if there is any opensource alternative for something similar to Greetings Read more »


Expire session on browser close or back button

I am developing one website in which I have the following requirements which are pretty much similar to banking website behavior: - Expire session when browser is closed - Expire session wh... Read more »


OpenSSL support => disabled (install ext/openssl)

Ive spent several hours trying to figure out why I cannot get php working with openssl. I configure php-3.5.6 with the following (on Fedora 13): configure --prefix=/opt/php536 --with-apxs2=/opt/apac... Read more »


Sanitising input

  [ 2 ]

Hi all I'm writing a simple script which will take a users input, save it to a mysql database and then display it. I'm going to use htmlentities() to clean things up which I hope will stop basic atta... Read more »


After I create a new record in mysql, how can I get the record id?

Hi, I am adding a single new record to a data base. This has a auto increment value used as a id and the key. Is thee a easy way to get this? or must I quarry the database? What would be the best w... Read more »


Running a C++ Library Function or Executable Using PHP

I have an object library from code that was written in C++. Is there a PHP call that would enable me to run a function from the library, or a C++ derived executable, from a web page? Thanks, Peter. Read more »


PHP learning material

Where to download video-tutored lessons on PHP programming? Good luck. Regards, Erwin Moller Read more »


Reading external registry values

Is there any way to use php to connect to a series of external servers and read some registry values without compromising the security setup of these servers? OK, this may sound like hacking but it'... Read more »


integer and string what's the difference ?

1 line 13: when using array_push($keys,1234), it works fine. but not with 1234. when using $memc->get,not getMulti, 1234 and 1234 are the same. I think this is a bug. any idea ? Read more »


How to "synchronize" file write accesses

My .php script checks if the _copper.txt file is not older than 1h. If it is older than the content of _copper.txt is imported/updated from the other web page. Then the content of _copper.txt file is... Read more »