• Member Avatar for veedeoo
    veedeoo

    Replied To a Post in How to get filedate from a file on client machine

    here is a good test of the function above. Let say, we want to get the modification date of HII_PHP_SuperGlobals_Supersized_Trouble.pdf file http://www.imperva.com/docs/HII_PHP_SuperGlobals_Supersized_Trouble.pdf we can simple call our function above like …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in uploads and updates

    Before giving response to your inquiries, please allow me to point out problem on your codes that needs to be fix immediately. Please read [one](http://thehackernews.com/2013/09/thanks-to-php-superglobal-80-websites.html) and [two](http://www.imperva.com/docs/HII_PHP_SuperGlobals_Supersized_Trouble.pdf). We must not …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in uploads and updates

    I'm sorry Enersto, I already tried really really hard. For some reason, I can't see it on my crystal ball. :) ![1e4033c4e499e21349572cdd326c846e](/attachments/small/3/1e4033c4e499e21349572cdd326c846e.jpg "align-left") *image was lifted from [here](http://horizontalchange.com) without permission.*
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in How to get filedate from a file on client machine

    this will grab date from remote server file as long as public viewing is allowed. :) <?php $client_file_loc = 'someRemoteLocation/file.txt'; echo (get_timestamp($client_file_loc)); function get_timestamp($url) { $this_curl = curl_init($url); ## reference …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in How to get filedate from a file on client machine

    You can use cURL for this, except after cURL execution you must add $file_creation_time = curl_getinfo($curl, CURLINFO_FILETIME); ## use the file_creation_time for whatever you want echo date("Y-m-d H:i:s", $file_creation_time); another …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Result not showing in select query

    you need to add position like so $result_dglass = mysql_query("select name, id, position from team where position like '%gk%' order by id Asc");
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Result not showing in select query

    how do you populate the dropdown? <option><?php echo $row['name'];?></option> Otherwise, you want to add it on your query e.g. id, $result_dglass = mysql_query("select name, id from team where position like …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Fatal error: Call to a member function fetch_array() on a non-object

    here is another really quick and dirty MySQLI connector using foreach loop . <?php $con =mysqli_connect($dbhost,$dbuser,$dbpass,$dbname); ## Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Fatal error: Call to a member function fetch_array() on a non-object

    I really don't to be reiterating the common knoweledge at all times, but I think this one is one of those exemptions. Codes below are bad // Connection global $tutorial_db; …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in How do I get started with Node.js

    I want to add if you follow the tutorial, You need to change the port number var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(8080); …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in How do I get started with Node.js

    Here is how you can start in 10 minutes or less. (Windows) **1 - 3 minutes :** download and install your [flavor](http://nodejs.org/download/). **4 - 5 minutes :** open command prompt …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in A Simple Password Hash and Verify Class

    That's pretty cool Diafol. For people who have php version 5.3.7, they can use [password_compat](https://github.com/ircmaxell/password_compat) . Before forgetting the purpose of my response, I think it would nice if you …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Create a while loop inside another while loop

    you can read a good tutorial [here](http://www.tutorialspoint.com/mysql/mysql-using-joins.htm). Please let me know if it help. I can write you the codes, but I am in middle of doing very important projects …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in report generator scripting with pagination

    are you talking about this [thread](https://www.daniweb.com/web-development/php/threads/478747/report-generator-plugin-with-pagination)?
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in how to edit video files in php

    You can use ffmpeg PHP, but make sure you have ffmpeg installed on your server. Not until then, I won't be able to give you my response. Yes, it can …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Error Log

    Hi, try this first.. create a file index.html and save to photos/ If it does not do the trick, you can define directoryIndex directive in .htaccess file. create .htaccess file …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Maintain heavy weight DB

    @ashokkmr22 Is it twice or 4 times bigger than my database? Or, is it ten times bigger? ![52ec7571e68051e6836fb4631c58c30d](/attachments/large/3/52ec7571e68051e6836fb4631c58c30d.jpg "52ec7571e68051e6836fb4631c58c30d") I use MyISAM because I want a lock per session so …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in how to calucate the total right and left count

    I was looking at a similar database yesterday. You can read [here](http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/), and [here ](http://www.sitepoint.com/series/storing-hierarchical-data-in-a-database/). Left and right is on part 2.
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in web hosting

    If you want a host that is managed from Silicon Valley area, try certified hosting. I think they are good with shared hosting. For VPS, I was pretty satisfied with …
  • Member Avatar for veedeoo
    veedeoo

    Gave Reputation to diafol in A Simple Password Hash and Verify Class

    Hi All, thought I'd pass on a (very) simple password class which is built on the new `password_hash()` and `password_verify()` functions. You will need php 5.5.0+ in order to get …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in file and radio button does not echo any thing by value from sql

    Can you please show us the source codes of the page in question? Thanks.
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Want to run PHP script in Background all time

    It depends on what type of script you want to run in the background. You need to give us more information. Speculation is not a good thing.
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Create QR code on RSForm process

    You can make the PHP QR code as joomla extension. To be able to do this, you need to follow simple rules as shown [here](http://docs.joomla.org/Using_own_library_in_your_extensions). Pick which [example](http://phpqrcode.sourceforge.net/examples/index.php) is the …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Chatbot with mood detection via Face Recognition

    I experimented with live streaming when I was in High School. The idea was to use a webcam then send the video accross the web through Red5 and Wowza servers. …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Cronless records older than 1 week with PHP

    Your first attempt was fine for me. Why is it fine for me? The $cron_id has nothing to do and it is not part of the query. So, whatever the …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Create a while loop inside another while loop

    Have you heard about [join optimization](http://dev.mysql.com/doc/refman/5.7/en/left-join-optimization.html)?. Try doing joins first and see if it will help.
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in how to do file clone submit form

    You cannot just do this <?php if(isset($_POST['filed'])){ rename($_POST['file']); } ?> and expect for the magical moments to occur. The reason I have provided you with the link above is for …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in codeignitor: Invalid argument supplied for foreach()

    by the way, you don't really need to do this $query= $this->db->get(''); this should be the proper way $query= $this->db->get(); the reason is that the database active record class method …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in codeignitor: Invalid argument supplied for foreach()

    can you change and test your model with this code? function get_detail($Product_ID) { $this->db->from('products'); $this->db->where('Product_ID',$Product_ID); $query= $this->db->get(''); if ($query->num_rows() >0 ) { return $query->result(); } /// return false; } this …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in JQuery Help need assignment

    ok, use your good command in html and css. Create an html document something like this <!DOCTYPE html> <html> <head> <title></title> <link rel='stylesheet' type='text/css' href='style.css'/> </head> <body> <div>Make this disapper …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Need Help? Check This Out First (or second)!

    > I assume that you don't help past donors as much as new donors. But yeah, good points! ^^ I do help all regardless. However, I must confess that most …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in codeignitor: Invalid argument supplied for foreach()

    can you do ? print_r($data['row']);
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Need Help? Check This Out First (or second)!

    I look for all of the above and these as my own personal rules **(some are maybe redundant)** 1. Ask for help rather than demanding for help. 2. Asking us …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in MYSQL PHP School Exam time table

    In my opinion, you should create a database design flow similar to what diafol have given above and from the design flow, you create the tentative database table. The next …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in how can support upload file type .txt and .html extension

    add the extension to $imagetype = array( 'bmp', 'gif', 'jpg', 'jpe', 'png'); $file_type = array('txt','html'); PHP file should not be allowed to be upload in your server due to security …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in how to do file clone submit form

    You can use either one [rename](http://php.net/manual/en/function.rename.php) [copy](http://php.net/manual/en/function.copy.php)
  • Member Avatar for veedeoo
    veedeoo

    Gave Reputation to diafol in MYSQL PHP School Exam time table

    Good shout veedeoo - a framework is a beast at the best of times. The central aspect of your project is the DB design (schema) itself. Once you have a …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in PHP validation rule

    We can be a little conservative by splitting them in sequences using substr PHP function. ## we need to set everything as string first $str = 'ab5611571608318077634568'; ## validate if …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in PHP/Ajax Calendar 3rd Party Script Help!!

    I couldn't find the thread here on Daniweb. It was from 2 or 3 years ago. I am relying here on my memory and I think it was the column …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in MYSQL PHP School Exam time table

    > I am new to yii and php and i want to deleveop a database design for school exam time table and maintain the time table for school management. How …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in PHP/Ajax Calendar 3rd Party Script Help!!

    Another question, was the original tutorial uses regular mysql extesion or was it MySQlI as shown on your codes. May I see the original sourcecodes or the tutorial page?
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in PHP/Ajax Calendar 3rd Party Script Help!!

    did you fill this up properly? $conn = mysqli_connect("Thanks","for","all the","fish") mysqli connector syntax is like this $conn = mysqli_connect("db_host","db_user_name","db_user_password","datbase_name") or die("Error " . mysqli_error($link)); I remember a similar question was …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Where to learn php?

    **These are just my humble suggestions and no way it comes with any guarantee of the same results I have achieved using these methods.** In addition, you can also learn …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in PHP tabs or Separate pages

    Your codes will work perfectly, just make sure to put a default page on it, or wrap it with if(isset($_GET['tab']){ //codes here } to avoid getting the undefined variable error. …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Form Helper Class

    The above class can also be use in Smarty and other template engines that don't have any form generator. Below is a classic example if we are to do it …
  • Member Avatar for veedeoo
    veedeoo

    Edited Form Helper Class

    The purpose of this class is to be able to create an html form with ease. This is inspired by the form helper in CodeIgniter. This can easily adapt to …
  • Member Avatar for veedeoo
    veedeoo

    Created Form Helper Class

    The purpose of this class is to be able to create an html form with ease. This is inspired by the form helper in CodeIgniter. This can easily adapt to …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Calling the system to open a file in PHP

    I like the way how one ask his question. He reminded me of the Bicentennial Man my favorite movie when I was a kid. To answer one's question, one should …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Add 'Required' to all fields in contact form

    The way you can do this fast and easy is something like this before the submit button validation, define all the errors like this <?php $title_error = ''; $forename_error = …
  • Member Avatar for veedeoo
    veedeoo

    Replied To a Post in Google Authenticator

    Will [this](http://motp.sourceforge.net/) be good? How about [this](https://github.com/veedeoo/GoogleAuthenticator)? It is two years old, but I think it should work with minimal upgrades.

The End.