- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I am programmer who likes connecting the real world to the web!
- Interests
- Gardening, Programming, Guitar, Bealgebone, Minecraft
- PC Specs
- I5 running Windows 7
42 Posted Topics
I spent some 30 minutes or so writing up my question and upon submitting my question I was forced to create an account called Dahzz or something along those lines. And now my question that I just perfected for 30 minutes, is gone. Poof! Gone. Deleted. Doesn't exist anymore. It's … | |
Hi there, I'm a long time PHP programmer, 6 month newb python developer, but entirely new to git and gitlab. I've spent 2 solid work days trying to solve this issue, I've chatted with others in chat rooms, all to no avail. I'm not certain where I should post this … | |
Hello! I'm working on a program at work for a device we are building, it's a device that (basically) in real-time reads in sensors, makes decisions about said data, and performs output. I have a loop that runs, and then calculates how long to sleep, so we can get as … | |
Hi there! I've googled around, and can't seem to find an answer to this question: How do you check if UART# has already been enabled or not? And what I mean is, I need to be able to get into python and say "If uart1 is not enabled, enable it". … | |
At work I am taking on some development stuff on the beaglebone black and I have to learn Python. I've had a blast so far!! So I'm trying to understand what some of the code is doing. I have a sample script that opens a port and listens for connections … | |
Hello! I am normally in the PHP / Web Development section of DaniWeb. It's a pleasure to finally have a reason to check out other sections of DaniWeb! So, I am logged in as root at the Command Line Interface over SSH - on Debian 7 Wheezy running on a … | |
I have a PHP script that opens a port and asks the server if it is running, with PHP I echo a "Server Running" or an error - I want to access this script with JQuery/AJAX. Then on the website, I have a little box on the side of the … | |
Hello all, I have a wordpress site, http://gardenoftomorrow.com/ As of the first 3 years, my wordpress permalink structure has been /%category%/%postname%-%post_id%/ I now plan on changing the category each post is filed under, and changing my permalink structure to /%postname%/ I made the permalink change, and I've setup redirection for … | |
So I am trying to do a neat little script in a wordpress plugin that replaces matching keywords with links to other articles on the site. I think I'm done all except one little thing down here below. I need to fix the preg replace function. It should match anything … | |
![]() | Re: I use PSPad for editing websites and being able to FTP ...as in, I open up PSPad, connect ftp to my site, browse to the file I want to edit, double click to open it up, make changes, file > save to save it back to FTP. As per a … |
Re: If you are interested, I use sessions to hold user messages. I've create just a small handful of functions, and some css so it can be placed anywhere on any website and just work :) Here we go: function set_user_message($msg, $class = "warning"){ $_SESSION['user']['msg'][$class][] = $msg; } function read_user_message(){ foreach … | |
Re: I would love to share with you a nice function I made just for this. But to impliment it you might need to give me some more info - basically just your database schema - table name and column names. The rest is all up to you! For your project … | |
I'm trying to understand XPath, but I've come acrost an issue I can not seam to find an answer for. In this case it seams that XPath is not returning what it should. I've got a sample html file, test.html: <html> <div> <p>1</p> <p>2</p> <p>3</p> <p>4</p> <p>5</p> </div> </html> And … | |
I've considered myself somewhat of a procedural PHP expert, there is nothing I can't solve...Except this. You know when you try to declare a function that already exists and in the error you get a reference to where the function is located, the file and line number? Well, I am … | |
I have a project that, instead of using MySQL, I am supposed to use txt files to manage data. I have no say in this, I'm doing the project for a client. So I wrote a test file with functions for writing these data files, reading, etc. But it's not … | |
So I am trying something new in a script and I can't seam to find more information on it. I've seen it and I've used it, but what do you call it? How would you search for it? [code=php] <?php $var = <<<UPPERCASELETTERS "Some Content in which I don't have … | |
Overview So I've got this site I've been working on for months. I thought I had it all figured out. But then I Google'd for my site, and clicked a link, and the same functionality does not work. Details Site: [url]http://whentoplant.com/[/url] Walkthrough - Everything seams to work Ok, lets walk … | |
Hello, I've built myself a nice, simple little store to sell some stuff I've got laying around and some nice jewelry I got last week. I would like to give users the option to pay with PayPal exclusively (since it will also process CC's I figure that's all I really … | |
I've been looking, and there seams to be a lack of Ron Paul (for president 2012) Wordpress Themes. So I think I'm going to have to make my own...but then I remembered I suck as design. So I was wondering if anyone might know of a good resource where I … | |
Hey there, I'm still kinda learning JS. I can't figure this one out. I googled and discovered the issues is with placing the <!DOCTYPE html> tag at the top, but how to resolve the issue? I've a document with some Javascript and JQuery in it, it works great! I add … | |
Re: It should be pretty simple, google "HTML link a href" Links look like [code=html] <a href="path/to/file.ext">Text link you see</a> [/code] | |
I google'd myself silly, I can't find tutorials for this. I hope someone could lend me a hand. I'll try to make this simple. I have a PHP & MySQL driven site. I have a form for adding new content. The form has a set of check box options that … | |
I have this in a script of mine: [code=javascript] function add_option(section){ var sec = section.id; var addnew = document.myform.addnew.value; alert('add_option: section: '+addnew); [/code] I am pulling text from the input with the name of addnew, and it works. I would like to use a variable in place of the "addnew" … | |
Re: I think what he is saying is that you should add a timestamp field to each entry in the database. The script that retrieves results could do something like this: [code=php] <?php //connect to db $gr = mysql_query("SELECT * FROM table WHERE timestamp ORDER BY timestamp DESC LIMIT 10"); // … | |
Re: Well, there is so much information its hard to answer this one without knowing how you want your menus to display - especially with submenus, drops downs, etc you have many options, so its hard to give you an exact answer. I am confident I can get you started though, … | |
Re: Check line 81: [code=html] <td width="50%">MotherBoard ID:</td> <td><input id="input3" type="text" name=""mbid/></td> [/code] [code=html] ="text" name=""mbid/> [/code] should be [code=html] ="text" name="mbid" /> [/code] I don't know Jquery or JS really, but I'd put a bet on that quote being the problem. | |
Hey there, So I have this domain, let's call it "keyword.com". People search google for "keyword", and I want to show up numero uno. Now, I have made the URLS on my site nice and pretty, in which lies my question. Often times, people will search for "keyword related-keyword". Is … | |
Let's say this is an unknown error, possibly a syntax error, possibly an HTML error - I can't be sure. Hey there, I'm a PHP expert, but not so well with JQuery - I'm just starting out with JS in general. I have a PHP based site I am working … | |
Re: I have G+, It's just like facebook, but you post content to "public" or your "circles" (friends, family, work, etc). So yes, I'd imagine that posting links as "public" would give some backlink value. I've not tested it in depth yet, but it's definitely worth giving a try - because … | |
Re: Hey, This might not be the 100% correct way to do this, but I don't use mysql to create dates. I use PHP's built in date functions. Which ever columns are going to hold a date, set to varchar (20) or so. You should check [url]http://php.net/manual/en/function.strtotime.php[/url], check out what time … | |
So, I have this wordpress driven site, and I have a plugin written that runs when a post is viewed. The content of the post is loaded into $content. I also have a database of keywords and links to other posts on my site. I want to search the $content … | |
Re: I'm not sure if I can answer your question directly. I'd say double check the correct param is being passed - because if you type the wrong param you wont get an error and nothing will update. Anyways, I went ahead and tried to rewrite the code. This should work … | |
Hello all, I've a seemingly simple question, but it's kind of got me thinkin there might be a "proper" way to accomplish my goal. My goal is a simple MySQL database schema install. In PHPMyAdmin I export a database, any database. I then save the file to the root directory … | |
Re: Just a thought, make sure you are running session_start(); before any text output to the screen. eg: [code=php] $_SESSION['test'] = "this text will be lost"; session_start(); $_SESSION['test2'] = "this text will be saved"; [/code] | |
Re: Give XPath a try, here is a sample I have in my personal library: txt-file.txt [code=xml] <?xml version="1.0"?> <body> This line of information will be pulled because it is in between the body tags! </body> [/code] And the PHP Code: [code=php] <?php $filename = "txt-file.txt"; // xml formatted text file... … | |
Re: I've dealt with this before. Although it would nearly NEVER happen, you need to be sure that no duplicate image names *could* possibly exist - because if it could happen, it will happen, and someone is going to have the wrong image in their property listing, etc no big deal, … | |
I am having trouble with a PHP foreach loop....I know how they work, I think I'm getting unexpected results. A bug perhaps? Am I missing something? [code] if(is_array($array)){ foreach ($array as $k => $v){ echo "<b>#$k</b><br />"; foreach ($v as $kk => $vv){ foreach ($vv as $kkk => $vvv){ if($kkk … | |
Re: Business contact information, for lawyers, doctors, etc A) Are already plastered across the internet. B) Are public domain (when you register the business with the government) C) It is required for new businesses to publish a fictitious name statement with business name, address, and most of the time people also … | |
Re: I see you already mentioned variable variables. I've used these a few times, like so: [code=php] <?php $count = 0; foreach($array as $k => $v){ $count++; $var = "info".$count; $$var = $v; } echo $info1."<br />"; echo $info2."<br />"; echo $info3."<br />"; echo $info4."<br />"; echo $info5."<br />"; echo $info6."<br … | |
Hello! I've come across a little problem with Regex, I was hoping someone might see the problem off hand. Here is some sample content I am searching through, It's the gameshark codes for PEC: [code] #Ace Combat 3 Electrosphere#SLPS-02021#SLPS-02020 §N Joker Command D00BF32E ???? "Infinite Time for battle D0054332 2442 … | |
Re: Yeah...I was just going to say that: [code=php] <?php $var = $_GET['var']; $var2 = $_POST['var2']; //should be $var = mysql_real_escape_string(trim($_GET['var'])); $var2 = mysql_real_escape_string(trim($_POST['var2'])); ?> [/code] I trim and escape pretty much everything that comes through POST, GET, FILES, etc. | |
Re: Basically, when an email is sent (weather reply or forward, etc), its like sending a whole new email....Typically the email client includes the original message simply for reference. For instance, in Gmail there is an HTML email or a Plain Text email option. If your email client does not support … |
The End.