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
~70.0K People Reached
Favorite Tags
Member Avatar for masterarts

My experience is that many providers don't support it right now, but it's very easy to set up yourself in a VPS enviroment. I imagine once 7.0 is accepted into the official linux packages it will start to become more widely avaliable, but I'm unsure if there's a date target …

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
397
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
158
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
223
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
307
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
195
Member Avatar for Stefce

ryantroop is correct (as far as my limited knowledge goes) when he mentions that SSL is the way to go. Regardless of whether you use POST or GET, data is transmitted in plain text unless encrypted with an SSL. The code you have above is very pointless, because the client …

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

Look up PHPMailer, in my experience it really is the best option. You can of course use the php mail() function, however, it does depend on a local mail server, wheras PHPMailer can connect through SMTP. https://github.com/PHPMailer/PHPMailer Once configured correctly, you can easily make calls to PHPMailer to construct a …

Member Avatar for dean8710
0
422
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
214
Member Avatar for Carsten_1

You created a dupicate post. I posted a reponse on the first one asking for more evidence of your requirements. In case you missed it: What solutions have you looked at so far? What's your knowledge / experience with PHP? Have you thought about where your client data will be …

Member Avatar for rproffitt
-1
300
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
369
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
668
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
285
Member Avatar for janicemurby

It looks like the PHP code may not be executing. Does your file have the .PHP extension, not .HTML or anything else? Either that or there's an issue with your variables. `if($user != $my_id)`, none of these are defined in your script, for example, so all your mySQL queries would …

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
320
Member Avatar for Shreyas_2
Re: help

We need more information than this. Are you trying to make this process asynchronous during user interaction with JavaScript, or are you POSTing the data to a PHP script or something similar?

Member Avatar for 2teez
0
120
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
528
Member Avatar for joshl_1995

Interesting question. Most of the answers tend to bring morals into it. In my part of the world (New Zealand) prostitution is legal, regulated, and there is a growing acceptance that it is contributing positively to society (providing employment, tearing down gender/sexual divisions, increasing awareness of safe sex, etc.). So …

Member Avatar for jkon
0
714
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

What solutions have you looked at so far? What's your knowledge / experience with PHP? Have you thought about where your client data will be stored, and do you know how to access that through PHP? We would love to help you, but without a little more information and some …

Member Avatar for James_43
0
146
Member Avatar for Ajaypal_1

The consensus here is on point. Your orginal code only checks once to see if the date is within the parameters or not, so in order for this to work you need to execute the script every minute (via a cron job). Theoretically, you could use a sleep(60) command and …

Member Avatar for diafol
0
9K
Member Avatar for rpv_sen

TexWiller is correct, this code seems to be accurate since you only want one value from the radio button, or you would be using a checkbox. You can only select one radio button within a form, so the value is unset when you POST the data. If you give them …

Member Avatar for James_43
0
314
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
486
Member Avatar for Latrell_vie

The Wordpress templating engine allows full use of PHP, so you have the power (and responsability) of adding code like this. There are effectively two ways to add this code to a page. You either edit or create a general template such as index.php or page.php. May themes use these …

Member Avatar for jkon
0
389
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
413
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
200