Posts
 
Reputation
Joined
Last Seen
Ranked #100
Strength to Increase Rep
+15
Strength to Decrease Rep
-3
83% Quality Score
Upvotes Received
160
Posts with Upvotes
148
Upvoting Members
93
Downvotes Received
32
Posts with Downvotes
27
Downvoting Members
24
62 Commented Posts
3 Endorsements
Ranked #486
Ranked #56
~1.20M People Reached
About Me

Man that loves Jesus and explores science

Interests
Theology, Programming, Chit Chatting, Natural Exploration Adventures eta al
PC Specs
OS: Ubuntu 13.04 Raring Ringtail/Unity
Favorite Tags
php x 1K
python x 961
c++ x 797
mysql x 229
java x 183

1,730 Posted Topics

Member Avatar for HanFromNL

[url]http://www.whenpenguinsattack.com/2006/01/20/how-to-override-phpini/[/url] [url]http://www.phpfreaks.com/forums/index.php?topic=222826.0[/url]

Member Avatar for Nour_6
0
37K
Member Avatar for anish.anick

[QUOTE=akumakeenta;616219]Hi all, I'm kinda newbie at this. But I was just wondering where are you placing this code? On every page? or just on the main login page, etc? Thanks Mike[/QUOTE] Put it on separate page and include it on every page needed!

Member Avatar for syaifulrijzal10
0
19K
Member Avatar for Deepak.G
Member Avatar for vegaseat
0
5K
Member Avatar for lllllIllIlllI

from what I know Notepad++ Is editor not IDE. I think you need to Go for something like Netbeans. Their next version will support python (For now it supports to some extent). It does more than that, maaany languages. Just check their main package and nbpython plugin!

Member Avatar for Kuldeep_8
1
3K
Member Avatar for niranga

[QUOTE=niranga;1317211]Hi All, I have a PHP code which do some changes to the POST variables it receives and redirect the page to some other page. This PHP code was initially designed to work without Ajax. So there wasn't any problem with the redirect function and it perfectly handles the POSt …

Member Avatar for Mukul_2
0
13K
Member Avatar for Jiaxin

[QUOTE=hielo;1605504]try: [CODE=PHP] $result_1= mysqli_query($link, "SELECT $criteria FROM table ORDER BY $crieria ASC") or die( mysqli_error($link) ); [/CODE][/QUOTE] Always let PHP display errors for you in development. Another way described in [URL="http://php.net/manual/en/mysqli.query.php"]PHP Manual[/URL] is: [CODE=PHP]/* Create table doesn't return a resultset */ if (mysqli_query($link, "CREATE TEMPORARY TABLE myCity LIKE City") === …

Member Avatar for Rakesh_13
0
81K
Member Avatar for Stefano Mtangoo
Member Avatar for khess
Member Avatar for Stefano Mtangoo

I cannot access my Toshiba External HDD. When I use chkdsk, It complains [B][COLOR="Red"] "Unable to determine volume version and state, chkdsk aborted"[/COLOR][/B]. I cannot think of any other way to restore it. I don't have access to buy recovery software so, freeware is preferrable. Thanks all

Member Avatar for Johannes M.
0
9K
Member Avatar for willygstyle

Don't know on TkIntering, but if you're serious with your app, grab wxPython and MySQL-python. Make a client that will access remotely the mysql server, authenticate it and populate data/delete depending on whether they are admins or not After that exercise, you will be fresh for a rest :)

Member Avatar for Gribouillis
0
5K
Member Avatar for Gribouillis
Member Avatar for a1eio
Member Avatar for anirban1087

[QUOTE=anirban1087;1459280]. Please Help me to develop the tree view. Thanks in advance.[/QUOTE] Without showing effort your thread will die young. explain more with some code, what you have done and where is the problem!

Member Avatar for Rishos
0
5K
Member Avatar for papuccino1
Member Avatar for divyakrishnan

While this does not solve your question, compressing the base64 string might reduce errors caused by timeout of big files transfer. Note that because base64 is string then your problem isn't JSON but how to reliably post big data! That being said, make sure that your server supports image data …

Member Avatar for cereal
0
2K
Member Avatar for abhi10kumar

Short Answer: NO. Long Answer: HTML is markup language and not programming language. Learn C/C++, Java, Python, C# et al to Program to USB. You need a desktop based programming language!

Member Avatar for abhi10kumar
0
133
Member Avatar for vegaseat

