Search found 9 matches

by boxfly
Sun Mar 12, 2017 3:07 am
Forum: Your Scripts
Topic: Accounts Management PHP Script with Social Media authentication
Replies: 0
Views: 722

Accounts Management PHP Script with Social Media authentication

Hi all,

In the context of a personal project I had to develop a PHP script with OAuth authentication and with an Administration section to manage user accounts.
So I created a site to offer to sale this script: https://phpregister.com

There is a Sample version available for free. :D
by boxfly
Sun Mar 12, 2017 2:53 am
Forum: PHP coding => General
Topic: Best editor for PHP
Replies: 210
Views: 176857

Re: Best editor for PHP

Emacs of course!
:D
by boxfly
Thu Mar 09, 2017 7:08 am
Forum: PHP coding => Mail
Topic: contact forms doesnt work...
Replies: 7
Views: 2256

Re: contact forms doesnt work...

To get message failures from the PHPMail plugin, I do: //True param means it will throw exceptions on errors $mail = new PHPmailer(true); try { //...All your stuff.... $mail->Send(); } catch (phpmailerException $e) { //Pretty error messages from PHPMailer echo $e->errorMessage(); } catch (Exception ...
by boxfly
Tue Mar 07, 2017 1:50 am
Forum: Free time
Topic: Hello PHP Forums!
Replies: 3
Views: 1325

Re: Hello PHP Forums!

Hello John,

I am new as well in this forum. Your website is beautifull, just a little bit too dark in my taste.

Hope you the best :)
by boxfly
Tue Mar 07, 2017 1:43 am
Forum: Free time
Topic: Where do you live?
Replies: 16
Views: 5552

Re: Where do you live?

France, Toulouse

I would like to move to London. :D
by boxfly
Tue Mar 07, 2017 1:41 am
Forum: JavaScript
Topic: Php javascript combination
Replies: 2
Views: 939

Re: Php javascript combination

Yes and if you want to use aJax call back, here is an example: function myFunction() { var values = $("form#MyForm").serialize(); // Recover variables from FORM to post them through aJax call $.ajax({ url: "url-to-php-file", type: "POST", data: values, success: function(data) { // Do some stuff, no ...
by boxfly
Mon Mar 06, 2017 6:11 am
Forum: PHP coding => General
Topic: PHP Newbie
Replies: 3
Views: 1227

Re: PHP Newbie

And of course you have to connect to your database before. Here is an example of connecting to a mysql database: $dataBase= new PDO('mysql:host='.$config['DatabaseDomain'].';dbname='.$config['DatabaseName'].';charset=utf8', $config['DatabaseUser'], $config['DatabasePassword'], array(PDO::ATTR_ERRMOD...
by boxfly
Mon Mar 06, 2017 6:08 am
Forum: PHP coding => General
Topic: PHP Newbie
Replies: 3
Views: 1227

Re: PHP Newbie

Do you want to use PDO to insert data in your database? Here is an example: $sql = $dataBase->prepare('INSERT INTO user(email, firstname, lastname, lang) VALUES (:email, :firstname, :lastname, :lang)'); $sql->execute(array('email' => $_POST['Email'], 'firstname' => $_POST['Firstname'], 'lastname' =>...