Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
73% Quality Score
Upvotes Received
7
Posts with Upvotes
4
Upvoting Members
7
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
~7K People Reached
About Me

I'm awesome.. True story!

Favorite Tags

18 Posted Topics

Member Avatar for logonchristy

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 …

Member Avatar for gptArun
1
1K
Member Avatar for nevil120

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. …

Member Avatar for timetraveller1992
0
168
Member Avatar for Syed Azadar

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!

Member Avatar for timetraveller1992
0
158
Member Avatar for Jack_9

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..

Member Avatar for <M/>
0
337
Member Avatar for Daisy_1

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 ## …

Member Avatar for timetraveller1992
0
547
Member Avatar for Clanstrom

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)

Member Avatar for timetraveller1992
0
417
Member Avatar for MrJo

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. …

Member Avatar for timetraveller1992
0
294
Member Avatar for stokie-rich

> 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. …

Member Avatar for stokie-rich
0
344
Member Avatar for ignnniter

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 …

Member Avatar for JorgeM
0
341
Member Avatar for timetraveller1992

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 …

Member Avatar for cfajohnson
0
183
Member Avatar for timetraveller1992

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 …

Member Avatar for Lsmjudoka
0
259
Member Avatar for seanbp

@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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for revelator

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 …

Member Avatar for rubberman
0
242
Member Avatar for timetraveller1992

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 …

Member Avatar for timetraveller1992
0
245
Member Avatar for timetraveller1992

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 …

Member Avatar for rch1231
0
365
Member Avatar for timetraveller1992

I'm trying to make a small app with the following look ![2d3a438a99c57975b0cd40c49d67c502](/attachments/large/3/2d3a438a99c57975b0cd40c49d67c502.jpg "2d3a438a99c57975b0cd40c49d67c502") Thats an edited image of what exactly im trying to achieve. But here's what I got... ![b7f011c0afa0031328e917e8553abc2d](/attachments/large/3/b7f011c0afa0031328e917e8553abc2d.png "b7f011c0afa0031328e917e8553abc2d") Could you tell me where I went wrong. And if it isn't much effort could you advise on how …

Member Avatar for JamesCherrill
0
155
Member Avatar for timetraveller1992

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 …

Member Avatar for diafol
0
197
Member Avatar for timetraveller1992

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 …

Member Avatar for timetraveller1992
0
148

The End.