Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
89% Quality Score
Upvotes Received
11
Posts with Upvotes
9
Upvoting Members
8
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
3 Commented Posts
~69.4K People Reached
Favorite Tags
Member Avatar for masterarts

I have read a lot that PHP 7 out performs the previous versions of PHP. I am thinking of moving all my websites to PHP 7 so that my sites enjoy a better loading speeds. Please tell me any hosting providers that let me switch my servers to PHP 7

Member Avatar for shlom
0
494
Member Avatar for James_43

Hi all, I'm having a lot of trouble with building a network for my virtualised OS's. The server has two physical NICs for LAN and WAN. The host has IP 10.0.0.1. I use the following iptables to bridge them. iptables -t nat -A POSTROUTING -o wan -j MASQUERADE iptables -A …

Member Avatar for James_43
0
395
Member Avatar for James_43

Hi all, I'm using the Laravel framework to create an application, and have a database question. I have a table called `posts`. I have been pulling the 10 most recent rows from here and making use of an offset variable for pagaination. Now however I also have a table `media` …

Member Avatar for James_43
0
156
Member Avatar for James_43

Hi all, Say I have a table called "posts" with thousands of records. For each user, I want to display the top 10 most recent posts. I would normally use: `select * from posts order by created_date desc limit 10` However, doesn't this select ALL records and then removes all …

Member Avatar for ryantroop
0
190
Member Avatar for James_43

Hi all, Submitting forms to PHP is easy with Ajax. But what if I wanted to design my website to allow for JS-free web browsers? If I call a PHP file with Ajax, I might get an error message in return to dynamically add to the page, but if I …

Member Avatar for jacks009
0
232
Member Avatar for James_43

Hi all, I have a text box. When users press enter, it triggers the submit function: commentContent.keydown(function(e){ if(commentContent.is(":focus") && (e.keyCode || e.which) == 13 && !e.shiftKey) { e.preventDefault(); commentForm.submit(); } }); This then prepends the content of the text box into the HTML. `commentsHere.prepend(commentData);` However, when I search for this …

Member Avatar for James_43
0
13K
Member Avatar for James_43

Hi All, Relatively new to JS, but something strange is happening. I have one function: var commentContent = $('textarea.comment-box#comment'); commentContent.keydown(function(e){ if((e.keyCode || e.which) == 13 && !e.shiftKey && commentContent.is(":focus")) { e.preventDefault(); commentForm.submit(); } }); Which works absolutely fine. If the object is focused and I press Enter, the submit function …

Member Avatar for hielo
0
222
Member Avatar for James_43

Hi all, I've been trying to create a friendly time function for a while, it's purpose should be quite obiovus from the code below. Currently, it outputs "expired" for everything. I am so utterly confused from visualising the code and trying to figure out where the times lie in relation …

Member Avatar for James_43
0
305
Member Avatar for James_43

