1,003 Posted Topics

Member Avatar for veedeoo

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 …

Member Avatar for ifile168
2
17K
Member Avatar for mexabet

> 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.

Member Avatar for mexabet
0
6K
Member Avatar for berserk

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">

Member Avatar for berserk
0
662
Member Avatar for jovstudios

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 …

Member Avatar for jovstudios
0
8K
Member Avatar for UK-1991

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 …

Member Avatar for UK-1991
0
922
Member Avatar for thirsty.soul
Member Avatar for logica.machina
Member Avatar for mycyberquest
0
213
Member Avatar for DJBirdi
Member Avatar for gizidda
Member Avatar for davy_yg
Member Avatar for veedeoo
0
2K
Member Avatar for ousaf

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 …

Member Avatar for veedeoo
0
289
Member Avatar for Mohamed_26

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 …

Member Avatar for Mohamed_26
0
2K
Member Avatar for veedeoo

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 …

Member Avatar for happygeek
3
198
Member Avatar for ultmt.punisher

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 …

Member Avatar for diafol
0
2K
Member Avatar for chaze

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 =\"\" …

Member Avatar for Taywin
0
254
Member Avatar for accra

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.

Member Avatar for accra
0
1K
Member Avatar for mike_2000_17
Member Avatar for centenond

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. …

Member Avatar for diafol
0
438
Member Avatar for Webville312

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 …

Member Avatar for Webville312
0
1K
Member Avatar for iConqueror

@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 :).

Member Avatar for diafol
0
277
Member Avatar for morfious90

> 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 …

Member Avatar for gudegjawa
0
215
Member Avatar for Yorkiebar14

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 …

Member Avatar for veedeoo
0
298
Member Avatar for richardsaras

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 …

Member Avatar for veedeoo
0
195
Member Avatar for Khyxz
Member Avatar for iamthwee
0
236
Member Avatar for nadiam
Member Avatar for thirsty.soul
0
314
Member Avatar for Vishnu_4

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 …

Member Avatar for veedeoo
0
463
Member Avatar for DaneCanCode
Member Avatar for DaneCanCode
0
110
Member Avatar for safi.najjar1

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(); …

Member Avatar for veedeoo
0
233
Member Avatar for sikander.nawaz1

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 ![7d763fdfa856f40a2401e36d673f0236](/attachments/large/3/7d763fdfa856f40a2401e36d673f0236.jpg "7d763fdfa856f40a2401e36d673f0236") Odesk.com on Unbuntu server skinned with kubuntu. ![35fef021f038ec8ae0de9e7e3bb10431](/attachments/large/3/35fef021f038ec8ae0de9e7e3bb10431.jpg "35fef021f038ec8ae0de9e7e3bb10431")

Member Avatar for veedeoo
0
272
Member Avatar for mwenyenia07

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.

Member Avatar for mwenyenia07
0
212
Member Avatar for devianleong

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 …

Member Avatar for devianleong
0
246
Member Avatar for ultmt.punisher

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.

Member Avatar for ultmt.punisher
0
490
Member Avatar for Twisted2014

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).

Member Avatar for veedeoo
-1
43
Member Avatar for berserk

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 …

Member Avatar for berserk
0
506
Member Avatar for veedeoo

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 …

Member Avatar for Hiroshe
0
253
Member Avatar for My question

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.

Member Avatar for khurram123
0
147
Member Avatar for hanspeare_1

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.

Member Avatar for hanspeare_1
0
361
Member Avatar for freddyparc

Hi Freddyparc, welcome to Daniweb. Cool choice of a new language. Coming from OOP to another OOP should be pretty easy.

Member Avatar for happygeek
0
53
Member Avatar for ggeoff

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. :).

Member Avatar for Dani
0
655
Member Avatar for <M/>

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

Member Avatar for JorgeM
0
157
Member Avatar for mexabet

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 …

Member Avatar for mexabet
0
721
Member Avatar for Ryan_12

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');

Member Avatar for Ryan_12
0
2K
Member Avatar for Yamil_1
Member Avatar for iamthwee
Member Avatar for Wandaga1
Member Avatar for tapiwa.matombo
Member Avatar for davy_yg

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 …

Member Avatar for veedeoo
0
154
Member Avatar for mohamed_36

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.

Member Avatar for Ryan_12
0
174
Member Avatar for Hegneous

you may want to use php [datetime object](http://de2.php.net/manual/en/datetime.diff.php).

Member Avatar for Hegneous
0
223
Member Avatar for sanjay@srvmedia

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.

Member Avatar for veedeoo
0
91

The End.