If you feel confidence enough, write [URL="http://www-ai.ijs.si/eliza/eliza.html"]Eliza [/URL]program

Member Avatar for vegaseat
20
18K
Member Avatar for halo_123

It is LEGAL to ask for starting point, or for PROBLEM in coding But it drives me bananas someone wants his/her homework done. Oh! Why did you go to college/School then?? :lol:

Member Avatar for PartVIII
-11
2K
Member Avatar for JerrimePatient

Check out CP Article http://www.codeproject.com/Articles/687061/Multiple-Models-in-a-View-in-ASP-NET-MVC-MVC

Member Avatar for JerrimePatient
0
219
Member Avatar for Stefano Mtangoo

I'm creating Frontend for an application with Established database (am rewriting to be explicit and so there are some things I cannot change. I was looking at Default Register/Login that comes with MVC5 sample and found that its table have fields that are problematic to my app. Specifically, my users …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for koster25

Since you said nothing of what you have done so far nor did you tell us your level of expertise I will refer you to a tutorial http://www.w3schools.com/php/php_mysql_intro.asp

Member Avatar for almostbob
0
557
Member Avatar for shashigowda

I would suggest you look at SwiftMailer (my fav) or PHPMailer to send mails. For all practical purposes I don't use PHP mail() Here's a sample from [Documetation](http://swiftmailer.org/docs/sending.html) require_once 'lib/swift_required.php'; // Create the Transport $transport = Swift_SmtpTransport::newInstance('smtp.example.org', 25) ->setUsername('your username') ->setPassword('your password') ; // Create the Mailer using your created …

Member Avatar for almostbob
0
499
Member Avatar for nuaris

Basic example with for loop [CODE=python] #URL LIBRARY from urllib2 import * ur = urlopen("http://www.daniweb.com/forums/thread161312.html")#open url contents = ur.readlines()#readlines from url file fo = open("test.txt", "w")#open test.txt for line in contents: print "writing %s to a file" %(line,) fo.write(i)#write lines from url file to text file fo.close()#close text file [/CODE]

Member Avatar for snippsat
-1
5K
Member Avatar for kiddo39

what does join do? does it replace only commas or any other joining charcter? I'll dig py docs but forum sometimes is best place for answers

Member Avatar for TrustyTony
0
31K
Member Avatar for Cup of Squirrel

[QUOTE=Flare;762667]print 'What is you name?' Raw_input()[/QUOTE] If you run it you will get error NameError: name 'Raw_input' is not defined That is because your version of raw_input() is Raw_input()

Member Avatar for Jason_15
1
18K
Member Avatar for rajeesh_rsn

no way in native php but you can use any script/executable in php as demonstrated above. Note, you must be careful in using methods as above especially if command can be called from outside the script. It might well be a bomb against your own app!

Member Avatar for monika1992
0
6K
Member Avatar for hankmeyer
Member Avatar for hell hansen

This is JavaScript question You have to tie events to selection change then send Ajax request to get list of States fo example, for that country!

Member Avatar for hell hansen
0
209
Member Avatar for Weejin

The Code below shows how to iterate Strings. With Efforts you should be able to get what you want God bless you! #include <string> #include <iostream> int main() { int i=0; std::string s = "UJehova uyaphile Yesu Mwema!"; for(i; i<s.length(); i++) { std::cout<<s[i]<<std::endl; } return 0; }

Member Avatar for Rafiii
0
152
Member Avatar for vegaseat
Member Avatar for Stefano Mtangoo

I downloaded daily build and did python3 setup.py build and then python3 setup.py install So far so good! I tried import wx and no errors I tried to run the program [here](http://wiki.wxpython.org/Getting%20Started#Getting_started_with_wxPython) and all I got was the error below. Have anyone got wxPython working with Py3 especially on Linux …

Member Avatar for Werner F.
0
1K
Member Avatar for doublefish_jobs

It is greatly personal preference. But as for me I will vote for ubuntu! That doesn't mean Fedora cant do the Job. I hink the issue should be Gnome vs KDE

Member Avatar for umair4a1
0
730
Member Avatar for asheesh.mehta.54

post whole stack trace here also I find your line `$order = "INSERT INTO user VALUES('$name','$address')";` not working in most cases so I always do `$order = "INSERT INTO user VALUES('{$name}','{$address}')";`

Member Avatar for diafol
0
207
Member Avatar for zekstein

couple of options 1. Limit number of tags and strip off the rest (then encode string in case some entities made its way) 2. Use HTML Purifier (google it) 3. Use Markup language Always validate your inputs

Member Avatar for diafol
0
145
Member Avatar for dhani09

Emulating cart means: 1. Temporary store items 2. commit at checkout Which means 1. Store in session 2. commit in database Store them as asscociative arrays and use array's key exist function in php (check manual) and add only if does not exist. Else just update!

Member Avatar for diafol
0
227
Member Avatar for akhilckz
Member Avatar for <M/>
0
208
Member Avatar for can-mohan
Member Avatar for Webville312

you seem to use GMail SMTP but the code below uses your host machine (which am sure is not google's SMTP servers $mail->Host = "localhost"; So change it to google SMTP. here is example from their site (simplified) $mail = new PHPMailer(); $body = "Your Body here!"; $mail->SMTPAuth = true; …

Member Avatar for Webville312
0
192
Member Avatar for iuessele

for more info on random module: [url]http://docs.python.org/library/random.html[/url] [url]http://effbot.org/librarybook/random.htm[/url]

Member Avatar for alexander.selin.7
0
13K
Member Avatar for tnvkrishna

I have Ubuntu with HP Laptop with No Problem. Couldn't that be more hardware than software?

Member Avatar for Assembly Guy
0
793
Member Avatar for nalini@121

here is an example from [URL="http://codeigniter.com/user_guide/libraries/file_uploading.html"]user guide[/URL] [CODE]<?php class Upload extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper(array('form', 'url')); } function index() { $this->load->view('upload_form', array('error' => ' ' )); } function do_upload() { $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = '100'; $config['max_width'] = '1024'; $config['max_height'] = '768'; $this->load->library('upload', $config); …

Member Avatar for A@DFGFGN.IN
0
5K
Member Avatar for rajeesh_rsn

try something like this [CODE=php]$myfoldername = "backup";//your folders name $handle = fopen(getcwd()./.$myfoldername.'db-backup-'.time().'-'.(md5(implode(',',$tables))).'.sql','w+');[/CODE]

Member Avatar for arslanqamar
0
799
Member Avatar for fray

I will advice you to do what I always call "hard coding". It is coding from scratch. This have these advantages: 1. You make exactly what you want 2. You know how things works 3. You can reuse some parts of code 4. Etc. Having said so, here are some …

Member Avatar for matrixdevuk
0
319
Member Avatar for Stefano Mtangoo

Hi Guys, I want to be generating random quote of the day. I want it to be so random and not repeating itself the same quote What is the trick (If code exclude simple db stuffs like mysql_connect et al) Thanks

Member Avatar for pritaeas
0
618
Member Avatar for ZielonySBS

I will challenge myself to try that, but check this! [url]http://timgolden.me.uk/python/win32_how_do_i/copy-a-file.html[/url] [url]http://www.ehow.com/how_4618897_copy-files-shutil-module-python.html[/url]

Member Avatar for Gribouillis
0
19K
Member Avatar for Stefano Mtangoo

I started this for any information on new python modules apart from standard library. Many people (Including me), aren't willing to move into p3k due to lack of external/non-standard modules. So I started this to keep ourselves informed on New Python 3 Modules. No Limitation, ANY PYTHON 3 MODULE

Member Avatar for vegaseat
0
985
Member Avatar for tryphy

Just a technique. Replace variables with form's variable and Update Query according to your table structure [CODE=php]<?php $pass = $_POST['password']; $rpass = $_POST['repeatpassword']; if($pass==$rpass){ $query = "UPDATE QUERY HERE"; mysql_query($query); } ?>[/CODE]

Member Avatar for liza_1
0
2K
Member Avatar for kcrazy

I have decided to learn codeigniter. No big deal but I think CakePHP, CodeIgniter, Zend and Symfony are all decent :) Just choose any!

Member Avatar for jkon
0
443
Member Avatar for dany12

It all boils don to what you want to do. PHP and Python are different like spanner and screw driver. You will need each other for its task. If you want web go for PHP and if it must be Python then Django helps here. There are others like Ruby …

Member Avatar for profmuluka
1
459
Member Avatar for ankii572

why would you make login a MySQL procedure? am yet to see that kind of thing. Database should store basic information and password hash. use that to authenticate your user. A word of advice is, use PDO or at least MySQLi. If I have misunderstood you please comment!

Member Avatar for diafol
0
226

The End.