1,003 Posted Topics
Re: @lwaterfo Here is the deal, you can unconditionally buy us a cup of starbucks coffee, a gallon will be greatly appreciated..:). I want mine colombian with brown sugar, and no creamer. 1. Download this script [Here](https://github.com/simfatic/RegistrationForm/downloads). 2. Unzipped the downloaded zip file. 3. In the unzipped file, find membersite_config.php and … | |
Re: Hi, Please allow me to share my views and experiences with these template engines. Things I have not tried yet, are not included in the list.. pretty much, it all depends on how big is your application, the methods of how the php data is going to be passed to … | |
Re: Hi, Like any other responses I've posted for all framework based questions..e.g. cake, CI, Zend, symfony, and others.. All of these frameworks shares a pretty similar coding convention. So, for the Code Igniter, the syntax will be as simple as this General syntax for the CI database library $your_query = … | |
Re: I totally agree with Diafol and Atli's recommendations. Ioncube is the most cost effective at less than a dollar per page. While the rest are just expensive to purchase, because they don't offer per file or page obfuscation. There is a source guardian for 199 dollars and another one I … | |
Re: Hi, You will need to add something like this if(isset($_GET['param'])){ ## rest of your codes here } else{ ## code when $_GET is empty } The Theory!! Another trick I use outside the norms is this if($_GET){ ## codes here if $_GET is not empty ## make sure to check … | |
Re: Hi, Try adding, these codes just below the fclose($fh); echo substr(sprintf('%o', fileperms('/test/test.txt')), -4); Make sure to put the proper loction of the test.txt.. Let us know of the 4 intengers printed on your screen. | |
Re: Hi, Can you please elaborate which table names? Mysql? ==> show us your codes? Something else? ==> show us your codes? | |
Re: Hi, Just need patience in waiting for the response. All expert and master coders are volunteers, and ONE junior volunteer like myself is always lazy all the time :).. In fact, I think I already posted many variations of read_dir function in this forum.. Since, I don't keep a record … | |
Re: In addition to what Diafol already mentioned, you can use plain javascript for OR use the REST. You will need to read more on how to implement the REST in this API, then and ONLY then you can convert the REST codes to PHP using the cURL plugins. Yes, it … | |
Re: You will be able to use or implement either one of the common design patterns. My favorite is the observer pattern and Singleton pattern. Benefits in writing codes in OOP 1. One or more classes can be derived from a base class. This is called inheritance. As the application grows … ![]() | |
Re: you can also add login failed counter and assign the count in session. Define how many failed login would you allow, before requiring an account reset or captcha. Test your login script with the most common login hacks e.g. type OR'' on the password field, without typing any username... if … | |
Re: Hi, Please allow me to clarify things about paypal API. Before implementing any payment processors that utilizes an IPN class or script, script should be tested in paypal sandbox environment. Suggested steps to take. 1. Create a [paypal sandbox account](https://github.com/veedeoo/PHP-PayPal-IPN). 2. Login to your sandbox account and create a seller … | |
Re: you cannot embed html tags like that. You will have to close the PHP first and then add your html tags. mysql_select_db('snack', $con); ?> <form action="action.php" method="post"> <?php mysql_query("INSERT INTO Produk VALUES ('Produk')"); mysql_query("INSERT INTO Jumlah VALUES ('Jumlah')"); mysql_query("INSERT INTO Tanggal_Masuk VALUES ('Tanggal_Masuk')"); ?> <input type="submit"> </form> But then again, … | |
Re: Hi, just a suggestion. Since you are using bindParam PDO statement, can it be the data_type be responsible for the query failure? I am not sure, but I think we should try testing this possibility. try doing this... I am not sure this is going to work, but I think … | |
Re: is easyphp have a sendmail packaged with it? Browsse your local server and look for mercuryMail or something about the mail. Let me know what do you have in your local server.. You also need to tell me if your local server have a directory called sendmail, and what is … | |
Re: Hi, this if (!$search) does not return a boolean response. To force it to return a boolean response then we can do something like this.. actually, we need to add a simple function like this. function is_null_empty($input){ ## true is empty or null ## false go ahead return(strlen($input)== 0 ? … | |
Re: Hi, Although I am not a master NOR I am close to becoming one and I have not seen codeIgniter for a while, I am still familiar with the basic syntax of this framework.. Before getting into this question, please allow me to ask you this.. on your controller file, … | |
Re: Hi, You cannot use the random integers from 1200 to 9600 and expect a result from it. The probability on getting a match is (Xb - Xa) to the power of (xb-xa) times the number of digits combination. Of course, script is not going to return something that it is … | |
Re: Hi, This class is a DB connector class.. you still have to provide the query for it to work.. I just want to let you know that **OCIPlogon** alias has been [deprecated](http://php.net/manual/en/function.ociplogon.php). Use oci_pconnect instead. | |
Re: There is a php class called [simple html DOM parser ](http://simplehtmldom.sourceforge.net/)that can also help you achieved this task. For google, they have a [custom search API](https://developers.google.com/custom-search/v1/overview), however this have a limit of 100 quieries per day and they want a fee of $5 per 1000 queries, for up to 10,000 … | |
Re: did you try $this->request['param']; as suggested [here](http://book.cakephp.org/2.0/en/controllers/request-response.html)? I really don't understand why? cake php would deprecate such a useful function like the array access $this->request['url']['param'] | |
Re: LastMitch is right on the yii framework, but then again the rest will rely heavily on how much coding experience do you have in OOP. If you are pretty fluent in OOP concept of writing codes in PHP, then you can attempt to just write your own MVC framework.. trust … | |
Re: Can you show us your php responsible for generating your form? Normally, php does not refresh page. The only time the page will reload the page, when the form is submitted. Most form processors are either written in PHP , ASP , and CGI . Although CGI was the most … ![]() | |
Re: LastMitch is precisely correct, unlink is something you cannot reverse. For safety precaution, you need to test it on dummy files first, before allowing the script to work on real uploaded files. **The use of unlink() with glob() is even dangerous than just using regular dir php function.** example of … | |
Re: Do you mean a mechanical printer, printing the form as shown on your webpage? If so, then you can read the tutorial [here](http://youhack.me/2010/06/10/dynamically-generate-pdf-files-in-php/). The tutorial will teach you how to create a PDF file with forms in it. PDF format have a nicer output for the mechanical printer compared to … | |
Re: Hi, Did you try to initiate and instance of the db_session in the controller? Then just close the connection within the method that uses it. !WARNING! These are just examples, others may have a different ways of doing things. However, If I am in your shoes, this is what I … | |
Re: Hi, There are two php functions called ["opendir" and "readdir"](http://php.net/manual/en/function.readdir.php). By using these functions, you can easily create a simple php script to generate download links for the files located in the directory you assigned. For example, WARNING! script below is not tested, but I am confident this will work … | |
Re: can you try $server_name="localhost", if it does not work for you, read more about it [here](http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html). | |
Re: @robin 2, Diafol is precisely correct, a features like this requires a database. Is your organization have a mysql installed in their server? If you can manage to set up a msyql server this should be an easy task for you. Here is a [tutorial](http://net.tutsplus.com/tutorials/php/how-to-generate-a-complete-excel-spreadsheet-from-mysql/) on how to create spreadsheets … | |
Re: Hi, I think $HTTP_GET_VARS has been [deprecated](http://php.net/manual/en/reserved.variables.get.php). Just use $_GET[]. The new implementation we are currently using in the last 2 years is this if(($_SERVER["REQUEST_METHOD"] == "POST")|| ($_SERVER["REQUEST_METHOD"] == "GET")){ ## deal with the GET method function process_get(){ } ## deal with the POST method{ function process_post(){ } } By … ![]() | |
Re: make sure the javascript file is referenced by this page. Otherwise the MM_swapImgRestore and MM_swapImage functions will be undefined js functions. Make sure of that and please let us know. | |
Re: Hi, Did you read the [Zend API Documentation](http://framework.zend.com/apidoc/2.0/classes/Zend.Captcha.Figlet.html) on figlet? The answer to your question is right on the page. | |
Re: I don't see any query sorting the grades based on the studentID or student subject grade based on the studentID. It has to be the unique, and not the subject. Otherwise, your database will just output anything that is true eventhough it does not belong to particular studentID. YOu will … ![]() | |
Re: can you please mark this as solved.. I just landed on this page for the third time :). | |
Re: do as adviced, and if you have the chance, join the github and look for projects that interests you. If you found one that interests you, fork it.. if you don't know where to start, fork [these](https://github.com/veedeoo). It is a simple commentator script and youtube video for CodeIgniter for you … | |
Re: Hi, I was a big fan of all of these MVC frameworks in the past, but the more I tried to write something based on them, the more time I spent on learning how to get around their restrictions. Unlike CI, the CAKE is not that js friendly, while symfony … | |
Re: :) It looks like an order to me. @siddharth.dixit.5243 WELCOME TO DANIWEB. You will have to learn how to write your questions properly. All people here are volunteers. We don't expect people to give us back those favors, but we do NOT expect people to give us orders. We give … | |
Re: @unikorndesigns, Mitch is right, you will have to give us the codes for the upload.php as defined in your javascript function **url:this.config.uploadUrl** On this upload.php, you will need to make it to check if the file already exist in the upload directory. It must return a response like 'file already … | |
Re: Hi, Here is an old image manipulator I wrote early last year . I have not tested it since then, but I still believe it will work.. <? ## this image manipulator class was written by veedeoo or poorboy 2012 ## feel free to modify, extend this clas as you … | |
Re: Hi, You can echo them in single line. Use single quotes to eliminate the extra efforts on escaping the double quotes. Something like this echo '<img src="'. $row['ImagePath'] .'" alt = "Country Music Nightclub Orlando" title="'. $row['ArtistDate'] .'" /> </a>'; ![]() | |
Re: If you need to learn how to make your own plugin or just want to have a greater understanding on how the WP plugins are built, go to this [site](http://codex.wordpress.org/). Before attempting to write your own, try adding your custom.js on the header. Sometimes lightbox and colorbox js files can … | |
Re: may I know how domains access your API? Is it through GET request or something else? Example: yourSiteDotCom/api/search?q=something | |
Re: I would ask my hosting company first, for any changes they made on your server. It might be some major upgrades or changed of server appliance...e.g. apache to nginx or something similar. | |
Re: Your codes looks ok. Make sure $tentID is defined or have value otherwise it will give you an undefined variable tenantID, and sql syntax error . | |
Re: I am not sure, try freelancer site and look for a guy who goes by name veedeoo... nooooooo, I am just kidding :)... I don't do freelance work anymore. How big is your application? | |
Re: Same thing here, want to see more elaboration on bus. logic. It all depends on how your script stored the binary info. of the image. Is it base64 encoded or just a plain binary? I am not sure, but I think most BLOB are base64 encoded. Let us assume that … ![]() | |
Re: Hi, All you need to do is cascade your file input like this <label>File One</label> <input type="file" name="file[]" id="file[]"> <br/> <label>File Two</label> <input type="file" name="file[]" id="file[]"> <br/> <label>File Three</label> <input type="file" name="file[]" id="file[]"> <!-- add more as needed --> | |
Re: hi, What you need is a [javascript](http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm). | |
Re: Hi, Did you try changing this $query = mysql_query('SELECT description FROM events WHERE date = "'. $deets .'"'); to this? $query = mysql_query('SELECT description, date FROM events WHERE date = "'. $deets .'"'); |
The End.