1,003 Posted Topics
Re: I can't tell you exactly what went wrong. However, is this the same [SDK V4](https://github.com/veedeoo/facebook-php-sdk-v4) you are following? | |
Re: Thanks for sharing you codes. ![]() | |
Re: I do understand the familiarity of the client, but it is a backward technology. There is a forum extension for wordpress. PHP nuke is just like Concrete 5 frozen in PHP 5.3. If you use Wordpress, you can either create or use readily available bridge for wordpress and phpBB. At … | |
Re: 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 alternative is the PHP [get_headers()](http://php.net/manual/en/function.get-headers.php) function which can easily return the date. e.g. $client_file_loc = 'some_remote_url'; $this_x = get_headers($client_file_loc, 1); … | |
Re: I find "boondockers" to be pretty cool for a field shoes. My Dad used tell me grab your "boondockers" and let's go. | |
Re: I'm sorry Enersto, I already tried really really hard. For some reason, I can't see it on my crystal ball. :)  *image was lifted from [here](http://horizontalchange.com) without permission.* | |
Re: 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 '%gk%' order by id Asc"); then you can have at least another item on your option <option value="<?php echo $row['id'];?>" … | |
Re: 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 be done in PHP. If you want to go ahead, search for ffmpeg concatenation option. | |
Re: Hi, Just for the sake of curiousity, why they don't want cookie? You can make cookie's lifetime until the session is unset. Before jumping into this project, make sure you have the general understanding in vulnerabilities of both and not having either one. Please read more about session fixiation, and … | |
Re: Hi, Try this. First lets make a function to do the hightlight.. function highlightTerms($text_string, $terms){ ## We can loop through the array of terms from string foreach ($terms as $term) { ## use preg_quote $term = preg_quote($term); ## Now we can highlight the terms $text_string = preg_replace("/\b($term)\b/i", '<span class="hilitestyle">\1</span>', $text_string); … | |
![]() | Re: 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 can add [password_needs_rehash](http://php.net/manual/en/function.password-needs-rehash.php). The same is true for the people who maybe using password_compat. When the PHP version is upgraded … ![]() |
Re: 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 closest to your intended application. ![]() | |
Re: 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; $tutorial_db = new mysqli(); $tutorial_db->connect($dbhost, $dbuser, $dbpass, $dbname); $tutorial_db->set_charset("utf8"); // Check Connection if ($tutorial_db->connect_errno) { printf("Connect failed: %s\n", $tutorial_db->connect_error); exit(); … | |
Re: are you talking about this [thread](https://www.daniweb.com/web-development/php/threads/478747/report-generator-plugin-with-pagination)? ![]() | |
Re: 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. | |
Re: 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 and then paste codes below DirectoryIndex index.html index.php index.cgi index.inc index.tpl index.htm If you are serving your site on VPS, … | |
Re: @ashokkmr22 Is it twice or 4 times bigger than my database? Or, is it ten times bigger?  I use MyISAM because I want a lock per session so that no other session can request while the current session hasn't finished. I prefer MyISAM in some project because of … | |
Re: 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. | |
Re: 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 inmotion and rackspace. For multimedia hosting and RTMP red 5 servers Go for the red5hosting. Cirtex own the cloud VPS … | |
Re: can you do ? print_r($data['row']); | |
Re: did you try localhost/laravel/hello The hello should be defined as route. For example, if we have a controller as shown below. I did not test this, because I don't have any laravel on my development server at the moment.So, most of the codes below are coming out of my head … | |
Re: Can you please show us the source codes of the page in question? Thanks. | |
Re: 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. | |
Re: 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 to write the codes for you is a big NO! and another NO!. We can provide one if we feel … | |
Re: 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 value of the cron_id, it will not affect nor change the delete query. It may change the frequency of executing … | |
Re: 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. Today, they already have a much reliable servers that can do RTMP. Just to give you the idea on how … | |
Re: You can use either one [rename](http://php.net/manual/en/function.rename.php) [copy](http://php.net/manual/en/function.copy.php) | |
Re: 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 reason. find what is the extension of the upload and then check if it is an image or a file. … | |
Re: **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 it from [Zend](http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/), the people who are responsible and the inventor of **Zend Scripting Language Engine** and making PHP the … | |
Re: 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 on click using jquery</div> </body> </html> create the style.css and make the <div> with blue background; widht: 400px; and height: … | |
Re: 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 the entire string is 24 if(strlen($string)== 24){ ## get the first two $first_two = substr($string, 0, 2); //returns ab ## … | |
Re: 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 asked some two years ago. It has something to do with the database columns. | |
Re: > Does the number of if conditions really make changes to the performance of the page? probably, nobody ever study the performance of a nested if statements. Nesting them too deeply we will have the so called "spaghetti logic" , but there is hope and I can assure you it … | |
Re: Go for the one that you feel in love at first sight. Personally, I highly prefer PHP over C# or vb.net for web development. I am not saying that PHP is a superior language against the supported languages in asp.net (c# and vb.net), but both of these languages can excel … ![]() | |
Re: where is the "group_level" in your form? this will always be empty $group_level = isset($_POST['group_level']) ? $_POST['group_level'] : ''; because it will never evaluates to true and you've sets expressions setting everything with empty values by default. // set all empty for new info $group_id = ""; $group_date = ""; … | |
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 bootstrap or any css and jquery where id is required. To use this class, we need to include the class … | |
Re: 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. | |
Re: 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 find the extension of the file and then based on the file extension one should execute a function to do … | |
Re: 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 = ''; $surname_error = ''; ## do the same for all of the items needing validation ## check if the submit … | |
Re: create a new file, put paste codes below, and save as whatever.php in wamp/www directory <?php echo 'Hello, are we there yet?'; direct your browser to http://localhost/whatever.php, voila your first PHP page. | |
Re: What makes the cake better than others as far as your new project is concern? The reason I am asking you is that Cake is not the framework for immersion for the people who hasn't or have not seen the ins and outs of an MVC framework. The write up … | |
Re: before answering your question, what is your purpose for using the PHP recursive function or a function that calls itself? Just give me one reason why. | |
Re: from the top of my head, all you need to do is copy and paste onto the search box.. OScommerce, zencart, open cart, tomato cart, presta shop, magento community edition. | |
Re: You can simply do a simple test. Check for the upload directory permission <?php echo substr(sprintf('%o', fileperms('/images/news/')), -4); check for the file upload settings on your php.ini file can also be done this way echo 'Maximum File Upload allowed: '. (ini_get('upload_max_filesize')) .'<br/>'; echo 'Post Max Size Setting: '. (ini_get('post_max_size')) .'<br/>'; … | |
Re: > what are all the testing tool available in PHP? There is a [wapiti vulnerability scanner](http://wapiti.sourceforge.net/) if you know the basics of python command line interface. This tool is the best you can get in open source. |
The End.