- 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…
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'] ?>"> |