- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 24
- Posts with Upvotes
- 18
- Upvoting Members
- 15
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
Senior PHP and .NET Framework developer
- Interests
- Programming
- PC Specs
- The beast: Custom EmperorLinux Koala E7240 i7 Dual Core 2.1 GHz, 16 GB DDR3, 500 GB mSATA SSD, Gobi…
Re: The plugin itself is not that important. Make sure that your site: 1) Works well with the social media sites you use (e.g. pulls in the right thumbnail and summary text when you share a page) 2) Write good content that is relevant to your target market There are dozens … | |
Re: You may have done this but often I find a reboot or two resolves this type of issue for me. Open up Settings > Windows Update and click Check for updates, wait for it to finish, then reboot. Do this twice and it is likely to clear up, otherwise it … | |
Re: You should mention what your goals are -- e.g. what do you want this site to accomplish, what process or existing manual system does it replace -- and try to list a few sites that do similar things online that you have found, otherwise it would be really hard to … | |
Re: After your main loop possibly just do another loop to go from 1 - $max_id and tar up then rm -rf each lower numbered directory? Maybe I'm missing something but it seems like you're 99% there. Make sure you make a complete backup of your directory before testing anything that … | |
Re: Just wanted to comment that I recommend strongly using prepare and execute instead of escaping strings, as that is a very error-prone method and may lead to SQL injections. See [this code snippet](https://www.daniweb.com/programming/web-development/code/486471/safe-and-simple-database-inserts-and-other-queries) for an easy to use function you can use instead. | |
Re: The general approach is to do two queries. Since you didn't include the code that generated your result set, I will use a simple example. The idea is to do a SELECT COUNT(\*) query to figure out how many rows there are in the table, then do a separate SELECT … | |
Re: Agreed that more context is needed in general. What type of object is chart1? One thing I noticed is that displayData_Event is invoked by DataReceivedHandler but this seems to not do anything. It might be that you need to ask the chart to refresh itself (can't really be sure without … | |
Re: Looks like maybe a simple typo, you open a file named "modifiedrecords." (without any extension) then try to rename a file named "modifiedrecords.txt" to "newrecords.txt". | |
Re: If there is an existing AC connection between the two buildings you may be able to get by with an ethernet over powerline adapter such as http://www.amazon.com/TP-LINK-TL-PA4010KIT-Powerline-Adapter-Starter/dp/B00AWRUICG/ref=sr_1_3?ie=UTF8&qid=1457965921&sr=8-3&keywords=ethernet+over+power | |
Re: If I am guessing correctly, you are just trying to get some basics to work before you implement the actual functionality. There's nothing wrong with that! The problem basically is just that you need to declare the $title variable as global in each of the functions that references it. I … | |
Re: What is the URL to your page? The ISP's notes sound more related to a frontend (i.e. your browser can't load that many videos at once) than something you could solve in PHP, but it would be impossible for us to know without looking at the page as it loads. | |
Re: Be really careful when you use On DELETE CASCADE - if you do not set it up exactly correct you will end up removing records that you didn't intend to. As Bin_2 says, it would be better to post the schema of your tables and then we can tell you … | |
Re: Diafol is very right, your code is subject to injection attachs. As hey says, you should at least call `mysql_real_escape_string()` on every value before putting them into your `$sql` variable. Even better would be to use my sample [Safe and SIMPLE database inserts](https://www.daniweb.com/web-development/php/code/486471/safe-and-simple-database-inserts-and-other-queries) which should actually be even easier (less … | |
Re: Those are not really errors - they are PHP code that isn't getting parsed. Somewhere you have a line that starts with "load->model(array('Mediatutorialaccount'))" which is not inside of a `<?php` block. I would recommend searching the whole directory for the word "Mediatutorialaccount" to try to find where this is. You … | |
Re: I suggest using DataTables to do this. Their [zero configuration example](http://www.datatables.net/examples/basic_init/zero_configuration.html) does exactly what you want to an existing HTML table. It does also add search and a few things, so you may want to remove those extra features: <!-- previous code the same --> <table id="admintable" border="1" cellpadding="2" cellspacing="0"> … | |
Re: You need to define what you want to redirect *from* as well as what you want to redirect *to*. Assuming that you want to go from: http://example.com/test to: http://example.com/media.php?page=test Then this should do the trick: <IfModule mod_rewrite.c> # Turn on the engine RewriteEngine On # If your pages are under … | |
Here is a simple way to insert into a database that isn't much harder than using string concatenation - which we all know is very dangerous due to SQL injection attacks. Put the code snippet into `database.php`. Now, in a script handling a form post, such as `post_reply.php`: <?php require_once("database.php"); … | |
Re: Try adding these lines to the top of your PHP script to make sure errors show up: define('DEBUG', true); // change true to false to disable errors showing up if(DEBUG) { ini_set('display_errors', 1); } else { ini_set('display_errors', 0); } error_reporting(E_ALL & ~E_NOTICE); This might help you track down the error … | |
Re: Couple things: 1. Use phpinfo() to make sure that the value is actually being changed or not. If your host runs PHP as FastCGI, you may need to kill the cgi processes. 2. Your host may be killing the process using a different mechanism. This is common on many hosting … | |
Re: I believe you need to set CURLOPT_RETURNTRANSFER before CURLOPT_FILE: curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FILE, $fp); | |
Re: Also all the data in the CURLOPT_POSTFIELDS will not be in the URL but rather part of the POST body, so don't worry about problems with URL length. gabrielcastillo's suggestion is a good way to do this. | |
Re: The problem is that the return result is not a valid JSON string: jsonUptimeRobotApi({"stat": "fail","id":"100","message":"apiKey not mentioned or in a wrong format"}) This is, rather, a JavaScript function call. This type of "JSON" return is meant for consumption on the front-end of a website, inside the browser. The easiest fix … | |
Re: I recommend [FPDF](http://www.fpdf.org/) for this. Here is some sample code extracted from a project I did recently that filled out a complex employment application based on a web form. This won't quite run without adjustments but it should get you on the right track and includes a helper class to … | |
Re: Your Google SMTP account can send email to any address - if you are able to send email to yourself on Google without getting any warning bars at the top of the email view, it will work with any other email address as well. If you do get any of … | |
Re: You may want to move the file to a permanant location first using [move_uploaded_file](http://php.net/manual/en/function.move-uploaded-file.php). The temp directory may have unusual permissions preventing you from reading the file, and these temp files are deleted very quickly as well. Without the rest of the context for your script it is hard to … | |
Re: [This article](http://msdn.microsoft.com/en-us/library/ms171868(v=vs.110).aspx#v451) has notes on the changes in 4.5.1. An example of something that could cause a problem - there do appear to be new datatypes. If you rely on those datatypes or the other changes this might actually matter a lot. | |
Re: I recommend that you do indeed use MVC, it is (in my opinion) easiest to learn and superior as well. I learned MVC 4 from these two books: http://www.amazon.com/Professional-ASP-NET-MVC-Jon-Galloway/dp/111834846X/ - basics of MVC development http://www.amazon.com/Microsoft-NET-Architecting-Applications-Enterprise/dp/073562609X/ - teaches good architecture which is useful even beyond .NET One more book, which is … | |
Re: Open up your browser's [JavaScript console](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers). I bet the script manager is causing a syntax error or other error to occur which breaks the other JS on your page. | |