-
Replied To a Post in How do I get started with Node.js
Hi, have you tried http://nodeschool.io/ ? -
Replied To a Post in date_diff
Make sure which version of PHP is in use in your host, you can use `phpinfo()`: http://php.net/manual/en/function.phpinfo.php and if you can upgrade. For an alternative solution check the comments in … -
Replied To a Post in How to insert moment JS time into MySQL
It happens because MySQL doesn't seem to really support ISO 8601, but the date is parsed and inserted if the server is not in strict mode, it will generate only … -
Replied To a Post in Get 30 days back date along with time
You can use `DateTime::sub()`: <?php $dt = new DateTime('2014-08-31 23:06:00'); $dt->sub(new DateInterval('P30D')); echo $dt->format('Y-m-d G:i:s'); Docs: * http://php.net/manual/en/datetime.sub.php * http://php.net/manual/en/dateinterval.construct.php * http://en.wikipedia.org/wiki/ISO_8601#Durations -
Replied To a Post in A Magento Exploit Allowing Hackers to Skim Credit Card Data During Checkout
Hi, did you wrote to the Unirgy team or submitted a [bugtruck](http://www.securityfocus.com/)? Follow these instructions: http://www.securityfocus.com/archive/1/description#0.1.8 A part that post on the nexcess blog, it seems nobody else treats the … -
Replied To a Post in date_diff
Chech the version of the remote PHP. DateTime::diff requires version 5.3.*+ * http://php.net/manual/en/datetime.diff.php -
Replied To a Post in Qbasic
And Qbasic stands for *basic question*, not for [QBasic](http://en.wikipedia.org/wiki/QBasic) correct? :) Regarding your question check the documentation at this link: http://php.net/manual/en/mysqlinfo.api.choosing.php -
Replied To a Post in Save the Database at my folder
I don't know how Workbench handles this task, but when changing the path you have to move the data to the new location and you have to restart the database, … -
Replied To a Post in Save the Database at my folder
It happens because this is the data directory used by the server. If you want to change it then modify the `datadir` value in the **my.cnf** file, and then restart … -
Began Watching Chatbot with mood detection via Face Recognition
Hi guys, I am looking to develop a web-based chatbot that uses a webcam to capture the user's facial features in order to determine the person's mood for better communication. … -
Replied To a Post in Django deployment
Hi, are you using Apache? Have you loaded the `mod_wsgi` module into Apache? More information here: * https://github.com/GrahamDumpleton/mod_wsgi * https://code.google.com/p/modwsgi/wiki/QuickInstallationGuide -
Replied To a Post in jQuery: find the first blank textbox
So, for example: <table id="names"> <tr> <td data-name="oranges"> oranges </td> <td data-name="apples"> apples </td> <td data-name="coconut"> coconut </td> <td data-name="strawberries"> strawberries </td> </tr> </table> <form> <input type="text" name="aaa" value="" /> … -
Replied To a Post in Laravel: Insert a record w/ FK
Use `insertGetId()`: $id = DB::table('item_tbl') ->insertGetId(array('item_name' => $data['itemTb'])); docs: http://laravel.com/docs/queries#inserts -
Replied To a Post in My VPS is sending SPAM!
> Sorry, I'm a bit confused on this php-pfm, are you saying I don't have it, and is it necessary? Oh no, it is not necessary, this is just an … -
Replied To a Post in My VPS is sending SPAM!
> for each database I create a new username with all permissions except 'grant.' Is that the same thing? No, it's not the same, I'm referring to the owner of … -
Replied To a Post in jQuery: find the first blank textbox
You can use `each()` to loop them, and then return false when you get the first empty value, as example: <form> <input type="password" name="passwd" value="" /> <input type="text" name="aaa" value="test … -
Replied To a Post in My VPS is sending SPAM!
> root 30952 30571 0 14:22 pts/0 00:00:00 grep php-fpm No, that's the execution of grep, when in use you will see the master process and the workers, as here: … -
Replied To a Post in My VPS is sending SPAM!
Are you sure the spammer is using your PHP scripts to send spam and not accessing directly to your SMTP server? Usually the config.php file in CI does not execute … -
Replied To a Post in Get all variables where not the same
Try by adding `GROUP BY ip_username, ip_ip` to the current query, it will return all users' ip, or if searching a specific user `WHERE ip_username = 'Todor' GROUP BY ip_ip`. -
Replied To a Post in Start a program through website
It can be done through Java Web Start: http://en.wikipedia.org/wiki/Java_Web_Start You don't need PHP for this. To interact directly with software, instead, in Windows you can use the COM objects: http://php.net/manual/en/book.com.php -
Began Watching Cannot get CodeIgniter to work with Nginx
Trying desperately to get CodeIgniter and Nginx to play nice. I was able to get it working once a long time ago and I cannot seem to reproduce what I … -
Began Watching Prevent MySQL trigger recursion
For some reason my triggers are recursing, while I think they shouldn't. I'll simplify the examples for the sake of you not having to read through all the code. Trigger … -
Replied To a Post in Laravel: Undefined variable: fname
In such cases you can also set the primary key in the (User) model: <?php use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; class User extends Eloquent implements UserInterface, RemindableInterface { protected $table = … -
Replied To a Post in Accessing and collecting post[] data from an array in PHP
Hi, assuming the method is $_POST, you get the equivalent of: $_POST['subject'][] = 'subject 1'; $_POST['subject'][] = 'subject 2'; $_POST['subject'][] = 'subject 3'; # and so on ... so you … -
Replied To a Post in Laravel: Undefined variable: fname
The Auth class is bounded to the User model, so when the authentication is satisfied you can access his information, check: * http://laravel.com/docs/security#authenticating-users in particular read the *Accessing The Logged … -
Replied To a Post in Laravel: Undefined variable: fname
Hi, you can do: Redirect::to('profile')->with('fname', Auth::user()->firstname); Or: Session::put('fname', Auth::user()->firstname); Redirect::to('profile'); Then you have to get the value from session: $data['items'] = DB::table('item_tbl')->get(); $data['fname'] = Session::get('fname'); return View::make('profile')->with('items', $data); But: 1. … -
Replied To a Post in Unable to view other pages than index
> local host index page where the index page is viewable So you have something like `C:\WAMP\www`, you copied the website to this directory and now it is in: C:\WAMP\www\website … -
Replied To a Post in PHP/HTML Fast help pls!
Try Linfo: * http://linfo.sourceforge.net/ * https://github.com/jrgp/linfo You can customize the output. -
Began Watching Unable to save data in mysql database
Hi,am new in php and appreciate your help in this matter....tried to save the record below into mysql database but couldn't.The field are blank and the Targetid field is always … -
Replied To a Post in php and apache
It seems the default value for the new versions of debian & derivates: * http://sources.debian.net/src/apache2/2.4.10-1/debian/apache2.NEWS/#L36 Currently I don't have a new installation to verify, but you should be able to … -
Began Watching HTML5 data attributte security question
Hi all, I am creating an ecommerce site, and have some javascript getting data from dom elements and inserting them into my PHP Cart via AJAX. It all works fine, … -
Gave Reputation to pritaeas in What are a web designer's most common requests?
> the most common tasks which you are requested to perform as part of your jobs? In my experience, the most common tasks are the tiny little things a customer … -
Replied To a Post in Website Error
> I am having website error that I still do not know what causes it. In several of my users browsers (firefox), some words in the website content that I … -
Began Watching How to fetch gps values form mysql into Google Map
I have a gps sending data to mysql db, but am having hard time ploting the values on google map. My javascript skills are not very good, pls help... javascript … -
Replied To a Post in php and apache
Check the settings of `/etc/apache2/sites-available/default` or in **apache2.conf** and adjust the DocumentRoot to your desired path, then reload apache. -
Gave Reputation to almostbob in convert video in flv format while uploading
`<smartass>` urgent, not to anyone but you it isnt `</smartass>` `<helpful>` I get good function with minimal server load using [sothink converter](http://www.sothinkmedia.com/flash-video-encoder-command-line/) `</helpful>` `<smartass>` of course there are other ways … -
Replied To a Post in Cannot send email from server
If sending through GMail then the `From` header **must** be the GMail user, to receive the emails at indonusa.net.id, you have to add the `Reply-To` header, so: $from = 'davy.yg1@gmail.com'; … -
Replied To a Post in php and apache
Check the ownership and the permissions of the script, by writing the file into `/var/www/` you probably used sudo, correct? That gave `root:root` to the script. Apache needs access to … -
Replied To a Post in Sidebar for my archive..group by
You can use `group_concat()`: SELECT group_concat(DISTINCT MONTH(postDate) ORDER BY postDate) as months, YEAR(postDate) as year FROM posts GROUP BY year; with `DISTINCT` will return unique values, then you can explode … -
Replied To a Post in Cannot send email from server
Apply the default value `0` or just remove `$mail->SMTPDebug`. I suggest you to read the comments in the source code, it helps a lot to correctly configure the application: * … -
Replied To a Post in import csv pdo msql
Add `errorInfo()` as suggested in my [**first post.**](https://www.daniweb.com/web-development/php/threads/481885/import-csv-pdo-msql#post2107312) From there you can see why the query fails. -
Replied To a Post in Cannot send email from server
Then try the full path: require 'C:/xampp/htdocs/phpmailer/PHPMailerAutoload.php'; -
Began Watching mysqli update
Hi, The following code selects and displays a record from the "emailtbl" table as desired except for the the date and it doesn't update the "lastused" (date) field to the … -
Replied To a Post in Cannot send email from server
**@pritaeas** Whoops, I didn't saw your reply! With Gmail you can use `AUTH LOGIN`, but you need an application-specific password before you can go further, read this: * https://support.google.com/mail/answer/1173270?hl=en Then … -
Replied To a Post in using cookie data run mysql event
Hi, the cookie will be available in the next page request, not in the current, so you cannot use `setcookie` and `$_COOKIE` in the same instance to get the brand … -
Replied To a Post in Filter Through Email Headers
> Whenever someone sends an email to my websites email address it is piped to a PHP script Ok, but I hope I can make you understand that when an … -
Replied To a Post in Filter Through Email Headers
Maybe I didn't understood your initial request: you have a form to send an email, let's say with the `mail()` function, and you want also to save the input to … -
Gave Reputation to mattster in The Power of LESS
## Introduction ## Ever since the dawn of programming, we have had the luxury of variables, OOP, functions and other lovely tools within our languages. CSS is arguably the easiest … -
Replied To a Post in Filter Through Email Headers
In addition, as example you can try `imap_rfc822_parse_headers()`: <?php $header = file_get_contents('email.txt'); $obj = imap_rfc822_parse_headers($header); echo "<pre>"; print_r($obj); echo "</pre>"; Where **email.txt** is: Received: from outmail4.bc.edu (136.167.2.48) by BFRANKLIN04.bc.edu (192.168.1.34) … -
Replied To a Post in Cannot send email from server
Ok, the last part of the log explains the problem: 2014-08-24 17:28:33 CLIENT -> SERVER: AUTH NTLM TlRMTVNTUAABAAAABzIAAAAAAAAgAAAAAAAAACAAAAA= 2014-08-24 17:28:38 SMTP -> get_lines(): $data was "" 2014-08-24 17:28:38 SMTP -> …
The End.