Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
92% Quality Score
Upvotes Received
36
Posts with Upvotes
31
Upvoting Members
27
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
11 Commented Posts
10 Endorsements
Ranked #180
Ranked #383
~182.75K People Reached
About Me

Just some guy who loves computers

Interests
Website coding, programming, gaming
PC Specs
3.61 Ghz 8 core processor, 32GB DDR3 RAM, 120GB SSD, 3TB HDD, 4TB SSHD, 2GB Ti GPU w/dual monitors
Favorite Tags

208 Posted Topics

Member Avatar for Duki
Member Avatar for Borzoi

I've been trying to find a way to filter the Event Viewer in Windows by the description instead of the event type/source etc. I figure that i need to use the XML tab to customise it as there is no option in the basic filtering for what I want. One …

Member Avatar for GreenVomit8
0
4K
Member Avatar for HanFromNL

You don't have to have the whole page written in PHP if it's saved as a .php file. You could have the whole page written in HTML if you wanted. Either way, the end user will never see the PHP code even if they try to view it as the …

Member Avatar for Nour_6
0
37K
Member Avatar for Borzoi

I'm trying to get my computer to output audio in mono but despite selecting the option within the Ease of Access centre to enable mono audio, my audio is still coming out stereo. The reason I need mono audio is because I need to hear all of some audio tracks …

Member Avatar for Reverend Jim
0
1K
Member Avatar for Ancient Dragon

I want to tell a joke about UDP but I don't know if you'll get it.

Member Avatar for jkon
4
4K
Member Avatar for Borzoi

I got a new case (Thermaltake View 27) and I'm having trouble undoing the screw on the PCI shield thing where the GPU should be. I can undo all the other screws except this one. Can anyone provide tips on how I can go about getting it loose so I …

Member Avatar for Borzoi
0
650
Member Avatar for Borzoi

So I'm having a huge brain fart here and I know for a fact I am going about this the wrong way. Unfortunately, I can't refer to previous work I've done where I have done this correctly as I no longer have access to them. I have my index page …

Member Avatar for Borzoi
0
300
Member Avatar for Borzoi

I have had a look online but can't seem to find what I want. I can find RDP clients for Linux but that is not what I want. I am looking for some software so that a Linux server can be used as a relay or proxy. The idea is …

Member Avatar for mike_2000_17
0
6K
Member Avatar for Borzoi

I have been tasked with making some internal software (as you can probably tell from the section I'm posting in, it's PHP based). I have been asked to make it so the user is automatically logged in and doesn't need to have another password for another piece of software. The …

Member Avatar for Borzoi
0
10K
Member Avatar for AllanSS

Like ardav said, you need to set $pageTitle before it can be used. Is it being set in one of the included files before the <title> tag?

Member Avatar for diafol
0
2K
Member Avatar for Borzoi

I think I am missing something obvious here but I can't see what. I am pulling information from another file using `file();` which works as expected - putting each line in to an array. The file contains some HTML tags but is just a text file (not a full web …

Member Avatar for Borzoi
0
443
Member Avatar for Borzoi

As the title suggests, I'm looking for a command line text editor with syntax highlighting. I don't have a GUI installed and I don't intend to install one which is why I need a command line one. I usually use nano for my text editing but this doesn't come with …

Member Avatar for JasonHippy
0
1K
Member Avatar for nadiam

For an immediate solution to the above, you need to delete the MySQL socket file and restart MySQL. To remove the socket file: rm /var/lib/mysql/mysql.sock To restart MySQL: /etc/init.d/mysqld restart If you are using shared hosting, this is something your web host will need to fix. This usually happens when …

Member Avatar for janissantony
0
861
Member Avatar for SimonIoa

Can you elaborate on what you mean by "the string works" please? Do you mean that the `$profileurl` variable is having the video URL placed in it? I'm pretty sure that isn't correct code for embedding YouTube URL's. Looking at the code that YouTube itself gives when you select the …

Member Avatar for SimonIoa
0
235
Member Avatar for SimonIoa

Using your original code which is removing the `n` but not the `\\`, all you need to do is escape the backslash with another backslash. `UPDATE messages SET `text` = REPLACE( `text` , '\\r' OR '\\n' OR '\\r\\n') `

Member Avatar for steelbrain
0
407
Member Avatar for erabxes

What is the ouput of these lines? echo "session_var = {$_SESSION['session_var']}<br>\n"; echo "session_var2 = {$_SESSION['session_var2']}<br>\n"; It's better practice to have the variables outside the quotes like this (although this shouldn't affect the output): echo "session_var = {".$_SESSION['session_var']."}<br>\n"; echo "session_var2 = {".$_SESSION['session_var2']."}<br>\n";

Member Avatar for erabxes
0
391
Member Avatar for Vb.Netter

Adam's link broke when posting. Try this: http://technet.microsoft.com/en-us/library/ms177410%28v=sql.105%29.aspx

Member Avatar for adam_k
0
192
Member Avatar for ankit1122

To save on the amount of database queries being run as the end user types, you may want to pull all possible options form the database and put them in to an array and query that array instead of the database.

Member Avatar for Borzoi
0
132
Member Avatar for davy_yg

As mattster said, you need to add `session_start()` at the top of the file. You can't add it after anything else. It needs to be before even the doctype declaration: <?php session_start(); ?> <!DOCTYPE ...> [Rest of content]

Member Avatar for Borzoi
0
319
Member Avatar for toxicandy

You have the following if statment in your volunForm.php page: if(!isset($_SESSION['sess_user_id']) || (trim($_SESSION['sess_user_id']) == '')) { header("location: login.php"); exit(); } This is redirecting anyone who doesn't have the session cookie `sess_user_id` set. Make sure this is being set when the user logs in.

Member Avatar for toxicandy
0
197
Member Avatar for davy_yg

If the script is working on another server but not yours then your firewall may be the problem, blocking the connection. Pinging smtp.gmail.com will not tell you if the port is blocked. What is the error you are getting?

Member Avatar for mattster
0
256
Member Avatar for bradly.spicer

On line 3 you are setting `$offset` to 0. I think you're intending to get this from the URL so the line should be: $offset = $_GET['offset']; This will get whatever value is in the URL. You'll want to force it to 0 if it's not set with an if …

Member Avatar for bradly.spicer
0
212
Member Avatar for radostin.angelov.370

If `$dataArray` is a variable then your session token should be `$_SESSION[$dataArray]` without the quotes in the square brackets.

Member Avatar for mattster
0
323
Member Avatar for SimonIoa

If you're on a shared hosting solution, you likely won't have access to a php.ini file. You can see what the upload limit is set to by uploading a PHP Info file. The contents of the file would just be this: <?php phpinfo(); ?> I tend to save that as …

Member Avatar for Airshow
0
127
Member Avatar for Sophia_1

Can you let us know what the error is you are getting when you run this? Do you have a form passing to your `$_POST` variables? If nothing is passing to the `$_POST` variables, there would be nothing to add to the database.

Member Avatar for veedeoo
0
522
Member Avatar for hemanshurpatel

Do you have any foreach loops before line 124? While line 124 is the one with the reported error, the cause of the error could be before it.

Member Avatar for hemanshurpatel
0
2K
Member Avatar for James_30

I think you've posted this in the wrong forum. This doesn't seem to be related to web development. To answer your question, the Windows command prompt can only display up to a certain amount of lines so when you reach that amount, you won't be able to scroll back further.

Member Avatar for JorgeM
0
130
Member Avatar for javed.iqbal.3979

Your syntax is incorrect. To specify the password, you use the `-p` flag, you don't type `password`. mysql -u root -p password This will log you in to MySQL from the command line.

Member Avatar for Borzoi
0
159
Member Avatar for SimonIoa

Do you know what the returned message states? I see you have specified a From address in the script so the bounce would be returned there.

Member Avatar for SimonIoa
0
186
Member Avatar for davy_yg

This line: $mail->Host = "ssl://smtp.indonusa.net.id"; ...should not contain `ssl://` at the beginning. I'm fairly certain it should simply be: $mail->Host = "smtp.indonusa.net.id"; If not, specity `http://` at the beginning. The reason I believe you don't need it is because this line: $mail->SMTPSecure = ''; ...is what determines if it uses …

Member Avatar for cereal
0
2K
Member Avatar for Siberian

Do you want the div to be displayed for the duration the mouse button is clicked or do you want it to stay displayed after a single click?

Member Avatar for Siberian
0
375
Member Avatar for phpBeginner4

Why would you want to use a regular expression instead of str_replace? Not only is it a more complicated way to do a simple task but regular expressions require more resources for the same task.

Member Avatar for diafol
0
425
Member Avatar for davy_yg

If you want to input the current time (at the time of the insert) then you can use the `now();` function. What gets stored is dependant on the field type. If it's just a date field, you get the date (I believe it will be yy default in a YYY-MM-DD …

Member Avatar for Ketul_1
0
266
Member Avatar for davy_yg

You'll need an entry in the database which marks the message as read or unread. From your code, I can see that you only have four entries in the database: `from_stu_username`, `to_stu_username`, `messages`, `date`. Just add another column to hold the record of whether it is read and then mark …

