- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 22
- Posts with Upvotes
- 19
- Upvoting Members
- 15
- Downvotes Received
- 6
- Posts with Downvotes
- 6
- Downvoting Members
- 6
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…
97 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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. ![]() | |
![]() | Re: NetBeans user here as long as I care to remember. |
Re: In logout.php maybe try to use `unset($_SESSION['username']);` <?php unset($_SESSION['username']); session_destroy(); header("location:index.php"); ?> | |
Re: 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 … | |
Re: 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 … | |
Re: 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"; } ?> | |
Re: 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/) ![]() | |
Re: Hi Wikit. If you have found a solution please mark this thread as solved. | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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 … | |
Re: Make sure you uploaded your files to your public folder. | |
Re: 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 | |
Re: This can be done using [Bootstrap](http://getbootstrap.com). Have alook at this [fixed top example](http://getbootstrap.com/examples/navbar-fixed-top/). | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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? … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: @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 … | |
Re: 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 … | |
Re: Read your error. Connection to host was established , but username and/or password are wrong. | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: Try this: <INPUT name=c value="<?php echo 'href=http://',$data2['c'],' " ',$data2['c'] ?>"> | |
Re: 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 … | |
Re: > 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. | |
Re: 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. ![]() | |
Re: 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. | |
Re: 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> | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: Do you mean background color? If so use this, tweek as needed: myContentPanel.getContentPane().setBackground(Color.YourColorVariable_here); myContentPanel.getContentPane().validate(); myContentPanel.getContentPane().repaint(); | |
Re: Use the SecurityManager class located in the java.lang package and set up a security policy for the files. | |
Re: > 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 … | |
Re: 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 … | |
Re: 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 ![]() | |
![]() | Re: 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 … |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: [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] ;) | |
| |
Re: 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 … |
The End.