- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 4
- Upvoting Members
- 7
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
I'm awesome.. True story!
18 Posted Topics
Re: A better idea would be to use the HEREDOC method as its much neater <?php $url = trim($_POST['url']); $title = trim($_POST["title"]); echo <<< THEHTML <a href="http://digg.com/submit?phase=2&url=$url&title=$title" target="_blank"><img src="http://www.virtualdolphintherapy.com/images/digg.png" alt="Digg" width="64" height="63" border="0" /></a>; THEHTML; ?> Remember that HEREDOC stops parsing when it reads the original start word and must begin … | |
Re: Use HttpRequest to invoke the PHP scripts. Please do not ever enter your mySQL details into an Android application for direct communication ever! Anyone can decompile the app and get the db credentials. Instead make PHP scripts that do this for you and make calls to this from the app. … | |
Re: You can do this by setting the cron job to open a shell script. cURL request the server. If the cURL request fails call the sendmail binary to mail an error to you.. This is one way to get it done! | |
Re: I don't think there would be a need for a native app. Daniweb seems to respond perfectly well with mobile browsers. Might as well stick to that.. | |
Re: There are several ways to get this done. Depends on what you need it for. These are some scenarios I use... ## Form Submission ## if($_SERVER['REQUEST_METHOD'] !== 'POST') { .... Code to show form .... } else { .... Code to perform form submission .... } ## User Login ## … | |
Re: Lucky for you I just came across this a while ago. You can easily integrate this into your CMS. Its a really neat snippet to get this job done! [Click Here](http://www.daniweb.com/web-development/php/code/478080/function-to-generate-where-sql-from-user-search-terms) | |
Re: You need a Jabber / XMPP server to host your chat. You need a XMPP client library like [XMPPFramework](https://github.com/robbiehanson/XMPPFramework). I recommend that you learn objective C properly before starting with this application as its more complex than simple forms and stuff. I made a variant using just a web server. … | |
Re: > REMOVE MYSQL_* FUNCTIONS! THEY ARE DEPRECATED Samuel Lewis (a.k.a. matrixdevuk) is right. The better option is PDO or mySQLi Regarding your problem. The problem is that your database hostname is probably something else. You need to check your web hosting control panel under the phpmyadmin section for the hostname. … | |
Re: Pretty simple. You parse the message for URLs. The easy way to do this is to use regular expression and match urls using the preg_match() function. Once you've done that you will have an array containing all matches (URLs). You call the function having your API code in a for … | |
I'm trying to get the date to work properly. The time is 5 pm (1700 hours) now i.e. evening but it always says morning. Here's my code currenthour="$(date "+ %-H")" echo $currenthour if [ $currenthour -gt '12' ] && [ $currenthour -lt '16' ]; then currenttimeofday="Afternoon" elif [ $currenthour -gt … | |
I am trying to write a multiline string into a text file but it does not appear as multi-line text. Here's my code $hostname = "localhost"; $username = "root"; $password = "sample"; $dbname = "code"; $code = <<< THECODE ; This is the main configuration file for your web app … | |
Re: @Kris I'm pretty sure you can use this code anywhere you like. After all daniweb is made for the public and anything that a person (a user) posts can be used anywhere you like. If you add credits that you found the original code here thats pretty good because your … | |
Re: Google for "Style Guides" and read about it. The style guides help you to code more effectively. And switch to better compilers. I know a few people who are still stuck in TurboC even today and thats really bad. Learn about make files, cross compilation, etc. If you feel bored … | |
Here's my code >> [Click Here](https://dl.dropboxusercontent.com/u/21617707/accordion.rar) And here's an image showing the problem! >> [Click Here](http://i41.tinypic.com/4id7dc.png) Rest is self explainatory. I used the same code in IE and the problem didn't occur. I haven't tried Firefox. The problem is most people seem to use Chrome these days and thats why … | |
I'm trying to run a cron job on my web server. I used the cron module at the cPanel to add the file and used this command.. `sh ./public_html/crark/run.sh` The problem was that it takes the root folder context for all the followed processes i.e. I call run.sh from cron … | |
I'm trying to make a small app with the following look  Thats an edited image of what exactly im trying to achieve. But here's what I got...  Could you tell me where I went wrong. And if it isn't much effort could you advise on how … | |
I have a website and so does my college. Except my college doesn't know that my website uses their hosting i.e. same server. So both of us share common IP address like 23.5.46.225 To access my college I can either use http://23.5.46.225/~collegename OR www.collegename.com And to access my server I … ![]() | |
I'm new to network programming. And I skimmed a few pages of beej programming guide and found some useful info but couldn't clear one doubt. We use bind to associate a sockaddr_in structure with the socket descriptor so that the kernel can send data to the network adapter and thereby … |
The End.