by ching | 19/10/16 | 2 Answers | Tags : PHP , WebService , cURL , Web API Views : 172
i want to connect with remote window server and so i am using cURL for it but simple connection not working well but i think it need SSL connection , so how to connect with SSL site and make Authentication by cURL ?

Read more

by ching | 19/10/16 | 3 Answers | Tags : PHP , Page-Speed , web-page , speed Views : 362
how can i set custom HTTP header for curl php i am working with api and i want to set HTTP request header with [ls] User-Agent: PHP-SOAP-CURL [/ls] so i can send request with above HTTP header ?

Read more

by debugger | 17/10/16 | 1 Answers | Tags : Javascript , PHP , Minify Views : 146
i am testing page speed with google PageSpeed Insights , and i did not find good score , google PageSpeed Insights suggest me to Minify JavaScript Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time. so now i want JavaScript to be Minified .but question is now how to Minify JavaScript in php ? so google PageSpeed Insights score goes up so pls give me some suggestion

Read more

by sarah | 16/10/16 | 1 Answers | Tags : PHP , Wamp server , Lamp Views : 145
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 | 0 Answers | Tags : PHP Views : 134
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 : 204
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 : 135
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 : 155
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 : 142
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 : 855
i get error :: "Editor placeholder in source file " with dequeueReusableCell with

Read more

by hanuman | 08/10/16 | 2 Answers | Tags : PHP Views : 136
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 : 226
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 : 138
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 : 124
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 : 82
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 : 696
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 : 95
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 : 162
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 : 94
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