Hi all, In PHP just wondering if anyone knows whether one method of creating multiple indexes within an array is more efficient / preferable to another? ` $listing['one'] = $x; $listing['two'] = $y; $listing['three'] = $z; ` or: $listing = [ ['one'] => $x, ['two'] => $y, ['three'] => $z …

Member Avatar for James_43
0
194
Member Avatar for Stefce

I have two questions does its possible to encrypt get parameter same like the passwords are? If NO whats the best method to do it i have simple parameter `articleID=1`, i want to encrypt the number which user is not able to see it or hack it so should look …

Member Avatar for Stefce
-1
2K
Member Avatar for theflashbr

The system basically work in this series: a new registration is made in the database, the system sends me an e-mail notifcando a new record.

Member Avatar for dean8710
0
404
Member Avatar for James_43

Hi all, wondering if the following is possible. A MS Exchange server is connected to an Outlook client. Would it be possible to capture sent/recieved emails and add them to a database using PHP. I would like to investigate whether I could use this functionality to create a small email …

Member Avatar for rproffitt
0
213
Member Avatar for Carsten_1

I'm currently working on a website; crafterguide.azurewebsites.net; and I was woundering how to get the best possible login/register/logout page, how get it where when someone creates/log's in to a(n) account that it redirects them to a profile page, and just some feed back and critisizum. And lastly how to get …

Member Avatar for rproffitt
-1
298
Member Avatar for James_43

Hi all, Problems trying to login with Facebook on a website. The issue is that it works for me, but when I add other tests in the App settings, it doesn't work for them, they are getting the error: `Facebook SDK returned an error: Cross-site request forgery validation failed. The …

Member Avatar for James_43
0
367
Member Avatar for James_43

Hi all, Something disturbing is happening... I make an AJAX call to a page and it returns unprocessed PHP, not HTML. However, when I navigate to the page manually, the PHP is processing as expected. This must be a huge security vulnerability? My AJAX call is: $('#forgot').click(function(e){ e.preventDefault(); lFormContainer.load("ajax/?page=authenticate/username"); }); …

Member Avatar for James_43
0
662
Member Avatar for James_43

Hi all, I'm running into a problem with PHP and mysql. I run a mySQL query, which returns the following object: `mysqli_result Object ( [current_field] => 0 [field_count] => 2 [lengths] => Array ( [0] => 1 [1] => 186 ) [num_rows] => 1 [type] => 0 )` I then …

Member Avatar for rubberman
0
283
Member Avatar for janicemurby

hi i have followed a friends tutorial for my website and all is working upon production but when im attempting to add it to my site im having problems getting the following to show up in my page none of the links in the php block are showing up ive …

Member Avatar for janicemurby
0
245
Member Avatar for James_43

Hi all, I currently have two tables that look like this: COMMENTS +----+-------------------------+--------------+---------+---------------------+----------+ | ID | comment | profile_post | creator | created | approved | +----+-------------------------+--------------+---------+---------------------+----------+ | 1 | This is a test comment | 3 | 1 | 2016-02-26 12:26:36 | 1 | | 2 | 0 | …

Member Avatar for Nutster
0
167
Member Avatar for James_43

Hi all, I was recently reading an interesting article about setting up an SSH honeypot to track malicious activity (article avaliable here http://www.symantec.com/connect/articles/analyzing-malicious-ssh-login-attempts) The article mentions that after an attacker gained SSH access to a server, they installed an IRC bot. Now, my knowledge of IRC is very limited, but …

Member Avatar for James_43
0
318
Member Avatar for Shreyas_2
Re: help

i want to count the checkboxes i putted in my project when they get selected and they cant available again when they get stored in mysql plz rply me on shreyasmnt@gmail.com

Member Avatar for 2teez
0
119
Member Avatar for James_43

Hi all, I am running a mySQL database on a webserver hosting multiple Wordpress installations. It seems that database is getting swamped with memory and going into a continual loop of shutting down and restarting. A reboot fixes the issue temporarily, but I have no idea what I can do …

Member Avatar for James_43
0
522
Member Avatar for joshl_1995

Hello Daniweb, I feel kind of awkward asking this but, I've been offered to make an adult portfolio website and I was wondering if I should display that I've made it, as well as display it on my websites portfolio. I'm thinking not because I don't really want "smutt" related …

Member Avatar for jkon
0
709
Member Avatar for James_43

A theoretical question about connecting to hidden services through PHP. Say I am writing an application on the clearnet that relies on data stored within a mySQL database that is hosted on a hidden Tor service. How would I initiate this connection? Some brief research has pointed me towards the …

Member Avatar for cereal
0
1K
Member Avatar for Carsten_1

I'm currently working on a website; crafterguide.azurewebsites.net; and I was woundering how to get the best possible login/register/logout page, how get it where when someone creates/log's in to a(n) account that it redirects them to a profile page, and just some feed back and critisizum.

Member Avatar for James_43
0
145
Member Avatar for Ajaypal_1

Anybody help me ? I need a php script that will run automatically every day on Morning 09:00 O'clock. But my script not working. My script. <?php date_default_timezone_set('Asia/Calcutta'); $now = date("h:i"); $base = '09:00'; $to = 'test@mydomain.com'; $subject = 'My Subject'; $message = 'Hello'; $headers = 'From: test@mydomain.com' . "\r\n" …

Member Avatar for diafol
0
9K
Member Avatar for rpv_sen

Hi I am trying to insert to database. I am facing an issue in getting relavent radio button value. suppose if i select 1 or 2 or 3 radio button, by default it display 1 radio button value. please help me to fix the issue. **index.php** <div id="message"></div> <form class="form-horizontal" …

Member Avatar for James_43
0
312
Member Avatar for James_43

Hi all, I am doing some basic experimenting with ENCOG ANN, but am having issue following a simple walthough. At this stage I am simply trying to grab data from a CSV and normalise it. My code is: string filename = "spots.csv"; var format = new CSVFormat(',', ' '); IVersatileDataSource …

Member Avatar for Christian_7
0
480
Member Avatar for Latrell_vie

Dear folks , I've already created some website from scratch with html and javascript , php etc. On the other hand i also created websites with wordpress. I find the freedom in creating from scratch grandiose to say at least but wordpress to me has the benefits of professionally looking …

Member Avatar for jkon
0
386
Member Avatar for James_43

Hi all, In all my time with PHP I have only ever seen one way of adding a variable onto the end of the string: $string = "hello" . $variable; However, recently I came across another method, which was used in the context of constructing a mySQL query. Can someone …

Member Avatar for diafol
0
410
Member Avatar for James_43

Hi all, I just have a question about how PHP works. Say I have several classes that I call but don't `unset()` once I've finished with them, how long will the server hang onto that data. Is it completely dependant on the client connection to the server? Similarly, I understand …

Member Avatar for jkon
0
197