1,003 Posted Topics
Hello everyone, **!WARNING! this function should only be use, WHEN ffmpeg PHP CANNOT be installed in the server.** I just got some free time from tedious and hectic school schedules. About two months ago, I saw a question about "how to get the duration of a given video file?". Of … | |
Re: > How do I debug? I haven't done that before. you can either use netbeans, eclicpse IDE's or PHP designer. Load your script and run debug. | |
Re: try changing the form method attribute to what is expected by the form processor. for example, if you want to process this form with get method, <form method="post" action="index.php"> then it should be like this <form method="get" action="index.php"> | |
Re: first you need to run the form validation library. second check if the form_validation run is false. third if false above, then call your model method to process the uploaded item. doing this $this->input->post('page_headline',TRUE); will only run the data through the xss filter, but will not validate if it is … | |
Re: You can easily calculate this through the unix timestamp. for example, to get today at 6AM and tomorrow at 6AM, you would do something like this. $today = strtotime('today 6am'); $tomorrow = strtotime('tomorrow 6am'); or ## hours of operation $open = strtotime('6am'); $close = strtotime('6pm'); based on those sets of … | |
![]() | |
Re: are you testing your application with the paypal sandbox? | |
Re: pzuurveen and hericles are correct. You must evaluate all them | |
Re: You cannot do this $mySoftware = new software(); $mySoftware->html->pageString; eventhough if we corrected it to $mySoftware = new software(); Still this will not work $mySoftware->html->pageString(); the only time it will work if you extend the class parser as in class software extends phpParser{ public function __construct(){ parent::__construct(); } otherwise, you … | |
Re: Prepared statements with parameters work like this. **Methods used : prepare() and execute()** PDO is class. An instance of this class is called an object and the functions associated with this object are called methods. For our purpose above (shown on your codes), we need these methods called prepare and … | |
Thank you very much people for the new Featured badge. Special thanks to these wonderful people in PHP forum **iamthwee**, **Diafol**,**pritaeas**,**Cereal** and many others I can't recall their handle. Also, many, many thanks to Queen Dani, happygeek, and to the other pillars of this community. This is such a wonderful … | |
Re: I thought your form is suppose to be submitted through ajax. why is it submitting like a regular form? Is the chat script reading from a text file? If so, take a look at the chat log. I left a message there. Your site is about 180ms one way from … ![]() | |
Re: escaping those html tags must hurt your pinky finger :). Years back, there was a great argument on " single quotes vs. double quotes". so, this one is pretty valid $form = '<form action="" method="post">'; although this is valid, it keeps your pinky finger busy. $form = "<form action =\"\" … | |
Re: Hi, Some 5 or more years ago, someone from phpclasses.org made a PHP GPS locator. For some reason, I can't find my bookmark for it. Yes that could be done. | |
| |
Re: There is function in PHP called date_default_timezone_set() which can set the default time zone of an application or the runtime configuration. For example, we can define the default timezone of an application to any timezone supported. date_default_timezone_set('Europe/London'); if we do this echo time(); Will give us the timestamp for London. … ![]() | |
Re: I am currently writing a similar applications where Professors and Students are stored in the same table. What separate between them is a column called membership. I defined 3 different membership levels first student, second professor, and third school admininstrator or department head. It also pull out their LinkedIn profile … | |
Re: @Cereal I don't understand why you get a down vote for it though. It must be a C++ pride or something. I will give you an up vote to reflect 0 vote :). ![]() | |
Re: > I'm done with theory portion. The theory portion should have given you enough information to at least create some simple codes on a notepad++ or visual basic express. We always treasure members who love to share their codes regardless if it right or wrong. We are here to help … | |
Re: You can use JAVA. Regardless which language you use, they all do some kind of refreshing. If not, how can the application post and recieve messages? PHP don't need to refresh the entire page for the chat. Ajax can be utilize to do the posting and receiving messages to and … | |
Re: I second magento. There are others OsCommerce, ZenCart, open cart, Agora cart just to name a few. **Here are some hints on the skill set requirements**. For Magento, you need to have at least basic knowledge of Zend Framework and strong OOP background. For OsCommerce, ZenCart, Open cart, you need … | |
Re: This is a C++ right? If so, can somebody move this to the C++ thread please? ![]() | |
Re: can you var_dump or print_r the $userEmail and $hash? What did you get? | |
Re: I noticed you have redirect('admin') when there is no session admin_id, the user get redirected to the admin controller. on redirect, the hook gets triggered for the second time redirect the user again and the cycle goes on and on and on . A probable solution is to create another … | |
Re: Pretty much there is not much difference except you cannot use Scope Resolution Operator :: for non-static methods AND static method does not need an instance of the object. This className::function() is use outside the class, while these self::function() static::function() are use within other methods within the class. This $this->function(); … | |
Re: as suggested, you can try using VM. There is one called Oracle VM Virtualbox Manager. You can have many different OS installations as you want. The Iternet connection can be shared with your host computer. Please see attached screenshot  Odesk.com on Unbuntu server skinned with kubuntu.  | |
Re: is there any chance for you to use [JOIN](http://dev.mysql.com/doc/refman/5.7/en/join.html) ? Those triple loops are just mind boggling to me. | |
Re: You can also try one like this. First create a function to generate the <th> items. The function can be as simple as this function create_th($col_header_name){ if(is_array($col_header_name)){ return array(true,$col_header_name); } } to generate the cols, you call the function like this. There is no limit on how many header cells … | |
Re: if you var_dump or print_r this $_FILES['datafile']['type'] what do you get? Careful with the mime type as Diafol already brough up. A PHP file uploaded will give you "text/plain". By not knowing the exact extension of this file, it means a widely open back door. | |
Re: Hi Emily, welcome to daniweb. About your services, there is a place in Daniweb called [webmaster marketplace](http://www.daniweb.com/business-exchange/webmaster-marketplace/36). | |
Re: Your form tag is way above the <body> tag. It should stay below the <body> tag. There are many great websites out there where you can read about proper html [syntax](http://www.w3.org/TR/html-markup/syntax.html). remove form tag in line 3 and replace the form tag in line 19. On your form.php, Replace this … | |
Last week, my Mom told me to clean our garage. When I woke up the following morning, I noticed a big disgusting pimple on my jaw line. As most adults always say, my Mom told to keep my fingers off of it and so I obliged. At the moment, I … | |
Re: First, you will have to install wordpress on your server and then read this [ tutorial](http://code.tutsplus.com/tutorials/creating-a-wordpress-theme-from-static-html-creating-template-files--wp-33939). Good luck to you. | |
Re: How many images are allowed per student? More than one? you need to create an image database table +-----+----------+---------+ + id + owner_id + img_url + +-----+----------+---------+ one only? follow the recommendation above. | |
Re: Hi Freddyparc, welcome to Daniweb. Cool choice of a new language. Coming from OOP to another OOP should be pretty easy. | |
Re: I think you will get notified for **Automatically Watch Articles I Post In?** if checked, but I am not sure if when the **watch this article** button is clicked will trigger the notification. I hope someone can make clarification on this. :). | |
Re: Here are the books I currently have on my bookshelf. 1. Learning Javascript Design Pattern by Addy Osmani published by O'Reilly 2. Professional Javascript for Web Developers by Nicholas C. Zakas published by Wrox. 3. Node.js for PHP developers by Daniel Howard published by O'Reilly | |
Re: Before addressing your problem, please allow me to point out minor problem with your class. It might be minor now because like you said it is working on the other site that you know, but it can be a major problem sooner than later. The upload class was written for … | |
Re: The error tells us that the $dbh is a non-object. Where is the part of the code where it says something like this $dbh = new PDO('mysql:host=localhost;dbname=yourdb;charset=utf8', 'username', 'password'); | |
![]() | |
![]() | Re: Those links provided by <M/> are pretty good start. ![]() |
Re: the only work around for this is to compile the .exe in the OS running the server e.g. linux, ubuntu, and others. for example, you have an executable application called app_x.exe, you need to compile it from the source inside your server's OS. Once it is installed, you reference the … | |
Re: it is called BLOb or binary large object. Yes, you can store images as BLOb in the database. You just have to show us what've got so far. Writing it is pretty easy, but I need see how motivated you are in doing this. | |
Re: you may want to use php [datetime object](http://de2.php.net/manual/en/datetime.diff.php). | |
Re: you can redirect the user to the same page after if passes the validation header(location:http://www.yourdomain.com/form_page.php); exit; You can use javascript to clear the form values, but that will not clear the $_POST data. |
The End.