- 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
208 Posted Topics
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 … | |
Re: 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? | |
Re: 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. ![]() | |
Re: 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 … | |
Re: 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 … | |
Re: [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. | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: 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, … | |
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 … | |
Re: 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 … | |
Re: `$_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. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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> | |
Re: 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 … | |
Re: 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. … | |
![]() | Re: 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 … |
The End.