Member Avatar for Borzoi
0
108
Member Avatar for kingston22

[W3 Schools](http://www.w3schools.com/) is one I've used and sometimes still reference. If you're looking for PHP specific things, [PHP.net](http://php.net) is a good reference but it's not a tutorial site. It's mainly a list of functions and what they do with examples.

Member Avatar for JorgeM
0
300
Member Avatar for chaitu11

Just a note but your if statement has an error. if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submit']) == 'POST') You're checking if a variable is set and then if the result is `POST`. You will need either: isset($_POST['submit']) Or $_POST['submit'] == 'POST' My recommendation would be the first. The `isset();` function can …

Member Avatar for suresh9696
0
1K
Member Avatar for JulieR31392

You may find that Yahoo! have blocked the server the mail is being sent from, bouncing it back or just refusing it. The mail log on the server sending the mail will be able to tell you this. I've seen it a lot where the server sending the mail has …

Member Avatar for Borzoi
0
151
Member Avatar for Borzoi

I think it would be a good idea for the question asker to mark the posts or the users who contributed to finding the answer to their query. The reason for this is because I occasionally see that post such as "What [previous user] said" which isn't in any way …

Member Avatar for happygeek
0
272
Member Avatar for chaitu11

SFTP is FTP over SSH. It uses SSH protocols to upload/download files and browse the remote server. This would also use the SSH port (default 22). FTPS is secure FTP (usually over TLS but sometimes SSL). The most basic description would be a secure FTP connection. A normal FTP connection, …

Member Avatar for Borzoi
0
105
Member Avatar for Borzoi

I am looking for a calendar I can embed on my website which will have a list of events I will be holding/attending/etc for all to see. I have had a look at a few solutions but none of them seem to do what I want. What I want from …

0
95
Member Avatar for prash21m

I believe that prash21m is trying to get search results returned even if the search query contains something not in the description. I haven't done anything like this for a while so there may be a more efficient way to do this but what I did when I needed to …

Member Avatar for Borzoi
0
168
Member Avatar for garyrichard

`$_GET[screen]` should be `$_GET["screen"]` and will not have a value unless the URL of the page is appended with `?screen=value` where "value" is the value.

Member Avatar for Borzoi
0
1K
Member Avatar for SimonIoa

The function parameters are `Profilepic($uid,$base_url)` You seem to be passing in different variables. I would assume that $base_url is the scripting path for the hosted domain so for a Linux hosted site, it would most likely be something like /var/www/vhosts/example.com/htdocs but you'll need to confirm that with your host if …

Member Avatar for Borzoi
0
411
Member Avatar for gilgil2

Have you tried storing the results of print_r to a variable? $newvariable = print_r($result); I've not tried that myself but the theory here would be that the output is stored in the variable, which you can then pass to the database.

Member Avatar for Borzoi
0
147
Member Avatar for afaaro

Could you expand on your query? This doesn't sound like it's PHP or even web development related. Text files are just plain text, no formatting. They cannot hold images. For an RTF, you just past the image in to the file.

Member Avatar for Borzoi
0
92
Member Avatar for momonq1990

This isn't going to be your PHP code causing the filtering to spam. If your domain doesn't already have one, you want to set up an SPF record which states the server which this script is on is allowed to send mail. I don't know if maysite.com is one you've …

Member Avatar for Borzoi
0
244
Member Avatar for rjusman90

You shouldn't have a colon after the if queries and you aren't using braces. I'm also pretty certain that the value for a box to be unchecked is actually just blank, not "unchecked". I suggest trying this: <td>FooterMenu</td> <td><input type="checkbox" name="FooterMenu" value="1" checked="<?php if($FooterMenu == 1){echo "checked";}else{echo "";} ?>" /></td>

Member Avatar for Borzoi
0
180
Member Avatar for grant.baker

Is the e-mail for domain hosted on the same server which is sending you the e-mail? If it isn't, you'll probably find that you have a setting which lists that domain as a local domain, meaning any mail sent through or from your server to that domain will be delivered …

Member Avatar for Borzoi
0
229
Member Avatar for edbr

If an input form was compromised at some point, adding a captcha and taking other precautions may not eliminate the problem. You might find that a PHP scrupt has been added somewhere on your server with a cron job or scheduled task set to run it every now and then. …

Member Avatar for edbr
0
138
Member Avatar for roxanne.martos

You don't seem to be using strtoupper() or strtolower() when checking the username. That would mean that the username needs to be input exactly as it was during signup. E.g.: If they sign up with the username "MyUsername" then try to log in with "myusername" it would fail because it …

Member Avatar for minitauros
0
272

The End.