- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 36
- Posts with Upvotes
- 31
- Upvoting Members
- 27
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
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
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 … | |
Re: 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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Re: 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? | |
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 … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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') ` | |
Re: 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"; | |
Re: Adam's link broke when posting. Try this: http://technet.microsoft.com/en-us/library/ms177410%28v=sql.105%29.aspx | |
Re: 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. | |
Re: 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] | |
Re: 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. | |
Re: 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? | |
Re: 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 … | |
Re: If `$dataArray` is a variable then your session token should be `$_SESSION[$dataArray]` without the quotes in the square brackets. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … |