Posts
 
Reputation
Joined
Last Seen
Ranked #873
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
79% Quality Score
Upvotes Received
22
Posts with Upvotes
19
Upvoting Members
15
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
6
3 Commented Posts
7 Endorsements
Ranked #260
Ranked #718
~86.5K People Reached
About Me

Happily married , Certified Java Engineer.

Interests
Favorite languages : JAVA, PHP. Favorite people:My wife and my son
PC Specs
Components housed by Thor Full Tower : Powered by a Rosewill 1000W PSU. Memory : 32 GB 240-Pin DDR3…
Favorite Tags

97 Posted Topics

Member Avatar for Dani

Wow Dani, I am sorry to hear this. I have been a member here for a few days. I do not post a lot, but I do frequent the forums. Personally I enjoy this forum more than Stackoverflow. Looking at your examples, I believe it is the way the answers …

Member Avatar for j.khurram
11
5K
Member Avatar for JackticalNuke

Yes you can use curl to do this. If it is a very large video then you will probably have to increase memory on your PHP installation or you can crash the server if your php locks and can't close the connection. Being on shared hosting I would not attempt …

Member Avatar for tiểu
0
2K
Member Avatar for blueguy777

To expand on cereal's comment. You may also look into the types of comparison operators. == is Equals. Using this operator will only compare the value. === is Identical. This operator will compare type and value of the variable. === Should be used on strings.

Member Avatar for diafol
0
123
Member Avatar for diafol
Member Avatar for davy_yg

In logout.php maybe try to use `unset($_SESSION['username']);` <?php unset($_SESSION['username']); session_destroy(); header("location:index.php"); ?>

Member Avatar for mattster
0
163
Member Avatar for toxicandy

Yes you can use variables to build your query. One way is to build your form, validate whether or not fields in your form are blank and if so do not process those fields. The fields that are activated use them for your query. You can also put all the …

Member Avatar for DJBirdi
0
389
Member Avatar for JulieR31392

This is how I would do this. Create a form to add everything including the upload for the license and note. Choose what type of formats you want to allow also. (eg: pdf, png, jpg, rtf etc....) Add the form fields to the database and upload the license and note …

Member Avatar for Banderson
0
186
Member Avatar for Pravesh_1

As pritaeas mentioned, it is probably a misconfiguration on localhost. Try to run this code in localhost: <?php if ( extension_loaded( 'gd' ) && function_exists( 'gd_info' ) ) { echo "You have the GD Library installed"; } else { echo "GD Library is not installed"; } ?>

Member Avatar for Pravesh_1
0
756
Member Avatar for shrutisk

The most obvious place is the manual itself you can view them online or download it in multiple languages. [Click Here](http://php.net/docs.php) I also found the O'Reilly php books very helpful when I was a beginner and still do from time to time. Good luck in your experience. [Click Here](http://oreilly.com/php/)

Member Avatar for diafol
0
178
Member Avatar for wikit
Member Avatar for Hilal2009

I don't think it is possible using PHP since PHP is server side only. It will only return the time and date of the server. You may need to use javascript or another client side language to get the client machine time and then capture that value with PHP and …

Member Avatar for diafol
0
5K
Member Avatar for ankit1122

Yes there are several free alternatives for SMTP and PHP. If your server has PEAR installed you could use that. You can also use GMail or SwiftMailer to send email. The solution that urtrivedi has given you is a free solution, but here are a couple more links below. pear.php.net …

Member Avatar for Banderson
0
405
Member Avatar for Sammys.Man

I usually use GDChart if I need to generate a graph or chart in PHP. Also if you need have a way to manipulate the chart in a browser you could use PHP to update the values or you could use JQuery. What you use depends on the type of …

Member Avatar for Sammys.Man
0
134
Member Avatar for markii.borabon
Member Avatar for markii.borabon
-2
300
Member Avatar for Jay_7

Do you have your PHP extensions configured correctly? Also I am not sure what version of PHP version you are using or your OS, but PHP support for MSSQL is not supported on windows with PHP 5.3 or later. http://www.php.net/manual/en/intro.mssql.php

Member Avatar for veedeoo
0
430
Member Avatar for davy_yg

This can be done using [Bootstrap](http://getbootstrap.com). Have alook at this [fixed top example](http://getbootstrap.com/examples/navbar-fixed-top/).

Member Avatar for <M/>
0
232
Member Avatar for Robonte

What is your database name? Where are you selecting it? Are you connecting and selecting in another include? If this is your complete code above, then the query is failing. Add die() like so on this line. $resultcitrix = mysql_query($select_query_citrix)or die(mysql_error()); You will need to connect and select above this …

Member Avatar for bradly.spicer
0
352
Member Avatar for Olagsfark

You could easily create a PHP method to record each hit from each IP. Just input the hits to your database and increment a given column on the table. If so many hits deny IP by writing to Apache or another php script which will deny IP. If you think …

Member Avatar for pritaeas
0
174
Member Avatar for JacobAbrham

There is nothing to explain. # is not used because it is not implemented in JAVA to be used that way. You could put it in a string , but you cannot use it the way you are explaining. That character is not accepted everywhere anyway. JAVA is designed to …

Member Avatar for Banderson
0
203
Member Avatar for AndyFang1998_1

PHP can read text files with any separator you input. The text files needs to be read access on your server to be read. However, you do know this will expose your passwords and acccount information to anyone that finds the path to this text file on your server, right? …

Member Avatar for Banderson
0
184
Member Avatar for hallianonline

This code is encrypted. You will need a key or hash to decrypt, echo will not work. That simple. It's not that easy :). Has the developer given you permission? Even if you figure out how to decrypt it , unless it is your code your illegal. It is called …

Member Avatar for broj1
-1
211
Member Avatar for davy_yg

You want complex eh? Use [Laravel](http://laravel.com/). Laravel is OOP and why reinvent the wheel? I like a touch of craft in my applications this is why I always use objects and not arrays.

Member Avatar for Banderson
0
187
Member Avatar for yavindu

There is no such thing as a date input type unless your developing with HTML5. Your code needs to be: <?php $system_date = Date('m/d/Y'); ?> <input type = "text" value ="<?php echo $system_date; ?>"> The date method in PHP has single or double quotes, since it is a defined function.

Member Avatar for cmps
0
300
Member Avatar for GlenRogers

@diafol I agree. In my development I can do without Ajax completely as PHP can do what Ajax can do if coded correctly, on the fly(eg: return errors()). I'd also like to add that the more javascripts you add to a page the slower it can become for the client …

Member Avatar for Banderson
0
4K
Member Avatar for حسنين_1
Member Avatar for spluskhan

Sounds like your query is failing. Try to replace // if successfully updated. if($result){ echo "Successful"; echo "<BR>"; echo "<a href='list_records.php'>View result</a>"; } else { echo "ERROR"; } with: // if successfully updated. if($result): echo "Successful"; echo "<BR>"; echo "<a href='list_records.php'>View result</a>"; elseif(!$result): die('Error: ' . mysql_error()); endif; This should …

Member Avatar for pritaeas
0
168
Member Avatar for wareez

Read your error. Connection to host was established , but username and/or password are wrong.

Member Avatar for Banderson
0
238
Member Avatar for Shikha_1

I am assuming you are requiring a captcha of some sort. As pritaeas stated, look into AJAX. You can refresh a css DIV using AJAX without refreshing the entire page. Generate the string with PHP and embed the string/function into the css DIV. Make an AJAX call whenever you want …

Member Avatar for diafol
0
157
Member Avatar for yavindu

I doubt very seriously that you will be able to deploy an app running under that version. Even so I would not recommend it. That version of PHP is 7 years old. It has major security flaws in it. If you decide to deploy it under that version I would …

Member Avatar for Atli
0
270
Member Avatar for thearts.beach

Try this: <INPUT name=c value="<?php echo 'href=http://',$data2['c'],' " ',$data2['c'] ?>">&nbsp;

Member Avatar for thearts.beach
0
299
Member Avatar for joma.tioquin

I'd like to add also. You can't remove an item from an array, it is not possible. You can only change its value to whatever you need or NULL. If the value is null then the key is still there, but it's value is NULL. When you create an array …

Member Avatar for joma.tioquin
0
408
Member Avatar for shockwave4uonly
Re: java

> Actually i m new to java.......tell me one thing whats the diff. between java programming language and javascript programming language > About 82 USD more an hour is the first thing that comes to my mind.

Member Avatar for jwenting
-1
151
Member Avatar for Dani

That's the best way to overwrite anything in a framework. In CodeIgnitor just extend the base class and put it in the appropriate folder. CodeIgnitor has empty Library , helper etc... folders. Simply extend the class you want and put it in those empty folders.

Member Avatar for diafol
0
1K
Member Avatar for SAM2012

This is a framework. You can't just execute it. It is for development. If you want to work with it then you have to go to your IDE and import the library, which is the jar file and then import the packages from the library into your code as needed.

Member Avatar for SAM2012
0
303
Member Avatar for nats01282

This prints for me. Yes you can store the value(s) of config[] in a database. <?php $config['slogan'] = "My Website Slogan"; ?> <div class="row-2"> <div class="titles"> <?=$config['slogan']?> </div> </div>

Member Avatar for nats01282
0
1K
Member Avatar for eburlea

This is the way I do MVC in instances like this. I post the form to self (eg: the curent URL) validate the form on the fly and check for credentials if all is well redirect to the auth pages. In other words above the line : $this->setAction("/auth/index"); you need …

Member Avatar for eburlea
0
394
Member Avatar for Deep_Coder

Here is the way it is suppose to be done. When a user registers the password is hashed and salt is applied to that hash and the hash goes into the database with the salt. Now when the user signs in you apply the same algorithm to the password and …

Member Avatar for iamthwee
0
4K
Member Avatar for Abbas Ansari

First you need to create a primary key id. What if you have 10,000 people in a database , more than likely a few of them will have the same first name. So we can use your primary key id for the selection. Also put an index on id and …

Member Avatar for Banderson
0
248
Member Avatar for Petranilla

Do you mean background color? If so use this, tweek as needed: myContentPanel.getContentPane().setBackground(Color.YourColorVariable_here); myContentPanel.getContentPane().validate(); myContentPanel.getContentPane().repaint();

Member Avatar for Petranilla
0
164
Member Avatar for Narayanan87

Use the SecurityManager class located in the java.lang package and set up a security policy for the files.

Member Avatar for Banderson
0
132
Member Avatar for gsam777

> ALMOSTBOB - you are right as well however I need to get my html to work as or with a PHP file or some flavor of that (not sure that is where I have my disconnect) then I am sure your REMOVE_ADDRESS code above will work. This is a …

Member Avatar for gsam777
0
3K
Member Avatar for dhani09

He means when you insert the data into the database redirect to another page immediately to prevent duplicate data. Like IIM said there are multiple solutions. The way I would do this is : Capture the session until the products cart is added to the database. After the products are …

Member Avatar for Banderson
0
1K
Member Avatar for nickp87

Expanding on what @Zagga said, you can also set up your server to read .html files as PHP. You will need to set up a .htaccess file to do this. Place an .htaccess file in the root of your application with the following: AddType application/x-httpd-php .html

Member Avatar for diafol
0
166
Member Avatar for sonicx2218

If you want to remove the scroll bar from the entire page then you will need to insert into the body tag since the scroll bars are part of the body of your document. eg: body { overflow:hidden; } If you only want to remove it from an element in …

Member Avatar for Banderson
0
349
Member Avatar for javanoob101

You will need to pass the variables to the int(speed) of your Timer animation in the ActionListener of your Timer class. Your timer class will also need to implement KeyListener. The Timer class has a setDelay method. setDelay() will not affect setInitialDelay(). So if you want your monster to begin …

Member Avatar for javanoob101
0
284
Member Avatar for mallows.yum

Your query is failing here: $strSQL = "SELECT * FROM employee WHERE proj_mgr = '$session->username'"; Try this: $strSQL = "SELECT * FROM employee WHERE proj_mgr = $session->username"; If it doesn't work then you will need to be sure that the $session->username variable is not empty.

Member Avatar for arunmagar
0
368
Member Avatar for zlloyd1

Try this class. It will create your file if it does not exist and it will print your variable value to the file. You will need to change the variable type to what you need in the argument. Also your logger is wrong. Level Severe is only for release. Until …

Member Avatar for Banderson
0
4K
Member Avatar for jessa_lee

[B]This is how I send HTML email in my PHP Contact Form demo located at :[/B] [URL="http://programmers-paradise.net/demos/contact/contact.php"]http://programmers-paradise.net/demos/contact/contact.php[/URL] [B]The send email code is :[/B] [php]@mail($to, $subject, $message, "From: $from\nContent-Type: text/html; charset=iso-8859-1");[/php] [B]You can download the Contact Form at:[/B] [URL="http://programmers-paradise.net/pafiledb/pafiledb.php?action=file&id=3"]http://programmers-paradise.net/pafiledb/pafiledb.php?action=file&id=3[/URL] ;)

Member Avatar for smartedesigners
0
1K
Member Avatar for Banderson
Member Avatar for khess

I always like beginner tutorials, a nice refresher never hurts. This tutorial is not bad, but it is rather outdated, at this point. Most of this code would work for PHP Version 4 **, but it [B]will not [/B]work for Versions 5 => You must use [CODE]<?php ?>[/CODE] for Versions …

Member Avatar for cwarn23
-8
1K

The End.