Skip to content

Tag: php

Does PHP run in background when browser is closed?

I start my browser and run a PHP program (in another server) and them I close the browser, the program will still keep running in the server, right? What if you run the program and them remove the folder in the server (while the program is running). Assuming its a single PHP file, will it crash? Does the whol…

How to convert text to x codes?

I want to convert normal text to x codes for e.g x14x65x60 For example : How to do this? Thanks in advance. Answer PHP 5.3 one-liner: Outputs x62x61x73x65x36x34x5fx64x65x63x6fx64x65

Doctrine 2: Saving Entity in Complex Relationship

I have the following relationships within my doctrine entities: FavoriteRecipe Recipe User In one of my controllers I have the following code: But this throws an exception with the following message: A new entity was found through a relationship that was not configured to cascade persist operations: EntitiesU…

Fastest PHP memory cache/hashtable [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, …

How to count Total Downline , Give me any Idea (MLM project)

Anyone give me any Idea about How I can Count down-line for a MLM project (PHP/MySQL). Currently I’m using the below method. but when my database record become 300 or more, then it shows: maximum execution time of 30 second exceeded in line 51. (I think this happens for unlimited loop). please help me. …

how to integrate fFacebook login with your website?

I made some research and i can’t seem to completely understand how to integrate Facebook login with your website. I’m trying to do this for an old fashioned PHP shop that, up till now, doesn’t use any type of login, but only a session that allows users to browse across pages and add items to…

What is the difference between Switch-Case and If-Else in PHP?

I’m deciding whether to use if/else vs switch/case in a PHP site that I am writing and I was wondering if there were any benefits to using one or the other or if there were certain instances where one was intended to be used rather than the other. Answer Interesting question because in a compiled langua…

PHP pagination does not recognize $page

I have downloaded the pagination code and used it for my website running on my local machine. After modifying and testing, there was a problem where it does not recognize the variable $page. Please refer to the following code: This is the error it generated: How can I fix this error? Answer This won’t w…