1,003 Posted Topics
Re: Hi, Here is a simple form validation I modified way back in 2007. Although i completely outgrown this script and I have written many fancy validation scripts ever since, I still honestly believe this can serve a really good sample script for you. I did a minor upgrade tonight so … ![]() | |
Re: I assumed this can be done in cpanel under default address. This will allow you to catch all email addresses and then pipe it to a PHP program to create the email account. So, if some_user@yourDomainDotCom is dynamically created, then it will be forwarded to the default forwarding address created … | |
Re: If you can manage to take another 2 years of schooling, you can master in Mathematics and become a professor. That is if you enjoy teaching. I don't know what else to say, because I myself don't even know what to do with my Bachelor in Mathematics and Bachelor in … ![]() | |
![]() | Re: The contents from view are retrieved response on controller's request , the controller will take the stored response and then assign them to the view file. I haven't have the chance to look at the model file named stuff yet, but I am assuming there are methods there that should … |
![]() | |
Re: try adding ORDER BY maker on you query... ![]() | |
Re: if you do var_dump($_SESSION["ServiceOrders"]); , it will give you all the hints you need on how to index the stored session vars. try it.. :) | |
Re: the best way to accomplish this is to use css. #thumb { clear : both; width : 100%; margin-left : 0; } #thumb ul { width : 100%; } #thumb ul li { display : inline; font-family : arial; float : left; padding-right : 5px; width: 210px; height : 280px; … | |
Re: trapping the back button is not a good idea. I remember reading an article from the consortium entitled "Use standard redirects: Don't break the back button." to prevent the form resubmission, we can place a session handler between the final form processor and the form page form.php ----> sessionhandler.php (validates … | |
Re: remove all semi-colons following the curly brackets. if(){ } else{ } please refer to the proper syntax usage in PHP[ here](www.w3resource.com/php/syntax/syntax.php) or [here](http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php). You can also search google for PHP basic construct and semantics. | |
Re: Just sign-up for your account and get it over with. | |
Re: one of the many ways of doing this is to get the image file extension first. for example, $this_ext = pathinfo($filename, PATHINFO_EXTENSION); The above codes will give us the image extension of the uploaded image. The next step is to rename the image $result1 = move_uploaded_file($tmpname, $uploadDir.'.'.$this_ext); | |
Re: That will not work.. you will need to set the select multiple property and the name attribute to some array. for example <select name="color[]" multiple> <option value="red"> <!-- add more options here --> </select> for the php processor, you need to iterate throught the color array(), by using foreach.. example … ![]() | |
Re: you can use either jwplayer or [flowplayer](https://github.com/flowplayer/flash). If you will be targeting mobile users, then flv video should be the fallback video. The ogg, mp4 will be the first two options or better yet go for the VP9 or h264 (These two offers the best video quality just few notches … | |
Re: I think Diafol have already given you what you need. Store the submitted information in session. In fact, you can store them as an array. Below is a sample codes... $upload_info = array($title, $description, $uploaded_file_name, $other_things_you_want); $_SESSION['up_data'] = $upload_info; header("Location: form.php"); exit; on redirect, the user will land on the … | |
Re: I totally agree with Diafol xampp it is a risky choice for production sites. The only one I tested that is packaged to be production site ready is the [uniform server](http://www.uniformserver.com/). To allow the world to access your server, you will need to do some work. First, make sure you … | |
Re: I thought this question was just posted some 20+ hours ago, and then I just realized it was awaken from the bone files of two years ago. :). | |
Re: also, you can try running this <?php echo '<br/>'.ini_get('upload_max_filesize').'<br/>'; echo (ini_get('post_max_size')); echo '<br/>'.ini_get('max_execution_time').'<br/>'; ?> post back your output... | |
Re: Hi, **ADDED LATER: MY post is late, so please consider diafol's response before this.** This is just a humble suggestion for your script. Why not use a unix timestamp instead of the actual human readable date. For example, an account can have a date verification expiration two days from the … | |
![]() | Re: For a site with lots of content, I think it is worth implementing. Another scenario where breadcrumbs is useful is when you have a hierarchical categories like Automotive Make Acura, BMW, Chevrolet, Infiniti, Jaguar, Lexus, Mercedes year 2000,2001,2014 Color red, blue, yellow, black, orange Drive front wheel, rear wheel Effeciency … |
Re: I already uninstalled the laravel on my Development stack, because I am moving on to the Fuel PHP. However, I am worried about the for loop on your script. Will it be possible for you to use foreach loop which is more fitting to your situation? I do understand if … | |
Re: Dude, It is my lazy day today.. so, I will be cutting corners here. Instead of writing a 100 lines of codes for your processor, let's do it this way. Copy codes below onto your OnlineOrders.php if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['submit'])){ echo 'if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['submit'])){ <br/>'; foreach($_POST as … | |
Re: Just to add more info., here is a good example of a [PHP script](http://ranacse05.wordpress.com/2007/09/26/compile-c-program-using-php-5/) that can compile C . I prefer using the exec("your_compiler_command_here 2>&1", $res, $err); $res and $error are the text file error log. That's all I can tell you. I am pretty rusty with C. The last … | |
Re: Honestly, I don't see any reasons why it shouldn't work? All static method can be use by other classes. Except, if this is a separate controller file **/login** . That would change the application's loaded controller. It is pretty much equivalent to <form method="post" action="/login"> On form submit, it would … | |
Re: try this.. copy, paste to notepad, save as anyNameYouWant.php, upload to your htdocs . [CODE]<?php phpinfo(); ?>[/CODE] Direct your favorite browser to anyNameYouWant.php, and look for [B]Loaded Configuration File [/B], or [B][COLOR="red"]Configuration File (php.ini) Path [/COLOR][/B] Now the fun part, look for the location of the php.ini file and edit … | |
Re: you will need to process the form before you can initiate the update.. for example, if(isset($_GET['a']) && (isset($_GET['id']))){ $ID = $_GET['id']; ## process the form if(isset($_POST['hiddenField'])){ ## do the query here from } } Make sure to sanitized your form data.... | |
![]() | Re: Honestly, I think this script is a malware script. It was probably injected through the wordpress backdoor. I think the exact name of this malware is called FTP credential malware distributed or created by pubbotstatistic.com . You will just have to search on this to confirm my assumptions. If this … ![]() |
![]() | Re: I totally agree with GliderPilot. Most hackers are not really interested in breaking the target site. What they really after for is to steal information from the user. Allow me to give you the very basic example and vulnerability demonstration of the form. Let say, we have a form on … |
Re: > Is it just moderators and Admins on DaniWeb or do other people hang out here as well :) I am nobody, I visit and hang-out in this area once in a while. Welcome to Daniweb. | |
Re: If the remote mysql server is running on linux, you must grant this user the permission as "GRANT ALL". Please consult the msyql documentation for this. If you are currently using a cpanel or WHM VPS manager, you can also set it there. Also on cpanel, there is also an … | |
**Part One**: Learning the Basic Patterns **Disclaimer**: please pardon my spellogrammatico errors. I am not really a rough draft person. I type and write codes the split seconds as they crossed my mind, otherwise I will get extremely lazy and then will eventually hibernate like a tardigrade. I hope I … | |
Re: **WARNING!** Parsing any remote contents without any written permission from the owner can cause a messy legal battle in court. Prepare to have millions of dollars if you are standing against big corporation. Just saying. Technology is pretty cool, but crossing beyond what we call responsible and ethical programming is … | |
Re: Here is another[ one](http://simplehtmldom.sourceforge.net/). Make sure to use it with cURL. | |
Re: Hi, May I add someting? there is a PHP object called ArrayObject ArrayIterator method and I think (but not sure) there is also a method for it called key. Just don't have time to look it up, but it is pretty much for getting the key of an array. Though … | |
Re: For non-mysql database, you will need to use PDO and then use prepared statement and bind parameter. Read [this](http://www.php.net/manual/en/ref.pdo-dblib.php) and [this](http://www.php.net/manual/en/ref.pdo-sqlsrv.connection.php). Read my attached PDF file to learn this stuff. | |
Re: place the good ole php file inside the directory called xampp/htdocs, run xampp control panel, start apache, start mysql server, and then direct your browser to localhost/old_php_filename.php. ![]() | |
![]() | Re: All these confusions about MVC pattern architecture began at the CakePHP's bakery and then followed by pretty much everyone. Some of the frameworks that are versatile enough to follow or not to follow the true MVC pattern are the CI and Kohana frameworks. In CI and Kohana, we can pretty … |
Re: try putting this session_start(); above the page, just right after <?php <?php session_start(); ![]() | |
![]() | |
Re: don't expect to get other solution. It can be done, but it will be out of the ordinary. My answer is no and no :). Why not? Because java applets are delivered between <applet></applet> tags. There is no way to parse the linked applet class. <html> <body> <applet code="someJavaAppletClass.class"></applet> </body> … | |
Re: upgrade your xampp to the latest version. Otherwise, you can use [image_type_to_mime_type()](http://www.php.net/manual/en/function.image-type-to-mime-type.php) function. | |
![]() | Re: I would difinitely create a separate controller and methods intended for the admin. For example, if we have a url mydomain.com/admin/settings/, then our object will be called admin and the method is called settings. Using the target url above we can device our admin class class Admin extends CI_Controller { … ![]() |
Re: These dummy testing seems confusing to me $password="scret"; $hash= passwordEncrypt($password); $userInsertedPassword="scret"; passwordCheck($userInsertedPassword,$hash); if the non-encrypted password is "scret", then why the $userInsertedPassword is also "scret"? Should it be the inserted password should be equal to the $hash? try $password = 'password'; echo passwordEncrypt($password); Whatever you see on the browser should … ![]() |
The End.