All Questions

by sarah | 16/10/16 | 1 Answers | Tags : PHP , Wamp server , Lamp Views : 1058
Hi actually i am old school and saved some config setting at .ini file and .txt file and now i want to secure it so people cant browse and see it . right now if any one browse with www.myhost.com/config.ini at my site than they can see the content of the config file and [inf] i want hack or something so .ini or .txt it cant be view able for the web client [/inf]you can suggest any type of solution which work by lamp so php or apache or any hack which can do and can improve the security any how .

Read more

i have $list which is array of the object with id and other values , i am removing the all object who have id is equal to $id in short want to remove duplicate object from array $list is there array_unique like function for the object like object_unique . above code is working but i want to do it without foreach or any other loop so any how i can shrink code or make performance better

Read more

by sarah | 14/10/16 | 1 Answers | Tags : PHP Views : 996
Mostly i got the error like [le] Invalid argument supplied for foreach() [/le] for some code [ld]foreach($item as $value)[/ld] i know it s error for because $item is not array .if put validation of if is array or not for $item i never get that error . but always forget to check it is valid array or not and use direct foreach and it dont show error at some level but if passed array is dynamic and it is not valid array than it give error so i want to make wrapper function which use foreach for looping but check it first is it valid array or not , foreach is construct so i be blind . give me some direction pls

Read more

by sandip | 14/10/16 | 2 Answers | Tags : PHP Views : 1185
i want to get rid of uploading any file to my server by the php files. is there any way of by php.ini or .htacess or any other server modification so i can disable uploading of files to users ? main reason is My wordpress site got infected. i got index.php file have following some code with eval function which is undesirable i am cleaning daily but still it get infected . so i want to limit the cause of the get it infected daily. so i find that it should be uploaded from somewhere so i want to get rid of the upload function of my server.

Read more

by denyy | 14/10/16 | 1 Answers | Tags : PHP Views : 2431
i am php learner i got this error Fatal error: Call to undefined function file_get_content() in for i am making code for merging all file in one file . i have array of the all filenames in server which is in txt format. so i reading it with file_get_content . so help me with it

Read more

by css-learner | 10/10/16 | 1 Answers | Tags : HTML , XHTML Views : 893
Why meta tags : charset and http-equiv and viewport must come first in the head; any other head content must come after these

Read more

by debugger | 10/10/16 | 1 Answers | Tags : PHP Views : 1196
i want to make SEO friendly url so page title also include in the page link instead of just blog post ID Suppose i have Page Title like Shakespeare invented the words ‘assassination’ and ‘bump’ and have Post ID :12 so instead of link http://www.fact-demon.com/index.php?post-id=12 i want link like http://www.fact-demon.com/Shakespeare-invented-the-words-assassination-and-bump/12 for Url making from String i made following code it generate link :: http://www.factdemon.com/Shakespeare-invented-the-words-%E2%80%98assassination%E2%80%99-and-%E2%80%98bump%E2%80%99 and by browsing it i got error Not found Error Shakespeare-invented-the-words-‘assassination’-and-‘bump’ was not found on this server. so i need proper function for String to Seo Friendly Url

Read more

by iPhone-coder | 09/10/16 | 1 Answers | Tags : ios , xcode , objective C , UITableView , UITableCell Views : 5878
i get error :: "Editor placeholder in source file " with dequeueReusableCell with

Read more

by hanuman | 08/10/16 | 2 Answers | Tags : PHP Views : 2588
and another give me blank screen it means error . not able to encode. so might some have solution

Read more

by joomler | 07/10/16 | 2 Answers | Tags : PHP , Joomla , Caching Technique Views : 1211
its not general problem regarding question ? but i got that joomla 3.x use reverse caching proxy . so i want to know what is it ? and how it implemented with joomla ? is there any hack which we could do with core php application to apply same caching technique ?

Read more

by css-learner | 07/10/16 | 2 Answers | Tags : Javascript , WebGL Views : 842
i heard that WebGL is Graphic Language but i look it it look same Javascript code ? so both are same or have any difference ?

Read more

by jabber | 07/10/16 | 2 Answers | Tags : PHP Views : 700
How can i manage error reporting very well ? sometime when i want to disable error reporting i use disable_error_reporting (my custom function) or i use @ before the line of the code to remove error to show to my client ? so what other option we have so we can manage error reporting well, one function/class to set or unset error reporting.

Read more

by css-learner | 06/10/16 | 1 Answers | Tags : HTML , css Views : 662
for my college project . i jst start making some webpages . i use inspect tool for debugging css property.i am wondering howmuch we can add max or min value to font-weight. like i added font-weight:999; and chrome inspect tool says "Invalid Property Value" above is boostrap label css . and i played with it little bit and make font-weight to 999 and google chrome inspect tool say "Invalid Property Value" so what should be max or min range for font-weight ?

Read more

by debugger | 06/10/16 | 5 Answers | Tags : PHP , Security , encryption , cryptography Views : 2191
now using md5 to encrypt password before save to database in PHP so i want to make more secure password and please define the code of the how to check for authentication for login time also.

Read more

by Phpworker | 06/10/16 | 2 Answers | Tags : PHP Views : 848
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: No such host is known. how to resolve it ?

Read more

by sqltreat | 06/10/16 | 2 Answers | Tags : PHP Views : 1023
some user entered username with '(single quote) or "(double quote ) like sam'skitchen and it break my code and people can see my query on the registration page . i got that it s called sql injection . i want to avoid it better way

Read more

by sarah | 06/10/16 | 1 Answers | Tags : PHP Views : 1158
Hi again . i am making file tree with jquery plugin for that i m making the php server side coding to load files and directory for particular given directory but i want to print first schema of directory like how much files and directories in there in this given directory ? is this need any system call like "ls" in linux or "dir" in window by system function or we can do it any other way ?

Read more

by sarah | 06/10/16 | 1 Answers | Tags : PHP Views : 739
How to check the file is image or in other format in php . i tried to explode filename with "."(dot) but try to compare with extension .png or .jpg but some time more than one (dot). in the file name so i need easy code with regex so it full proof checking without any backside in php

Read more

by iPhone-coder | 05/10/16 | 1 Answers | Tags : ios Views : 1917
trying some code with iOS development. basically known with php .in php mostly only array but here to differ term NsArray and NsMutableArray. so what is difference between NsArray and NsMutableArray ?

Read more

by QuickIos | 05/10/16 | 1 Answers | Tags : ios , xcode , OS X Views : 1483
used with code alamofire 3.0 and it now with alamofire 4.0 it gives error , what wrong ?

Read more