1,003 Posted Topics

Member Avatar for apnavarun

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 …

Member Avatar for veedeoo
0
345
Member Avatar for jeffadrian

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 …

Member Avatar for jeffadrian
0
11K
Member Avatar for Dani

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

Member Avatar for veedeoo
0
505
Member Avatar for Aadhya169

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 …

Member Avatar for diafol
0
223
Member Avatar for jLamp

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 …

Member Avatar for veedeoo
0
317
Member Avatar for mallows.yum

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

Member Avatar for mallows.yum
0
244
Member Avatar for dourvas

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 …

Member Avatar for Tpojka
0
174
Member Avatar for engr_pir

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

Member Avatar for engr_pir
0
335
Member Avatar for shashikant40

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)

Member Avatar for Squidge
0
159
Member Avatar for rahul.pragma

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

Member Avatar for veedeoo
0
148
Member Avatar for cgull

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 …

Member Avatar for veedeoo
0
852
Member Avatar for Xytheron

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

Member Avatar for veedeoo
0
199
Member Avatar for NickBogi

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 …

Member Avatar for NickBogi
0
187
Member Avatar for jasminjew

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 …

Member Avatar for veedeoo
0
378
Member Avatar for klemme

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.

Member Avatar for veedeoo
0
99
Member Avatar for theonlylos

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 …

Member Avatar for veedeoo
0
379
Member Avatar for rjony321

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

Member Avatar for cereal
0
6K
Member Avatar for ankit.4aug

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

Member Avatar for veedeoo
0
246
Member Avatar for garyrichard

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

Member Avatar for veedeoo
1
254
Member Avatar for javacle

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

Member Avatar for veedeoo
0
200
Member Avatar for gogs85

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 …

Member Avatar for gogs85
0
700
Member Avatar for infoitmanoj

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 …

Member Avatar for veedeoo
0
257
Member Avatar for subrata_ushasi

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 …

Member Avatar for subrata_ushasi
0
4K
Member Avatar for lwschjang

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 …

Member Avatar for lwschjang
0
303
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
2K
Member Avatar for OsaMasw

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 …

Member Avatar for naphets
0
2K
Member Avatar for danimischiu

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

Member Avatar for danimischiu
0
276
Member Avatar for <M/>

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 …

Member Avatar for Lucaci Andrew
0
420
Member Avatar for veedeoo

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 …

Member Avatar for LastMitch
5
241
Member Avatar for Noth

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 …

Member Avatar for veedeoo
0
199
Member Avatar for SphirosOkelli

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

Member Avatar for Zagga
0
213
Member Avatar for McLaren

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

Member Avatar for McLaren
0
141
Member Avatar for daniel36

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

Member Avatar for daniel36
0
120
Member Avatar for varma51

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 …

Member Avatar for varma51
0
135
Member Avatar for unikorndesigns

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

Member Avatar for veedeoo
0
144
Member Avatar for parsa.moshrefi

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

Member Avatar for diafol
0
178
Member Avatar for AARTI SHRIVAS

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 …

Member Avatar for AARTI SHRIVAS
0
462
Member Avatar for cgull

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

Member Avatar for veedeoo
0
4K
Member Avatar for joshl_1995

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 …

Member Avatar for veedeoo
0
162
Member Avatar for lewashby

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 …

Member Avatar for domainflipper
0
100
Member Avatar for davy_yg

hi, This might be the culprit echo mysql_query("SELECT * FROM stock");

Member Avatar for TonyG_cyprus
0
127
Member Avatar for ebc3142

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

Member Avatar for diafol
0
7K
Member Avatar for joshmac

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?

Member Avatar for joshmac
0
229
Member Avatar for nunuaziz_

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

Member Avatar for veedeoo
0
207
Member Avatar for nunuaziz_

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

Member Avatar for veedeoo
0
952
Member Avatar for personalisedpen

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 …

Member Avatar for Draconyster
0
344
Member Avatar for Fiorentino01^

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 …

Member Avatar for Fiorentino01^
0
231
Member Avatar for Squidge

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 …

Member Avatar for diafol
0
352
Member Avatar for showman13

I believe the penny gained at 40K was coming from 0.00026 . $factor minus the actual value used (0.065)..

Member Avatar for veedeoo
0
129
Member Avatar for luddite

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 …

Member Avatar for luddite
0
200

The End.