1,003 Posted Topics
Re: Hi, Facebook does it like this.., and here is an example of an open graph if I am going to write it for Daniweb.com . Warning image url is an assumed location. <meta property="og:title" content="Your Own Open Graph Meta Application"/> <meta property="og:image" content="http://daniweb.com/images/daniweb_logo.jpg"/> <meta property="og:site_name" content="Daniweb"/> <meta property="og:description" content="An online … | |
Re: Hi, copy, paste to notepad, save as whateverfile.php, and direct your browser to this file. <?php phpinfo(); ?> Look for the value of this Loaded Configuration File Using your windows explorer and locate the php.ini file as shown on your Loaded Configuration File . Change the values of the following … | |
Re: Hi Dani, Might not be the best answer, but I think among the few PHP functions that does not go really well with the suppressor, unserialize is one of them.. The reason is that, even with the suppressor, unserialized($var) will always gives an error if $var is not serialized. Warning: … | |
Re: Try,, Programming PHP, 2nd Edition by Rasmus Lerdorf, Kevin Tatroe, Peter MacIntyre Just in case you need to know who Rasmus Lerdorf is, please read[ here](http://en.wikipedia.org/wiki/Rasmus_Lerdorf). This is the guy who created PHP. Will it make the book Good? Yes, and NO... Yes -- because it will teach you the … ![]() | |
Re: hi, try 1. Open xampp directory 2. Locate crash.txt sometimes you will have a lot of these files. 3. Read the latest force stop and restart force stop: in the xampp directory find the xampp_stop.exe this is the one with the icon. Click on the icon...wait for the command prompt … | |
Re: Hi, You can create two simple functions to catch all the form variables, and then call these functions on all pages designated for processing. for example, if we need to catch name and last variables on submit.. we can simply create a function like this. function check_form(&$form_var,$type){ $form_var = array(); … | |
Re: Hi, How is the login system written? Is it in OOP or procedural.. If procedural, how does it check if the session exist? Is the application checks if the session exist, before setting a new one? OR if it does exist? How does the application validates if the new one … | |
Re: to flip string in PHP, there is a PHP function called strrev . You can search it on google.. It should print the mirror image of any particular string.. something like this Daniweb bewinaD For the language characters, I believe wordpress is capable of storing characters of any language.. | |
Re: I believe this is more of a javascript and html5 question. Try searching it on google, they've got tons of this already out there... [multiple background HTML5](http://www.iweb-zone.com/HTML5/tag) | |
Re: Hi, could it be just a jquery issues? Because redering and instantiating a class occurs in the server side and have no dependencies on the browser types.. | |
Re: Cool you got it sorted out, I am pretty sure people will find this helpful.. I was gonna say, it is the view causing the problem, because it is HMVC where the view is restricted to just following whatever the Controller desires.. pretty much the same concept as presentation abastraction … | |
Re: I also prefer the associative array, as what Diafol already noted. If you still prefer to have the object method, you can code it like this... very nice and simple <?php $json = file_get_contents('http://api.wunderground.com/api/658c0f8b283e4b98/tide/q/VA/Norfolk.json'); $data = json_decode($json); foreach($data->tide->tideInfo as $item){ echo 'Tide Site :'. $item->tideSite .'<br/>'; echo 'Latitude : '. … | |
Re: Alternatively, you can also experiment with the PHP object called "Object Iteration" which can probably and specifically pull the first , middle, something in between, and the last item within an array. You can even count it first as suggested above and check the count pointer location, and if it … | |
Re: Hi, Might not be the best answer I can give, but I honestly believe Mysql_fetch_object returns object as in $row->name_of_column whereas mysql_fetch_array returns an array of data from particular query like .. $row['name_of_column'] Although Mysql_fetch_object returns an object, it is pretty much convinient to use mysql_fetch_array in OOP. Just like … | |
Re: Try searching facebook documentation https://developers.facebook.com/. More likely, you will be able to find something similar for what you are trying to achieved. Just like twitter API, you will need an OAuth to be able for your application to work. | |
Re: Hi, Have u tried the official pods [docs](http://podsframework.org/docs/)? Should be no problems, if your wordpress version is supported.. pods only have a few methods to be considered.. The current release version of pods is 2.0 and it is supported from wordpress versions 3.4 up to 3.6. Methods you need to … | |
Re: Hi, I am not a master nor closer to a master's bigfoot. However, did you try looking and searching for MySQL date arithmetic function? Once you find out what functions are available for your needs **e.g. DATEDIFF**, all you need is modify your initial query... that's all.. | |
Re: LastMitch is perfectly correct.. Ask the author first.. To give you the general idea of what it is, it can be explain as simple as this.. $this->class()->the_method_of_this_class(); This process is also called chaining.. However, if it is not a class, but instead they are both methods of the same class, … | |
Re: Hi, you can easily make this happen by creating two files. Assuming that the database have the following columns.. + id + blob_content + ext + first, upload.php <?php ## mysql connector is in sample form. I strongly suggests to use PDO wrapper mysql_connect("localhost","db_user","db_password"); mysql_select_db("blob_database"); ## define form $form = … | |
Re: This is pretty easy... all you have to do is make sure you have the proper php extension installed.. For text reading use.. [fread function](http://php.net/manual/en/function.fread.php). For PDF reading make sure you have http://www.foolabs.com/xpdf/about.html installed as php extension. For DOC reading use this http://www.winfield.demon.nl/... To read pdf file using php script, … | |
Re: Hi, jUst to help you out on how to handle those switches gracefully. Just to let everybody know that there is nothing wrong with php switch function. However, in medium to large applications, it will become time consuming to write cases if hundreds of pages are involved. MVC framework design … | |
Re: Hi, I have no intension of rediculing your script, but it worries me.. if ever this application is adopted to production server. Don't worry much about the update for now, that is a pretty easy thing to do. Focus on, or at least give it some few minutes of thoughts … | |
Re: Hi, Is that all your codes? No IPN listener or anything to grab the response from paypal? If possible try practicing on this [one ](https://github.com/veedeoo/PHP-PayPal-IPN). The sample script is in the example directory. Let us know about your progress. If you find any problem with the script, let me know … | |
Re: Hi, You will need to look for the function or class responsible for inserting the items in the database, and the function responsible for sending it on the view. these codes.... $module_item_option = new WPW_ModuleItemOption( array( "type" => "option-tab", "title" => __("Item Type", $wpw_theme_lang), "id" => $this->cfg['id']."_item_type", "description" => __("Chose … | |
Re: you can also try this... copy and save anyname.php. Upload to the public directory of your server or the location where the upload script resides. <?php phpinfo(); ?> Direct your browser to this file e.g. yourdomain.com anyname.php. Let us know these values 1. Server API = this could be either … | |
Re: Hi, Two doors where the shell hack can take over the server. 1. First, the ftp credentials of the server users where maliciously stolen from the PC. For example, sitemanager.xml of filezilla is an easy target because it is just a text file that can be grab and send to … | |
Re: Hi, First, you will have provide us with the tags for your xml files. What I meant by tags is your own mark up based on your needs or how do you want the xml file structured. something like this, <?xml version="1.0"?> <mydata> <item> <title>my title</title> <description>my description</description> </item> </mydata> … | |
Re: English, but I am trying to learn conversational Spanish. Took two Spanish in High School and got excellent grades on both of them, but I am still having difficulty understanding when I am around with the Spanish speaking people. My parents are in California.. I also have Spanish lesson in … | |
Hello Everyone, Please accept my simple and humble contribution. This script will validate if the user or visitor is a suspected spammer, by utilizing the stopforumspam API. Example implementation ## example usage. These items can be from database or from form input. The choice of implementation is all up to … ![]() | |
Re: Hi, it will always return true, because of your where clause WHERE `permissions` = 1 OR `permissions` = 2" if there is nothing to count in user_id, then your codes above will return how many members with permission 1 and permission 2. Thus, your script above will literally return the … | |
Re: Hi, If your VPS have the latest PHP version on it, this is probably not necessary. Learning it to go backwards is not a good idea, because magic_quotes has been [deprecated](http://php.net/manual/en/security.magicquotes.php).. ![]() | |
Re: @oop_php, Dude thanks for accepting my invitation.. @SPeed_FANat1c , red5 and other players will also do the job. This is for paid content streaming though, but for videos that are for gratis or free, you can just provide them with embed codes. For additional security and validation, you may want … | |
Re: Hi, You may want to try using array_push() function. example of usage... <?php $bd= array('1','420'); array_push($bd,'2','520'); echo $bd[0].'<br/>'; echo $bd[2].'<br/>'; echo $bd[1].'<br/>'; echo $bd[3].'<br/>'; | |
Re: Hi, Based on your script above, you should only get 1 image at a time.. The reason is that you are acessing the image file from your PHP tmp directory. What you need to do is use $new_location = 'yourDir/filename.extension'; move_uploaded_file($_FILES['image']['tmp_name'], $new_location); ## then you can bring it on the … | |
Re: Hi, Yes, it will be a lot easier for you, because you don't have to deal with all the extra coding trying to create a bridge between two applications.. | |
Re: Do as suggested above, otherwise, it appears to me that you maybe using an ubuntu? or any linux derivs ? How did you install your server? conical or command line? Let me know if it is Linux distros... that should be an easy fix... sudo :).... ![]() | |
Re: Hi, So, you deliver this script to your client? You use the client's gmail account to send mail through script? If that is your case, all you have to do is tell your client to run the script one more time, and then a failure should occur again, instruct your … | |
Re: I am more likely the guy on the left, shifted to face-palming after all the hair were pulled out...oouchhhh that hurts. :).. Let me do a test also....maybe we can change those faces to a happy face.. :) :).. | |
Re: Hi, It all depends if on how your API was written. If it was written to accept a file then you can easily send file from your computer's WAMPP or XAMPP to your external site, assuming that your desktop is connected to the Internet. You can use cURL to communicate … | |
Re: Hi, PLease allow me to add something. I think the closest design you can probably use that is similar to 1stbyste.com is the twitter [bootstrap](http://twitter.github.com/bootstrap/). It is easy to use and easy to implement. In fact, I use it a lot with smarty templating engine as a parent template... There … | |
Re: hi, This might be the culprit echo mysql_query("SELECT * FROM stock"); | |
Re: Hi, You can easily free yourself from this problem by trying to change your codes to this.. WARNING! Not tested though.. I am just looking at your codes and possible corrections to make it work.. <select name="fileselect"> <?php $pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', ''); $stmt = $pdo->query("SELECT dateid FROM date_header"); … ![]() | |
Re: Hi, What framework are you using? can you var_dump or print_r this ? listStats($id); and this $this->listStats what do you get? I am assuming that $this->listStats is a method of the view class? | |
Re: **UPDATE!** this will only work to check if the class exists, but will not be able to check if there is an instance of the class already been instantiated.. try looking into this PHP function called [instanceof](http://us.php.net/instanceof). you can also create a simple conditional checkpoint.. this is important in real … | |
Re: Hi, Can you tell us what do you have in your server? 1. Apache? 2. PHP version? 3. Mercury mail? 4. Send Mail? Those things we need know.. | |
Re: Hi, Do all things they suggested above, and then search amazon for books in php if possible look for something that will include introduction to OOP for non-programmers. **!NOTE! do not memorize means to understand the logic behind the subject matter. Learning does NOT always equates to understanding, but understanding … | |
Re: Hi, can you type localhost:80/phpmyadmin or localhost:8080/phpmyadmin on your browser? One of these should allow you to access the phpmyadmin page. Can you use the windows file search and search for the location of wampmanager.ini or wampmanager.tpl? I am not sure though, but I think it is worth trying. You … | |
Re: Here are the wrappers I found [One](https://github.com/veedeoo/thin-pdo-wrapper) and [two](http://www.ricocheting.com/code/php/mysql-database-class-wrapper-v3). You can either use them or use them as reference. I wrote an extended version of ricocheting, but it will only work on frameworks and template engine queries. If you will be following ricocheting's wrappers, this wrapper is written in Singleton … ![]() | |
Re: I believe the penny gained at 40K was coming from 0.00026 . $factor minus the actual value used (0.065).. | |
Re: Hi, here is a simple class pretty much similar to what you have above. $element is not mandatory during the instantiation. However, the $array is mandatory. <?php class ThisArray{ public $element, $array; public function __construct($array=array(),$element=null){ $this->element = $element; $this->array = $array; } public function load_Array(){ return $this->array; } public function … |
The End.